timer.h
上传用户:karlzgj
上传日期:2020-03-01
资源大小:68k
文件大小:2k
- /*
时间助手(timer)
2010-01-28
by feng.Z.Z
Email : feng7553@163.com
thanks yan0
*/
- #ifndef TESTWIDGET_H
- #define TESTWIDGET_H
- #define QT_NO_DRAGANDDROP
- #define QT_NO_PROPERTIES
- #include <qobject.h>
- #include <unistd.h>
- #include <stdlib.h>
- //#include <iostream.h>
- #include <qtextcodec.h>
- #include <qlayout.h>
- #include <qwidget.h>
- #include <qdatetime.h>
- #include <qcopchannel_qws.h>
- #include <ZApplication.h>
- #include <ZKbMainWidget.h>
- #include <ZSoftKey.h>
#include <ZGroupBox.h>
- #include <ZLabel.h>
- #include <ZScrollPanel.h>
- #include <ZOptionsMenu.h>
- #include <ZMessageDlg.h>
- #include <ZSingleCaptureDlg.h>
#include <ZTimePickerDlg.h>
- #include <ZSingleSelectDlg.h>
- #include <ZNoticeDlg.h>
- #include <ZNumPickerDlg.h>
#include <ZConfig.h>
#include <qtimer.h>
- #include "ZNewCheckBox.h"
//using namespace std;
- class Timer : public ZKbMainWidget
- {
- Q_OBJECT
bool baoshiing,autopowerdown,timezoom,setbaoshi,automodel;
- ZNoticeDlg* znd;
- ZSoftKey* softKey;
- ZScrollPanel* scrollPanel;
- ZOptionsMenu* menu_Main;
ZOptionsMenu* operate;
- int h1,h2,h3,m1,m2,m3,s1,s2,s3,ms1,ms2,ms3;
QTime* tiempo;
- QTimer *timer;
QTime powertimer;
QString updatenowtime;
QString getProgramDir();
long int color;
int autopower;
int primaryTime;
QCopChannel* channelStart;
ZLabel* label;
ZLabel* label1;
ZMessageDlg *dlg;
ZNewCheckBox *baoshilabel;
ZNewCheckBox *autolabel;
ZNewCheckBox *auto1label;
ZTimePickerDlg *settime ;
ZConfig *systemcfg;
- public:
- Timer(QWidget* parent, char*);
- ~Timer();
bool getnowtime();
-
- public slots:
- //virtual void timerEvent(QTimerEvent* e);
- void about();
void stop();
void siganalReceived( const QCString &msg, const QByteArray & );
void updatetimer();
void setpowertime();
void autopowertime();
void start();
void baoshi(int zhengdian);
void getpowertime();
};
- #endif