00001
00002
00003 #ifndef _HILDON_LIBSMM_TIME_EDITOR_H
00004 #define _HILDON_LIBSMM_TIME_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 _HildonTimeEditor HildonTimeEditor;
00035 typedef struct _HildonTimeEditorClass HildonTimeEditorClass;
00036 #endif
00037
00038
00039 namespace Hildon
00040 { class TimeEditor_Class; }
00041 namespace Hildon
00042 {
00043
00049 class TimeEditor : public Gtk::Container
00050 {
00051 public:
00052 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00053 typedef TimeEditor CppObjectType;
00054 typedef TimeEditor_Class CppClassType;
00055 typedef HildonTimeEditor BaseObjectType;
00056 typedef HildonTimeEditorClass BaseClassType;
00057 #endif
00058
00059 virtual ~TimeEditor();
00060
00061 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00062
00063 private:
00064 friend class TimeEditor_Class;
00065 static CppClassType timeeditor_class_;
00066
00067
00068 TimeEditor(const TimeEditor&);
00069 TimeEditor& operator=(const TimeEditor&);
00070
00071 protected:
00072 explicit TimeEditor(const Glib::ConstructParams& construct_params);
00073 explicit TimeEditor(HildonTimeEditor* 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 HildonTimeEditor* gobj() { return reinterpret_cast<HildonTimeEditor*>(gobject_); }
00085
00087 const HildonTimeEditor* gobj() const { return reinterpret_cast<HildonTimeEditor*>(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 TimeEditor();
00109
00110
00118 void set_time(guint hours, guint minutes, guint seconds);
00119
00126 void get_time(guint& hours, guint& minutes, guint& seconds);
00127
00128
00133 void set_duration_range(guint min_seconds, guint max_seconds);
00134
00139 void get_duration_range(guint& min_seconds, guint& max_seconds) const;
00140
00141
00147 void set_ticks(guint ticks);
00148
00153 guint get_ticks() const;
00154
00155
00159 void set_show_seconds(bool show_seconds = true);
00160
00165 bool get_show_seconds() const;
00166
00167
00172 void set_duration_mode(bool duration_mode = true);
00173
00178 bool get_duration_mode() const;
00179
00180
00185 void set_duration_min(guint duration_min);
00186
00191 guint get_duration_min() const;
00192
00193
00198 void set_duration_max(guint duration_max);
00199
00204 guint get_duration_max() const;
00205
00206
00212 void set_show_hours(gboolean show=true);
00213
00220 bool get_show_hours();
00221
00222
00223 #ifdef GLIBMM_PROPERTIES_ENABLED
00224
00230 Glib::PropertyProxy<uint> property_ticks() ;
00231 #endif //#GLIBMM_PROPERTIES_ENABLED
00232
00233 #ifdef GLIBMM_PROPERTIES_ENABLED
00234
00240 Glib::PropertyProxy_ReadOnly<uint> property_ticks() const;
00241 #endif //#GLIBMM_PROPERTIES_ENABLED
00242
00243 #ifdef GLIBMM_PROPERTIES_ENABLED
00244
00250 Glib::PropertyProxy<bool> property_show_seconds() ;
00251 #endif //#GLIBMM_PROPERTIES_ENABLED
00252
00253 #ifdef GLIBMM_PROPERTIES_ENABLED
00254
00260 Glib::PropertyProxy_ReadOnly<bool> property_show_seconds() const;
00261 #endif //#GLIBMM_PROPERTIES_ENABLED
00262
00263 #ifdef GLIBMM_PROPERTIES_ENABLED
00264
00270 Glib::PropertyProxy<bool> property_duration_mode() ;
00271 #endif //#GLIBMM_PROPERTIES_ENABLED
00272
00273 #ifdef GLIBMM_PROPERTIES_ENABLED
00274
00280 Glib::PropertyProxy_ReadOnly<bool> property_duration_mode() const;
00281 #endif //#GLIBMM_PROPERTIES_ENABLED
00282
00283 #ifdef GLIBMM_PROPERTIES_ENABLED
00284
00290 Glib::PropertyProxy<uint> property_duration_min() ;
00291 #endif //#GLIBMM_PROPERTIES_ENABLED
00292
00293 #ifdef GLIBMM_PROPERTIES_ENABLED
00294
00300 Glib::PropertyProxy_ReadOnly<uint> property_duration_min() const;
00301 #endif //#GLIBMM_PROPERTIES_ENABLED
00302
00303 #ifdef GLIBMM_PROPERTIES_ENABLED
00304
00310 Glib::PropertyProxy<uint> property_duration_max() ;
00311 #endif //#GLIBMM_PROPERTIES_ENABLED
00312
00313 #ifdef GLIBMM_PROPERTIES_ENABLED
00314
00320 Glib::PropertyProxy_ReadOnly<uint> property_duration_max() const;
00321 #endif //#GLIBMM_PROPERTIES_ENABLED
00322
00323
00324 };
00325
00326 }
00327
00328
00329 namespace Glib
00330 {
00336 Hildon::TimeEditor* wrap(HildonTimeEditor* object, bool take_copy = false);
00337 }
00338
00339
00340 #endif
00341