Debian Codegraph @

gtk/src/recentchooserdialog.hg

raw
1 /* Copyright (C) 2006 The gtkmm Development Team
2 *
3 * This library is free software; you can redistribute it and/or
4 * modify it under the terms of the GNU Lesser General Public
5 * License as published by the Free Software Foundation; either
6 * version 2.1 of the License, or (at your option) any later version.
7 *
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public
14 * License along with this library; if not, see <https://www.gnu.org/licenses/>.
15 */
16
17 #include <gtkmm/dialog.h>
18 #include <gtkmm/recentchooser.h>
19
20 _DEFS(gtkmm,gtk)
21 _PINCLUDE(gtkmm/private/dialog_p.h)
22
23 namespace Gtk
24 {
25
26 /** RecentChooserDialog is a dialog box suitable for displaying the recently
27 * used documents. This widget works by putting a RecentChooserWidget inside
28 * a Dialog. It exposes the RecentChooser interface, so you can use
29 * all the RecentChooser functions on the recent chooser dialog as well as
30 * those for Dialog.
31 *
32 * Note that RecentChooserDialog does not have any methods of its own.
33 * Instead, you should use the functions that work on a RecentChooser.
34 *
35 * A RecentChooserDialog looks like this:
36 * @image html recentchooserdialog1.png
37 *
38 * @newin{2,10}
39 *
40 * @ingroup RecentFiles
41 */
42 class GTKMM_API RecentChooserDialog
43 : public Dialog,
44 public RecentChooser
45 {
46 _CLASS_GTKOBJECT(RecentChooserDialog, GtkRecentChooserDialog, GTK_RECENT_CHOOSER_DIALOG, Gtk::Dialog, GtkDialog, , , GTKMM_API)
47 _IMPLEMENTS_INTERFACE(RecentChooser)
48 _UNMANAGEABLE
49 public:
50 _IGNORE(gtk_recent_chooser_dialog_new)
51 explicit RecentChooserDialog(Gtk::Window& parent, const Glib::ustring& title);
52 explicit RecentChooserDialog(const Glib::ustring& title);
53
54 _IGNORE(gtk_recent_chooser_dialog_new_for_manager)
55 explicit RecentChooserDialog(Gtk::Window& parent, const Glib::ustring& title, const Glib::RefPtr<RecentManager>& recent_manager);
56 explicit RecentChooserDialog(const Glib::ustring& title, const Glib::RefPtr<RecentManager>& recent_manager);
57 };
58
59 } // namespace Gtk