2 // Generated by gtkmmproc -- DO NOT MODIFY!
3 #ifndef _GTKMM_RECENTCHOOSERMENU_H
4 #define _GTKMM_RECENTCHOOSERMENU_H
11 * Copyright (C) 2006 The gtkmm Development Team
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.
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.
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.
28 #include <gtkmm/menu.h>
29 #include <gtkmm/recentchooser.h>
32 #ifndef DOXYGEN_SHOULD_SKIP_THIS
33 typedef struct _GtkRecentChooserMenu GtkRecentChooserMenu;
34 typedef struct _GtkRecentChooserMenuClass GtkRecentChooserMenuClass;
35 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
39 { class RecentChooserMenu_Class; } // namespace Gtk
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.
47 * Note that RecentChooserMenu does not have any methods of its own. Instead,
48 * you should use the functions that work on a RecentChooser.
52 * @ingroup RecentFiles
55 class RecentChooserMenu
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 */
67 virtual ~RecentChooserMenu();
69 #ifndef DOXYGEN_SHOULD_SKIP_THIS
72 friend class RecentChooserMenu_Class;
73 static CppClassType recentchoosermenu_class_;
76 RecentChooserMenu(const RecentChooserMenu&);
77 RecentChooserMenu& operator=(const RecentChooserMenu&);
80 explicit RecentChooserMenu(const Glib::ConstructParams& construct_params);
81 explicit RecentChooserMenu(GtkRecentChooserMenu* castitem);
83 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
86 #ifndef DOXYGEN_SHOULD_SKIP_THIS
87 static GType get_type() G_GNUC_CONST;
88 static GType get_base_type() G_GNUC_CONST;
91 ///Provides access to the underlying C GtkObject.
92 GtkRecentChooserMenu* gobj() { return reinterpret_cast<GtkRecentChooserMenu*>(gobject_); }
94 ///Provides access to the underlying C GtkObject.
95 const GtkRecentChooserMenu* gobj() const { return reinterpret_cast<GtkRecentChooserMenu*>(gobject_); }
99 //C++ methods used to invoke GTK+ virtual functions:
100 #ifdef GLIBMM_VFUNCS_ENABLED
101 #endif //GLIBMM_VFUNCS_ENABLED
104 //GTK+ Virtual Functions (override these to change behaviour):
105 #ifdef GLIBMM_VFUNCS_ENABLED
106 #endif //GLIBMM_VFUNCS_ENABLED
108 //Default Signal Handlers::
109 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
110 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
119 explicit RecentChooserMenu(const Glib::RefPtr<RecentManager>& recent_manager);
122 void set_show_numbers(bool show_numbers = true);
124 bool get_show_numbers() const;
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.
139 Gtk::RecentChooserMenu* wrap(GtkRecentChooserMenu* object, bool take_copy = false);
143 #endif /* _GTKMM_RECENTCHOOSERMENU_H */