3 #ifndef _GTKMM_ACTION_H
4 #define _GTKMM_ACTION_H
6 #include <gtkmmconfig.h>
9 #include <glibmm/ustring.h>
10 #include <sigc++/sigc++.h>
33 #include <giomm/icon.h>
36 #ifndef DOXYGEN_SHOULD_SKIP_THIS
42 #ifndef DOXYGEN_SHOULD_SKIP_THIS
44 {
class Action_Class; }
90 #ifndef DOXYGEN_SHOULD_SKIP_THIS
93 typedef Action CppObjectType;
99 static CppClassType action_class_;
107 explicit Action(
const Glib::ConstructParams& construct_params);
119 #ifndef DOXYGEN_SHOULD_SKIP_THIS
122 static GType get_base_type() G_GNUC_CONST;
151 explicit Action(
const Glib::ustring&
name,
const StockID& stock_id =
StockID(),
const Glib::ustring& label = Glib::ustring(),
const Glib::ustring& tooltip = Glib::ustring());
163 explicit Action(
const Glib::ustring&
name,
const Glib::ustring& icon_name,
const Glib::ustring& label = Glib::ustring(),
const Glib::ustring& tooltip = Glib::ustring());
180 static Glib::RefPtr<Action>
create(
const Glib::ustring&
name,
const Glib::ustring& label = Glib::ustring(),
const Glib::ustring& tooltip = Glib::ustring());
194 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());
208 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);
Glib::ustring get_name() const
Glib::PropertyProxy_ReadOnly< Glib::RefPtr< ActionGroup > > property_action_group() const
Glib::PropertyProxy< bool > property_sensitive()
Glib::PropertyProxy_ReadOnly< bool > property_is_important() const
Glib::PropertyProxy_ReadOnly< Glib::ustring > property_label() const
Glib::PropertyProxy< bool > property_visible_horizontal()
void set_visible(bool visible=true)
Glib::PropertyProxy_ReadOnly< bool > property_visible_horizontal() const
Glib::PropertyProxy_ReadOnly< StockID > property_stock_id() const
void connect_proxy(Widget &proxy)
Glib::ustring get_accel_path() const
GtkAction * gobj()
Provides access to the underlying C GObject.
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())
MenuItem * create_menu_item()
Glib::PropertyProxy_ReadOnly< Glib::ustring > property_icon_name() const
Glib::PropertyProxy_ReadOnly< Glib::ustring > property_name() const
Glib::RefPtr< const Gio::Icon > get_gicon() const
Glib::ustring get_label() const
bool get_visible_horizontal() const
Glib::PropertyProxy_ReadOnly< Glib::RefPtr< Gio::Icon > > property_gicon() const
Glib::PropertyProxy< Glib::ustring > property_icon_name()
void set_tooltip(const Glib::ustring &tooltip)
Glib::PropertyProxy< Glib::RefPtr< ActionGroup > > property_action_group()
Image * create_icon(IconSize icon_size)
Glib::PropertyProxy< Glib::ustring > property_label()
Glib::PropertyProxy_ReadOnly< bool > property_sensitive() const
virtual Widget * create_tool_item_vfunc()
Glib::PropertyProxy_ReadOnly< bool > property_visible_vertical() const
sigc::slot< void > SlotActivate
For instance, void on_activate();.
Glib::PropertyProxy< bool > property_visible_vertical()
Glib::PropertyProxy< bool > property_always_show_image()
virtual Widget * create_menu_item_vfunc()
const GtkAction * gobj() const
Provides access to the underlying C GObject.
virtual void disconnect_proxy_vfunc(Widget *proxy)
void set_accel_path(const Glib::ustring &accel_path)
Glib::PropertyProxy< bool > property_visible_overflown()
bool is_sensitive() const
void block_activate_from(Widget &proxy)
Glib::SignalProxy0< void > signal_activate()
void set_accel_group(const Glib::RefPtr< AccelGroup > &accel_group)
bool get_visible_vertical() const
void set_short_label(const Glib::ustring &short_label)
Glib::PropertyProxy_ReadOnly< Glib::ustring > property_short_label() const
GtkAction * gobj_copy()
Provides access to the underlying C instance. The caller is responsible for unrefing it....
Action(const Glib::ustring &name, const Glib::ustring &icon_name, const Glib::ustring &label=Glib::ustring(), const Glib::ustring &tooltip=Glib::ustring())
Action(const Glib::ustring &name, const StockID &stock_id=StockID(), const Glib::ustring &label=Glib::ustring(), const Glib::ustring &tooltip=Glib::ustring())
void set_visible_vertical(bool visible_vertical=true)
void set_gicon(const Glib::RefPtr< Gio::Icon > &icon)
bool get_sensitive() const
Glib::SListHandle< const Widget * > get_proxies() const
bool get_is_important() const
void set_icon_name(const Glib::ustring &icon_name)
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)
Glib::ustring get_short_label() const
Glib::PropertyProxy< Glib::ustring > property_tooltip()
Glib::PropertyProxy< Glib::RefPtr< Gio::Icon > > property_gicon()
void connect_accelerator()
ToolItem * create_tool_item()
void set_label(const Glib::ustring &label)
Glib::PropertyProxy< bool > property_is_important()
Glib::ustring get_icon_name() const
void set_always_show_image(bool always_show=true)
Glib::SListHandle< Widget * > get_proxies()
StockID get_stock_id() const
virtual void connect_proxy_vfunc(Widget *proxy)
Glib::RefPtr< Gtk::Action > wrap(GtkAction *object, bool take_copy=false)
Glib::PropertyProxy< StockID > property_stock_id()
void set_stock_id(const StockID &stock_id)
void set_visible_horizontal(bool visible_horizontal=true)
bool get_always_show_image() const
Glib::PropertyProxy< bool > property_visible()
static GType get_type() G_GNUC_CONST
void set_sensitive(bool sensitive=true)
Glib::PropertyProxy_ReadOnly< bool > property_visible() const
Glib::ustring get_tooltip() const
void disconnect_proxy(Widget &proxy)
Glib::PropertyProxy< bool > property_hide_if_empty()
Glib::PropertyProxy< Glib::ustring > property_short_label()
static Glib::RefPtr< Action > create()
Glib::PropertyProxy_ReadOnly< bool > property_hide_if_empty() const
void set_is_important(bool is_important=true)
virtual void on_activate()
This is a default handler for the signal signal_activate().
void disconnect_accelerator()
static Glib::RefPtr< Action > create(const Glib::ustring &name, const Glib::ustring &label=Glib::ustring(), const Glib::ustring &tooltip=Glib::ustring())
Glib::PropertyProxy_ReadOnly< Glib::ustring > property_tooltip() const
void unblock_activate_from(Widget &proxy)
Glib::PropertyProxy_ReadOnly< bool > property_visible_overflown() const
Glib::PropertyProxy_ReadOnly< bool > property_always_show_image() const
Glib::RefPtr< Gio::Icon > get_gicon()
GtkImageIconNameData name