Ardour  9.0-pre0-582-g084a23a80d
EAN13MetadataField Class Reference

MetadataField that accepts EAN-13 data only. More...

#include <session_metadata_dialog.h>

Inheritance diagram for EAN13MetadataField:
[legend]

Public Member Functions

 EAN13MetadataField (Getter getter, Setter setter, std::string const &field_name, guint width=13)
 
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...
 
void update_status ()
 
- Public Member Functions inherited from MetadataField
 MetadataField (std::string const &field_name)
 
virtual ~MetadataField ()
 
virtual std::string name ()
 
virtual std::string value ()
 

Public Attributes

Gtk::Labelstatus_label
 

Private Types

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

Private Member Functions

void update_value ()
 
std::string numeric_string (std::string const &str) const
 

Private Attributes

Getter getter
 
Setter setter
 
Gtk::Labellabel
 
Gtk::Labelvalue_label
 
Gtk::Entryentry
 
guint width
 

Additional Inherited Members

- Protected Attributes inherited from MetadataField
std::string _name
 
std::string _value
 

Detailed Description

MetadataField that accepts EAN-13 data only.

Definition at line 154 of file session_metadata_dialog.h.

Member Typedef Documentation

◆ Getter

typedef std::string(ARDOUR::SessionMetadata::* EAN13MetadataField::Getter) () const
private

Definition at line 157 of file session_metadata_dialog.h.

◆ Setter

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

Definition at line 158 of file session_metadata_dialog.h.

Constructor & Destructor Documentation

◆ EAN13MetadataField()

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

Member Function Documentation

◆ copy()

MetadataPtr EAN13MetadataField::copy ( )
virtual

Implements MetadataField.

◆ edit_widget()

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

Get widget for editing value.

Implements MetadataField.

◆ load_data()

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

Implements MetadataField.

◆ name_widget()

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

Get widget containing name of field.

Implements MetadataField.

◆ numeric_string()

std::string EAN13MetadataField::numeric_string ( std::string const &  str) const
private

◆ save_data()

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

Implements MetadataField.

◆ update_status()

void EAN13MetadataField::update_status ( )

◆ update_value()

void EAN13MetadataField::update_value ( )
private

◆ value_widget()

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

Get label containing value of field.

Implements MetadataField.

Member Data Documentation

◆ entry

Gtk::Entry* EAN13MetadataField::entry
private

Definition at line 181 of file session_metadata_dialog.h.

◆ getter

Getter EAN13MetadataField::getter
private

Definition at line 176 of file session_metadata_dialog.h.

◆ label

Gtk::Label* EAN13MetadataField::label
private

Definition at line 179 of file session_metadata_dialog.h.

◆ setter

Setter EAN13MetadataField::setter
private

Definition at line 177 of file session_metadata_dialog.h.

◆ status_label

Gtk::Label* EAN13MetadataField::status_label

Definition at line 170 of file session_metadata_dialog.h.

◆ value_label

Gtk::Label* EAN13MetadataField::value_label
private

Definition at line 180 of file session_metadata_dialog.h.

◆ width

guint EAN13MetadataField::width
private

Definition at line 183 of file session_metadata_dialog.h.


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