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

#include <option_editor.h>

Inheritance diagram for ComboStringOption:
Option OptionEditorComponent

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
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< std::string > _get
 
sigc::slot< bool, std::string > _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 an enumerated option using a GTK ComboBox. The template parameter is the enumeration.

Definition at line 393 of file option_editor.h.

Constructor & Destructor Documentation

ComboStringOption::ComboStringOption ( std::string const &  i,
std::string const &  n,
sigc::slot< std::string >  g,
sigc::slot< bool, std::string >  s 
)
inline

Construct an ComboOption.

Parameters
iid
nUser-visible name.
gSlot to get the variable's value.
sSlot to set the variable's value.

Definition at line 403 of file option_editor.h.

Member Function Documentation

void ComboStringOption::add_to_page ( OptionEditorPage )
inlinevirtual

Called to instruct the object to add itself to an OptionEditorPage

Implements Option.

Definition at line 423 of file option_editor.h.

void ComboStringOption::changed ( )
inline

Definition at line 442 of file option_editor.h.

void ComboStringOption::clear ( )
inline

Definition at line 438 of file option_editor.h.

void ComboStringOption::set_popdown_strings ( const std::vector< std::string > &  strings)
inline

Set the allowed strings for this option

Parameters
stringsa vector of allowed strings

Definition at line 431 of file option_editor.h.

void ComboStringOption::set_sensitive ( bool  yn)
inline

Definition at line 446 of file option_editor.h.

void ComboStringOption::set_state_from_config ( )
inlinevirtual

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

Implements Option.

Definition at line 419 of file option_editor.h.

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

Implements OptionEditorComponent.

Definition at line 450 of file option_editor.h.

Member Data Documentation

Gtk::ComboBoxText* ComboStringOption::_combo
private

Definition at line 456 of file option_editor.h.

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

Definition at line 453 of file option_editor.h.

Gtk::Label* ComboStringOption::_label
private

Definition at line 455 of file option_editor.h.

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

Definition at line 454 of file option_editor.h.


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