00001
00002
00003 #ifndef _HILDON_LIBSMM_CONTROLBAR_H
00004 #define _HILDON_LIBSMM_CONTROLBAR_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/scale.h>
00031
00032
00033 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00034 typedef struct _HildonControlbar HildonControlbar;
00035 typedef struct _HildonControlbarClass HildonControlbarClass;
00036 #endif
00037
00038
00039 namespace Hildon
00040 { class Controlbar_Class; }
00041 namespace Hildon
00042 {
00043
00049 class Controlbar : public Gtk::Scale
00050 {
00051 public:
00052 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00053 typedef Controlbar CppObjectType;
00054 typedef Controlbar_Class CppClassType;
00055 typedef HildonControlbar BaseObjectType;
00056 typedef HildonControlbarClass BaseClassType;
00057 #endif
00058
00059 virtual ~Controlbar();
00060
00061 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00062
00063 private:
00064 friend class Controlbar_Class;
00065 static CppClassType controlbar_class_;
00066
00067
00068 Controlbar(const Controlbar&);
00069 Controlbar& operator=(const Controlbar&);
00070
00071 protected:
00072 explicit Controlbar(const Glib::ConstructParams& construct_params);
00073 explicit Controlbar(HildonControlbar* 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 HildonControlbar* gobj() { return reinterpret_cast<HildonControlbar*>(gobject_); }
00085
00087 const HildonControlbar* gobj() const { return reinterpret_cast<HildonControlbar*>(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 virtual void on_end_reached(bool end);
00103 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00104
00105
00106 private:
00107
00108 public:
00109 Controlbar();
00110
00111
00115 void set_value(int value);
00116
00120 int get_value() const;
00121
00125 int get_max() const;
00126
00130 int get_min() const;
00131
00138 void set_max(int max);
00139
00147 void set_min(int min);
00148
00160 void set_range(int min, int max);
00161
00162
00163 Glib::SignalProxy1< void,bool > signal_end_reached();
00164
00165
00166 #ifdef GLIBMM_PROPERTIES_ENABLED
00167
00173 Glib::PropertyProxy<int> property_min() ;
00174 #endif //#GLIBMM_PROPERTIES_ENABLED
00175
00176 #ifdef GLIBMM_PROPERTIES_ENABLED
00177
00183 Glib::PropertyProxy_ReadOnly<int> property_min() const;
00184 #endif //#GLIBMM_PROPERTIES_ENABLED
00185
00186 #ifdef GLIBMM_PROPERTIES_ENABLED
00187
00193 Glib::PropertyProxy<int> property_max() ;
00194 #endif //#GLIBMM_PROPERTIES_ENABLED
00195
00196 #ifdef GLIBMM_PROPERTIES_ENABLED
00197
00203 Glib::PropertyProxy_ReadOnly<int> property_max() const;
00204 #endif //#GLIBMM_PROPERTIES_ENABLED
00205
00206 #ifdef GLIBMM_PROPERTIES_ENABLED
00207
00213 Glib::PropertyProxy<int> property_value() ;
00214 #endif //#GLIBMM_PROPERTIES_ENABLED
00215
00216 #ifdef GLIBMM_PROPERTIES_ENABLED
00217
00223 Glib::PropertyProxy_ReadOnly<int> property_value() const;
00224 #endif //#GLIBMM_PROPERTIES_ENABLED
00225
00226
00227 };
00228
00229 }
00230
00231
00232 namespace Glib
00233 {
00239 Hildon::Controlbar* wrap(HildonControlbar* object, bool take_copy = false);
00240 }
00241
00242
00243 #endif
00244