Ardour  9.0-pre0-582-g084a23a80d
NumberMetadataField Class Reference

MetadataField that accepts only numbers. More...

#include <session_metadata_dialog.h>

Inheritance diagram for NumberMetadataField:
[legend]

Public Member Functions

 NumberMetadataField (Getter getter, Setter setter, std::string const &field_name, guint numbers, 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 ()
 

Private Types

typedef uint32_t(ARDOUR::SessionMetadata::* Getter) () const
 
typedef void(ARDOUR::SessionMetadata::* Setter) (uint32_t)
 

Private Member Functions

void update_value ()
 
std::string uint_to_str (uint32_t i) const
 
uint32_t str_to_uint (std::string const &str) const
 

Private Attributes

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

Additional Inherited Members

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

Detailed Description

MetadataField that accepts only numbers.

Definition at line 122 of file session_metadata_dialog.h.

Member Typedef Documentation

◆ Getter

typedef uint32_t(ARDOUR::SessionMetadata::* NumberMetadataField::Getter) () const
private

Definition at line 125 of file session_metadata_dialog.h.

◆ Setter

typedef void(ARDOUR::SessionMetadata::* NumberMetadataField::Setter) (uint32_t)
private

Definition at line 126 of file session_metadata_dialog.h.

Constructor & Destructor Documentation

◆ NumberMetadataField()

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

Member Function Documentation

◆ copy()

MetadataPtr NumberMetadataField::copy ( )
virtual

Implements MetadataField.

◆ edit_widget()

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

Get widget for editing value.

Implements MetadataField.

◆ load_data()

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

Implements MetadataField.

◆ name_widget()

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

Get widget containing name of field.

Implements MetadataField.

◆ save_data()

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

Implements MetadataField.

◆ str_to_uint()

uint32_t NumberMetadataField::str_to_uint ( std::string const &  str) const
private

◆ uint_to_str()

std::string NumberMetadataField::uint_to_str ( uint32_t  i) const
private

◆ update_value()

void NumberMetadataField::update_value ( )
private

◆ value_widget()

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

Get label containing value of field.

Implements MetadataField.

Member Data Documentation

◆ entry

Gtk::Entry* NumberMetadataField::entry
private

Definition at line 147 of file session_metadata_dialog.h.

◆ getter

Getter NumberMetadataField::getter
private

Definition at line 142 of file session_metadata_dialog.h.

◆ label

Gtk::Label* NumberMetadataField::label
private

Definition at line 145 of file session_metadata_dialog.h.

◆ numbers

guint NumberMetadataField::numbers
private

Definition at line 149 of file session_metadata_dialog.h.

◆ setter

Setter NumberMetadataField::setter
private

Definition at line 143 of file session_metadata_dialog.h.

◆ value_label

Gtk::Label* NumberMetadataField::value_label
private

Definition at line 146 of file session_metadata_dialog.h.

◆ width

guint NumberMetadataField::width
private

Definition at line 150 of file session_metadata_dialog.h.


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