diff options
| author | Tim Redfern <tim@eclectronics.org> | 2013-12-11 14:12:48 +0000 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2013-12-11 14:12:48 +0000 |
| commit | 1bae3f889b11933353d4ef31c692c9b7cb9f5047 (patch) | |
| tree | 0f3e97e82d861482bd3b6f37e47dc718c8842ab2 /rotord/src/rotor.cpp | |
| parent | 328453e61a8992729c0ecc661ad324b63af6b41d (diff) | |
prototypes for UI number types
Diffstat (limited to 'rotord/src/rotor.cpp')
| -rw-r--r-- | rotord/src/rotor.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/rotord/src/rotor.cpp b/rotord/src/rotor.cpp index 36eb2fa..d16d9f4 100644 --- a/rotord/src/rotor.cpp +++ b/rotord/src/rotor.cpp @@ -81,6 +81,8 @@ Node_factory::Node_factory(){ category["UI"]=vector<Node*>(); add_type("ui_text",new UI_text(),category["UI"]); add_type("number",new Number(),category["UI"]); + add_type("dial",new Dial(),category["UI"]); + add_type("slider",new Slider(),category["UI"]); } double Signal_input::get_time_used(){ @@ -164,7 +166,7 @@ Json::Value Node_factory::list_node(Rotor::Node* _node){ if (dynamic_cast<Image_node*> (_node)!=nullptr) node["output"]="image"; node["description"]=_node->description; node["NODEID"]=_node->NODEID; - //node["UItype"]=_node->UItype; + node["UItype"]=_node->UItype; if (_node->inputs.size()){ node["signal_inputs"]=Json::arrayValue; for (auto& input: _node->inputs) { @@ -234,7 +236,7 @@ void Node_factory::list_node(Rotor::Node* type,xmlIO XML,int i){ XML.addAttribute("node","title",type->title,i); XML.addAttribute("node","description",type->description,i); XML.addAttribute("node","NODEID",type->NODEID,i); - //XML.addAttribute("node","UItype",type->UItype,i); + XML.addAttribute("node","UItype",type->UItype,i); if (dynamic_cast<Signal_node*> (type)!=nullptr) XML.addAttribute("node","output","signal",i); if (dynamic_cast<Image_node*> (type)!=nullptr) XML.addAttribute("node","output","image",i); XML.pushTag("node",i); |
