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 | |
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')
-rw-r--r-- | libs/ardour/ardour/session_metadata.h | 3 | ||||
-rw-r--r-- | libs/ardour/session_metadata.cc | 15 |
2 files changed, 18 insertions, 0 deletions
diff --git a/libs/ardour/ardour/session_metadata.h b/libs/ardour/ardour/session_metadata.h index a8fb977e51..c0bfdb4003 100644 --- a/libs/ardour/ardour/session_metadata.h +++ b/libs/ardour/ardour/session_metadata.h @@ -46,6 +46,8 @@ class LIBARDOUR_API SessionMetadata : public PBD::StatefulDestructible ~SessionMetadata (); /*** Accessing ***/ + std::string description () const; + std::string comment () const; std::string copyright () const; std::string isrc () const; @@ -88,6 +90,7 @@ class LIBARDOUR_API SessionMetadata : public PBD::StatefulDestructible std::string country () const; /*** Editing ***/ + void set_description (const std::string &); void set_comment (const std::string &); void set_copyright (const std::string &); void set_isrc (const std::string &); 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); |