diff options
author | David Robillard <d@drobilla.net> | 2006-06-12 00:41:00 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2006-06-12 00:41:00 +0000 |
commit | 190e2cf3c91f8bd5b1a6f69d00e84a108c743898 (patch) | |
tree | 2c7e2d52fd51cfbab6b18d523821bd456cbd6edd /src/progs/gtk/GtkObjectController.h | |
parent | f43bdc8241e1bfab0980199bcd995e214ff94720 (diff) | |
download | ingen-190e2cf3c91f8bd5b1a6f69d00e84a108c743898.tar.gz ingen-190e2cf3c91f8bd5b1a6f69d00e84a108c743898.tar.bz2 ingen-190e2cf3c91f8bd5b1a6f69d00e84a108c743898.zip |
Metadata working based on Store signals (node positions restored)
git-svn-id: http://svn.drobilla.net/lad/grauph@29 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/progs/gtk/GtkObjectController.h')
-rw-r--r-- | src/progs/gtk/GtkObjectController.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/progs/gtk/GtkObjectController.h b/src/progs/gtk/GtkObjectController.h index f80db6a4..77860a9c 100644 --- a/src/progs/gtk/GtkObjectController.h +++ b/src/progs/gtk/GtkObjectController.h @@ -58,7 +58,12 @@ public: virtual void add_to_store() = 0; virtual void remove_from_store() = 0; */ - virtual void metadata_update(const string& key, const string& value); + + /** Derived classes should override this to handle special metadata + * keys, then call this to set the model's metadata key. + */ + virtual void metadata_update(const string& key, const string& value) + { assert(m_model->get_metadata(key) != ""); } /** Rename object */ virtual void set_path(const Path& new_path) |