ardour
Public Member Functions | Private Member Functions | Private Attributes | List of all members
VisibilityOption Class Reference
Inheritance diagram for VisibilityOption:
Option OptionEditorComponent

Public Member Functions

 VisibilityOption (string name, VisibilityGroup *g, sigc::slot< string > get, sigc::slot< bool, string > set)
 
void set_state_from_config ()
 
void add_to_page (OptionEditorPage *p)
 
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 Member Functions

void changed ()
 

Private Attributes

OptionEditorHeading _heading
 
VisibilityGroup_visibility_group
 
sigc::slot< std::string > _get
 
sigc::slot< bool, std::string > _set
 
PBD::ScopedConnection _visibility_group_connection
 

Additional Inherited Members

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

Detailed Description

A class which allows control of visibility of some editor components usign a VisibilityGroup. The caller should pass in a `dummy' VisibilityGroup which has the correct members, but with null widget pointers. This class allows the user to set visibility of the members, the details of which are stored in a configuration variable which can be watched by parts of the editor that actually contain the widgets whose visibility is being controlled.

Definition at line 1243 of file rc_option_editor.cc.

Constructor & Destructor Documentation

VisibilityOption::VisibilityOption ( string  name,
VisibilityGroup g,
sigc::slot< string >  get,
sigc::slot< bool, string >  set 
)
inline
Parameters
nameUser-visible name for this group.
g`Dummy' VisibilityGroup (as described above).
getMethod to get the value of the appropriate configuration variable.
setMethod to set the value of the appropriate configuration variable.

Definition at line 1251 of file rc_option_editor.cc.

Member Function Documentation

void VisibilityOption::add_to_page ( OptionEditorPage )
inlinevirtual

Called to instruct the object to add itself to an OptionEditorPage

Implements Option.

Definition at line 1270 of file rc_option_editor.cc.

void VisibilityOption::changed ( )
inlineprivate

Definition at line 1279 of file rc_option_editor.cc.

void VisibilityOption::set_state_from_config ( )
inlinevirtual

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

Implements Option.

Definition at line 1264 of file rc_option_editor.cc.

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

Implements OptionEditorComponent.

Definition at line 1276 of file rc_option_editor.cc.

Member Data Documentation

sigc::slot<std::string> VisibilityOption::_get
private

Definition at line 1289 of file rc_option_editor.cc.

OptionEditorHeading VisibilityOption::_heading
private

Definition at line 1287 of file rc_option_editor.cc.

sigc::slot<bool, std::string> VisibilityOption::_set
private

Definition at line 1290 of file rc_option_editor.cc.

VisibilityGroup* VisibilityOption::_visibility_group
private

Definition at line 1288 of file rc_option_editor.cc.

PBD::ScopedConnection VisibilityOption::_visibility_group_connection
private

Definition at line 1291 of file rc_option_editor.cc.


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