ChessClockWidget Class Reference

Simple chess clock widget. More...

#include <chessclockwidget.h>

Inheritance diagram for ChessClockWidget:
ChessClock DelayAfterClock DelayClock FischerAfterClock FischerClock HourGlassClock

List of all members.

Public Slots

virtual void repaintClock ()
 Refresh clock information.

Public Member Functions

 ChessClockWidget (bool white, QWidget *parent=0)
void setGreenTime (int msecs)
 Set time begin of turn shown green.

Protected Member Functions

virtual void initPictures ()
 Init pictures from resources.
virtual void initLabels ()
 Init QLabels.
virtual void initTop ()
 Init top: picture, details, loser mark.
virtual void initBottom ()
 Init time left in bottom.

Static Protected Member Functions

static QString timeString (int msecs)
 Convert msecs to h:mm:ss QString.

Protected Attributes

QPixmap picActive_
QPixmap picPassive_
QPixmap picLoser_
QLabel * pictureLabel_
QLabel * timeUsedLabel_
QLabel * timeAverageLabel_
QLabel * turnLabel_
QLabel * turnTimeLabel_
QLabel * loserLabel_
QLabel * leftLabel_
QVBoxLayout * mainLayout
int greenTime_

Detailed Description

Simple chess clock widget.

Author:
Arto Hyvättinen
Date:
2010-08-14

Definition at line 39 of file chessclockwidget.h.


Constructor & Destructor Documentation

ChessClockWidget::ChessClockWidget ( bool  white,
QWidget *  parent = 0 
)

Definition at line 29 of file chessclockwidget.cpp.


Member Function Documentation

void ChessClockWidget::initBottom (  )  [protected, virtual]

Init time left in bottom.

Override to make different bottom area

Definition at line 121 of file chessclockwidget.cpp.

void ChessClockWidget::initLabels (  )  [protected, virtual]

Init QLabels.

Definition at line 66 of file chessclockwidget.cpp.

void ChessClockWidget::initPictures (  )  [protected, virtual]

Init pictures from resources.

Definition at line 50 of file chessclockwidget.cpp.

void ChessClockWidget::initTop (  )  [protected, virtual]

Init top: picture, details, loser mark.

Definition at line 91 of file chessclockwidget.cpp.

void ChessClockWidget::repaintClock (  )  [virtual, slot]

Refresh clock information.

Implements ChessClock.

Definition at line 133 of file chessclockwidget.cpp.

void ChessClockWidget::setGreenTime ( int  msecs  ) 

Set time begin of turn shown green.

Extra time of turn is shown green.

Parameters:
msecs Green time in msecs

Definition at line 45 of file chessclockwidget.cpp.

QString ChessClockWidget::timeString ( int  msecs  )  [static, protected]

Convert msecs to h:mm:ss QString.

Definition at line 167 of file chessclockwidget.cpp.


Member Data Documentation

Definition at line 86 of file chessclockwidget.h.

QLabel* ChessClockWidget::leftLabel_ [protected]

Definition at line 82 of file chessclockwidget.h.

QLabel* ChessClockWidget::loserLabel_ [protected]

Definition at line 81 of file chessclockwidget.h.

QVBoxLayout* ChessClockWidget::mainLayout [protected]

Definition at line 84 of file chessclockwidget.h.

QPixmap ChessClockWidget::picActive_ [protected]

Definition at line 72 of file chessclockwidget.h.

QPixmap ChessClockWidget::picLoser_ [protected]

Definition at line 74 of file chessclockwidget.h.

QPixmap ChessClockWidget::picPassive_ [protected]

Definition at line 73 of file chessclockwidget.h.

QLabel* ChessClockWidget::pictureLabel_ [protected]

Definition at line 76 of file chessclockwidget.h.

Definition at line 78 of file chessclockwidget.h.

QLabel* ChessClockWidget::timeUsedLabel_ [protected]

Definition at line 77 of file chessclockwidget.h.

QLabel* ChessClockWidget::turnLabel_ [protected]

Definition at line 79 of file chessclockwidget.h.

QLabel* ChessClockWidget::turnTimeLabel_ [protected]

Definition at line 80 of file chessclockwidget.h.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Enumerations Enumerator
Generated on Thu Aug 19 21:04:20 2010 for Chess Clock by  doxygen 1.6.3