Clock.h
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
00019 class USVGText;
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
00033
00034
00040 Clock(USVGText *w1, USVGText *w2, USVGText *w3);
00041 ~Clock();
00042
00043 };
00044
00045 #endif