GFC Logo GFC Title Logo
Reference Manual
Main Page  |  Namespace List  |  Alphabetical List  |  Class List  |  File List

filechooserdialog.hh

Go to the documentation of this file.
00001 /* GFC-UI: GTK+ Foundation Classes (User Interface Library) 00002 * Copyright (C) 2004 The GFC Development Team. 00003 * 00004 * This program is free software; you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License as published by 00006 * the Free Software Foundation; either version 2 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU Library General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU Library General Public License 00015 * along with this program; if not, write to the Free Software 00016 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00017 */ 00018 00023 00024 #ifndef GFC_GTK_FILE_CHOOSER_DIALOG_HH 00025 #define GFC_GTK_FILE_CHOOSER_DIALOG_HH 00026 00027 #ifndef GFC_GTK_DIALOG_HH 00028 #include <gfc/gtk/dialog.hh> 00029 #endif 00030 00031 #ifndef GFC_GTK_FILE_CHOOSER_HH 00032 #include <gfc/gtk/filechooser.hh> 00033 #endif 00034 00035 #ifndef __GTK_FILE_CHOOSER_DIALOG_H__ 00036 #include <gtk/gtkfilechooserdialog.h> 00037 #endif 00038 00039 namespace GFC { 00040 00041 namespace Gtk { 00042 00090 00091 class FileChooserDialog : public Dialog, public FileChooser 00092 { 00093 friend class G::Object; 00094 00095 FileChooserDialog(const FileChooserDialog&); 00096 FileChooserDialog& operator=(const FileChooserDialog&); 00097 00098 protected: 00101 00102 explicit FileChooserDialog(GtkFileChooserDialog *dialog, bool owns_reference = false); 00109 00111 00112 public: 00115 00116 FileChooserDialog(const char *title, FileChooserAction action, const char *backend = 0); 00117 FileChooserDialog(const String& title, FileChooserAction action, const char *backend = 0); 00122 00123 FileChooserDialog(const char *title, Window *parent, FileChooserAction action, const char *backend = 0); 00124 FileChooserDialog(const String& title, Window *parent, FileChooserAction action, const char *backend = 0); 00130 00131 virtual ~FileChooserDialog(); 00133 00137 00138 GtkFileChooserDialog* gtk_file_chooser_dialog() const; 00140 00141 operator GtkFileChooserDialog* () const; 00143 00145 }; 00146 00152 00153 class FileChooserOpenDialog : public FileChooserDialog 00154 { 00155 FileChooserOpenDialog(const FileChooserOpenDialog&); 00156 FileChooserOpenDialog& operator=(const FileChooserOpenDialog&); 00157 00158 public: 00161 00162 FileChooserOpenDialog(Window *parent = 0); 00165 00166 FileChooserOpenDialog(const char *title, Window *parent = 0); 00167 FileChooserOpenDialog(const String& title, Window *parent = 0); 00171 00172 virtual ~FileChooserOpenDialog(); 00174 00176 }; 00177 00183 00184 class FileChooserSaveAsDialog : public FileChooserDialog 00185 { 00186 FileChooserSaveAsDialog(const FileChooserSaveAsDialog&); 00187 FileChooserSaveAsDialog& operator=(const FileChooserSaveAsDialog&); 00188 00189 public: 00192 00193 FileChooserSaveAsDialog(Window *parent = 0); 00196 00197 FileChooserSaveAsDialog(const char *title, Window *parent = 0); 00198 FileChooserSaveAsDialog(const String& title, Window *parent = 0); 00202 00203 virtual ~FileChooserSaveAsDialog(); 00205 00207 }; 00208 00209 } // namespace Gtk 00210 00211 } // namespace GFC 00212 00213 #include <gfc/gtk/inline/filechooserdialog.inl> 00214 00215 #endif // GFC_GTK_FILE_CHOOSER_DIALOG_HH 00216

Generated on Tue Aug 24 00:34:31 2004 for GFC-UI by doxygen 1.3.8