3 #ifndef _GTKMM_ACTIONGROUP_H
4 #define _GTKMM_ACTIONGROUP_H
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
34 #ifndef DOXYGEN_SHOULD_SKIP_THIS
40 #ifndef DOXYGEN_SHOULD_SKIP_THIS
42 {
class ActionGroup_Class; }
52 #ifndef DOXYGEN_SHOULD_SKIP_THIS
61 static CppClassType actiongroup_class_;
69 explicit ActionGroup(
const Glib::ConstructParams& construct_params);
81 #ifndef DOXYGEN_SHOULD_SKIP_THIS
84 static GType get_base_type() G_GNUC_CONST;
105 static Glib::RefPtr<ActionGroup>
create(
const Glib::ustring&
name = Glib::ustring());
151 Glib::RefPtr<Action>
get_action(
const Glib::ustring& action_name);
158 Glib::RefPtr<const Action>
get_action(
const Glib::ustring& action_name)
const;
171 Glib::ListHandle< Glib::RefPtr<const Action> >
get_actions()
const;
173 void add(
const Glib::RefPtr<Action>& action);
179 void add(
const Glib::RefPtr<Action>& action,
const AccelKey& accel_key);
192 void remove(
const Glib::RefPtr<Action>& action);
Glib::PropertyProxy< bool > property_visible()
Glib::ustring get_name() const
void set_visible(bool visible=true)
ActionGroup(const Glib::ustring &name=Glib::ustring())
Glib::SignalProxy1< void, const Glib::RefPtr< Action > & > signal_pre_activate()
Glib::SignalProxy1< void, const Glib::RefPtr< Action > & > signal_post_activate()
void set_sensitive(bool sensitive=true)
GtkActionGroup * gobj()
Provides access to the underlying C GObject.
Glib::ustring translate_string(const Glib::ustring &str) const
static GType get_type() G_GNUC_CONST
Glib::PropertyProxy_ReadOnly< bool > property_visible() const
Glib::SignalProxy2< void, const Glib::RefPtr< Action > &, Widget * > signal_connect_proxy()
Glib::PropertyProxy_ReadOnly< bool > property_sensitive() const
Glib::PropertyProxy< bool > property_sensitive()
static Glib::RefPtr< ActionGroup > create(const Glib::ustring &name=Glib::ustring())
void remove(const Glib::RefPtr< Action > &action)
Glib::RefPtr< Gtk::ActionGroup > wrap(GtkActionGroup *object, bool take_copy=false)
Glib::RefPtr< Action > get_action(const Glib::ustring &action_name)
GtkActionGroup * gobj_copy()
Provides access to the underlying C instance. The caller is responsible for unrefing it....
Glib::ListHandle< Glib::RefPtr< Action > > get_actions()
void add(const Glib::RefPtr< Action > &action)
Glib::RefPtr< const Action > get_action(const Glib::ustring &action_name) const
void add(const Glib::RefPtr< Action > &action, const Action::SlotActivate &slot)
const GtkActionGroup * gobj() const
Provides access to the underlying C GObject.
void add(const Glib::RefPtr< Action > &action, const AccelKey &accel_key, const Action::SlotActivate &slot)
void add(const Glib::RefPtr< Action > &action, const AccelKey &accel_key)
Glib::ListHandle< Glib::RefPtr< const Action > > get_actions() const
Glib::SignalProxy2< void, const Glib::RefPtr< Action > &, Widget * > signal_disconnect_proxy()
Glib::PropertyProxy_ReadOnly< Glib::ustring > property_name() const
bool get_sensitive() const
sigc::slot< void > SlotActivate
For instance, void on_activate();.
GtkImageIconNameData name