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

📄 gametimer.h

📁 四川麻将程序代码
💻 H
字号:
/* -------------------------------------------------------------------------   -- kmahjongg timer. Based on a slightly modified verion of the QT demo --   -- program dclock. Copyright as shown below.                           --   ------------------------------------------------------------------------- *//****************************************************************************** $Id: GameTimer.h,v 1.1 1999/12/09 22:16:12 coolo Exp $**** Copyright (C) 1992-1998 Troll Tech AS.  All rights reserved.**** This file is part of an example program for Qt.  This example** program may be used, distributed and modified without limitation.*******************************************************************************/#ifndef KM_GAME_TIMER #define KM_GAME_TIMER #include <qlcdnumber.h>#include <qdatetime.h>typedef enum TimerMode {running = -53 , stopped= -54 , paused = -55};class GameTimer: public QLCDNumber {    Q_OBJECTpublic:    GameTimer( QWidget *parent=0, const char *name=0 );    int toInt(void);     QString toString(void) {return theTimer.toString();};	    void fromString(const char *);protected:					// event handlers    void	timerEvent( QTimerEvent * ); public slots:    void start();    void stop();    void pause();private slots:					// internal slots    void	showTime();private:					// internal data    bool	showingColon;    QTime	theTimer;    TimerMode   timerMode;};#endif 

⌨️ 快捷键说明

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