00001
00002
00003 #ifndef _HILDON_LIBSMM_RANGE_EDITOR_H
00004 #define _HILDON_LIBSMM_RANGE_EDITOR_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
00032
00033 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00034 typedef struct _HildonRangeEditor HildonRangeEditor;
00035 typedef struct _HildonRangeEditorClass HildonRangeEditorClass;
00036 #endif
00037
00038
00039 namespace Hildon
00040 { class RangeEditor_Class; }
00041 namespace Hildon
00042 {
00043
00049 class RangeEditor : public Gtk::Container
00050 {
00051 public:
00052 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00053 typedef RangeEditor CppObjectType;
00054 typedef RangeEditor_Class CppClassType;
00055 typedef HildonRangeEditor BaseObjectType;
00056 typedef HildonRangeEditorClass BaseClassType;
00057 #endif
00058
00059 virtual ~RangeEditor();
00060
00061 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00062
00063 private:
00064 friend class RangeEditor_Class;
00065 static CppClassType rangeeditor_class_;
00066
00067
00068 RangeEditor(const RangeEditor&);
00069 RangeEditor& operator=(const RangeEditor&);
00070
00071 protected:
00072 explicit RangeEditor(const Glib::ConstructParams& construct_params);
00073 explicit RangeEditor(HildonRangeEditor* castitem);
00074
00075 #endif
00076
00077 public:
00078 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00079 static GType get_type() G_GNUC_CONST;
00080 static GType get_base_type() G_GNUC_CONST;
00081 #endif
00082
00084 HildonRangeEditor* gobj() { return reinterpret_cast<HildonRangeEditor*>(gobject_); }
00085
00087 const HildonRangeEditor* gobj() const { return reinterpret_cast<HildonRangeEditor*>(gobject_); }
00088
00089
00090 public:
00091
00092 #ifdef GLIBMM_VFUNCS_ENABLED
00093 #endif //GLIBMM_VFUNCS_ENABLED
00094
00095 protected:
00096
00097 #ifdef GLIBMM_VFUNCS_ENABLED
00098 #endif //GLIBMM_VFUNCS_ENABLED
00099
00100
00101 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00102 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00103
00104
00105 private:
00106
00107 public:
00108 RangeEditor();
00109
00110 explicit RangeEditor(const Glib::ustring& separator);
00111
00112
00119 void set_range(int start, int end);
00120
00125 void get_range(int& start, int& end) const;
00126
00131 void set_limits(int start, int end);
00132
00133
00134 void set_lower(int value);
00135
00136 void set_higher(int value);
00137
00138 int get_lower() const;
00139
00140 int get_higher() const;
00141
00142 void set_min (int value);
00143
00144 void set_max (int value);
00145
00146 int get_min() const;
00147
00148 int get_max() const;
00149
00150 void set_separator(const Glib::ustring& separator);
00151
00152 Glib::ustring get_separator() const;
00153
00154 #ifdef GLIBMM_PROPERTIES_ENABLED
00155
00161 Glib::PropertyProxy<int> property_min() ;
00162 #endif //#GLIBMM_PROPERTIES_ENABLED
00163
00164 #ifdef GLIBMM_PROPERTIES_ENABLED
00165
00171 Glib::PropertyProxy_ReadOnly<int> property_min() const;
00172 #endif //#GLIBMM_PROPERTIES_ENABLED
00173
00174 #ifdef GLIBMM_PROPERTIES_ENABLED
00175
00181 Glib::PropertyProxy<int> property_max() ;
00182 #endif //#GLIBMM_PROPERTIES_ENABLED
00183
00184 #ifdef GLIBMM_PROPERTIES_ENABLED
00185
00191 Glib::PropertyProxy_ReadOnly<int> property_max() const;
00192 #endif //#GLIBMM_PROPERTIES_ENABLED
00193
00194 #ifdef GLIBMM_PROPERTIES_ENABLED
00195
00201 Glib::PropertyProxy<int> property_lower() ;
00202 #endif //#GLIBMM_PROPERTIES_ENABLED
00203
00204 #ifdef GLIBMM_PROPERTIES_ENABLED
00205
00211 Glib::PropertyProxy_ReadOnly<int> property_lower() const;
00212 #endif //#GLIBMM_PROPERTIES_ENABLED
00213
00214 #ifdef GLIBMM_PROPERTIES_ENABLED
00215
00221 Glib::PropertyProxy<int> property_higher() ;
00222 #endif //#GLIBMM_PROPERTIES_ENABLED
00223
00224 #ifdef GLIBMM_PROPERTIES_ENABLED
00225
00231 Glib::PropertyProxy_ReadOnly<int> property_higher() const;
00232 #endif //#GLIBMM_PROPERTIES_ENABLED
00233
00234 #ifdef GLIBMM_PROPERTIES_ENABLED
00235
00241 Glib::PropertyProxy<Glib::ustring> property_separator() ;
00242 #endif //#GLIBMM_PROPERTIES_ENABLED
00243
00244 #ifdef GLIBMM_PROPERTIES_ENABLED
00245
00251 Glib::PropertyProxy_ReadOnly<Glib::ustring> property_separator() const;
00252 #endif //#GLIBMM_PROPERTIES_ENABLED
00253
00254
00255 };
00256
00257 }
00258
00259
00260 namespace Glib
00261 {
00267 Hildon::RangeEditor* wrap(HildonRangeEditor* object, bool take_copy = false);
00268 }
00269
00270
00271 #endif
00272