From 874194d055d0c90a7874a06be95ca2e087616a9d Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Tue, 14 Jan 2014 17:00:14 +0000 Subject: converting settings initiaiers to json --- NT/src/rotor.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'NT/src/rotor.cpp') diff --git a/NT/src/rotor.cpp b/NT/src/rotor.cpp index 33d52ad..96e4250 100644 --- a/NT/src/rotor.cpp +++ b/NT/src/rotor.cpp @@ -9,11 +9,12 @@ using namespace Rotor; Json::Value Node::list_json(){ Json::Value node; - node["node_type"]=node_type; + node["type"]=type; + node["type_id"]=type_id; node["title"]=title; node["output_type"]=output_type(); node["description"]=description; - node["node_id"]=node_id; + node["id"]=id; node["ui_type"]=ui_type; if (vars.size()){ @@ -22,6 +23,7 @@ Json::Value Node::list_json(){ string type=var.second->get_type(); Json::Value newvar; newvar["type"]=type; + newvar["name"]=name; newvar["connectable"]=var.second->connectable?"yes":"no"; if (dynamic_cast(var.second)){ newvar["input"]=Json::arrayValue; -- cgit v1.2.3