libcrn  3.9.5
A document image processing library
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
GtkCRN::ScaleAction Class Reference

A proxy action for a scale widget. More...

#include <GtkCRNScaleAction.h>

+ Inheritance diagram for GtkCRN::ScaleAction:
+ Collaboration diagram for GtkCRN::ScaleAction:

Public Member Functions

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...
 

Static Public Member Functions

static Glib::RefPtr< ScaleActioncreate ()
 Creates a blank ScaleAction. More...
 
static Glib::RefPtr< ScaleActioncreate (const Glib::ustring &name, const Glib::ustring &label=Glib::ustring(), const Glib::ustring &tooltip=Glib::ustring())
 Creates a ScaleAction. More...
 
static Glib::RefPtr< ScaleActioncreate (const Glib::ustring &name, const Gtk::StockID &stock_id, const Glib::ustring &label=Glib::ustring(), const Glib::ustring &tooltip=Glib::ustring())
 Creates a ScaleAction. More...
 
static Glib::RefPtr< ScaleActioncreate_with_icon_name (const Glib::ustring &name, const Glib::ustring &icon_name, const Glib::ustring &label, const Glib::ustring &tooltip)
 Creates a ScaleAction. More...
 

Protected Member Functions

 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 ()
 

Protected Attributes

Gtk::Adjustment adj
 
Glib::ustring lab
 
std::vector< Glib::ustring > iconlist
 

Detailed Description

A proxy action for a scale widget.

A proxy action for a scale widget

Definition at line 37 of file GtkCRNScaleAction.h.

Constructor & Destructor Documentation

virtual GtkCRN::ScaleAction::~ScaleAction ( )
inlineoverridevirtual

Destructor.

Definition at line 59 of file GtkCRNScaleAction.h.

ScaleAction::ScaleAction ( )
protected

Default constructor

Definition at line 34 of file GtkCRNScaleAction.cpp.

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]namethe id of the action
[in]stock_ida Gtk::Stock item
[in]labelthe label of the action
[in]tooltipthe 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]namethe id of the action
[in]icon_namean icon in the default path
[in]labelthe label of the action
[in]tooltipthe tooltip of the action

Definition at line 59 of file GtkCRNScaleAction.cpp.

Member Function Documentation

Glib::RefPtr< ScaleAction > ScaleAction::create ( )
static

Creates a blank ScaleAction.

Creates a blank ScaleAction

Returns
a new ScaleAction

Definition at line 77 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

Creates a ScaleAction.

Creates a ScaleAction

Parameters
[in]namethe id of the action
[in]labelthe label of the action
[in]tooltipthe tooltip of the action
Returns
a new ScaleAction

Definition at line 88 of file GtkCRNScaleAction.cpp.

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

Creates a ScaleAction.

Creates a ScaleAction

Parameters
[in]namethe id of the action
[in]stock_ida Gtk::Stock item
[in]labelthe label of the action
[in]tooltipthe tooltip of the action
Returns
a new ScaleAction

Definition at line 100 of file GtkCRNScaleAction.cpp.

Gtk::Widget * ScaleAction::create_menu_item_vfunc ( )
overrideprotectedvirtual

Definition at line 117 of file GtkCRNScaleAction.cpp.

Gtk::Widget * ScaleAction::create_tool_item_vfunc ( )
overrideprotectedvirtual

Definition at line 125 of file GtkCRNScaleAction.cpp.

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

Creates a ScaleAction.

Creates a ScaleAction

Parameters
[in]namethe id of the action
[in]icon_namean icon in the default path
[in]labelthe label of the action
[in]tooltipthe tooltip of the action
Returns
a new ScaleAction

Definition at line 112 of file GtkCRNScaleAction.cpp.

void ScaleAction::dialog ( )
protected

Definition at line 136 of file GtkCRNScaleAction.cpp.

Gtk::Adjustment& GtkCRN::ScaleAction::get_adjustment ( )
inline

Gets the Adjustment object to configure the scale.

Definition at line 51 of file GtkCRNScaleAction.h.

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]iconsa 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.

Member Data Documentation

Gtk::Adjustment GtkCRN::ScaleAction::adj
protected

Definition at line 70 of file GtkCRNScaleAction.h.

std::vector<Glib::ustring> GtkCRN::ScaleAction::iconlist
protected

Definition at line 72 of file GtkCRNScaleAction.h.

Glib::ustring GtkCRN::ScaleAction::lab
protected

Definition at line 71 of file GtkCRNScaleAction.h.


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