A proxy action for a scale widget.
More...
#include <GtkCRNScaleAction.h>
|
Gtk::Adjustment & | get_adjustment () |
| Gets the Adjustment object to configure the scale. More...
|
|
void | set_icons (const Glib::StringArrayHandle &icons) |
| Sets the icons to display depending of the value of the scale. More...
|
|
Glib::SignalProxy0< void > | signal_changed () |
| Signals when the value was changed. Connect to void on_value_changed();. More...
|
|
virtual | ~ScaleAction () override |
| Destructor. More...
|
|
|
| ScaleAction () |
|
| ScaleAction (const Glib::ustring &name, const Gtk::StockID &stock_id=Gtk::StockID(), const Glib::ustring &label=Glib::ustring(), const Glib::ustring &tooltip=Glib::ustring()) |
|
| ScaleAction (const Glib::ustring &name, const Glib::ustring &icon_name, const Glib::ustring &label=Glib::ustring(), const Glib::ustring &tooltip=Glib::ustring()) |
|
virtual Gtk::Widget * | create_menu_item_vfunc () override |
|
virtual Gtk::Widget * | create_tool_item_vfunc () override |
|
void | dialog () |
|
|
Gtk::Adjustment | adj |
|
Glib::ustring | lab |
|
std::vector< Glib::ustring > | iconlist |
|
A proxy action for a scale widget.
A proxy action for a scale widget
Definition at line 37 of file GtkCRNScaleAction.h.
virtual GtkCRN::ScaleAction::~ScaleAction |
( |
| ) |
|
|
inlineoverridevirtual |
ScaleAction::ScaleAction |
( |
| ) |
|
|
protected |
ScaleAction::ScaleAction |
( |
const Glib::ustring & |
name, |
|
|
const Gtk::StockID & |
stock_id = Gtk::StockID() , |
|
|
const Glib::ustring & |
label = Glib::ustring() , |
|
|
const Glib::ustring & |
tooltip = Glib::ustring() |
|
) |
| |
|
protected |
Constructor
- Parameters
-
[in] | name | the id of the action |
[in] | stock_id | a Gtk::Stock item |
[in] | label | the label of the action |
[in] | tooltip | the tooltip of the action |
Definition at line 46 of file GtkCRNScaleAction.cpp.
ScaleAction::ScaleAction |
( |
const Glib::ustring & |
name, |
|
|
const Glib::ustring & |
icon_name, |
|
|
const Glib::ustring & |
label = Glib::ustring() , |
|
|
const Glib::ustring & |
tooltip = Glib::ustring() |
|
) |
| |
|
protected |
Constructor
- Parameters
-
[in] | name | the id of the action |
[in] | icon_name | an icon in the default path |
[in] | label | the label of the action |
[in] | tooltip | the tooltip of the action |
Definition at line 59 of file GtkCRNScaleAction.cpp.
Glib::RefPtr< ScaleAction > ScaleAction::create |
( |
const Glib::ustring & |
name, |
|
|
const Glib::ustring & |
label = Glib::ustring() , |
|
|
const Glib::ustring & |
tooltip = Glib::ustring() |
|
) |
| |
|
static |
Glib::RefPtr< ScaleAction > ScaleAction::create |
( |
const Glib::ustring & |
name, |
|
|
const Gtk::StockID & |
stock_id, |
|
|
const Glib::ustring & |
label = Glib::ustring() , |
|
|
const Glib::ustring & |
tooltip = Glib::ustring() |
|
) |
| |
|
static |
Gtk::Widget * ScaleAction::create_menu_item_vfunc |
( |
| ) |
|
|
overrideprotectedvirtual |
Gtk::Widget * ScaleAction::create_tool_item_vfunc |
( |
| ) |
|
|
overrideprotectedvirtual |
Glib::RefPtr< ScaleAction > ScaleAction::create_with_icon_name |
( |
const Glib::ustring & |
name, |
|
|
const Glib::ustring & |
icon_name, |
|
|
const Glib::ustring & |
label, |
|
|
const Glib::ustring & |
tooltip |
|
) |
| |
|
static |
void ScaleAction::dialog |
( |
| ) |
|
|
protected |
Gtk::Adjustment& GtkCRN::ScaleAction::get_adjustment |
( |
| ) |
|
|
inline |
void ScaleAction::set_icons |
( |
const Glib::StringArrayHandle & |
icons | ) |
|
Sets the icons to display depending of the value of the scale.
Sets the icons to display depending of the value of the scale
- Parameters
-
[in] | icons | a std::vector or std::list containing filenames of icons (that must be in the default Gtk path for icons). The first icon corresponds the lowest value, the second to the highest value, the following are distributed in ascending order. |
Definition at line 69 of file GtkCRNScaleAction.cpp.
Glib::SignalProxy0<void> GtkCRN::ScaleAction::signal_changed |
( |
| ) |
|
|
inline |
Signals when the value was changed. Connect to void on_value_changed();.
Definition at line 56 of file GtkCRNScaleAction.h.
Gtk::Adjustment GtkCRN::ScaleAction::adj |
|
protected |
std::vector<Glib::ustring> GtkCRN::ScaleAction::iconlist |
|
protected |
Glib::ustring GtkCRN::ScaleAction::lab |
|
protected |
The documentation for this class was generated from the following files: