summaryrefslogtreecommitdiffstats
path: root/src/gui/GraphCanvas.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-02-15 22:41:18 +0100
committerDavid Robillard <d@drobilla.net>2017-02-15 23:26:02 +0100
commit2ba09e4b41b01cbd8f8756eb0e3b7e33136e06b3 (patch)
tree3033cd084a43a9dd904b96c7efaea2ff30a8502f /src/gui/GraphCanvas.cpp
parent4a7ebef865e91e6df521d61f55c5baa709e7776f (diff)
downloadingen-2ba09e4b41b01cbd8f8756eb0e3b7e33136e06b3.tar.gz
ingen-2ba09e4b41b01cbd8f8756eb0e3b7e33136e06b3.tar.bz2
ingen-2ba09e4b41b01cbd8f8756eb0e3b7e33136e06b3.zip
Move static path stuff to its own header
Diffstat (limited to 'src/gui/GraphCanvas.cpp')
-rw-r--r--src/gui/GraphCanvas.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gui/GraphCanvas.cpp b/src/gui/GraphCanvas.cpp
index 565f607e..5b1111d7 100644
--- a/src/gui/GraphCanvas.cpp
+++ b/src/gui/GraphCanvas.cpp
@@ -673,12 +673,12 @@ GraphCanvas::paste()
// Make a client store to serve as clipboard
ClientStore clipboard(_app.world()->uris(), _app.log());
clipboard.set_plugins(_app.store()->plugins());
- clipboard.put(Node::main_uri(),
+ clipboard.put(main_uri(),
{{uris.rdf_type, Resource::Property(uris.ingen_Graph)}});
// Parse clipboard text into clipboard store
boost::optional<Raul::URI> base_uri = parser->parse_string(
- _app.world(), &clipboard, str, Node::main_uri());
+ _app.world(), &clipboard, str, main_uri());
// Figure out the copy graph base path
Raul::Path copy_root("/");
@@ -687,7 +687,7 @@ GraphCanvas::paste()
if (base[base.size() - 1] == '/') {
base = base.substr(0, base.size() - 1);
}
- copy_root = Node::uri_to_path(Raul::URI(base));
+ copy_root = uri_to_path(Raul::URI(base));
}
// Find the minimum x and y coordinate of objects to be pasted
@@ -724,7 +724,7 @@ GraphCanvas::paste()
const SPtr<Node> node = c.second;
const Raul::Path& old_path = copy_root.child(node->path());
- const Raul::URI& old_uri = Node::path_to_uri(old_path);
+ const Raul::URI& old_uri = path_to_uri(old_path);
const Raul::Path& new_path = avoider.map_path(parent.child(node->path()));
Node::Properties props{{uris.lv2_prototype,
@@ -748,7 +748,7 @@ GraphCanvas::paste()
yi->second.context())});
}
- _app.interface()->put(Node::path_to_uri(new_path), props);
+ _app.interface()->put(path_to_uri(new_path), props);
_pastees.insert(new_path);
}
@@ -809,7 +809,7 @@ GraphCanvas::menu_add_port(const string& sym_base, const string& name_base,
_app.forge().make(int32_t(_graph->num_ports()))));
props.insert(make_pair(uris.lv2_name,
_app.forge().alloc(name.c_str())));
- _app.interface()->put(Node::path_to_uri(path), props);
+ _app.interface()->put(path_to_uri(path), props);
}
void
@@ -836,7 +836,7 @@ GraphCanvas::load_plugin(WPtr<PluginModel> weak_plugin)
Resource::Property(uris.ingen_Block)));
props.insert(make_pair(uris.lv2_prototype,
uris.forge.make_urid(plugin->uri())));
- _app.interface()->put(Node::path_to_uri(path), props);
+ _app.interface()->put(path_to_uri(path), props);
}
/** Try to guess a suitable location for a new module.