From e8158f68d8dd77cd7767080ed85a813199c02554 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 8 Dec 2011 01:19:22 +0000 Subject: Fix node moving (inform user via "moved" signal). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3833 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/NodeModule.cpp | 6 +++--- src/gui/NodeModule.hpp | 2 +- src/gui/PatchPortModule.cpp | 6 +++--- src/gui/PatchPortModule.hpp | 2 +- src/gui/SubpatchModule.cpp | 6 +++--- src/gui/SubpatchModule.hpp | 2 +- 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(get_x())); - const Atom y(static_cast(get_y())); + const Atom x(static_cast(ax)); + const Atom y(static_cast(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 port); - virtual void store_location(); + virtual void store_location(double x, double y); void show_human_names(bool b); SharedPtr 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(get_x())); - const Atom y(static_cast(get_y())); + const Atom x(static_cast(ax)); + const Atom y(static_cast(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(get_x())); - const Atom y(static_cast(get_y())); + const Atom x(static_cast(ax)); + const Atom y(static_cast(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(); -- cgit v1.2.1