![]() |
![]() |
Public Types | |
typedef sigc::slot<void> | SlotActivate |
For instance, void on_activate();. | |
Public Member Functions | |
virtual | ~Action () |
GtkAction* | gobj () |
Provides access to the underlying C GObject. | |
const GtkAction* | gobj () const |
Provides access to the underlying C GObject. | |
GtkAction* | gobj_copy () |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. | |
Glib::ustring | get_name () const |
Returns the name of the action. | |
bool | is_sensitive () const |
Returns whether the action is effectively sensitive. | |
bool | get_sensitive () const |
Returns whether the action itself is sensitive. | |
void | set_tooltip (const Glib::ustring& tooltip) |
void | set_sensitive (bool value=true) |
bool | is_visible () const |
Returns whether the action is effectively visible. | |
bool | get_visible () const |
Returns whether the action itself is visible. | |
void | activate () |
Emits the "activate" signal on the specified action, if it isn't insensitive. | |
Image* | create_icon (IconSize icon_size) |
This function is intended for use by action implementations to create icons displayed in the proxy widgets. | |
MenuItem* | create_menu_item () |
Creates a menu item widget that proxies for the given action. | |
ToolItem* | create_tool_item () |
Creates a toolbar item widget that proxies for the given action. | |
void | connect_proxy (Widget& proxy) |
Connects a widget to an action object as a proxy. | |
void | disconnect_proxy (Widget& proxy) |
Disconnects a proxy widget from an action. | |
Glib::SListHandle<Widget*> | get_proxies () |
Returns the proxy widgets for an action. | |
Glib::SListHandle<const Widget*> | get_proxies () const |
Returns the proxy widgets for an action. | |
void | connect_accelerator () |
Installs the accelerator for action if action has an accel path and group. | |
void | disconnect_accelerator () |
Undoes the effect of one call to connect_accelerator(). | |
Glib::SignalProxy0<void> | signal_activate () |
void | set_accel_path (const Glib::ustring& accel_path) |
Sets the accel path for this action. | |
void | set_accel_group (const Glib::RefPtr<AccelGroup>& accel_group) |
Sets the Gtk::AccelGroup in which the accelerator for this action will be installed. | |
Glib::PropertyProxy_ReadOnly< Glib::ustring > | property_name () const |
You rarely need to use properties because there are get_ and set_ methods for almost all of them. | |
Glib::PropertyProxy<Glib::ustring> | property_label () |
You rarely need to use properties because there are get_ and set_ methods for almost all of them. | |
Glib::PropertyProxy_ReadOnly< Glib::ustring > | property_label () const |
You rarely need to use properties because there are get_ and set_ methods for almost all of them. | |
Glib::PropertyProxy<Glib::ustring> | property_short_label () |
You rarely need to use properties because there are get_ and set_ methods for almost all of them. | |
Glib::PropertyProxy_ReadOnly< Glib::ustring > | property_short_label () const |
You rarely need to use properties because there are get_ and set_ methods for almost all of them. | |
Glib::PropertyProxy<Glib::ustring> | property_tooltip () |
You rarely need to use properties because there are get_ and set_ methods for almost all of them. | |
Glib::PropertyProxy_ReadOnly< Glib::ustring > | property_tooltip () const |
You rarely need to use properties because there are get_ and set_ methods for almost all of them. | |
Glib::PropertyProxy<StockID> | property_stock_id () |
You rarely need to use properties because there are get_ and set_ methods for almost all of them. | |
Glib::PropertyProxy_ReadOnly< StockID > | property_stock_id () const |
You rarely need to use properties because there are get_ and set_ methods for almost all of them. | |
Glib::PropertyProxy<bool> | property_visible_horizontal () |
You rarely need to use properties because there are get_ and set_ methods for almost all of them. | |
Glib::PropertyProxy_ReadOnly< bool > | property_visible_horizontal () const |
You rarely need to use properties because there are get_ and set_ methods for almost all of them. | |
Glib::PropertyProxy<bool> | property_visible_vertical () |
You rarely need to use properties because there are get_ and set_ methods for almost all of them. | |
Glib::PropertyProxy_ReadOnly< bool > | property_visible_vertical () const |
You rarely need to use properties because there are get_ and set_ methods for almost all of them. | |
Glib::PropertyProxy<bool> | property_is_important () |
You rarely need to use properties because there are get_ and set_ methods for almost all of them. | |
Glib::PropertyProxy_ReadOnly< bool > | property_is_important () const |
You rarely need to use properties because there are get_ and set_ methods for almost all of them. | |
Glib::PropertyProxy<bool> | property_hide_if_empty () |
You rarely need to use properties because there are get_ and set_ methods for almost all of them. | |
Glib::PropertyProxy_ReadOnly< bool > | property_hide_if_empty () const |
You rarely need to use properties because there are get_ and set_ methods for almost all of them. | |
Glib::PropertyProxy<bool> | property_sensitive () |
You rarely need to use properties because there are get_ and set_ methods for almost all of them. | |
Glib::PropertyProxy_ReadOnly< bool > | property_sensitive () const |
You rarely need to use properties because there are get_ and set_ methods for almost all of them. | |
Glib::PropertyProxy<bool> | property_visible () |
You rarely need to use properties because there are get_ and set_ methods for almost all of them. | |
Glib::PropertyProxy_ReadOnly< bool > | property_visible () const |
You rarely need to use properties because there are get_ and set_ methods for almost all of them. | |
Static Public Member Functions | |
Glib::RefPtr<Action> | create () |
Glib::RefPtr<Action> | create (const Glib::ustring& name, const Glib::ustring& label=Glib::ustring(), const Glib::ustring& tooltip=Glib::ustring()) |
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()) |
Protected Member Functions | |
Action () | |
Action (const Glib::ustring& name, const StockID& stock_id, const Glib::ustring& label=Glib::ustring(), const Glib::ustring& tooltip=Glib::ustring()) | |
void | block_activate_from (Widget& proxy) |
Disables calls to the activate() function by signals on the given proxy widget. | |
void | unblock_activate_from (Widget& proxy) |
Re-enables calls to the activate() function by signals on the given proxy widget. | |
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 () |
Related Functions | |
(Note that these are not member functions.) | |
Glib::RefPtr<Gtk::Action> | wrap (GtkAction* object, bool take_copy=false) |
|
For instance, void on_activate();.
|
|
|
|
|
|
|
|
Emits the "activate" signal on the specified action, if it isn't insensitive. This gets called by the proxy widgets when they get activated. It can also be used to manually activate an action. Since: 2.4 |
|
Disables calls to the activate() function by signals on the given proxy widget. This is used to break notification loops for things like check or radio actions. This function is intended for use by action implementations. Since: 2.4
|
|
Installs the accelerator for action if action has an accel path and group. See set_accel_path() and set_accel_group() Since multiple proxies may independently trigger the installation of the accelerator, the action counts the number of times this function has been called and doesn't remove the accelerator until disconnect_accelerator() has been called as many times. Since: 2.4 |
|
Connects a widget to an action object as a proxy. Synchronises various properties of the action with the widget (such as label text, icon, tooltip, etc), and attaches a callback so that the action gets activated when the proxy widget does. If the widget is already connected to an action, it is disconnected first. Since: 2.4
|
|
|
|
|
|
|
|
Reimplemented in Gtk::RadioAction, and Gtk::ToggleAction.
|
|
This function is intended for use by action implementations to create icons displayed in the proxy widgets.
|
|
Creates a menu item widget that proxies for the given action.
|
|
|
|
Creates a toolbar item widget that proxies for the given action.
|
|
|
|
Undoes the effect of one call to connect_accelerator(). Since: 2.4 |
|
Disconnects a proxy widget from an action. Does not destroy the widget, however. Since: 2.4
|
|
|
|
Returns the name of the action.
|
|
Returns the proxy widgets for an action.
|
|
Returns the proxy widgets for an action.
|
|
Returns whether the action itself is sensitive. Note that this doesn't necessarily mean effective sensitivity. See is_sensitive() for that.
|
|
Returns whether the action itself is visible. Note that this doesn't necessarily mean effective visibility. See is_sensitive() for that.
|
|
Provides access to the underlying C GObject.
Reimplemented from Glib::ObjectBase.
Reimplemented in Gtk::RadioAction, and Gtk::ToggleAction.
|
|
Provides access to the underlying C GObject.
Reimplemented from Glib::ObjectBase.
Reimplemented in Gtk::RadioAction, and Gtk::ToggleAction.
|
|
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
Reimplemented in Gtk::RadioAction, and Gtk::ToggleAction.
|
|
Returns whether the action is effectively sensitive.
|
|
Returns whether the action is effectively visible.
|
|
|
|
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
Sets the Gtk::AccelGroup in which the accelerator for this action will be installed. Since: 2.4
|
|
Sets the accel path for this action. All proxy widgets associated with the action will have this accel path, so that their accelerators are consistent. Since: 2.4
|
|
|
|
|
|
|
|
Re-enables calls to the activate() function by signals on the given proxy widget. This undoes the blocking done by block_activate_from(). This function is intended for use by action implementations. Since: 2.4
|
|
|