summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/tools/clock/clock.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/tools/clock/clock.h b/noncore/tools/clock/clock.h
index 024dd28..e5ed13c 100644
--- a/noncore/tools/clock/clock.h
+++ b/noncore/tools/clock/clock.h
@@ -31,69 +31,69 @@ class QPushButton;
31class QDateTime; 31class QDateTime;
32 32
33class AnalogClock : public QFrame 33class AnalogClock : public QFrame
34{ 34{
35 Q_OBJECT 35 Q_OBJECT
36 36
37public: 37public:
38 AnalogClock( QWidget * parent = 0, const char * name = 0 ) 38 AnalogClock( QWidget * parent = 0, const char * name = 0 )
39 : QFrame( parent, name ), clear(false) {} 39 : QFrame( parent, name ), clear(false) {}
40 40
41 QSizePolicy sizePolicy() const; 41 QSizePolicy sizePolicy() const;
42 42
43 void display( const QTime& time ); 43 void display( const QTime& time );
44 44
45protected: 45protected:
46 void drawContents( QPainter *p ); 46 void drawContents( QPainter *p );
47 47
48private: 48private:
49 QPoint rotate( QPoint center, QPoint p, int angle ); 49 QPoint rotate( QPoint center, QPoint p, int angle );
50 50
51 QTime currTime; 51 QTime currTime;
52 QTime prevTime; 52 QTime prevTime;
53 bool clear; 53 bool clear;
54}; 54};
55 55
56class Clock : public QVBox 56class Clock : public QVBox
57{ 57{
58 Q_OBJECT 58 Q_OBJECT
59 59
60public: 60public:
61 Clock( QWidget * parent = 0, const char * name = 0, WFlags f=0 ); 61 Clock( QWidget * parent = 0, const char * name = 0, WFlags f=0 );
62 ~Clock(); 62 ~Clock();
63 QDateTime when; 63 QDateTime when;
64 bool bSound; 64 bool bSound;
65 int hour, minute, snoozeTime; 65 int hour, minute, snoozeTime;
66private slots: 66private slots:
67 void slotSet(); 67 void slotSet();
68 void slotReset(); 68 void slotReset();
69 void modeSelect(int); 69 void modeSelect(int);
70 void updateClock(); 70 void updateClock();
71 void changeClock( bool ); 71 void changeClock( bool );
72 void slotSetAlarm(); 72 void slotSetAlarm();
73 void slotSnooze(); 73 void slotSnooze();
74 void slotToggleAlarm(); 74 void slotToggleAlarm();
75 void alarmOn(); 75 void alarmOn();
76 void alarmOff(); 76 void alarmOff();
77 void appMessage(const QCString& msg, const QByteArray& data); 77 void appMessage(const QCString& msg, const QByteArray& data);
78 void timerEvent( QTimerEvent *e ); 78 void timerEvent( QTimerEvent *e );
79 void slotAdjustTime(); 79// void slotAdjustTime();
80 80
81private: 81private:
82 void clearClock(); 82 void clearClock();
83 83
84 bool alarmBool; 84 bool alarmBool;
85 QTimer *t; 85 QTimer *t;
86 QLCDNumber *lcd; 86 QLCDNumber *lcd;
87 QLabel *date; 87 QLabel *date;
88 QLabel *ampmLabel; 88 QLabel *ampmLabel;
89 QPushButton *set, *reset, *alarmBtn, *snoozeBtn, *alarmOffBtn; 89 QPushButton *set, *reset, *alarmBtn, *snoozeBtn, *alarmOffBtn;
90 QRadioButton *clockRB, *swatchRB; 90 QRadioButton *clockRB, *swatchRB;
91 AnalogClock *aclock; 91 AnalogClock *aclock;
92 QTime swatch_start; 92 QTime swatch_start;
93 int swatch_totalms; 93 int swatch_totalms;
94 bool swatch_running; 94 bool swatch_running;
95 bool ampm; 95 bool ampm;
96}; 96};
97 97
98#endif 98#endif
99 99