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 Library General Public
00018  * License as published by the Free Software Foundation; either
00019  * version 2 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  * Library General Public License for more details.
00025  *
00026  * You should have received a copy of the GNU Library 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   static GType get_base_type() G_GNUC_CONST;
00090 #endif
00091 
00093   GnomeFileEntry*       gobj()       { return reinterpret_cast<GnomeFileEntry*>(gobject_); }
00094 
00096   const GnomeFileEntry* gobj() const { return reinterpret_cast<GnomeFileEntry*>(gobject_); }
00097 
00098 
00099 public:
00100   //C++ methods used to invoke GTK+ virtual functions:
00101 
00102 protected:
00103   //GTK+ Virtual Functions (override these to change behaviour):
00104 
00105   //Default Signal Handlers::
00106   virtual void on_browse_clicked();
00107   virtual void on_activate();
00108 
00109 
00110 private:
00111 
00112   
00113 public:
00114   FileEntry();
00115 
00116   FileEntry(const Glib::ustring& history_id, const Glib::ustring& browse_dialog_title);
00117 
00118   
00119   Gtk::Widget* gnome_entry();
00120   
00121   Gtk::Widget* gtk_entry();
00122 
00123   
00124   void set_title (const Glib::ustring& browse_dialog_title);
00125   
00126   void set_default_path(const Glib::ustring& path);
00127   
00128   void  set_directory_entry(bool directory_entry = true);
00129   
00130   bool get_directory_entry() const;
00131   
00132   Glib::ustring get_full_path(bool file_must_exist) const;
00133   
00134   void set_filename(const Glib::ustring& filename);
00135   
00136   void set_modal(bool is_modal = true);
00137   
00138   bool get_modal() const;
00139 
00140   
00141   Glib::SignalProxy0< void > signal_browse_clicked();
00142 ;
00143   
00144 
00145   Glib::SignalProxy0< void > signal_activate();
00146 ;
00147 
00148 
00149 };
00150 
00151 } /* namespace UI */
00152 } /* namespace Gnome */ 
00153 
00154 
00155 namespace Glib
00156 {
00162   Gnome::UI::FileEntry* wrap(GnomeFileEntry* object, bool take_copy = false);
00163 } //namespace Glib
00164 
00165 
00166 #endif /* _LIBGNOMEUIMM_FILE_ENTRY_H */
00167 

Generated on Thu Aug 3 20:10:39 2006 for libgnomeuimm by  doxygen 1.4.7