1 // Generated by gtkmmproc -- DO NOT MODIFY!
4 #include <gtkmm/filechooserdialog.h>
5 #include <gtkmm/private/filechooserdialog_p.h>
12 * Copyright 2003 The gtkmm Development Team
14 * This library is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU Library General Public
16 * License as published by the Free Software Foundation; either
17 * version 2 of the License, or (at your option) any later version.
19 * This library is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22 * Library General Public License for more details.
24 * You should have received a copy of the GNU Library General Public
25 * License along with this library; if not, write to the Free
26 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
29 #include <gtk/gtkfilechooserdialog.h>
35 FileChooserDialog::FileChooserDialog(Gtk::Window& parent, const Glib::ustring& title, FileChooserAction action)
37 // Mark this class as non-derived to allow C++ vfuncs to be skipped.
39 Gtk::Dialog(Glib::ConstructParams(filechooserdialog_class_.init(), "title",title.c_str(),"action",(GtkFileChooserAction)action, static_cast<char*>(0)))
41 set_transient_for(parent);
44 FileChooserDialog::FileChooserDialog(const Glib::ustring& title, FileChooserAction action)
46 // Mark this class as non-derived to allow C++ vfuncs to be skipped.
48 Gtk::Dialog(Glib::ConstructParams(filechooserdialog_class_.init(), "title",title.c_str(),"action",(GtkFileChooserAction)action, static_cast<char*>(0)))
52 FileChooserDialog::FileChooserDialog(const Glib::ustring& title, FileChooserAction action, const Glib::ustring& backend)
54 // Mark this class as non-derived to allow C++ vfuncs to be skipped.
56 Gtk::Dialog(Glib::ConstructParams(filechooserdialog_class_.init(), "title",title.c_str(),"action",(GtkFileChooserAction)action,"file-system-backend",backend.c_str(), static_cast<char*>(0)))
60 FileChooserDialog::FileChooserDialog(Gtk::Window& parent, const Glib::ustring& title, FileChooserAction action, const Glib::ustring& backend)
62 // Mark this class as non-derived to allow C++ vfuncs to be skipped.
64 Gtk::Dialog(Glib::ConstructParams(filechooserdialog_class_.init(), "title",title.c_str(),"action",(GtkFileChooserAction)action,"file-system-backend",backend.c_str(), static_cast<char*>(0)))
66 set_transient_for(parent);
74 } // anonymous namespace
80 Gtk::FileChooserDialog* wrap(GtkFileChooserDialog* object, bool take_copy)
82 return dynamic_cast<Gtk::FileChooserDialog *> (Glib::wrap_auto ((GObject*)(object), take_copy));
85 } /* namespace Glib */
91 /* The *_Class implementation: */
93 const Glib::Class& FileChooserDialog_Class::init()
95 if(!gtype_) // create the GType if necessary
97 // Glib::Class has to know the class init function to clone custom types.
98 class_init_func_ = &FileChooserDialog_Class::class_init_function;
100 // This is actually just optimized away, apparently with no harm.
101 // Make sure that the parent type has been created.
102 //CppClassParent::CppObjectType::get_type();
104 // Create the wrapper type, with the same class/instance size as the base type.
105 register_derived_type(gtk_file_chooser_dialog_get_type());
107 // Add derived versions of interfaces, if the C type implements any interfaces:
108 FileChooser::add_interface(get_type());
114 void FileChooserDialog_Class::class_init_function(void* g_class, void* class_data)
116 BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
117 CppClassParent::class_init_function(klass, class_data);
119 #ifdef GLIBMM_VFUNCS_ENABLED
120 #endif //GLIBMM_VFUNCS_ENABLED
122 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
123 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
126 #ifdef GLIBMM_VFUNCS_ENABLED
127 #endif //GLIBMM_VFUNCS_ENABLED
129 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
130 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
133 Glib::ObjectBase* FileChooserDialog_Class::wrap_new(GObject* o)
135 return new FileChooserDialog((GtkFileChooserDialog*)(o)); //top-level windows can not be manage()ed.
140 /* The implementation: */
142 FileChooserDialog::FileChooserDialog(const Glib::ConstructParams& construct_params)
144 Gtk::Dialog(construct_params)
148 FileChooserDialog::FileChooserDialog(GtkFileChooserDialog* castitem)
150 Gtk::Dialog((GtkDialog*)(castitem))
154 FileChooserDialog::~FileChooserDialog()
159 FileChooserDialog::CppClassType FileChooserDialog::filechooserdialog_class_; // initialize static member
161 GType FileChooserDialog::get_type()
163 return filechooserdialog_class_.init().get_type();
166 GType FileChooserDialog::get_base_type()
168 return gtk_file_chooser_dialog_get_type();
172 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
173 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
175 #ifdef GLIBMM_VFUNCS_ENABLED
176 #endif //GLIBMM_VFUNCS_ENABLED