00001
00002
00003 #ifndef _HILDON_LIBSMM_GRID_H
00004 #define _HILDON_LIBSMM_GRID_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 #include <gtkmm/container.h>
00031 #include <hildon-libsmm/grid-item.h>
00032
00033
00034 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00035 typedef struct _HildonGrid HildonGrid;
00036 typedef struct _HildonGridClass HildonGridClass;
00037 #endif
00038
00039
00040 namespace Hildon
00041 { class Grid_Class; }
00042 namespace Hildon
00043 {
00044
00050 class Grid : public Gtk::Container
00051 {
00052 public:
00053 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00054 typedef Grid CppObjectType;
00055 typedef Grid_Class CppClassType;
00056 typedef HildonGrid BaseObjectType;
00057 typedef HildonGridClass BaseClassType;
00058 #endif
00059
00060 virtual ~Grid();
00061
00062 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00063
00064 private:
00065 friend class Grid_Class;
00066 static CppClassType grid_class_;
00067
00068
00069 Grid(const Grid&);
00070 Grid& operator=(const Grid&);
00071
00072 protected:
00073 explicit Grid(const Glib::ConstructParams& construct_params);
00074 explicit Grid(HildonGrid* castitem);
00075
00076 #endif
00077
00078 public:
00079 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00080 static GType get_type() G_GNUC_CONST;
00081 static GType get_base_type() G_GNUC_CONST;
00082 #endif
00083
00085 HildonGrid* gobj() { return reinterpret_cast<HildonGrid*>(gobject_); }
00086
00088 const HildonGrid* gobj() const { return reinterpret_cast<HildonGrid*>(gobject_); }
00089
00090
00091 public:
00092
00093 #ifdef GLIBMM_VFUNCS_ENABLED
00094 #endif //GLIBMM_VFUNCS_ENABLED
00095
00096 protected:
00097
00098 #ifdef GLIBMM_VFUNCS_ENABLED
00099 #endif //GLIBMM_VFUNCS_ENABLED
00100
00101
00102 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00103 virtual void on_activate_child(GridItem* item);
00104 virtual void on_popup_context_menu(GridItem* item);
00105 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00106
00107
00108 private:
00109
00110 public:
00111 Grid();
00112 ;
00113
00114
00119 void set_style(const Glib::ustring& style_name);
00120
00124 Glib::ustring get_style() const;
00125
00126
00130 void set_scrollbar_pos(int scrollbar_pos);
00131
00135 int get_scrollbar_pos() const;
00136
00137
00141 void activate_child(GridItem& item);
00142
00143
00144 Glib::SignalProxy1< void,GridItem* > signal_activate_child();
00145
00146
00147 Glib::SignalProxy1< void,GridItem* > signal_popup_context_menu();
00148
00149
00150 #ifdef GLIBMM_PROPERTIES_ENABLED
00151
00157 Glib::PropertyProxy<Glib::ustring> property_empty_label() ;
00158 #endif //#GLIBMM_PROPERTIES_ENABLED
00159
00160 #ifdef GLIBMM_PROPERTIES_ENABLED
00161
00167 Glib::PropertyProxy_ReadOnly<Glib::ustring> property_empty_label() const;
00168 #endif //#GLIBMM_PROPERTIES_ENABLED
00169
00170 #ifdef GLIBMM_PROPERTIES_ENABLED
00171
00177 Glib::PropertyProxy<Glib::ustring> property_scrollbar_position() ;
00178 #endif //#GLIBMM_PROPERTIES_ENABLED
00179
00180 #ifdef GLIBMM_PROPERTIES_ENABLED
00181
00187 Glib::PropertyProxy_ReadOnly<Glib::ustring> property_scrollbar_position() const;
00188 #endif //#GLIBMM_PROPERTIES_ENABLED
00189
00190
00191 };
00192
00193 }
00194
00195
00196 namespace Glib
00197 {
00203 Hildon::Grid* wrap(HildonGrid* object, bool take_copy = false);
00204 }
00205
00206
00207 #endif
00208