diff options
author | David Robillard <d@drobilla.net> | 2010-01-03 17:35:30 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2010-01-03 17:35:30 +0000 |
commit | 10616b98af494614d84eff40d94917be1364988c (patch) | |
tree | be900bbc848351bb11b5ff58df9e14de57ca0f68 /src/gui/PatchTreeWindow.hpp | |
parent | a5dcac142ad4abe1403a5f5ca4b65a38db808e93 (diff) | |
download | ingen-10616b98af494614d84eff40d94917be1364988c.tar.gz ingen-10616b98af494614d84eff40d94917be1364988c.tar.bz2 ingen-10616b98af494614d84eff40d94917be1364988c.zip |
Follow renames in patch tree window (fix ticket #409).
Look up patches by model pointer rather than path in patch tree window (faster).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2331 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/PatchTreeWindow.hpp')
-rw-r--r-- | src/gui/PatchTreeWindow.hpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/gui/PatchTreeWindow.hpp b/src/gui/PatchTreeWindow.hpp index bba3b1ac..c745b07d 100644 --- a/src/gui/PatchTreeWindow.hpp +++ b/src/gui/PatchTreeWindow.hpp @@ -47,18 +47,22 @@ public: void new_object(SharedPtr<Client::ObjectModel> object); - void patch_property_changed(const Raul::URI& key, const Raul::Atom& value, const Raul::Path& path); - void patch_moved(const Raul::Path& old_path, const Raul::Path& new_path); + void patch_property_changed(const Raul::URI& key, const Raul::Atom& value, + SharedPtr<Client::PatchModel> pm); + + void patch_moved(SharedPtr<Client::PatchModel> patch); void add_patch(SharedPtr<Client::PatchModel> pm); - void remove_patch(const Raul::Path& path); + void remove_patch(SharedPtr<Client::PatchModel> pm); void show_patch_menu(GdkEventButton* ev); protected: void event_patch_activated(const Gtk::TreeModel::Path& path, Gtk::TreeView::Column* col); void event_patch_enabled_toggled(const Glib::ustring& path_str); - Gtk::TreeModel::iterator find_patch(Gtk::TreeModel::Children root, const Raul::Path& path); + Gtk::TreeModel::iterator find_patch( + Gtk::TreeModel::Children root, + SharedPtr<Client::ObjectModel> patch); PatchTreeView* _patches_treeview; |