Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

file-entry.h

Go to the documentation of this file.
00001 // -*- c++ -*- 00002 // Generated by gtkmmproc -- DO NOT MODIFY! 00003 #ifndef _LIBGNOMEUIMM_FILE_ENTRY_H 00004 #define _LIBGNOMEUIMM_FILE_ENTRY_H 00005 00006 #include <glibmm.h> 00007 00008 /* $Id: file-entry.hg,v 1.12 2003/01/04 20:16:28 murrayc Exp $ */ 00009 00010 00011 /* file-entry.hg 00012 * 00013 * Copyright (C) 1999 The Gtk-- Development Team 00014 * 00015 * This library is free software; you can redistribute it and/or 00016 * modify it under the terms of the GNU Library General Public 00017 * License as published by the Free Software Foundation; either 00018 * version 2 of the License, or (at your option) any later version. 00019 * 00020 * This library is distributed in the hope that it will be useful, 00021 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00022 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00023 * Library General Public License for more details. 00024 * 00025 * You should have received a copy of the GNU Library General Public 00026 * License along with this library; if not, write to the Free 00027 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00028 */ 00029 00030 #include <gtkmm/box.h> 00031 #include <gtkmm/editable.h> 00032 //#include <libgnomeui/gnome-file-entry.h> 00033 00034 00035 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00036 typedef struct _GnomeFileEntry GnomeFileEntry; 00037 typedef struct _GnomeFileEntryClass GnomeFileEntryClass; 00038 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ 00039 00040 00041 namespace Gnome 00042 { 00043 00044 namespace UI 00045 { class FileEntry_Class; } // namespace UI 00046 00047 } // namespace Gnome 00048 namespace Gnome 00049 { 00050 00051 namespace UI 00052 { 00053 00054 00055 class FileEntry 00056 : public Gtk::VBox, 00057 public Gtk::Editable 00058 { 00059 public: 00060 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00061 typedef FileEntry CppObjectType; 00062 typedef FileEntry_Class CppClassType; 00063 typedef GnomeFileEntry BaseObjectType; 00064 typedef GnomeFileEntryClass BaseClassType; 00065 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ 00066 00067 virtual ~FileEntry(); 00068 00069 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00070 00071 private: 00072 friend class FileEntry_Class; 00073 static CppClassType fileentry_class_; 00074 00075 // noncopyable 00076 FileEntry(const FileEntry&); 00077 FileEntry& operator=(const FileEntry&); 00078 00079 protected: 00080 explicit FileEntry(const Glib::ConstructParams& construct_params); 00081 explicit FileEntry(GnomeFileEntry* castitem); 00082 00083 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ 00084 00085 public: 00086 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00087 static GType get_type() G_GNUC_CONST; 00088 static GType get_base_type() G_GNUC_CONST; 00089 #endif 00090 00092 GnomeFileEntry* gobj() { return reinterpret_cast<GnomeFileEntry*>(gobject_); } 00093 00095 const GnomeFileEntry* gobj() const { return reinterpret_cast<GnomeFileEntry*>(gobject_); } 00096 00097 00098 public: 00099 //C++ methods used to invoke GTK+ virtual functions: 00100 00101 protected: 00102 //GTK+ Virtual Functions (override these to change behaviour): 00103 00104 //Default Signal Handlers:: 00105 virtual void on_browse_clicked(); 00106 virtual void on_activate(); 00107 00108 00109 private: 00110 00111 00112 public: 00113 FileEntry(); 00114 00115 FileEntry(const Glib::ustring& history_id, const Glib::ustring& browse_dialog_title); 00116 00117 00118 Gtk::Widget* gnome_entry(); 00119 00120 Gtk::Widget* gtk_entry(); 00121 00122 00123 void set_title (const Glib::ustring& browse_dialog_title); 00124 00125 void set_default_path(const Glib::ustring& path); 00126 00127 void set_directory_entry(bool directory_entry = true); 00128 00129 bool get_directory_entry() const; 00130 00131 Glib::ustring get_full_path(bool file_must_exist) const; 00132 00133 void set_filename(const Glib::ustring& filename); 00134 00135 void set_modal(bool is_modal = true); 00136 00137 bool get_modal() const; 00138 00139 00144 Glib::SignalProxy0<void> signal_browse_clicked(); 00145 ; 00146 00151 Glib::SignalProxy0<void> signal_activate(); 00152 ; 00153 00154 00155 }; 00156 00157 } /* namespace UI */ 00158 } /* namespace Gnome */ 00159 00160 00161 namespace Glib 00162 { 00164 Gnome::UI::FileEntry* wrap(GnomeFileEntry* object, bool take_copy = false); 00165 } 00166 #endif /* _LIBGNOMEUIMM_FILE_ENTRY_H */ 00167

Generated on Tue Jul 20 13:46:47 2004 for libgnomeuimm by doxygen 1.3.7