Debian Codegraph @

gtk/src/filechooserdialog.hg

raw
1 /* Copyright (C) 1998-2002 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/filechooser.h>
19
20 _DEFS(gtkmm,gtk)
21 _PINCLUDE(gtkmm/private/dialog_p.h)
22
23 namespace Gtk
24 {
25
26 /** Convenient file chooser window.
27 *
28 * A FileChooserDialog looks like this:
29 * @image html filechooserdialog1.png
30 *
31 * @ingroup Dialogs
32 */
33 class GTKMM_API FileChooserDialog
34 : public Dialog,
35 public FileChooser
36 {
37 _CLASS_GTKOBJECT(FileChooserDialog, GtkFileChooserDialog, GTK_FILE_CHOOSER_DIALOG, Gtk::Dialog, GtkDialog, , , GTKMM_API)
38 _IMPLEMENTS_INTERFACE(FileChooser)
39 _UNMANAGEABLE
40 public:
41 _IGNORE(gtk_file_chooser_dialog_new)
42 FileChooserDialog(Gtk::Window& parent, const Glib::ustring& title, FileChooserAction action = FILE_CHOOSER_ACTION_OPEN);
43 explicit FileChooserDialog(const Glib::ustring& title, FileChooserAction action = FILE_CHOOSER_ACTION_OPEN);
44
45 /** @newin{3,24}
46 */
47 FileChooserDialog(Gtk::Window& parent, const Glib::ustring& title, FileChooserAction action, DialogFlags flags);
48 /** @newin{3,24}
49 */
50 FileChooserDialog(const Glib::ustring& title, FileChooserAction action, DialogFlags flags);
51
52 _DEPRECATE_IFDEF_START
53 /// @deprecated Use a constructor without the @a backend parameter.
54 FileChooserDialog(Gtk::Window& parent, const Glib::ustring& title, FileChooserAction action, const Glib::ustring& backend);
55 /// @deprecated Use a constructor without the @a backend parameter.
56 FileChooserDialog(const Glib::ustring& title, FileChooserAction action, const Glib::ustring& backend);
57 _DEPRECATE_IFDEF_END
58 };
59
60 } // namespace Gtk