Ardour  9.0-pre0-582-g084a23a80d
MetadataField Class Referenceabstract

Wraps a metadata field to be used in a GUI. More...

#include <session_metadata_dialog.h>

Inheritance diagram for MetadataField:
[legend]

Public Member Functions

 MetadataField (std::string const &field_name)
 
virtual ~MetadataField ()
 
virtual MetadataPtr copy ()=0
 
virtual void save_data (ARDOUR::SessionMetadata &data) const =0
 
virtual void load_data (ARDOUR::SessionMetadata const &data)=0
 
virtual std::string name ()
 
virtual std::string value ()
 
virtual Gtk::Widgetname_widget ()=0
 Get widget containing name of field. More...
 
virtual Gtk::Widgetvalue_widget ()=0
 Get label containing value of field. More...
 
virtual Gtk::Widgetedit_widget ()=0
 Get widget for editing value. More...
 

Protected Attributes

std::string _name
 
std::string _value
 

Detailed Description

Wraps a metadata field to be used in a GUI.

Definition at line 54 of file session_metadata_dialog.h.

Constructor & Destructor Documentation

◆ MetadataField()

MetadataField::MetadataField ( std::string const &  field_name)

◆ ~MetadataField()

virtual MetadataField::~MetadataField ( )
virtual

Member Function Documentation

◆ copy()

virtual MetadataPtr MetadataField::copy ( )
pure virtual

◆ edit_widget()

virtual Gtk::Widget& MetadataField::edit_widget ( )
pure virtual

Get widget for editing value.

Implemented in EAN13MetadataField, NumberMetadataField, LongTextMetadataField, and TextMetadataField.

◆ load_data()

virtual void MetadataField::load_data ( ARDOUR::SessionMetadata const &  data)
pure virtual

◆ name()

virtual std::string MetadataField::name ( )
inlinevirtual

Definition at line 64 of file session_metadata_dialog.h.

◆ name_widget()

virtual Gtk::Widget& MetadataField::name_widget ( )
pure virtual

Get widget containing name of field.

Implemented in EAN13MetadataField, NumberMetadataField, and TextMetadataField.

◆ save_data()

virtual void MetadataField::save_data ( ARDOUR::SessionMetadata data) const
pure virtual

◆ value()

virtual std::string MetadataField::value ( )
inlinevirtual

Definition at line 65 of file session_metadata_dialog.h.

◆ value_widget()

virtual Gtk::Widget& MetadataField::value_widget ( )
pure virtual

Get label containing value of field.

Implemented in EAN13MetadataField, NumberMetadataField, and TextMetadataField.

Member Data Documentation

◆ _name

std::string MetadataField::_name
protected

Definition at line 74 of file session_metadata_dialog.h.

◆ _value

std::string MetadataField::_value
protected

Definition at line 75 of file session_metadata_dialog.h.


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