From 190e2cf3c91f8bd5b1a6f69d00e84a108c743898 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 12 Jun 2006 00:41:00 +0000 Subject: Metadata working based on Store signals (node positions restored) git-svn-id: http://svn.drobilla.net/lad/grauph@29 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/client/ObjectModel.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/libs/client/ObjectModel.h') diff --git a/src/libs/client/ObjectModel.h b/src/libs/client/ObjectModel.h index be58a00f..94103c53 100644 --- a/src/libs/client/ObjectModel.h +++ b/src/libs/client/ObjectModel.h @@ -23,6 +23,7 @@ #include #include #include +#include #include "util/Path.h" using std::string; using std::map; using std::find; @@ -49,7 +50,7 @@ public: const map& metadata() const { return m_metadata; } string get_metadata(const string& key) const; void set_metadata(const string& key, const string& value) - { assert(value.length() > 0); m_metadata[key] = value; } + { assert(value.length() > 0); m_metadata[key] = value; metadata_update_sig.emit(key, value); } inline const Path& path() const { return m_path; } virtual void set_path(const Path& p) { m_path = p; } @@ -65,6 +66,8 @@ public: string base_path() const; const string name() const { return m_path.name(); } + // Signals + sigc::signal metadata_update_sig; protected: Path m_path; ObjectModel* m_parent; -- cgit v1.2.1