ardour
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
BoolOption Class Reference

#include <option_editor.h>

Inheritance diagram for BoolOption:
Option OptionEditorComponent RouteDisplayBoolOption

Public Member Functions

 BoolOption (std::string const &, std::string const &, sigc::slot< bool >, sigc::slot< bool, bool >)
 
void set_state_from_config ()
 
void add_to_page (OptionEditorPage *)
 
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
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 &)
 

Protected Member Functions

virtual void toggled ()
 

Protected Attributes

sigc::slot< bool > _get
 slot to get the configuration variable's value More...
 
sigc::slot< bool, bool > _set
 slot to set the configuration variable's value More...
 
Gtk::CheckButton * _button
 UI button. More...
 
Gtk::Label * _label
 label for button, so we can use markup More...
 
- Protected Attributes inherited from Option
std::string _id
 
std::string _name
 

Detailed Description

Component which provides the UI to handle a boolean option using a GTK CheckButton

Definition at line 160 of file option_editor.h.

Constructor & Destructor Documentation

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

Definition at line 115 of file option_editor.cc.

Member Function Documentation

void BoolOption::add_to_page ( OptionEditorPage )
virtual

Called to instruct the object to add itself to an OptionEditorPage

Implements Option.

Definition at line 129 of file option_editor.cc.

void BoolOption::set_sensitive ( bool  yn)
inline

Definition at line 168 of file option_editor.h.

void BoolOption::set_state_from_config ( )
virtual

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

Implements Option.

Definition at line 135 of file option_editor.cc.

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

Implements OptionEditorComponent.

Definition at line 172 of file option_editor.h.

void BoolOption::toggled ( )
protectedvirtual

Reimplemented in RouteDisplayBoolOption.

Definition at line 141 of file option_editor.cc.

Member Data Documentation

Gtk::CheckButton* BoolOption::_button
protected

UI button.

Definition at line 180 of file option_editor.h.

sigc::slot<bool> BoolOption::_get
protected

slot to get the configuration variable's value

Definition at line 178 of file option_editor.h.

Gtk::Label* BoolOption::_label
protected

label for button, so we can use markup

Definition at line 181 of file option_editor.h.

sigc::slot<bool, bool> BoolOption::_set
protected

slot to set the configuration variable's value

Definition at line 179 of file option_editor.h.


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