Ardour
9.0-pre0-386-g96ef4d20f2
|
#include <radioaction.h>
Public Types | |
typedef RadioButtonGroup | Group |
Public Types inherited from Gtk::Action | |
typedef sigc::slot< void > | SlotActivate |
For instance, void on_activate();. More... | |
Public Member Functions | |
virtual | ~RadioAction () |
GtkRadioAction * | gobj () |
Provides access to the underlying C GObject. More... | |
const GtkRadioAction * | gobj () const |
Provides access to the underlying C GObject. More... | |
GtkRadioAction * | gobj_copy () |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. More... | |
Group | get_group () |
void | set_group (Group &group) |
int | get_current_value () const |
void | set_current_value (int current_value) |
Glib::SignalProxy1< void, const Glib::RefPtr< RadioAction > & > | signal_changed () |
Glib::PropertyProxy< int > | property_value () |
Glib::PropertyProxy_ReadOnly< int > | property_value () const |
Glib::PropertyProxy< int > | property_current_value () |
Glib::PropertyProxy_ReadOnly< int > | property_current_value () const |
Public Member Functions inherited from Gtk::ToggleAction | |
virtual | ~ToggleAction () |
GtkToggleAction * | gobj () |
Provides access to the underlying C GObject. More... | |
const GtkToggleAction * | gobj () const |
Provides access to the underlying C GObject. More... | |
GtkToggleAction * | gobj_copy () |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. More... | |
void | toggled () |
void | set_active (bool is_active=true) |
bool | get_active () const |
void | set_draw_as_radio (bool draw_as_radio=true) |
bool | get_draw_as_radio () const |
Glib::SignalProxy0< void > | signal_toggled () |
Glib::PropertyProxy< bool > | property_draw_as_radio () |
Glib::PropertyProxy_ReadOnly< bool > | property_draw_as_radio () const |
Glib::PropertyProxy< bool > | property_active () |
Glib::PropertyProxy_ReadOnly< bool > | property_active () const |
Public Member Functions inherited from Gtk::Action | |
virtual | ~Action () |
GtkAction * | gobj () |
Provides access to the underlying C GObject. More... | |
const GtkAction * | gobj () const |
Provides access to the underlying C GObject. More... | |
GtkAction * | gobj_copy () |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. More... | |
Glib::ustring | get_name () const |
bool | is_sensitive () const |
bool | get_sensitive () const |
void | set_sensitive (bool sensitive=true) |
bool | is_visible () const |
bool | get_visible () const |
void | set_visible (bool visible=true) |
void | activate () |
Image * | create_icon (IconSize icon_size) |
MenuItem * | create_menu_item () |
ToolItem * | create_tool_item () |
Menu * | create_menu () |
void | connect_proxy (Widget &proxy) |
void | disconnect_proxy (Widget &proxy) |
Glib::SListHandle< Widget * > | get_proxies () |
Glib::SListHandle< const Widget * > | get_proxies () const |
void | connect_accelerator () |
void | disconnect_accelerator () |
Glib::ustring | get_accel_path () const |
Glib::SignalProxy0< void > | signal_activate () |
void | set_accel_path (const Glib::ustring &accel_path) |
void | set_accel_group (const Glib::RefPtr< AccelGroup > &accel_group) |
void | set_label (const Glib::ustring &label) |
Glib::ustring | get_label () const |
void | set_short_label (const Glib::ustring &short_label) |
Glib::ustring | get_short_label () const |
void | set_tooltip (const Glib::ustring &tooltip) |
Glib::ustring | get_tooltip () const |
void | set_stock_id (const StockID &stock_id) |
StockID | get_stock_id () const |
void | set_gicon (const Glib::RefPtr< Gio::Icon > &icon) |
Glib::RefPtr< Gio::Icon > | get_gicon () |
Glib::RefPtr< const Gio::Icon > | get_gicon () const |
void | set_icon_name (const Glib::ustring &icon_name) |
Glib::ustring | get_icon_name () const |
void | set_visible_horizontal (bool visible_horizontal=true) |
bool | get_visible_horizontal () const |
void | set_visible_vertical (bool visible_vertical=true) |
bool | get_visible_vertical () const |
void | set_is_important (bool is_important=true) |
bool | get_is_important () const |
void | set_always_show_image (bool always_show=true) |
bool | get_always_show_image () const |
void | block_activate () |
void | unblock_activate () |
Glib::PropertyProxy_ReadOnly< Glib::ustring > | property_name () const |
Glib::PropertyProxy< Glib::ustring > | property_label () |
Glib::PropertyProxy_ReadOnly< Glib::ustring > | property_label () const |
Glib::PropertyProxy< Glib::ustring > | property_short_label () |
Glib::PropertyProxy_ReadOnly< Glib::ustring > | property_short_label () const |
Glib::PropertyProxy< Glib::ustring > | property_tooltip () |
Glib::PropertyProxy_ReadOnly< Glib::ustring > | property_tooltip () const |
Glib::PropertyProxy< StockID > | property_stock_id () |
Glib::PropertyProxy_ReadOnly< StockID > | property_stock_id () const |
Glib::PropertyProxy< Glib::RefPtr< Gio::Icon > > | property_gicon () |
Glib::PropertyProxy_ReadOnly< Glib::RefPtr< Gio::Icon > > | property_gicon () const |
Glib::PropertyProxy< Glib::ustring > | property_icon_name () |
Glib::PropertyProxy_ReadOnly< Glib::ustring > | property_icon_name () const |
Glib::PropertyProxy< bool > | property_visible_horizontal () |
Glib::PropertyProxy_ReadOnly< bool > | property_visible_horizontal () const |
Glib::PropertyProxy< bool > | property_visible_vertical () |
Glib::PropertyProxy_ReadOnly< bool > | property_visible_vertical () const |
Glib::PropertyProxy< bool > | property_visible_overflown () |
Glib::PropertyProxy_ReadOnly< bool > | property_visible_overflown () const |
Glib::PropertyProxy< bool > | property_is_important () |
Glib::PropertyProxy_ReadOnly< bool > | property_is_important () const |
Glib::PropertyProxy< bool > | property_hide_if_empty () |
Glib::PropertyProxy_ReadOnly< bool > | property_hide_if_empty () const |
Glib::PropertyProxy< bool > | property_sensitive () |
Glib::PropertyProxy_ReadOnly< bool > | property_sensitive () const |
Glib::PropertyProxy< bool > | property_visible () |
Glib::PropertyProxy_ReadOnly< bool > | property_visible () const |
Glib::PropertyProxy< Glib::RefPtr< ActionGroup > > | property_action_group () |
Glib::PropertyProxy_ReadOnly< Glib::RefPtr< ActionGroup > > | property_action_group () const |
Glib::PropertyProxy< bool > | property_always_show_image () |
Glib::PropertyProxy_ReadOnly< bool > | property_always_show_image () const |
Static Public Member Functions | |
static GType | get_type () G_GNUC_CONST |
static Glib::RefPtr< RadioAction > | create () |
static Glib::RefPtr< RadioAction > | create (Group &group, const Glib::ustring &name, const Glib::ustring &label=Glib::ustring(), const Glib::ustring &tooltip=Glib::ustring()) |
static Glib::RefPtr< RadioAction > | create (Group &group, const Glib::ustring &name, const Gtk::StockID &stock_id, const Glib::ustring &label=Glib::ustring(), const Glib::ustring &tooltip=Glib::ustring()) |
static Glib::RefPtr< RadioAction > | create_with_icon_name (Group &group, const Glib::ustring &name, const Glib::ustring &icon_name, const Glib::ustring &label, const Glib::ustring &tooltip) |
Static Public Member Functions inherited from Gtk::ToggleAction | |
static GType | get_type () G_GNUC_CONST |
static Glib::RefPtr< ToggleAction > | create () |
static Glib::RefPtr< ToggleAction > | create (const Glib::ustring &name, const Glib::ustring &label=Glib::ustring(), const Glib::ustring &tooltip=Glib::ustring(), bool is_active=false) |
static Glib::RefPtr< ToggleAction > | create (const Glib::ustring &name, const Gtk::StockID &stock_id, const Glib::ustring &label=Glib::ustring(), const Glib::ustring &tooltip=Glib::ustring(), bool is_active=false) |
static Glib::RefPtr< ToggleAction > | create_with_icon_name (const Glib::ustring &name, const Glib::ustring &icon_name, const Glib::ustring &label, const Glib::ustring &tooltip, bool is_active=false) |
Static Public Member Functions inherited from Gtk::Action | |
static GType | get_type () G_GNUC_CONST |
static Glib::RefPtr< Action > | create () |
static Glib::RefPtr< Action > | create (const Glib::ustring &name, const Glib::ustring &label=Glib::ustring(), const Glib::ustring &tooltip=Glib::ustring()) |
static Glib::RefPtr< Action > | create (const Glib::ustring &name, const Gtk::StockID &stock_id, const Glib::ustring &label=Glib::ustring(), const Glib::ustring &tooltip=Glib::ustring()) |
static Glib::RefPtr< Action > | create_with_icon_name (const Glib::ustring &name, const Glib::ustring &icon_name, const Glib::ustring &label, const Glib::ustring &tooltip) |
Protected Member Functions | |
RadioAction () | |
RadioAction (Group &group, const Glib::ustring &name, const StockID &stock_id=StockID(), const Glib::ustring &label=Glib::ustring(), const Glib::ustring &tooltip=Glib::ustring()) | |
RadioAction (Group &group, const Glib::ustring &name, const Glib::ustring &icon_name, const Glib::ustring &label=Glib::ustring(), const Glib::ustring &tooltip=Glib::ustring()) | |
virtual void | on_changed (const Glib::RefPtr< RadioAction > ¤t) |
This is a default handler for the signal signal_changed(). More... | |
Protected Member Functions inherited from Gtk::ToggleAction | |
ToggleAction () | |
ToggleAction (const Glib::ustring &name, const StockID &stock_id=StockID(), const Glib::ustring &label=Glib::ustring(), const Glib::ustring &tooltip=Glib::ustring(), bool is_active=false) | |
ToggleAction (const Glib::ustring &name, const Glib::ustring &icon_name, const Glib::ustring &label=Glib::ustring(), const Glib::ustring &tooltip=Glib::ustring(), bool is_active=false) | |
virtual void | on_toggled () |
This is a default handler for the signal signal_toggled(). More... | |
Protected Member Functions inherited from Gtk::Action | |
Action () | |
Action (const Glib::ustring &name, const StockID &stock_id=StockID(), const Glib::ustring &label=Glib::ustring(), const Glib::ustring &tooltip=Glib::ustring()) | |
Action (const Glib::ustring &name, const Glib::ustring &icon_name, const Glib::ustring &label=Glib::ustring(), const Glib::ustring &tooltip=Glib::ustring()) | |
void | block_activate_from (Widget &proxy) |
void | unblock_activate_from (Widget &proxy) |
virtual Widget * | create_menu_item_vfunc () |
virtual Widget * | create_tool_item_vfunc () |
virtual void | connect_proxy_vfunc (Widget *proxy) |
virtual void | disconnect_proxy_vfunc (Widget *proxy) |
virtual void | on_activate () |
This is a default handler for the signal signal_activate(). More... | |
Related Functions | |
(Note that these are not member functions.) | |
Glib::RefPtr< Gtk::RadioAction > | wrap (GtkRadioAction *object, bool take_copy=false) |
Related Functions inherited from Gtk::ToggleAction | |
Glib::RefPtr< Gtk::ToggleAction > | wrap (GtkToggleAction *object, bool take_copy=false) |
Related Functions inherited from Gtk::Action | |
Glib::RefPtr< Gtk::Action > | wrap (GtkAction *object, bool take_copy=false) |
An action of which only one in a group can be active.
A Gtk::RadioAction is similar to Gtk::RadioMenuItem. A number of radio actions can be linked together so that only one may be active at any one time.
Definition at line 54 of file radioaction.h.
Definition at line 104 of file radioaction.h.
|
virtual |
|
protected |
|
explicitprotected |
Creates a radio action.
group | The radio group this action belongs to. |
name | A unique name for the action. |
stock_id | The stock icon to display in widgets representing the action. |
label | The label displayed in menu items and on buttons. |
tooltip | A tooltip for the action. |
|
explicitprotected |
Creates a radio action with an icon name. The radio action's icon will reflect the specified icon name in the user's icon theme.
group | The radio group this action belongs to. |
name | A unique name for the action. |
icon_name | An IconTheme icon name used for widgets representing the action. |
label | The label displayed in menu items and on buttons. |
tooltip | A tooltip for the action. |
|
static |
|
static |
Creates a radio action.
group | The radio group this action belongs to. |
name | A unique name for the action. |
label | The label displayed in menu items and on buttons. |
tooltip | A tooltip for the action. |
|
static |
Creates a radio action with a stock ID. The stock ID is used to set a default icon, text and accelerator for the radio action.
group | The radio group this action belongs to. |
name | A unique name for the action. |
stock_id | The stock icon to display in widgets representing the action. |
label | The label displayed in menu items and on buttons. |
tooltip | A tooltip for the action. |
|
static |
Creates a radio action with an icon name. The radio action's icon will reflect the specified icon name in the user's icon theme.
group | The radio group this action belongs to. |
name | A unique name for the action. |
icon_name | An IconTheme icon name used for widgets representing the action. |
label | The label displayed in menu items and on buttons. |
tooltip | A tooltip for the action. |
int Gtk::RadioAction::get_current_value | ( | ) | const |
Obtains the value property of the currently active member of the group to which action belongs.
Group Gtk::RadioAction::get_group | ( | ) |
Returns the list representing the radio group for this object. Note that the returned list is only valid until the next change to the group.
A common way to set up a group of radio group is the following:
[C example ellipted]
|
static |
Get the GType for this class, for use with the underlying GObject type system.
|
inline |
Provides access to the underlying C GObject.
Definition at line 93 of file radioaction.h.
|
inline |
Provides access to the underlying C GObject.
Definition at line 96 of file radioaction.h.
GtkRadioAction* Gtk::RadioAction::gobj_copy | ( | ) |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
|
protectedvirtual |
This is a default handler for the signal signal_changed().
Glib::PropertyProxy< int > Gtk::RadioAction::property_current_value | ( | ) |
The value property of the currently active member of the group to which this action belongs.
Glib::PropertyProxy_ReadOnly< int > Gtk::RadioAction::property_current_value | ( | ) | const |
The value property of the currently active member of the group to which this action belongs.
Glib::PropertyProxy< int > Gtk::RadioAction::property_value | ( | ) |
The value returned by gtk_radio_action_get_current_value() when this action is the current action of its group.
Glib::PropertyProxy_ReadOnly< int > Gtk::RadioAction::property_value | ( | ) | const |
The value returned by gtk_radio_action_get_current_value() when this action is the current action of its group.
void Gtk::RadioAction::set_current_value | ( | int | current_value | ) |
Sets the currently active group member to the member with value property current_value.
current_value | The new value. |
void Gtk::RadioAction::set_group | ( | Group & | group | ) |
Glib::SignalProxy1< void,const Glib::RefPtr<RadioAction>& > Gtk::RadioAction::signal_changed | ( | ) |
The changed signal is emitted on every member of a radio group when the active member is changed. The signal is emitted after the activate signals for the previous and current active members.
current | the member of this action's group which has just been activated. |
void on_my_changed(const Glib::RefPtr<RadioAction>& current)
|
related |
A Glib::wrap() method for this object.
object | The C instance. |
take_copy | False if the result should take ownership of the C instance. True if it should take a new copy or ref. |