You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
711 B
40 lines
711 B
#ifndef __TDESTOPWATCH_H |
|
#define __TDESTOPWATCH_H |
|
|
|
#include <tqdatetime.h> |
|
#include <tqwidget.h> |
|
|
|
class KTimeWidget; |
|
class TQPushButton; |
|
class TQListBox; |
|
class TQListBoxItem; |
|
class TQTimer; |
|
|
|
class TDEStopWatch : public TQWidget { |
|
TQ_OBJECT |
|
public: |
|
TDEStopWatch(); |
|
~TDEStopWatch(); |
|
|
|
public slots: |
|
void slotStartStop(); |
|
void slotReset(); |
|
void slotSetTime(const TQTime& t); |
|
void slotSetFromStep(TQListBoxItem* item); |
|
void slotStep(); |
|
|
|
private slots: |
|
void slotTimeout(); |
|
|
|
private: |
|
KTimeWidget* time; |
|
TQPushButton* start; |
|
TQPushButton* pause; |
|
TQPushButton* reset; |
|
TQPushButton* step; |
|
TQListBox* stepl; |
|
TQTimer* pulse; |
|
TQTime timer; |
|
}; |
|
|
|
#endif // __TDESTOPWATCH_H
|
|
|