ardour
Public Member Functions | Private Attributes | List of all members
BoolComboOption Class Reference

#include <option_editor.h>

Inheritance diagram for BoolComboOption:
Option OptionEditorComponent

Public Member Functions

 BoolComboOption (std::string const &, std::string const &, std::string const &, std::string const &, sigc::slot< bool >, sigc::slot< bool, bool >)
 
void set_state_from_config ()
 
void add_to_page (OptionEditorPage *)
 
void changed ()
 
void set_sensitive (bool)
 
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
virtual ~OptionEditorComponent ()
 
void add_widget_to_page (OptionEditorPage *, Gtk::Widget *)
 
void add_widgets_to_page (OptionEditorPage *, Gtk::Widget *, Gtk::Widget *)
 
void set_note (std::string const &)
 

Private Attributes

sigc::slot< bool > _get
 
sigc::slot< bool, bool > _set
 
Gtk::Label * _label
 
Gtk::ComboBoxText * _combo
 

Additional Inherited Members

- Protected Attributes inherited from Option
std::string _id
 
std::string _name
 

Detailed Description

Component which provides the UI to handle a boolean option which needs to be represented as a ComboBox to be clear to the user.

Definition at line 463 of file option_editor.h.

Constructor & Destructor Documentation

BoolComboOption::BoolComboOption ( std::string const &  ,
std::string const &  ,
std::string const &  ,
std::string const &  ,
sigc::slot< bool >  ,
sigc::slot< bool, bool >   
)

Construct a BoolComboOption.

Parameters
iid
nUser-visible name.
tText to give for the variable being true.
fText to give for the variable being false.
gSlot to get the variable's value.
sSlot to set the variable's value.

Definition at line 221 of file option_editor.cc.

Member Function Documentation

void BoolComboOption::add_to_page ( OptionEditorPage )
virtual

Called to instruct the object to add itself to an OptionEditorPage

Implements Option.

Definition at line 248 of file option_editor.cc.

void BoolComboOption::changed ( )

Definition at line 254 of file option_editor.cc.

void BoolComboOption::set_sensitive ( bool  yn)

Definition at line 260 of file option_editor.cc.

void BoolComboOption::set_state_from_config ( )
virtual

Called to instruct the object to set its UI state from the configuration

Implements Option.

Definition at line 242 of file option_editor.cc.

Gtk::Widget& BoolComboOption::tip_widget ( )
inlinevirtual

Implements OptionEditorComponent.

Definition at line 481 of file option_editor.h.

Member Data Documentation

Gtk::ComboBoxText* BoolComboOption::_combo
private

Definition at line 488 of file option_editor.h.

sigc::slot<bool> BoolComboOption::_get
private

Definition at line 485 of file option_editor.h.

Gtk::Label* BoolComboOption::_label
private

Definition at line 487 of file option_editor.h.

sigc::slot<bool, bool> BoolComboOption::_set
private

Definition at line 486 of file option_editor.h.


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