diff options
author | Ben Loftis <ben@harrisonconsoles.com> | 2017-07-14 13:58:41 -0500 |
---|---|---|
committer | Ben Loftis <ben@harrisonconsoles.com> | 2017-08-14 14:08:17 -0500 |
commit | 0a0eec2adca785e6fff1b1e798bbded196188f4c (patch) | |
tree | facdaf889d0f6d467849acd8ebf09f740a2825aa /libs/ardour/session_metadata.cc | |
parent | a1143a0ed648a0f3dd0febc204dd38e70dc363b0 (diff) |
Session Metadata: add a Description field.
* This is a multi-line text field.
* If the session is a template, we might show this in the New Session dialog.
Diffstat (limited to 'libs/ardour/session_metadata.cc')
-rw-r--r-- | libs/ardour/session_metadata.cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libs/ardour/session_metadata.cc b/libs/ardour/session_metadata.cc index 0620f12005..61818422cf 100644 --- a/libs/ardour/session_metadata.cc +++ b/libs/ardour/session_metadata.cc @@ -31,6 +31,9 @@ SessionMetadata *SessionMetadata::_metadata = NULL; //singleton instance SessionMetadata::SessionMetadata () { /*** General ***/ + map.insert (Property ("description", "")); + + /*** Track/Song Data ***/ map.insert (Property ("comment", "")); map.insert (Property ("copyright", "")); map.insert (Property ("isrc", "")); @@ -223,6 +226,12 @@ SessionMetadata::get_user_state () /*** Accessing ***/ string +SessionMetadata::description () const +{ + return get_value("description"); +} + +string SessionMetadata::comment () const { return get_value("comment"); @@ -431,6 +440,12 @@ SessionMetadata::country () const /*** Editing ***/ void +SessionMetadata::set_description (const string & v) +{ + set_value ("description", v); +} + +void SessionMetadata::set_comment (const string & v) { set_value ("comment", v); |