Ardour  9.0-pre0-582-g084a23a80d
TextMetadataField Class Reference

MetadataField that contains text. More...

#include <session_metadata_dialog.h>

Inheritance diagram for TextMetadataField:
[legend]

Public Member Functions

 TextMetadataField (Getter getter, Setter setter, std::string const &field_name, guint width=50)
 
MetadataPtr copy ()
 
void save_data (ARDOUR::SessionMetadata &data) const
 
void load_data (ARDOUR::SessionMetadata const &data)
 
Gtk::Widgetname_widget ()
 Get widget containing name of field. More...
 
Gtk::Widgetvalue_widget ()
 Get label containing value of field. More...
 
Gtk::Widgetedit_widget ()
 Get widget for editing value. More...
 
- Public Member Functions inherited from MetadataField
 MetadataField (std::string const &field_name)
 
virtual ~MetadataField ()
 
virtual std::string name ()
 
virtual std::string value ()
 

Protected Types

typedef std::string(ARDOUR::SessionMetadata::* Getter) () const
 
typedef void(ARDOUR::SessionMetadata::* Setter) (std::string const &)
 

Protected Member Functions

void update_value ()
 

Protected Attributes

Getter getter
 
Setter setter
 
Gtk::Labellabel
 
Gtk::Labelvalue_label
 
Gtk::Entryentry
 
guint width
 
- Protected Attributes inherited from MetadataField
std::string _name
 
std::string _value
 

Detailed Description

MetadataField that contains text.

Definition at line 79 of file session_metadata_dialog.h.

Member Typedef Documentation

◆ Getter

typedef std::string(ARDOUR::SessionMetadata::* TextMetadataField::Getter) () const
protected

Definition at line 82 of file session_metadata_dialog.h.

◆ Setter

typedef void(ARDOUR::SessionMetadata::* TextMetadataField::Setter) (std::string const &)
protected

Definition at line 83 of file session_metadata_dialog.h.

Constructor & Destructor Documentation

◆ TextMetadataField()

TextMetadataField::TextMetadataField ( Getter  getter,
Setter  setter,
std::string const &  field_name,
guint  width = 50 
)

Member Function Documentation

◆ copy()

MetadataPtr TextMetadataField::copy ( )
virtual

Implements MetadataField.

Reimplemented in LongTextMetadataField.

◆ edit_widget()

Gtk::Widget& TextMetadataField::edit_widget ( )
virtual

Get widget for editing value.

Implements MetadataField.

Reimplemented in LongTextMetadataField.

◆ load_data()

void TextMetadataField::load_data ( ARDOUR::SessionMetadata const &  data)
virtual

Implements MetadataField.

◆ name_widget()

Gtk::Widget& TextMetadataField::name_widget ( )
virtual

Get widget containing name of field.

Implements MetadataField.

◆ save_data()

void TextMetadataField::save_data ( ARDOUR::SessionMetadata data) const
virtual

Implements MetadataField.

◆ update_value()

void TextMetadataField::update_value ( )
protected

◆ value_widget()

Gtk::Widget& TextMetadataField::value_widget ( )
virtual

Get label containing value of field.

Implements MetadataField.

Member Data Documentation

◆ entry

Gtk::Entry* TextMetadataField::entry
protected

Definition at line 102 of file session_metadata_dialog.h.

◆ getter

Getter TextMetadataField::getter
protected

Definition at line 97 of file session_metadata_dialog.h.

◆ label

Gtk::Label* TextMetadataField::label
protected

Definition at line 100 of file session_metadata_dialog.h.

◆ setter

Setter TextMetadataField::setter
protected

Definition at line 98 of file session_metadata_dialog.h.

◆ value_label

Gtk::Label* TextMetadataField::value_label
protected

Definition at line 101 of file session_metadata_dialog.h.

◆ width

guint TextMetadataField::width
protected

Definition at line 104 of file session_metadata_dialog.h.


The documentation for this class was generated from the following file: