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 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
00102
00103 protected:
00104
00105
00106
00107 virtual void on_activate();
00108
00109
00110 private:
00111
00112
00113 public:
00114 Entry();
00115
00116 Gtk::Entry* get_gtk_entry();
00117 const Gtk::Entry* get_gtk_entry() const;
00118
00119
00120 void set_history_id(const Glib::ustring& history_id);
00121
00122 Glib::ustring get_history_id() const;
00123
00124 void set_max_saved(guint max_saved);
00125
00126 guint get_max_saved() const;
00127
00128 void prepend_history(bool save, const Glib::ustring& text);
00129
00130 void append_history(bool save, const Glib::ustring& text);
00131
00132 void clear_history();
00133
00134
00135 Glib::SignalProxy0< void > signal_activate();
00136
00137
00144 Glib::PropertyProxy<Glib::ustring> property_history_id() ;
00145
00152 Glib::PropertyProxy_ReadOnly<Glib::ustring> property_history_id() const;
00153
00160 Glib::PropertyProxy_ReadOnly<Gtk::Entry> property_gtk_entry() const;
00161
00162
00163 };
00164
00165 #endif //GNOMEMM_DISABLE_DEPRECATED
00166
00167 }
00168 }
00169
00170
00171 namespace Glib
00172 {
00178 Gnome::UI::Entry* wrap(GnomeEntry* object, bool take_copy = false);
00179 }
00180
00181
00182 #endif
00183