-rw-r--r-- | noncore/tools/clock/clock.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/noncore/tools/clock/clock.h b/noncore/tools/clock/clock.h index 6dbebf7..9b756b5 100644 --- a/noncore/tools/clock/clock.h +++ b/noncore/tools/clock/clock.h | |||
@@ -29,4 +29,5 @@ class QTimer; | |||
29 | class QRadioButton; | 29 | class QRadioButton; |
30 | class QPushButton; | 30 | class QPushButton; |
31 | class QDateTime; | ||
31 | 32 | ||
32 | class AnalogClock : public QFrame | 33 | class AnalogClock : public QFrame |
@@ -36,5 +37,5 @@ class AnalogClock : public QFrame | |||
36 | public: | 37 | public: |
37 | AnalogClock( QWidget * parent = 0, const char * name = 0 ) | 38 | AnalogClock( QWidget * parent = 0, const char * name = 0 ) |
38 | : QFrame( parent, name ), clear(false) {} | 39 | : QFrame( parent, name ), clear(false) {} |
39 | 40 | ||
40 | QSizePolicy sizePolicy() const; | 41 | QSizePolicy sizePolicy() const; |
@@ -60,5 +61,7 @@ public: | |||
60 | Clock( QWidget * parent = 0, const char * name = 0, WFlags f=0 ); | 61 | Clock( QWidget * parent = 0, const char * name = 0, WFlags f=0 ); |
61 | ~Clock(); | 62 | ~Clock(); |
62 | 63 | QDateTime when; | |
64 | bool bSound; | ||
65 | int hour, minute, snoozeTime; | ||
63 | private slots: | 66 | private slots: |
64 | void slotSet(); | 67 | void slotSet(); |
@@ -67,13 +70,21 @@ private slots: | |||
67 | void updateClock(); | 70 | void updateClock(); |
68 | void changeClock( bool ); | 71 | void changeClock( bool ); |
72 | void slotSetAlarm(); | ||
73 | void slotSnooze(); | ||
74 | void slotToggleAlarm(); | ||
75 | void alarmOn(); | ||
76 | void alarmOff(); | ||
77 | void appMessage(const QCString& msg, const QByteArray& data); | ||
78 | void timerEvent( QTimerEvent *e ); | ||
69 | 79 | ||
70 | private: | 80 | private: |
71 | void clearClock(); | 81 | void clearClock(); |
72 | 82 | ||
83 | bool alarmBool; | ||
73 | QTimer *t; | 84 | QTimer *t; |
74 | QLCDNumber *lcd; | 85 | QLCDNumber *lcd; |
75 | QLabel *date; | 86 | QLabel *date; |
76 | QLabel *ampmLabel; | 87 | QLabel *ampmLabel; |
77 | QPushButton *set, *reset; | 88 | QPushButton *set, *reset, *alarmBtn, *snoozeBtn, *alarmOffBtn; |
78 | QRadioButton *clockRB, *swatchRB; | 89 | QRadioButton *clockRB, *swatchRB; |
79 | AnalogClock *aclock; | 90 | AnalogClock *aclock; |