Ardour  9.0-pre0-582-g084a23a80d
recentaction.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_RECENTACTION_H
4 #define _GTKMM_RECENTACTION_H
5 
6 
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
9 
10 /* $Id: recentaction.hg,v 1.5 2004/07/01 08:55:45 murrayc Exp $ */
11 
12 /* Copyright (C) 2003 The gtkmm Development Team
13  *
14  * This library is free software; you can redistribute it and/or
15  * modify it under the terms of the GNU Lesser General Public
16  * License as published by the Free Software Foundation; either
17  * version 2.1 of the License, or (at your option) any later version.
18  *
19  * This library is distributed in the hope that it will be useful,
20  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22  * Lesser General Public License for more details.
23  *
24  * You should have received a copy of the GNU Lesser General Public
25  * License along with this library; if not, write to the Free
26  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
27  */
28 
29 #include <gtkmm/action.h>
30 #include <gtkmm/recentchooser.h>
31 #include <gtkmm/recentmanager.h>
32 #include <gtkmm/stockid.h>
33 
34 
35 #ifndef DOXYGEN_SHOULD_SKIP_THIS
36 typedef struct _GtkRecentAction GtkRecentAction;
38 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
39 
40 
41 #ifndef DOXYGEN_SHOULD_SKIP_THIS
42 namespace Gtk
43 { class RecentAction_Class; } // namespace Gtk
44 #endif //DOXYGEN_SHOULD_SKIP_THIS
45 
46 namespace Gtk
47 {
48 
65  : public Gtk::Action,
66  public Gtk::RecentChooser
67 {
68 
69 #ifndef DOXYGEN_SHOULD_SKIP_THIS
70 
71 public:
72  typedef RecentAction CppObjectType;
73  typedef RecentAction_Class CppClassType;
74  typedef GtkRecentAction BaseObjectType;
75  typedef GtkRecentActionClass BaseClassType;
76 
77 private: friend class RecentAction_Class;
78  static CppClassType recentaction_class_;
79 
80 private:
81  // noncopyable
82  RecentAction(const RecentAction&);
83  RecentAction& operator=(const RecentAction&);
84 
85 protected:
86  explicit RecentAction(const Glib::ConstructParams& construct_params);
87  explicit RecentAction(GtkRecentAction* castitem);
88 
89 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
90 
91 public:
92  virtual ~RecentAction();
93 
96  static GType get_type() G_GNUC_CONST;
97 
98 #ifndef DOXYGEN_SHOULD_SKIP_THIS
99 
100 
101  static GType get_base_type() G_GNUC_CONST;
102 #endif
103 
105  GtkRecentAction* gobj() { return reinterpret_cast<GtkRecentAction*>(gobject_); }
106 
108  const GtkRecentAction* gobj() const { return reinterpret_cast<GtkRecentAction*>(gobject_); }
109 
112 
113 private:
114 
115 
116 protected:
118 
119 //Make sure that we use NULL instead of empty strings for the constructors:
120 
121 
122  //Note that the order of the parameters is not the same as gtk_recent_action_new(), because
123  //a) we want to be consistent with Action, ToggleAction, etc.
124  //b) this allows us to use the StockID parameter to distinguish the create() overloads.
125  explicit RecentAction(const Glib::ustring& name, const StockID& stock_id = StockID(), const Glib::ustring& label = Glib::ustring(), const Glib::ustring& tooltip = Glib::ustring());
126 
127  explicit RecentAction(const Glib::ustring& name, const StockID& stock_id, const Glib::ustring& label, const Glib::ustring& tooltip, const Glib::RefPtr<RecentManager>& recent_manager);
128 
129 
130 public:
131  //Note that gtk_recent_action_new() does not allow name to be NULL, which suggests that we should not have a default constructor,
132  //but it's OK to set the name later:
133 
134  static Glib::RefPtr<RecentAction> create();
135 
136 
137  static Glib::RefPtr<RecentAction> create(const Glib::ustring& name, const Glib::ustring& label = Glib::ustring(), const Glib::ustring& tooltip = Glib::ustring());
138 
139  static Glib::RefPtr<RecentAction> create(const Glib::ustring& name, const Gtk::StockID& stock_id, const Glib::ustring& label = Glib::ustring(), const Glib::ustring& tooltip = Glib::ustring());
140 
141 
142  static Glib::RefPtr<RecentAction> create(const Glib::ustring& name, const Gtk::StockID& stock_id, const Glib::ustring& label, const Glib::ustring& tooltip, const Glib::RefPtr<RecentManager>& recent_manager);
143 
144 
150 
158  void set_show_numbers(bool show_numbers = true);
159 
165  Glib::PropertyProxy< bool > property_show_numbers() ;
166 
172  Glib::PropertyProxy_ReadOnly< bool > property_show_numbers() const;
173 
174 
175 public:
176 
177 public:
178  //C++ methods used to invoke GTK+ virtual functions:
179 
180 protected:
181  //GTK+ Virtual Functions (override these to change behaviour):
182 
183  //Default Signal Handlers::
184 
185 
186 };
187 
188 } // namespace Gtk
189 
190 
191 namespace Glib
192 {
201  Glib::RefPtr<Gtk::RecentAction> wrap(GtkRecentAction* object, bool take_copy = false);
202 }
203 
204 
205 #endif /* _GTKMM_RECENTACTION_H */
206 
const GtkRecentAction * gobj() const
Provides access to the underlying C GObject.
Definition: recentaction.h:108
Glib::PropertyProxy< bool > property_show_numbers()
static GType get_type() G_GNUC_CONST
Glib::RefPtr< Gtk::RecentAction > wrap(GtkRecentAction *object, bool take_copy=false)
static Glib::RefPtr< RecentAction > create()
RecentAction(const Glib::ustring &name, const StockID &stock_id, const Glib::ustring &label, const Glib::ustring &tooltip, const Glib::RefPtr< RecentManager > &recent_manager)
virtual ~RecentAction()
static Glib::RefPtr< RecentAction > create(const Glib::ustring &name, const Gtk::StockID &stock_id, const Glib::ustring &label, const Glib::ustring &tooltip, const Glib::RefPtr< RecentManager > &recent_manager)
static Glib::RefPtr< RecentAction > create(const Glib::ustring &name, const Gtk::StockID &stock_id, const Glib::ustring &label=Glib::ustring(), const Glib::ustring &tooltip=Glib::ustring())
Glib::PropertyProxy_ReadOnly< bool > property_show_numbers() const
GtkRecentAction * gobj_copy()
Provides access to the underlying C instance. The caller is responsible for unrefing it....
static Glib::RefPtr< RecentAction > create(const Glib::ustring &name, const Glib::ustring &label=Glib::ustring(), const Glib::ustring &tooltip=Glib::ustring())
GtkRecentAction * gobj()
Provides access to the underlying C GObject.
Definition: recentaction.h:105
RecentAction(const Glib::ustring &name, const StockID &stock_id=StockID(), const Glib::ustring &label=Glib::ustring(), const Glib::ustring &tooltip=Glib::ustring())
void set_show_numbers(bool show_numbers=true)
GtkImageIconNameData name
Definition: gtkimage.h:6
Definition: ardour_ui.h:188