add new sigc++2 directory
[ardour.git] / libs / gtkmm2 / gtk / gtkmm / filechooserdialog.h
1 // -*- c++ -*-
2 // Generated by gtkmmproc -- DO NOT MODIFY!
3 #ifndef _GTKMM_FILECHOOSERDIALOG_H
4 #define _GTKMM_FILECHOOSERDIALOG_H
5
6
7 #include <glibmm.h>
8
9 /* $Id$ */
10
11 /* filechooserdialog.h
12  *
13  * Copyright (C) 1998-2002 The gtkmm Development Team
14  *
15  * This library is free software; you can redistribute it and/or
16  * modify it under the terms of the GNU Library General Public
17  * License as published by the Free Software Foundation; either
18  * version 2 of the License, or (at your option) any later version.
19  *
20  * This library is distributed in the hope that it will be useful,
21  * but WITHOUT ANY WARRANTY; without even the implied warranty of
22  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
23  * Library General Public License for more details.
24  *
25  * You should have received a copy of the GNU Library General Public
26  * License along with this library; if not, write to the Free
27  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
28  */
29
30 #include <gtkmm/dialog.h>
31 #include <gtkmm/filechooser.h>
32
33
34 #ifndef DOXYGEN_SHOULD_SKIP_THIS
35 typedef struct _GtkFileChooserDialog GtkFileChooserDialog;
36 typedef struct _GtkFileChooserDialogClass GtkFileChooserDialogClass;
37 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
38
39
40 namespace Gtk
41 { class FileChooserDialog_Class; } // namespace Gtk
42 namespace Gtk
43 {
44
45 /** Convenient file chooser window.
46  *
47  * @ingroup Dialogs
48  */
49
50 class FileChooserDialog
51   : public Dialog,
52     public FileChooser
53 {
54   public:
55 #ifndef DOXYGEN_SHOULD_SKIP_THIS
56   typedef FileChooserDialog CppObjectType;
57   typedef FileChooserDialog_Class CppClassType;
58   typedef GtkFileChooserDialog BaseObjectType;
59   typedef GtkFileChooserDialogClass BaseClassType;
60 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
61
62   virtual ~FileChooserDialog();
63
64 #ifndef DOXYGEN_SHOULD_SKIP_THIS
65
66 private:
67   friend class FileChooserDialog_Class;
68   static CppClassType filechooserdialog_class_;
69
70   // noncopyable
71   FileChooserDialog(const FileChooserDialog&);
72   FileChooserDialog& operator=(const FileChooserDialog&);
73
74 protected:
75   explicit FileChooserDialog(const Glib::ConstructParams& construct_params);
76   explicit FileChooserDialog(GtkFileChooserDialog* castitem);
77
78 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
79
80 public:
81 #ifndef DOXYGEN_SHOULD_SKIP_THIS
82   static GType get_type()      G_GNUC_CONST;
83   static GType get_base_type() G_GNUC_CONST;
84 #endif
85
86   ///Provides access to the underlying C GtkObject.
87   GtkFileChooserDialog*       gobj()       { return reinterpret_cast<GtkFileChooserDialog*>(gobject_); }
88
89   ///Provides access to the underlying C GtkObject.
90   const GtkFileChooserDialog* gobj() const { return reinterpret_cast<GtkFileChooserDialog*>(gobject_); }
91
92
93 public:
94   //C++ methods used to invoke GTK+ virtual functions:
95 #ifdef GLIBMM_VFUNCS_ENABLED
96 #endif //GLIBMM_VFUNCS_ENABLED
97
98 protected:
99   //GTK+ Virtual Functions (override these to change behaviour):
100 #ifdef GLIBMM_VFUNCS_ENABLED
101 #endif //GLIBMM_VFUNCS_ENABLED
102
103   //Default Signal Handlers::
104 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
105 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
106
107
108 private:
109
110   
111 public:
112   
113   explicit FileChooserDialog(Gtk::Window& parent, const Glib::ustring& title, FileChooserAction action = FILE_CHOOSER_ACTION_OPEN);
114   explicit FileChooserDialog(const Glib::ustring& title, FileChooserAction action = FILE_CHOOSER_ACTION_OPEN);
115
116   
117   explicit FileChooserDialog(Gtk::Window& parent, const Glib::ustring& title, FileChooserAction action, const Glib::ustring& backend);
118   explicit FileChooserDialog(const Glib::ustring& title, FileChooserAction action, const Glib::ustring& backend);
119
120
121 };
122
123 } // namespace Gtk
124
125
126 namespace Glib
127 {
128   /** A Glib::wrap() method for this object.
129    * 
130    * @param object The C instance.
131    * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
132    * @result A C++ instance that wraps this C instance.
133    *
134    * @relates Gtk::FileChooserDialog
135    */
136   Gtk::FileChooserDialog* wrap(GtkFileChooserDialog* object, bool take_copy = false);
137 } //namespace Glib
138
139
140 #endif /* _GTKMM_FILECHOOSERDIALOG_H */
141