Ardour
9.0-pre0-386-g96ef4d20f2
|
#include <toggleaction.h>
Public Member Functions | |
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< 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 | |
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::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) |
Additional Inherited Members | |
Public Types inherited from Gtk::Action | |
typedef sigc::slot< void > | SlotActivate |
For instance, void on_activate();. More... | |
An action which can be toggled between two states.
A Gtk::ToggleAction corresponds roughly to a Gtk::CheckMenuItem. It has an "active" state specifying whether the action has been checked or not.
Definition at line 53 of file toggleaction.h.
|
virtual |
|
protected |
Creates an empty toggle action.
|
explicitprotected |
Creates a toggle action.
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. |
is_active | The default checked state of the action. |
|
explicitprotected |
Creates a toggle action with an icon name. The toggle action's icon will reflect the specified icon name in the user's icon theme.
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. |
is_active | The default checked state of the action. |
|
static |
|
static |
Creates a toggle action.
name | A unique name for the action. |
label | The label displayed in menu items and on buttons. |
tooltip | A tooltip for the action. |
is_active | The default checked state of the action. |
|
static |
Creates a toggle action with a stock ID. The tock ID is used to set a default icon, text and accelerator for the toggle action.
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. |
is_active | The default checked state of the action. |
|
static |
Creates a toggle action with an icon name. The toggle action's icon will reflect the specified icon name in the user's icon theme.
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. |
is_active | The default checked state of the action. |
bool Gtk::ToggleAction::get_active | ( | ) | const |
Returns the checked state of the toggle action.
bool Gtk::ToggleAction::get_draw_as_radio | ( | ) | const |
Returns whether the action should have proxies like a radio action.
|
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 92 of file toggleaction.h.
|
inline |
Provides access to the underlying C GObject.
Definition at line 95 of file toggleaction.h.
GtkToggleAction* Gtk::ToggleAction::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_toggled().
Glib::PropertyProxy< bool > Gtk::ToggleAction::property_active | ( | ) |
If the toggle action should be active in or not.
Glib::PropertyProxy_ReadOnly< bool > Gtk::ToggleAction::property_active | ( | ) | const |
If the toggle action should be active in or not.
Glib::PropertyProxy< bool > Gtk::ToggleAction::property_draw_as_radio | ( | ) |
Whether the proxies for this action look like radio action proxies.
Glib::PropertyProxy_ReadOnly< bool > Gtk::ToggleAction::property_draw_as_radio | ( | ) | const |
Whether the proxies for this action look like radio action proxies.
void Gtk::ToggleAction::set_active | ( | bool | is_active = true | ) |
Sets the checked state on the toggle action.
is_active | Whether the action should be checked or not. |
void Gtk::ToggleAction::set_draw_as_radio | ( | bool | draw_as_radio = true | ) |
Sets whether the action should have proxies like a radio action.
draw_as_radio | Whether the action should have proxies like a radio action. |
Glib::SignalProxy0< void > Gtk::ToggleAction::signal_toggled | ( | ) |
void on_my_toggled()
void Gtk::ToggleAction::toggled | ( | ) |
Emits the "toggled" signal on the toggle action.
|
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. |