summaryrefslogtreecommitdiffstats
path: root/src/gui/NodeModule.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-03-10 04:26:56 +0000
committerDavid Robillard <d@drobilla.net>2012-03-10 04:26:56 +0000
commit905fbd7d76b541c12fe500a4b8c775a64275487b (patch)
treeb4cfc9defd7380c48b8e33db5f1094ac2c7f96a9 /src/gui/NodeModule.cpp
parent4b0f77528d38c630b68cb193e4832289efc46531 (diff)
downloadingen-905fbd7d76b541c12fe500a4b8c775a64275487b.tar.gz
ingen-905fbd7d76b541c12fe500a4b8c775a64275487b.tar.bz2
ingen-905fbd7d76b541c12fe500a4b8c775a64275487b.zip
Rename ingen:canvas-x and ingen:canvas-y to ingen:canvasX and ingen:canvasY to avoid writing illegal or ugly Turtle (`-' is not allowed in a local name).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4042 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/NodeModule.cpp')
-rw-r--r--src/gui/NodeModule.cpp16
1 files changed, 8 insertions, 8 deletions
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;