mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-03 12:19:33 +01:00
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.
This commit is contained in:
parent
a1143a0ed6
commit
0a0eec2adc
5 changed files with 93 additions and 5 deletions
|
|
@ -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 &);
|
||||
|
|
|
|||
|
|
@ -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", ""));
|
||||
|
|
@ -222,6 +225,12 @@ SessionMetadata::get_user_state ()
|
|||
}
|
||||
|
||||
/*** Accessing ***/
|
||||
string
|
||||
SessionMetadata::description () const
|
||||
{
|
||||
return get_value("description");
|
||||
}
|
||||
|
||||
string
|
||||
SessionMetadata::comment () const
|
||||
{
|
||||
|
|
@ -430,6 +439,12 @@ SessionMetadata::country () const
|
|||
|
||||
|
||||
/*** Editing ***/
|
||||
void
|
||||
SessionMetadata::set_description (const string & v)
|
||||
{
|
||||
set_value ("description", v);
|
||||
}
|
||||
|
||||
void
|
||||
SessionMetadata::set_comment (const string & v)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue