Add stuff missing from yesterday's library commit.
[ardour.git] / libs / gtkmm2 / gtk / gtkmm / recentchoosermenu.h
1 // -*- c++ -*-
2 // Generated by gtkmmproc -- DO NOT MODIFY!
3 #ifndef _GTKMM_RECENTCHOOSERMENU_H
4 #define _GTKMM_RECENTCHOOSERMENU_H
5
6
7 #include <glibmm.h>
8
9 /* recentchoosermenu.h
10  *
11  * Copyright (C) 2006 The gtkmm Development Team
12  *
13  * This library is free software; you can redistribute it and/or
14  * modify it under the terms of the GNU Library General Public
15  * License as published by the Free Software Foundation; either
16  * version 2 of the License, or (at your option) any later version.
17  *
18  * This library is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
21  * Library General Public License for more details.
22  *
23  * You should have received a copy of the GNU Library General Public
24  * License along with this library; if not, write to the Free
25  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26  */
27
28 #include <gtkmm/menu.h>
29 #include <gtkmm/recentchooser.h>
30
31
32 #ifndef DOXYGEN_SHOULD_SKIP_THIS
33 typedef struct _GtkRecentChooserMenu GtkRecentChooserMenu;
34 typedef struct _GtkRecentChooserMenuClass GtkRecentChooserMenuClass;
35 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
36
37
38 namespace Gtk
39 { class RecentChooserMenu_Class; } // namespace Gtk
40 namespace Gtk
41 {
42
43 /** RecentChooserMenu is a widget suitable for displaying recently used files
44  * inside a menu.  It can be used to set a sub-menu of a MenuItem using
45  * MenuItem::item_set_submenu(), or as the menu of a MenuToolButton.
46  *
47  * Note that RecentChooserMenu does not have any methods of its own. Instead,
48  * you should use the functions that work on a RecentChooser.
49  *
50  * @newin2p10
51  *
52  * @ingroup RecentFiles
53  */
54
55 class RecentChooserMenu
56   : public Menu,
57     public RecentChooser
58 {
59   public:
60 #ifndef DOXYGEN_SHOULD_SKIP_THIS
61   typedef RecentChooserMenu CppObjectType;
62   typedef RecentChooserMenu_Class CppClassType;
63   typedef GtkRecentChooserMenu BaseObjectType;
64   typedef GtkRecentChooserMenuClass BaseClassType;
65 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
66
67   virtual ~RecentChooserMenu();
68
69 #ifndef DOXYGEN_SHOULD_SKIP_THIS
70
71 private:
72   friend class RecentChooserMenu_Class;
73   static CppClassType recentchoosermenu_class_;
74
75   // noncopyable
76   RecentChooserMenu(const RecentChooserMenu&);
77   RecentChooserMenu& operator=(const RecentChooserMenu&);
78
79 protected:
80   explicit RecentChooserMenu(const Glib::ConstructParams& construct_params);
81   explicit RecentChooserMenu(GtkRecentChooserMenu* castitem);
82
83 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
84
85 public:
86 #ifndef DOXYGEN_SHOULD_SKIP_THIS
87   static GType get_type()      G_GNUC_CONST;
88   static GType get_base_type() G_GNUC_CONST;
89 #endif
90
91   ///Provides access to the underlying C GtkObject.
92   GtkRecentChooserMenu*       gobj()       { return reinterpret_cast<GtkRecentChooserMenu*>(gobject_); }
93
94   ///Provides access to the underlying C GtkObject.
95   const GtkRecentChooserMenu* gobj() const { return reinterpret_cast<GtkRecentChooserMenu*>(gobject_); }
96
97
98 public:
99   //C++ methods used to invoke GTK+ virtual functions:
100 #ifdef GLIBMM_VFUNCS_ENABLED
101 #endif //GLIBMM_VFUNCS_ENABLED
102
103 protected:
104   //GTK+ Virtual Functions (override these to change behaviour):
105 #ifdef GLIBMM_VFUNCS_ENABLED
106 #endif //GLIBMM_VFUNCS_ENABLED
107
108   //Default Signal Handlers::
109 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
110 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
111
112
113 private:
114
115   
116 public:
117   RecentChooserMenu();
118
119   explicit RecentChooserMenu(const Glib::RefPtr<RecentManager>& recent_manager);
120
121   
122   void set_show_numbers(bool show_numbers = true);
123   
124   bool get_show_numbers() const;
125
126
127 };
128
129 } // namespace Gtk
130
131
132 namespace Glib
133 {
134   /** @relates Gtk::RecentChooserMenu
135    * @param object The C instance
136    * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
137    * @result A C++ instance that wraps this C instance.
138    */
139   Gtk::RecentChooserMenu* wrap(GtkRecentChooserMenu* object, bool take_copy = false);
140 } //namespace Glib
141
142
143 #endif /* _GTKMM_RECENTCHOOSERMENU_H */
144