diff options
author | David Robillard <d@drobilla.net> | 2006-06-11 23:33:00 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2006-06-11 23:33:00 +0000 |
commit | 0b1c17f08f8eab4ada52ee98ba7353ec0260d3eb (patch) | |
tree | 09af4447ba74f392d12f2153b432cb60be1c08ab /src/libs/client/PatchModel.h | |
parent | 228279d6717e69ffd2d2a886244179635ac27c2b (diff) | |
download | ingen-0b1c17f08f8eab4ada52ee98ba7353ec0260d3eb.tar.gz ingen-0b1c17f08f8eab4ada52ee98ba7353ec0260d3eb.tar.bz2 ingen-0b1c17f08f8eab4ada52ee98ba7353ec0260d3eb.zip |
New nodes in gtk client working through Store signal interface
git-svn-id: http://svn.drobilla.net/lad/grauph@26 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/client/PatchModel.h')
-rw-r--r-- | src/libs/client/PatchModel.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/libs/client/PatchModel.h b/src/libs/client/PatchModel.h index 12871933..15677c50 100644 --- a/src/libs/client/PatchModel.h +++ b/src/libs/client/PatchModel.h @@ -21,7 +21,9 @@ #include <list> #include <string> #include <map> +#include <sigc++/sigc++.h> #include "NodeModel.h" +#include "util/CountedPtr.h" using std::list; using std::string; using std::map; @@ -49,7 +51,7 @@ public: virtual void set_path(const Path& path); NodeModel* get_node(const string& node_name); - void add_node(NodeModel* nm); + void add_node(CountedPtr<NodeModel> nm); void remove_node(const string& name); void rename_node(const Path& old_path, const Path& new_path); @@ -68,6 +70,9 @@ public: void enabled(bool b) { m_enabled = b; } bool polyphonic() const; + // Signals + sigc::signal<void, CountedPtr<NodeModel> > new_node_sig; + private: // Prevent copies (undefined) PatchModel(const PatchModel& copy); |