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
00054 class Entry
00055 :
virtual public Gtk::Combo,
00056
virtual public Gtk::Editable
00057 {
00058
public:
00059
#ifndef DOXYGEN_SHOULD_SKIP_THIS
00060
typedef Entry CppObjectType;
00061
typedef Entry_Class CppClassType;
00062
typedef GnomeEntry BaseObjectType;
00063
typedef GnomeEntryClass BaseClassType;
00064
#endif
00065
00066
virtual ~Entry();
00067
00068
#ifndef DOXYGEN_SHOULD_SKIP_THIS
00069
00070
private:
00071
friend class Entry_Class;
00072
static CppClassType entry_class_;
00073
00074
00075
Entry(
const Entry&);
00076
Entry& operator=(
const Entry&);
00077
00078
protected:
00079
explicit Entry(
const Glib::ConstructParams& construct_params);
00080
explicit Entry(GnomeEntry* castitem);
00081
00082
#endif
00083
00084
public:
00085
#ifndef DOXYGEN_SHOULD_SKIP_THIS
00086
static GType get_type() G_GNUC_CONST;
00087
static GType get_base_type() G_GNUC_CONST;
00088
#endif
00089
00091 GnomeEntry*
gobj() {
return reinterpret_cast<GnomeEntry*>(gobject_); }
00092
00094 const GnomeEntry*
gobj()
const {
return reinterpret_cast<GnomeEntry*>(gobject_); }
00095
00096
00097
public:
00098
00099
00100
protected:
00101
00102
00103
00104
virtual void on_activate();
00105
00106
00107
private:
00108
00109
00110
public:
00111
Entry();
00112
00113
Gtk::Entry*
get_gtk_entry();
00114
const Gtk::Entry*
get_gtk_entry()
const;
00115
00116
00117
void set_history_id(
const Glib::ustring& history_id);
00118
00119 Glib::ustring get_history_id()
const;
00120
00121
void set_max_saved(guint max_saved);
00122
00123 guint get_max_saved() const;
00124
00125
void prepend_history(
bool save, const Glib::ustring& text);
00126
00127
void append_history(
bool save, const Glib::ustring& text);
00128
00129
void clear_history();
00130
00131
00136 Glib::SignalProxy0<
void> signal_activate();
00137
00138
00144 Glib::PropertyProxy<Glib::ustring> property_history_id();
00145
00151 Glib::PropertyProxy_ReadOnly<Gtk::
Entry> property_gtk_entry();
00152
00153
00154 };
00155
00156 }
00157 }
00158
00159
00160 namespace Glib
00161 {
00163
Gnome::UI::Entry*
wrap(GnomeEntry* object,
bool take_copy =
false);
00164 }
00165
#endif
00166