libgnomeuimm 2.28.0
|
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 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/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 00091 00092 static GType get_base_type() G_GNUC_CONST; 00093 #endif 00094 00096 GnomeEntry* gobj() { return reinterpret_cast<GnomeEntry*>(gobject_); } 00097 00099 const GnomeEntry* gobj() const { return reinterpret_cast<GnomeEntry*>(gobject_); } 00100 00101 00102 public: 00103 //C++ methods used to invoke GTK+ virtual functions: 00104 #ifdef GLIBMM_VFUNCS_ENABLED 00105 #endif //GLIBMM_VFUNCS_ENABLED 00106 00107 protected: 00108 //GTK+ Virtual Functions (override these to change behaviour): 00109 #ifdef GLIBMM_VFUNCS_ENABLED 00110 #endif //GLIBMM_VFUNCS_ENABLED 00111 00112 //Default Signal Handlers:: 00113 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED 00114 virtual void on_activate(); 00115 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED 00116 00117 00118 private: 00119 00120 00121 public: 00122 Entry(); 00123 00124 Gtk::Entry* get_gtk_entry(); 00125 const Gtk::Entry* get_gtk_entry() const; 00126 00127 00128 void set_history_id(const Glib::ustring& history_id); 00129 00130 Glib::ustring get_history_id() const; 00131 00132 void set_max_saved(guint max_saved); 00133 00134 guint get_max_saved() const; 00135 00136 void prepend_history(bool save, const Glib::ustring& text); 00137 00138 void append_history(bool save, const Glib::ustring& text); 00139 00140 void clear_history(); 00141 00142 00148 Glib::SignalProxy0< void > signal_activate(); 00149 00150 00151 #ifdef GLIBMM_PROPERTIES_ENABLED 00152 00158 Glib::PropertyProxy<Glib::ustring> property_history_id() ; 00159 #endif //#GLIBMM_PROPERTIES_ENABLED 00160 00161 #ifdef GLIBMM_PROPERTIES_ENABLED 00162 00168 Glib::PropertyProxy_ReadOnly<Glib::ustring> property_history_id() const; 00169 #endif //#GLIBMM_PROPERTIES_ENABLED 00170 00171 #ifdef GLIBMM_PROPERTIES_ENABLED 00172 00178 Glib::PropertyProxy_ReadOnly<Gtk::Entry> property_gtk_entry() const; 00179 #endif //#GLIBMM_PROPERTIES_ENABLED 00180 00181 00182 }; 00183 00184 #endif //GNOMEMM_DISABLE_DEPRECATED 00185 00186 } /* namespace UI */ 00187 } /* namespace Gnome */ 00188 00189 00190 namespace Glib 00191 { 00200 Gnome::UI::Entry* wrap(GnomeEntry* object, bool take_copy = false); 00201 } //namespace Glib 00202 00203 00204 #endif /* _LIBGNOMEUIMM_ENTRY_H */ 00205