entry.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by gtkmmproc -- DO NOT MODIFY!
00003 #ifndef _LIBGNOMEUIMM_ENTRY_H
00004 #define _LIBGNOMEUIMM_ENTRY_H
00005 
00006 
00007 #include <glibmm.h>
00008 
00009 /* $Id: entry.hg,v 1.13 2004/03/30 15:05:27 mxpxpod Exp $ */
00010 
00011 
00012 /* 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/combo.h>
00032 //#include <libgnomeui/gnome-entry.h>
00033 
00034 
00035 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00036 typedef struct _GnomeEntry GnomeEntry;
00037 typedef struct _GnomeEntryClass GnomeEntryClass;
00038 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00039 
00040 
00041 namespace Gnome
00042 {
00043 
00044 namespace UI
00045 { class Entry_Class; } // namespace UI
00046 
00047 } // namespace Gnome
00048 namespace Gnome
00049 {
00050 
00051 namespace UI
00052 {
00053 
00054 #ifndef GNOMEMM_DISABLE_DEPRECATED
00055 
00056 
00057 class Entry
00058 : virtual public Gtk::Combo,
00059   virtual public Gtk::Editable
00060 {
00061   public:
00062 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00063   typedef Entry CppObjectType;
00064   typedef Entry_Class CppClassType;
00065   typedef GnomeEntry BaseObjectType;
00066   typedef GnomeEntryClass BaseClassType;
00067 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00068 
00069   virtual ~Entry();
00070 
00071 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00072 
00073 private:
00074   friend class Entry_Class;
00075   static CppClassType entry_class_;
00076 
00077   // noncopyable
00078   Entry(const Entry&);
00079   Entry& operator=(const Entry&);
00080 
00081 protected:
00082   explicit Entry(const Glib::ConstructParams& construct_params);
00083   explicit Entry(GnomeEntry* castitem);
00084 
00085 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00086 
00087 public:
00088 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00089   static GType get_type()      G_GNUC_CONST;
00090   static GType get_base_type() G_GNUC_CONST;
00091 #endif
00092 
00094   GnomeEntry*       gobj()       { return reinterpret_cast<GnomeEntry*>(gobject_); }
00095 
00097   const GnomeEntry* gobj() const { return reinterpret_cast<GnomeEntry*>(gobject_); }
00098 
00099 
00100 public:
00101   //C++ methods used to invoke GTK+ virtual functions:
00102 #ifdef GLIBMM_VFUNCS_ENABLED
00103 #endif //GLIBMM_VFUNCS_ENABLED
00104 
00105 protected:
00106   //GTK+ Virtual Functions (override these to change behaviour):
00107 #ifdef GLIBMM_VFUNCS_ENABLED
00108 #endif //GLIBMM_VFUNCS_ENABLED
00109 
00110   //Default Signal Handlers::
00111 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00112   virtual void on_activate();
00113 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00114 
00115 
00116 private:
00117 
00118   
00119 public:
00120   Entry();
00121 
00122   Gtk::Entry* get_gtk_entry();
00123   const Gtk::Entry* get_gtk_entry() const;
00124    
00125   
00126   void set_history_id(const Glib::ustring& history_id);
00127   
00128   Glib::ustring get_history_id() const;
00129   
00130   void set_max_saved(guint max_saved);
00131   
00132   guint get_max_saved() const;
00133   
00134   void prepend_history(bool save, const Glib::ustring& text);
00135   
00136   void append_history(bool save, const Glib::ustring& text);
00137   
00138   void clear_history();
00139 
00140   
00141   Glib::SignalProxy0< void > signal_activate();
00142 
00143 
00144   #ifdef GLIBMM_PROPERTIES_ENABLED
00145 
00151   Glib::PropertyProxy<Glib::ustring> property_history_id() ;
00152 #endif //#GLIBMM_PROPERTIES_ENABLED
00153 
00154 #ifdef GLIBMM_PROPERTIES_ENABLED
00155 
00161   Glib::PropertyProxy_ReadOnly<Glib::ustring> property_history_id() const;
00162 #endif //#GLIBMM_PROPERTIES_ENABLED
00163 
00164   #ifdef GLIBMM_PROPERTIES_ENABLED
00165 
00171   Glib::PropertyProxy_ReadOnly<Gtk::Entry> property_gtk_entry() const;
00172 #endif //#GLIBMM_PROPERTIES_ENABLED
00173 
00174 
00175 };
00176 
00177 #endif //GNOMEMM_DISABLE_DEPRECATED
00178 
00179 } /* namespace UI */
00180 } /* namespace Gnome */
00181 
00182 
00183 namespace Glib
00184 {
00190   Gnome::UI::Entry* wrap(GnomeEntry* object, bool take_copy = false);
00191 } //namespace Glib
00192 
00193 
00194 #endif /* _LIBGNOMEUIMM_ENTRY_H */
00195 

Generated on Mon Sep 25 16:27:23 2006 for libgnomeuimm by  doxygen 1.4.7