00001
00002
00003 #ifndef _LIBGNOMEUIMM_ENTRY_H
00004 #define _LIBGNOMEUIMM_ENTRY_H
00005
00006
00007 #include <glibmm.h>
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031 #include <gtkmm/combo.h>
00032
00033
00034
00035 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00036 typedef struct _GnomeEntry GnomeEntry;
00037 typedef struct _GnomeEntryClass GnomeEntryClass;
00038 #endif
00039
00040
00041 namespace Gnome
00042 {
00043
00044 namespace UI
00045 { class Entry_Class; }
00046
00047 }
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
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
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
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
00104 #ifdef GLIBMM_VFUNCS_ENABLED
00105 #endif //GLIBMM_VFUNCS_ENABLED
00106
00107 protected:
00108
00109 #ifdef GLIBMM_VFUNCS_ENABLED
00110 #endif //GLIBMM_VFUNCS_ENABLED
00111
00112
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 }
00187 }
00188
00189
00190 namespace Glib
00191 {
00200 Gnome::UI::Entry* wrap(GnomeEntry* object, bool take_copy = false);
00201 }
00202
00203
00204 #endif
00205