Ardour
9.0-pre0-582-g084a23a80d
|
MetadataField that accepts only numbers. More...
#include <session_metadata_dialog.h>
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::Widget & | name_widget () |
Get widget containing name of field. More... | |
Gtk::Widget & | value_widget () |
Get label containing value of field. More... | |
Gtk::Widget & | edit_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::Label * | label |
Gtk::Label * | value_label |
Gtk::Entry * | entry |
guint | numbers |
guint | width |
Additional Inherited Members | |
Protected Attributes inherited from MetadataField | |
std::string | _name |
std::string | _value |
MetadataField that accepts only numbers.
Definition at line 122 of file session_metadata_dialog.h.
|
private |
Definition at line 125 of file session_metadata_dialog.h.
|
private |
Definition at line 126 of file session_metadata_dialog.h.
NumberMetadataField::NumberMetadataField | ( | Getter | getter, |
Setter | setter, | ||
std::string const & | field_name, | ||
guint | numbers, | ||
guint | width = 50 |
||
) |
|
virtual |
Implements MetadataField.
|
virtual |
Get widget for editing value.
Implements MetadataField.
|
virtual |
Implements MetadataField.
|
virtual |
Get widget containing name of field.
Implements MetadataField.
|
virtual |
Implements MetadataField.
|
private |
|
private |
|
private |
|
virtual |
Get label containing value of field.
Implements MetadataField.
|
private |
Definition at line 147 of file session_metadata_dialog.h.
|
private |
Definition at line 142 of file session_metadata_dialog.h.
|
private |
Definition at line 145 of file session_metadata_dialog.h.
|
private |
Definition at line 149 of file session_metadata_dialog.h.
|
private |
Definition at line 143 of file session_metadata_dialog.h.
|
private |
Definition at line 146 of file session_metadata_dialog.h.
|
private |
Definition at line 150 of file session_metadata_dialog.h.