Ardour
9.0-pre0-582-g084a23a80d
|
#include <option_editor.h>
Public Member Functions | |
ComboStringOption (std::string const &i, std::string const &n, sigc::slot< std::string > g, sigc::slot< bool, std::string > s) | |
void | set_state_from_config () |
void | add_to_page (OptionEditorPage *p) |
void | set_popdown_strings (const std::vector< std::string > &strings) |
void | clear () |
void | changed () |
void | set_sensitive (bool yn) |
Gtk::Widget & | tip_widget () |
Public Member Functions inherited from Option | |
Option (std::string const &i, std::string const &n) | |
void | parameter_changed (std::string const &p) |
std::string | id () const |
Public Member Functions inherited from OptionEditorComponent | |
OptionEditorComponent () | |
virtual | ~OptionEditorComponent () |
void | add_widget_to_page (OptionEditorPage *, Gtk::Widget *) |
void | add_widgets_to_page (OptionEditorPage *, Gtk::Widget *, Gtk::Widget *, bool expand=true) |
void | set_note (std::string const &) |
virtual PBD::Configuration::Metadata const * | get_metadata () const |
void | set_metadata (PBD::Configuration::Metadata const &) |
void | highlight () |
void | end_highlight () |
Private Attributes | |
sigc::slot< std::string > | _get |
sigc::slot< bool, std::string > | _set |
Gtk::Label * | _label |
Gtk::ComboBoxText * | _combo |
Additional Inherited Members | |
Protected Member Functions inherited from OptionEditorComponent | |
void | maybe_add_note (OptionEditorPage *, int) |
Protected Attributes inherited from Option | |
std::string | _id |
std::string | _name |
Protected Attributes inherited from OptionEditorComponent | |
std::string | _note |
ArdourWidgets::Frame * | _frame |
PBD::Configuration::Metadata const * | _metadata |
Component which provides the UI to handle an enumerated option using a GTK ComboBox. The template parameter is the enumeration.
Definition at line 446 of file option_editor.h.
ComboStringOption::ComboStringOption | ( | std::string const & | i, |
std::string const & | n, | ||
sigc::slot< std::string > | g, | ||
sigc::slot< bool, std::string > | s | ||
) |
Construct an ComboOption.
i | id |
n | User-visible name. |
g | Slot to get the variable's value. |
s | Slot to set the variable's value. |
|
virtual |
Called to instruct the object to add itself to an OptionEditorPage
Implements Option.
void ComboStringOption::changed | ( | ) |
void ComboStringOption::clear | ( | ) |
void ComboStringOption::set_popdown_strings | ( | const std::vector< std::string > & | strings | ) |
Set the allowed strings for this option
strings | a vector of allowed strings |
void ComboStringOption::set_sensitive | ( | bool | yn | ) |
|
virtual |
Called to instruct the object to set its UI state from the configuration
Implements Option.
|
inlinevirtual |
Implements OptionEditorComponent.
Definition at line 474 of file option_editor.h.
|
private |
Definition at line 480 of file option_editor.h.
|
private |
Definition at line 477 of file option_editor.h.
|
private |
Definition at line 479 of file option_editor.h.
|
private |
Definition at line 478 of file option_editor.h.