diff options
author | David Robillard <d@drobilla.net> | 2013-01-11 02:57:29 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2013-01-11 02:57:29 +0000 |
commit | 057bee977b95c6ccb4deb35245b598638d920330 (patch) | |
tree | 833ee00a08a918dd708b19e5c4fa801500ad9679 /src/gui | |
parent | 4b480bf87cd496446491e3880d867d7fa92c6c49 (diff) | |
download | ingen-057bee977b95c6ccb4deb35245b598638d920330.tar.gz ingen-057bee977b95c6ccb4deb35245b598638d920330.tar.bz2 ingen-057bee977b95c6ccb4deb35245b598638d920330.zip |
C++11-safe conversions.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4914 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/GraphCanvas.cpp | 11 | ||||
-rw-r--r-- | src/gui/GraphPortModule.cpp | 6 | ||||
-rw-r--r-- | src/gui/LoadPluginWindow.cpp | 2 | ||||
-rw-r--r-- | src/gui/NewSubgraphWindow.cpp | 5 | ||||
-rw-r--r-- | src/gui/NodeModule.cpp | 6 | ||||
-rw-r--r-- | src/gui/ObjectMenu.cpp | 2 | ||||
-rw-r--r-- | src/gui/PropertiesWindow.cpp | 3 | ||||
-rw-r--r-- | src/gui/SubgraphModule.cpp | 6 | ||||
-rw-r--r-- | src/gui/ingen_gui_lv2.cpp | 3 |
9 files changed, 28 insertions, 16 deletions
diff --git a/src/gui/GraphCanvas.cpp b/src/gui/GraphCanvas.cpp index 8f87a2c1..216d0cab 100644 --- a/src/gui/GraphCanvas.cpp +++ b/src/gui/GraphCanvas.cpp @@ -741,7 +741,7 @@ GraphCanvas::paste() string created = "/"; Resource::Properties props; props.insert(make_pair(uris.rdf_type, - uris.ingen_Graph)); + Resource::Property(uris.ingen_Graph))); props.insert(make_pair(uris.ingen_polyphony, _app.forge().make(int32_t(_graph->internal_poly())))); clipboard.put(Node::root_uri(), props); @@ -830,10 +830,12 @@ GraphCanvas::menu_add_port(const string& sym_base, const string& name_base, _app.forge().alloc_uri(type))); if (type == uris.atom_AtomPort) { props.insert(make_pair(uris.atom_bufferType, - uris.atom_Sequence)); + Resource::Property(uris.atom_Sequence))); } props.insert(make_pair(uris.rdf_type, - is_output ? uris.lv2_OutputPort : uris.lv2_InputPort)); + Resource::Property(is_output + ? uris.lv2_OutputPort + : uris.lv2_InputPort))); props.insert(make_pair(uris.lv2_index, _app.forge().make(int32_t(_graph->num_ports())))); props.insert(make_pair(uris.lv2_name, @@ -861,7 +863,8 @@ GraphCanvas::load_plugin(WeakPtr<PluginModel> weak_plugin) // FIXME: polyphony? Node::Properties props = get_initial_data(); - props.insert(make_pair(uris.rdf_type, uris.ingen_Block)); + props.insert(make_pair(uris.rdf_type, + Resource::Property(uris.ingen_Block))); props.insert(make_pair(uris.ingen_prototype, uris.forge.alloc_uri(plugin->uri()))); _app.interface()->put(Node::path_to_uri(path), props); diff --git a/src/gui/GraphPortModule.cpp b/src/gui/GraphPortModule.cpp index d000ae36..6c5f91b4 100644 --- a/src/gui/GraphPortModule.cpp +++ b/src/gui/GraphPortModule.cpp @@ -106,8 +106,10 @@ GraphPortModule::store_location(double ax, double ay) y != _model->get_property(uris.ingen_canvasY)) { Resource::Properties remove; - remove.insert(make_pair(uris.ingen_canvasX, uris.wildcard)); - remove.insert(make_pair(uris.ingen_canvasY, uris.wildcard)); + remove.insert(make_pair(uris.ingen_canvasX, + Resource::Property(uris.wildcard))); + remove.insert(make_pair(uris.ingen_canvasY, + Resource::Property(uris.wildcard))); Resource::Properties add; add.insert(make_pair(uris.ingen_canvasX, Resource::Property(x, Resource::INTERNAL))); diff --git a/src/gui/LoadPluginWindow.cpp b/src/gui/LoadPluginWindow.cpp index 8ef972c0..b21a33fc 100644 --- a/src/gui/LoadPluginWindow.cpp +++ b/src/gui/LoadPluginWindow.cpp @@ -399,7 +399,7 @@ LoadPluginWindow::load_plugin(const Gtk::TreeModel::iterator& iter) Raul::Path path = _graph->path().child(Raul::Symbol::symbolify(name)); Resource::Properties props = _initial_data; props.insert(make_pair(uris.rdf_type, - uris.ingen_Block)); + Resource::Property(uris.ingen_Block))); props.insert(make_pair(uris.ingen_prototype, _app->forge().alloc_uri(plugin->uri()))); props.insert(make_pair(uris.ingen_polyphonic, diff --git a/src/gui/NewSubgraphWindow.cpp b/src/gui/NewSubgraphWindow.cpp index ef24be89..a748de8d 100644 --- a/src/gui/NewSubgraphWindow.cpp +++ b/src/gui/NewSubgraphWindow.cpp @@ -95,14 +95,15 @@ NewSubgraphWindow::ok_clicked() // Create graph Resource::Properties props; - props.insert(make_pair(_app->uris().rdf_type, _app->uris().ingen_Graph)); + props.insert(make_pair(_app->uris().rdf_type, Resource::Property(_app->uris().ingen_Graph))); props.insert(make_pair(_app->uris().ingen_polyphony, _app->forge().make(int32_t(poly)))); props.insert(make_pair(_app->uris().ingen_enabled, _app->forge().make(bool(true)))); _app->interface()->put(Node::path_to_uri(path), props, Resource::INTERNAL); // Set external (block perspective) properties props = _initial_data; - props.insert(make_pair(_app->uris().rdf_type, _app->uris().ingen_Graph)); + props.insert(make_pair(_app->uris().rdf_type, + Resource::Property(_app->uris().ingen_Graph))); _app->interface()->put(Node::path_to_uri(path), _initial_data, Resource::EXTERNAL); hide(); diff --git a/src/gui/NodeModule.cpp b/src/gui/NodeModule.cpp index 1409368e..f7333fec 100644 --- a/src/gui/NodeModule.cpp +++ b/src/gui/NodeModule.cpp @@ -394,8 +394,10 @@ NodeModule::store_location(double ax, double ay) y != _block->get_property(uris.ingen_canvasY)) { Resource::Properties remove; - remove.insert(make_pair(uris.ingen_canvasX, uris.wildcard)); - remove.insert(make_pair(uris.ingen_canvasY, uris.wildcard)); + remove.insert(make_pair(uris.ingen_canvasX, + Resource::Property(uris.wildcard))); + remove.insert(make_pair(uris.ingen_canvasY, + Resource::Property(uris.wildcard))); Resource::Properties add; add.insert(make_pair(uris.ingen_canvasX, x)); add.insert(make_pair(uris.ingen_canvasY, y)); diff --git a/src/gui/ObjectMenu.cpp b/src/gui/ObjectMenu.cpp index 5c784d33..46437e2e 100644 --- a/src/gui/ObjectMenu.cpp +++ b/src/gui/ObjectMenu.cpp @@ -102,7 +102,7 @@ ObjectMenu::on_menu_unlearn() Resource::Properties remove; remove.insert(std::make_pair( _app->uris().ingen_controlBinding, - _app->uris().wildcard)); + Resource::Property(_app->uris().wildcard))); _app->interface()->delta(_object->uri(), remove, Resource::Properties()); } diff --git a/src/gui/PropertiesWindow.cpp b/src/gui/PropertiesWindow.cpp index b357514d..ea4e6683 100644 --- a/src/gui/PropertiesWindow.cpp +++ b/src/gui/PropertiesWindow.cpp @@ -430,7 +430,8 @@ PropertiesWindow::add_clicked() Raul::Atom value = _app->forge().alloc_uri(value_uri); Resource::Properties properties; - properties.insert(make_pair(key_uri.c_str(), value)); + properties.insert(make_pair(Raul::URI(key_uri.c_str()), + Resource::Property(value))); _app->interface()->put(_model->uri(), properties); } diff --git a/src/gui/SubgraphModule.cpp b/src/gui/SubgraphModule.cpp index 4860098e..215521da 100644 --- a/src/gui/SubgraphModule.cpp +++ b/src/gui/SubgraphModule.cpp @@ -71,8 +71,10 @@ SubgraphModule::store_location(double ax, double ay) y != _block->get_property(uris.ingen_canvasY)) { Resource::Properties remove; - remove.insert(make_pair(uris.ingen_canvasX, uris.wildcard)); - remove.insert(make_pair(uris.ingen_canvasY, uris.wildcard)); + remove.insert(make_pair(uris.ingen_canvasX, + Resource::Property(uris.wildcard))); + remove.insert(make_pair(uris.ingen_canvasY, + Resource::Property(uris.wildcard))); Resource::Properties add; add.insert(make_pair(uris.ingen_canvasX, Resource::Property(x, Resource::EXTERNAL))); diff --git a/src/gui/ingen_gui_lv2.cpp b/src/gui/ingen_gui_lv2.cpp index 40f37dc7..b8a4443b 100644 --- a/src/gui/ingen_gui_lv2.cpp +++ b/src/gui/ingen_gui_lv2.cpp @@ -135,7 +135,8 @@ instantiate(const LV2UI_Descriptor* descriptor, // Create empty root graph model Ingen::Resource::Properties props; props.insert(std::make_pair(ui->app->uris().rdf_type, - ui->app->uris().ingen_Graph)); + Ingen::Resource::Property( + ui->app->uris().ingen_Graph))); ui->app->store()->put(Ingen::Node::root_uri(), props); // Create a GraphBox for the root and set as the UI widget |