|
UniWidgets
1.0.0
|
00001 #ifndef _CLOCK_H 00002 #define _CLOCK_H 00003 // ------------------------------------------------------------------------- 00009 // ------------------------------------------------------------------------- 00010 #include <gtkmm.h> 00011 #include <sys/time.h> 00012 #include <sigc++/sigc++.h> 00013 #include <usvgwidgets/USVGText.h> 00014 // ------------------------------------------------------------------------- 00020 class Clock { 00021 private: 00022 USVGText *widget1, *widget2, *widget3; 00023 gint timer_id; 00024 std::string fmt1, fmt2, fmt3; 00025 struct tm *tm; 00026 sigc::connection connPoll; 00027 int tz_corr; 00028 00029 void gen_str(); 00030 bool timer_callback(); 00031 public: 00032 // void set_format1(const std::string fmt); 00033 // void set_format2(const std::string fmt); 00034 // void set_format3(const std::string fmt); 00040 Clock(USVGText *w1, USVGText *w2, USVGText *w3); 00041 ~Clock(); 00042 00043 }; 00044 00045 #endif /* _CLOCK_H */
1.7.6.1