Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

entry.h

Go to the documentation of this file.
00001 // -*- c++ -*- 00002 // Generated by gtkmmproc -- DO NOT MODIFY! 00003 #ifndef _LIBGNOMEUIMM_ENTRY_H 00004 #define _LIBGNOMEUIMM_ENTRY_H 00005 00006 #include <glibmm.h> 00007 00008 /* $Id: entry.hg,v 1.12 2003/03/15 10:24:28 murrayc Exp $ */ 00009 00010 00011 /* entry.hg 00012 * 00013 * Copyright (C) 1999 The Gtk-- Development Team 00014 * 00015 * This library is free software; you can redistribute it and/or 00016 * modify it under the terms of the GNU Library General Public 00017 * License as published by the Free Software Foundation; either 00018 * version 2 of the License, or (at your option) any later version. 00019 * 00020 * This library is distributed in the hope that it will be useful, 00021 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00022 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00023 * Library General Public License for more details. 00024 * 00025 * You should have received a copy of the GNU Library General Public 00026 * License along with this library; if not, write to the Free 00027 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00028 */ 00029 00030 #include <gtkmm/combo.h> 00031 //#include <libgnomeui/gnome-entry.h> 00032 00033 00034 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00035 typedef struct _GnomeEntry GnomeEntry; 00036 typedef struct _GnomeEntryClass GnomeEntryClass; 00037 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ 00038 00039 00040 namespace Gnome 00041 { 00042 00043 namespace UI 00044 { class Entry_Class; } // namespace UI 00045 00046 } // namespace Gnome 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 /* DOXYGEN_SHOULD_SKIP_THIS */ 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 // noncopyable 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 /* DOXYGEN_SHOULD_SKIP_THIS */ 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 //C++ methods used to invoke GTK+ virtual functions: 00099 00100 protected: 00101 //GTK+ Virtual Functions (override these to change behaviour): 00102 00103 //Default Signal Handlers:: 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 } /* namespace UI */ 00157 } /* namespace Gnome */ 00158 00159 00160 namespace Glib 00161 { 00163 Gnome::UI::Entry* wrap(GnomeEntry* object, bool take_copy = false); 00164 } 00165 #endif /* _LIBGNOMEUIMM_ENTRY_H */ 00166

Generated on Sun Aug 15 02:05:11 2004 for libgnomeuimm by doxygen 1.3.8