summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-12-08 01:19:22 +0000
committerDavid Robillard <d@drobilla.net>2011-12-08 01:19:22 +0000
commite8158f68d8dd77cd7767080ed85a813199c02554 (patch)
treefb7afd85f8d92a70e4cbfa009f5b563252248051 /src/gui
parent89c181f67cb5ec7373148b438c8db0acee5c7b84 (diff)
downloadingen-e8158f68d8dd77cd7767080ed85a813199c02554.tar.gz
ingen-e8158f68d8dd77cd7767080ed85a813199c02554.tar.bz2
ingen-e8158f68d8dd77cd7767080ed85a813199c02554.zip
Fix node moving (inform user via "moved" signal).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3833 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/NodeModule.cpp6
-rw-r--r--src/gui/NodeModule.hpp2
-rw-r--r--src/gui/PatchPortModule.cpp6
-rw-r--r--src/gui/PatchPortModule.hpp2
-rw-r--r--src/gui/SubpatchModule.cpp6
-rw-r--r--src/gui/SubpatchModule.hpp2
6 files changed, 12 insertions, 12 deletions
diff --git a/src/gui/NodeModule.cpp b/src/gui/NodeModule.cpp
index 034eb28d..bed94aac 100644
--- a/src/gui/NodeModule.cpp
+++ b/src/gui/NodeModule.cpp
@@ -367,10 +367,10 @@ NodeModule::on_event(GdkEvent* ev)
}
void
-NodeModule::store_location()
+NodeModule::store_location(double ax, double ay)
{
- const Atom x(static_cast<float>(get_x()));
- const Atom y(static_cast<float>(get_y()));
+ const Atom x(static_cast<float>(ax));
+ const Atom y(static_cast<float>(ay));
const URIs& uris = app().uris();
diff --git a/src/gui/NodeModule.hpp b/src/gui/NodeModule.hpp
index 7197b80a..2ebc3f75 100644
--- a/src/gui/NodeModule.hpp
+++ b/src/gui/NodeModule.hpp
@@ -61,7 +61,7 @@ public:
void delete_port_view(SharedPtr<const PortModel> port);
- virtual void store_location();
+ virtual void store_location(double x, double y);
void show_human_names(bool b);
SharedPtr<const NodeModel> node() const { return _node; }
diff --git a/src/gui/PatchPortModule.cpp b/src/gui/PatchPortModule.cpp
index 14edf6c5..4fa11acc 100644
--- a/src/gui/PatchPortModule.cpp
+++ b/src/gui/PatchPortModule.cpp
@@ -86,10 +86,10 @@ PatchPortModule::show_menu(GdkEventButton* ev)
}
void
-PatchPortModule::store_location()
+PatchPortModule::store_location(double ax, double ay)
{
- const Atom x(static_cast<float>(get_x()));
- const Atom y(static_cast<float>(get_y()));
+ const Atom x(static_cast<float>(ax));
+ const Atom y(static_cast<float>(ay));
const URIs& uris = app().uris();
diff --git a/src/gui/PatchPortModule.hpp b/src/gui/PatchPortModule.hpp
index 2478796d..0f7fc77a 100644
--- a/src/gui/PatchPortModule.hpp
+++ b/src/gui/PatchPortModule.hpp
@@ -55,7 +55,7 @@ public:
App& app() const;
- virtual void store_location();
+ virtual void store_location(double x, double y);
void show_human_names(bool b);
void set_name(const std::string& n);
diff --git a/src/gui/SubpatchModule.cpp b/src/gui/SubpatchModule.cpp
index 51c41493..6d4f48e8 100644
--- a/src/gui/SubpatchModule.cpp
+++ b/src/gui/SubpatchModule.cpp
@@ -61,10 +61,10 @@ SubpatchModule::on_double_click(GdkEventButton* event)
}
void
-SubpatchModule::store_location()
+SubpatchModule::store_location(double ax, double ay)
{
- const Atom x(static_cast<float>(get_x()));
- const Atom y(static_cast<float>(get_y()));
+ const Atom x(static_cast<float>(ax));
+ const Atom y(static_cast<float>(ay));
const URIs& uris = app().uris();
diff --git a/src/gui/SubpatchModule.hpp b/src/gui/SubpatchModule.hpp
index f855a467..ac132953 100644
--- a/src/gui/SubpatchModule.hpp
+++ b/src/gui/SubpatchModule.hpp
@@ -52,7 +52,7 @@ public:
void on_double_click(GdkEventButton* ev);
- void store_location();
+ void store_location(double x, double y);
void browse_to_patch();
void menu_remove();