diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/LoadPatchWindow.cpp | 4 | ||||
-rw-r--r-- | src/gui/LoadPluginWindow.cpp | 4 | ||||
-rw-r--r-- | src/gui/NodeModule.cpp | 16 | ||||
-rw-r--r-- | src/gui/PatchCanvas.cpp | 8 | ||||
-rw-r--r-- | src/gui/PatchPortModule.cpp | 16 | ||||
-rw-r--r-- | src/gui/SubpatchModule.cpp | 12 |
6 files changed, 30 insertions, 30 deletions
diff --git a/src/gui/LoadPatchWindow.cpp b/src/gui/LoadPatchWindow.cpp index 64e6aa4e..7a45f9bb 100644 --- a/src/gui/LoadPatchWindow.cpp +++ b/src/gui/LoadPatchWindow.cpp @@ -172,9 +172,9 @@ LoadPatchWindow::ok_clicked() std::list<Glib::ustring> uri_list = get_uris(); for (std::list<Glib::ustring>::iterator i = uri_list.begin(); i != uri_list.end(); ++i) { // Cascade - Atom& x = _initial_data.find(uris.ingen_canvas_x)->second; + Atom& x = _initial_data.find(uris.ingen_canvasX)->second; x = Atom(x.get_float() + 20.0f); - Atom& y = _initial_data.find(uris.ingen_canvas_y)->second; + Atom& y = _initial_data.find(uris.ingen_canvasY)->second; y = Atom(y.get_float() + 20.0f); Raul::Symbol symbol(symbol_from_filename(*i)); diff --git a/src/gui/LoadPluginWindow.cpp b/src/gui/LoadPluginWindow.cpp index 4869fff2..44add7e8 100644 --- a/src/gui/LoadPluginWindow.cpp +++ b/src/gui/LoadPluginWindow.cpp @@ -354,9 +354,9 @@ LoadPluginWindow::load_plugin(const Gtk::TreeModel::iterator& iter) } // Cascade next node - Atom& x = _initial_data.find(uris.ingen_canvas_x)->second; + Atom& x = _initial_data.find(uris.ingen_canvasX)->second; x = Atom(x.get_float() + 20.0f); - Atom& y = _initial_data.find(uris.ingen_canvas_y)->second; + Atom& y = _initial_data.find(uris.ingen_canvasY)->second; y = Atom(y.get_float() + 20.0f); } } diff --git a/src/gui/NodeModule.cpp b/src/gui/NodeModule.cpp index c45273f5..bef84b2d 100644 --- a/src/gui/NodeModule.cpp +++ b/src/gui/NodeModule.cpp @@ -377,16 +377,16 @@ NodeModule::store_location(double ax, double ay) const URIs& uris = app().uris(); - const Atom& existing_x = _node->get_property(uris.ingen_canvas_x); - const Atom& existing_y = _node->get_property(uris.ingen_canvas_y); + const Atom& existing_x = _node->get_property(uris.ingen_canvasX); + const Atom& existing_y = _node->get_property(uris.ingen_canvasY); if (x != existing_x && y != existing_y) { Resource::Properties remove; - remove.insert(make_pair(uris.ingen_canvas_x, uris.wildcard)); - remove.insert(make_pair(uris.ingen_canvas_y, uris.wildcard)); + remove.insert(make_pair(uris.ingen_canvasX, uris.wildcard)); + remove.insert(make_pair(uris.ingen_canvasY, uris.wildcard)); Resource::Properties add; - add.insert(make_pair(uris.ingen_canvas_x, x)); - add.insert(make_pair(uris.ingen_canvas_y, y)); + add.insert(make_pair(uris.ingen_canvasX, x)); + add.insert(make_pair(uris.ingen_canvasY, y)); app().engine()->delta(_node->path(), remove, add); } } @@ -397,9 +397,9 @@ NodeModule::property_changed(const URI& key, const Atom& value) const Shared::URIs& uris = app().uris(); switch (value.type()) { case Atom::FLOAT: - if (key == uris.ingen_canvas_x) { + if (key == uris.ingen_canvasX) { move_to(value.get_float(), get_y()); - } else if (key == uris.ingen_canvas_y) { + } else if (key == uris.ingen_canvasY) { move_to(get_x(), value.get_float()); } break; diff --git a/src/gui/PatchCanvas.cpp b/src/gui/PatchCanvas.cpp index 8b2660c6..0c6d73fa 100644 --- a/src/gui/PatchCanvas.cpp +++ b/src/gui/PatchCanvas.cpp @@ -737,11 +737,11 @@ PatchCanvas::paste() GraphObject::Properties& props = i->second->properties(); - GraphObject::Properties::iterator x = props.find(uris.ingen_canvas_x); + GraphObject::Properties::iterator x = props.find(uris.ingen_canvasX); if (x != i->second->properties().end()) x->second = x->second.get_float() + (20.0f * _paste_count); - GraphObject::Properties::iterator y = props.find(uris.ingen_canvas_y); + GraphObject::Properties::iterator y = props.find(uris.ingen_canvasY); if (y != i->second->properties().end()) y->second = y->second.get_float() + (20.0f * _paste_count); @@ -841,9 +841,9 @@ PatchCanvas::get_initial_data(Resource::Graph ctx) { GraphObject::Properties result; const URIs& uris = _app.uris(); - result.insert(make_pair(uris.ingen_canvas_x, + result.insert(make_pair(uris.ingen_canvasX, Resource::Property((float)_last_click_x, ctx))); - result.insert(make_pair(uris.ingen_canvas_y, + result.insert(make_pair(uris.ingen_canvasY, Resource::Property((float)_last_click_y, ctx))); return result; } diff --git a/src/gui/PatchPortModule.cpp b/src/gui/PatchPortModule.cpp index 810b1beb..991103ac 100644 --- a/src/gui/PatchPortModule.cpp +++ b/src/gui/PatchPortModule.cpp @@ -93,17 +93,17 @@ PatchPortModule::store_location(double ax, double ay) const URIs& uris = app().uris(); - const Atom& existing_x = _model->get_property(uris.ingen_canvas_x); - const Atom& existing_y = _model->get_property(uris.ingen_canvas_y); + const Atom& existing_x = _model->get_property(uris.ingen_canvasX); + const Atom& existing_y = _model->get_property(uris.ingen_canvasY); if (x != existing_x && y != existing_y) { Resource::Properties remove; - remove.insert(make_pair(uris.ingen_canvas_x, uris.wildcard)); - remove.insert(make_pair(uris.ingen_canvas_y, uris.wildcard)); + remove.insert(make_pair(uris.ingen_canvasX, uris.wildcard)); + remove.insert(make_pair(uris.ingen_canvasY, uris.wildcard)); Resource::Properties add; - add.insert(make_pair(uris.ingen_canvas_x, + add.insert(make_pair(uris.ingen_canvasX, Resource::Property(x, Resource::INTERNAL))); - add.insert(make_pair(uris.ingen_canvas_y, + add.insert(make_pair(uris.ingen_canvasY, Resource::Property(y, Resource::INTERNAL))); app().engine()->delta(_model->path(), remove, add); } @@ -133,9 +133,9 @@ PatchPortModule::property_changed(const URI& key, const Atom& value) const URIs& uris = app().uris(); switch (value.type()) { case Atom::FLOAT: - if (key == uris.ingen_canvas_x) { + if (key == uris.ingen_canvasX) { move_to(value.get_float(), get_y()); - } else if (key == uris.ingen_canvas_y) { + } else if (key == uris.ingen_canvasY) { move_to(get_x(), value.get_float()); } break; diff --git a/src/gui/SubpatchModule.cpp b/src/gui/SubpatchModule.cpp index 6d4f48e8..21ad0dd8 100644 --- a/src/gui/SubpatchModule.cpp +++ b/src/gui/SubpatchModule.cpp @@ -68,17 +68,17 @@ SubpatchModule::store_location(double ax, double ay) const URIs& uris = app().uris(); - const Atom& existing_x = _node->get_property(uris.ingen_canvas_x); - const Atom& existing_y = _node->get_property(uris.ingen_canvas_y); + const Atom& existing_x = _node->get_property(uris.ingen_canvasX); + const Atom& existing_y = _node->get_property(uris.ingen_canvasY); if (x != existing_x && y != existing_y) { Resource::Properties remove; - remove.insert(make_pair(uris.ingen_canvas_x, uris.wildcard)); - remove.insert(make_pair(uris.ingen_canvas_y, uris.wildcard)); + remove.insert(make_pair(uris.ingen_canvasX, uris.wildcard)); + remove.insert(make_pair(uris.ingen_canvasY, uris.wildcard)); Resource::Properties add; - add.insert(make_pair(uris.ingen_canvas_x, + add.insert(make_pair(uris.ingen_canvasX, Resource::Property(x, Resource::EXTERNAL))); - add.insert(make_pair(uris.ingen_canvas_y, + add.insert(make_pair(uris.ingen_canvasY, Resource::Property(y, Resource::EXTERNAL))); app().engine()->delta(_node->path(), remove, add); } |