⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 worldtimer.h

📁 世界时间转换程序
💻 H
字号:
/****************************************************************************
** File: 'worldtimer.h'
**
** Created: Sat Dec 2 15:58:32 2006
**      by: Wya ($Id: edited Sat Dec 2 15:58:32 2006 $)
**
** WARNING! All changes made by wya
**
****************************************************************************/
#ifndef WORLDTIMER_H
#define WORLDTIMER_H
#include "ui_worldtimer.h"
#include <QDialog>
#include "setlocaltime.h" //need eTimeZone

class AnalogClock;
class DigitalClock;
class YConfigure;
class YStopWatch;
class QTextStream;
class QFile;


class YWorldTimer : public QDialog,public Ui::WorldTimer
{
  Q_OBJECT

public:
	YWorldTimer(QWidget *parent = 0);
    virtual  ~YWorldTimer();
	int getTheOffsetTimeValue() {return m_OffsetTime;}	
	int getStopWatchCounter(){return m_StopWatchCounter;}
	bool getSynchroEnable(){return m_SynchroEnable;}

	void setSynchroEnable(bool b=false);
	void setStopWatchCounter(int i){ m_StopWatchCounter=i;}

	void synchroStopWatchList();
	void disSynchroStopWatchList();

	bool openLogStream();

public slots:
  void slotActivityAnalogTimer();
  void slotActivityDigitalTimer();
  void slotSetLocalTimeButton(bool ok);
  void slotSlideWorldTimer(int i);
  void slotUpdateOffset();
  void slotStartOneStopWatch();
  void slotSynchroCheckBox(int i);
  void slotCloseStopWatch(int ind);

  
protected:
	 void closeEvent( QCloseEvent*  );
private: 
   
	YConfigure * m_conf;
	 AnalogClock *m_analogClock;
     DigitalClock *m_digitalClock;
     int m_OffsetTime;
	 eTimeZone m_eTimeZone;
	 QList <YStopWatch *> watchList;//save all the string
     int m_StopWatchCounter;//stop watch counter max is 3
	 bool m_SynchroEnable;
     QTextStream * m_LogStream;
	 QFile *m_Log;
	 
};

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -