entrywrapper.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by gtkmmproc -- DO NOT MODIFY!
00003 #ifndef _LIBGNOMEDBMM_ENTRYWRAPPER_H
00004 #define _LIBGNOMEDBMM_ENTRYWRAPPER_H
00005 
00006 
00007 #include <glibmm.h>
00008 
00009 // -*- C++ -*- // 
00010 
00011 /* entrywrapper.h
00012  * 
00013  * Copyright 2006 libgnomedbmm 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 <libgnomedb/data-entries/gnome-db-entry-wrapper.h>
00031 #include <libgnomedbmm/entryshell.h>
00032 #include <libgnomedbmm/dataentry.h>
00033 
00034 
00035 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00036 typedef struct _GnomeDbEntryWrapper GnomeDbEntryWrapper;
00037 typedef struct _GnomeDbEntryWrapperClass GnomeDbEntryWrapperClass;
00038 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00039 
00040 
00041 namespace Gnome
00042 {
00043 
00044 namespace Db
00045 { class EntryWrapper_Class; } // namespace Db
00046 
00047 } // namespace Gnome
00048 namespace Gnome
00049 {
00050 
00051 namespace Db
00052 {
00053 
00054 
00055 class EntryWrapper : public EntryShell,
00056                      public DataEntry
00057 {
00058   public:
00059 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00060   typedef EntryWrapper CppObjectType;
00061   typedef EntryWrapper_Class CppClassType;
00062   typedef GnomeDbEntryWrapper BaseObjectType;
00063   typedef GnomeDbEntryWrapperClass BaseClassType;
00064 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00065 
00066   virtual ~EntryWrapper();
00067 
00068 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00069 
00070 private:
00071   friend class EntryWrapper_Class;
00072   static CppClassType entrywrapper_class_;
00073 
00074   // noncopyable
00075   EntryWrapper(const EntryWrapper&);
00076   EntryWrapper& operator=(const EntryWrapper&);
00077 
00078 protected:
00079   explicit EntryWrapper(const Glib::ConstructParams& construct_params);
00080   explicit EntryWrapper(GnomeDbEntryWrapper* 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   GnomeDbEntryWrapper*       gobj()       { return reinterpret_cast<GnomeDbEntryWrapper*>(gobject_); }
00092 
00094   const GnomeDbEntryWrapper* gobj() const { return reinterpret_cast<GnomeDbEntryWrapper*>(gobject_); }
00095 
00096 
00097 public:
00098   //C++ methods used to invoke GTK+ virtual functions:
00099 #ifdef GLIBMM_VFUNCS_ENABLED
00100 #endif //GLIBMM_VFUNCS_ENABLED
00101 
00102 protected:
00103   //GTK+ Virtual Functions (override these to change behaviour):
00104 #ifdef GLIBMM_VFUNCS_ENABLED
00105 #endif //GLIBMM_VFUNCS_ENABLED
00106 
00107   //Default Signal Handlers::
00108 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00109 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00110 
00111 
00112 private:
00113 
00114   
00115 public:
00116   
00119   void contents_changed();
00120         
00121   void contents_activated();
00122 
00123   #ifdef GLIBMM_PROPERTIES_ENABLED
00124 
00130   Glib::PropertyProxy<bool> property_set_default_if_invalid() ;
00131 #endif //#GLIBMM_PROPERTIES_ENABLED
00132 
00133 #ifdef GLIBMM_PROPERTIES_ENABLED
00134 
00140   Glib::PropertyProxy_ReadOnly<bool> property_set_default_if_invalid() const;
00141 #endif //#GLIBMM_PROPERTIES_ENABLED
00142 
00143 
00144 protected:
00145   #ifdef GLIBMM_VFUNCS_ENABLED
00146   virtual Gtk::Widget* create_entry_vfunc();
00147 #endif //GLIBMM_VFUNCS_ENABLED
00148 
00149   #ifdef GLIBMM_VFUNCS_ENABLED
00150   virtual void real_set_value_vfunc(const Gda::Value& value);
00151 #endif //GLIBMM_VFUNCS_ENABLED
00152 
00153 
00154   // TODO: This would produce code like return
00155   // (obj->real_get_value_vfunc()).gobj(); I doubt that this is correct, but I
00156   // have no idea how to make this work correctly without hand-coding it. armin.
00157   //_WRAP_VFUNC(Gda::Value real_get_value(), real_get_value)
00158 
00159   // I guess that this has to be hand-coded to get a real C++y API. armin.
00160   //_WRAP_VFUNC(void connect_signals(GCallback callback), real_get_value)
00161 
00162   #ifdef GLIBMM_VFUNCS_ENABLED
00163   virtual bool expand_in_layout_vfunc();
00164 #endif //GLIBMM_VFUNCS_ENABLED
00165 
00166   #ifdef GLIBMM_VFUNCS_ENABLED
00167   virtual void set_editable_vfunc(bool editable);
00168 #endif //GLIBMM_VFUNCS_ENABLED
00169 
00170   #ifdef GLIBMM_VFUNCS_ENABLED
00171   virtual bool value_is_equal_to_vfunc(const Gda::Value& value);
00172 #endif //GLIBMM_VFUNCS_ENABLED
00173 
00174   #ifdef GLIBMM_VFUNCS_ENABLED
00175   virtual bool value_is_null_vfunc();
00176 #endif //GLIBMM_VFUNCS_ENABLED
00177 
00178 
00179 };
00180 
00181 } // namespace Db
00182 } // namespace Gnome
00183 
00184 
00185 namespace Glib
00186 {
00192   Gnome::Db::EntryWrapper* wrap(GnomeDbEntryWrapper* object, bool take_copy = false);
00193 } //namespace Glib
00194 
00195 
00196 #endif /* _LIBGNOMEDBMM_ENTRYWRAPPER_H */
00197 

Generated on Mon Feb 12 16:49:00 2007 for libgnomedbmm by  doxygen 1.4.7