rawgrid.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by gtkmmproc -- DO NOT MODIFY!
00003 #ifndef _LIBGNOMEDBMM_RAWGRID_H
00004 #define _LIBGNOMEDBMM_RAWGRID_H
00005 
00006 
00007 #include <glibmm.h>
00008 
00009 // -*- C++ -*- // 
00010 
00011 /* rawgrid.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 <gtkmm/treeview.h>
00031 #include <gtkmm/menu.h>
00032 #include <libgdamm/datamodel.h>
00033 #include <libgnomedbmm/datawidget.h>
00034 
00035 
00036 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00037 typedef struct _GnomeDbRawGrid GnomeDbRawGrid;
00038 typedef struct _GnomeDbRawGridClass GnomeDbRawGridClass;
00039 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00040 
00041 
00042 namespace Gnome
00043 {
00044 
00045 namespace Db
00046 { class RawGrid_Class; } // namespace Db
00047 
00048 } // namespace Gnome
00049 namespace Gnome
00050 {
00051 
00052 namespace Db
00053 {
00054 
00055 
00056 class RawGrid : public Gtk::TreeView, public DataWidget
00057 {
00058   public:
00059 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00060   typedef RawGrid CppObjectType;
00061   typedef RawGrid_Class CppClassType;
00062   typedef GnomeDbRawGrid BaseObjectType;
00063   typedef GnomeDbRawGridClass BaseClassType;
00064 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00065 
00066   virtual ~RawGrid();
00067 
00068 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00069 
00070 private:
00071   friend class RawGrid_Class;
00072   static CppClassType rawgrid_class_;
00073 
00074   // noncopyable
00075   RawGrid(const RawGrid&);
00076   RawGrid& operator=(const RawGrid&);
00077 
00078 protected:
00079   explicit RawGrid(const Glib::ConstructParams& construct_params);
00080   explicit RawGrid(GnomeDbRawGrid* 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   GnomeDbRawGrid*       gobj()       { return reinterpret_cast<GnomeDbRawGrid*>(gobject_); }
00092 
00094   const GnomeDbRawGrid* gobj() const { return reinterpret_cast<GnomeDbRawGrid*>(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   virtual void on_double_clicked(int row);
00110   virtual void on_populate_popup(Gtk::Menu* menu);
00111   virtual void on_selection_changed(bool row_selected);
00112 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00113 
00114 
00115 private:
00116 
00117 
00118 public:
00119   explicit RawGrid(const Glib::RefPtr<Gda::DataModel>& model);
00120 
00121   #ifndef DOXYGEN_SHOULD_SKIP_THIS
00122   // I wonder why there is no such thing in glibmm.
00123   // Is this really that uncommon? armin.
00124   struct IntTraits
00125   {
00126     typedef int  CppType;
00127     typedef gpointer CType;
00128     typedef gpointer CTypeNonConst;
00129 
00130     static CType   to_c_type      (const CppType& obj) { return GINT_TO_POINTER(obj); }
00131     static CType   to_c_type      (const CType&   obj) { return GINT_TO_POINTER(obj); }
00132     static CppType to_cpp_type    (const CType&   obj) { return GPOINTER_TO_INT(obj); }
00133     static void    release_c_type (const CType&)       {}
00134   };
00135   #endif //DOXYGEN_SHOULD_SKIP_THIS
00136 
00137   typedef Glib::ListHandle<int, IntTraits> IntListHandle;
00138 
00139   // Fully qualify the IntListHandle type here to make it available in
00140   // the generated code.
00141    
00142 
00146   RawGrid::IntListHandle get_selection() const;
00147 
00148   
00151   void set_sample_size(int sample_size);
00152   
00155   void set_sample_start(int sample_start);
00156 
00157   #ifdef GLIBMM_PROPERTIES_ENABLED
00158 
00164   Glib::PropertyProxy<bool> property_global_actions_visible() ;
00165 #endif //#GLIBMM_PROPERTIES_ENABLED
00166 
00167 #ifdef GLIBMM_PROPERTIES_ENABLED
00168 
00174   Glib::PropertyProxy_ReadOnly<bool> property_global_actions_visible() const;
00175 #endif //#GLIBMM_PROPERTIES_ENABLED
00176 
00177   #ifdef GLIBMM_PROPERTIES_ENABLED
00178 
00184   Glib::PropertyProxy<bool> property_info_cell_visible() ;
00185 #endif //#GLIBMM_PROPERTIES_ENABLED
00186 
00187 #ifdef GLIBMM_PROPERTIES_ENABLED
00188 
00194   Glib::PropertyProxy_ReadOnly<bool> property_info_cell_visible() const;
00195 #endif //#GLIBMM_PROPERTIES_ENABLED
00196 
00197   #ifdef GLIBMM_PROPERTIES_ENABLED
00198 
00204   Glib::PropertyProxy< Glib::RefPtr<Gda::DataModel> > property_model() ;
00205 #endif //#GLIBMM_PROPERTIES_ENABLED
00206 
00207 #ifdef GLIBMM_PROPERTIES_ENABLED
00208 
00214   Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gda::DataModel> > property_model() const;
00215 #endif //#GLIBMM_PROPERTIES_ENABLED
00216 
00217 
00218   // The type in libgnomedb_signals.defs is gpointer rather than GtkMenu*,
00219   // so we need some casting here.
00220   // TODO: I fixed that in libgda already. We should fix it in libgnomedb too. murrayc.
00221    
00222 
00228   Glib::SignalProxy1< void,int > signal_double_clicked();
00229 
00230   
00236   Glib::SignalProxy1< void,Gtk::Menu* > signal_populate_popup();
00237 
00238   
00244   Glib::SignalProxy1< void,bool > signal_selection_changed();
00245 
00246 
00247 };
00248 
00249 } // namespace Db
00250 } // namespace Gnome
00251 
00252 
00253 namespace Glib
00254 {
00260   Gnome::Db::RawGrid* wrap(GnomeDbRawGrid* object, bool take_copy = false);
00261 } //namespace Glib
00262 
00263 
00264 #endif /* _LIBGNOMEDBMM_RAWGRID_H */
00265 

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