00001
00002
00003 #ifndef _LIBGNOMEUIMM_ENTRY_H
00004 #define _LIBGNOMEUIMM_ENTRY_H
00005
00006 #include <glibmm.h>
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #include <gtkmm/combo.h>
00031
00032
00033
00034 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00035 typedef struct _GnomeEntry GnomeEntry;
00036 typedef struct _GnomeEntryClass GnomeEntryClass;
00037 #endif
00038
00039
00040 namespace Gnome
00041 {
00042
00043 namespace UI
00044 { class Entry_Class; }
00045
00046 }
00047 namespace Gnome
00048 {
00049
00050 namespace UI
00051 {
00052
00053 #ifndef GNOMEMM_DISABLE_DEPRECATED
00054
00055
00056 class Entry
00057 : virtual public Gtk::Combo,
00058 virtual public Gtk::Editable
00059 {
00060 public:
00061 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00062 typedef Entry CppObjectType;
00063 typedef Entry_Class CppClassType;
00064 typedef GnomeEntry BaseObjectType;
00065 typedef GnomeEntryClass BaseClassType;
00066 #endif
00067
00068 virtual ~Entry();
00069
00070 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00071
00072 private:
00073 friend class Entry_Class;
00074 static CppClassType entry_class_;
00075
00076
00077 Entry(const Entry&);
00078 Entry& operator=(const Entry&);
00079
00080 protected:
00081 explicit Entry(const Glib::ConstructParams& construct_params);
00082 explicit Entry(GnomeEntry* castitem);
00083
00084 #endif
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 GnomeEntry* gobj() { return reinterpret_cast<GnomeEntry*>(gobject_); }
00094
00096 const GnomeEntry* gobj() const { return reinterpret_cast<GnomeEntry*>(gobject_); }
00097
00098
00099 public:
00100
00101
00102 protected:
00103
00104
00105
00106 virtual void on_activate();
00107
00108
00109 private:
00110
00111
00112 public:
00113 Entry();
00114
00115 Gtk::Entry* get_gtk_entry();
00116 const Gtk::Entry* get_gtk_entry() const;
00117
00118
00119 void set_history_id(const Glib::ustring& history_id);
00120
00121 Glib::ustring get_history_id() const;
00122
00123 void set_max_saved(guint max_saved);
00124
00125 guint get_max_saved() const;
00126
00127 void prepend_history(bool save, const Glib::ustring& text);
00128
00129 void append_history(bool save, const Glib::ustring& text);
00130
00131 void clear_history();
00132
00133
00134 Glib::SignalProxy0< void > signal_activate();
00135
00136
00143 Glib::PropertyProxy<Glib::ustring> property_history_id() ;
00144
00151 Glib::PropertyProxy_ReadOnly<Glib::ustring> property_history_id() const;
00152
00159 Glib::PropertyProxy_ReadOnly<Gtk::Entry> property_gtk_entry() const;
00160
00161
00162 };
00163
00164 #endif //GNOMEMM_DISABLE_DEPRECATED
00165
00166 }
00167 }
00168
00169
00170 namespace Glib
00171 {
00177 Gnome::UI::Entry* wrap(GnomeEntry* object, bool take_copy = false);
00178 }
00179 #endif
00180