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