ChessClockWidget Class Reference

Simple chess clock widget. More...

#include <chessclockwidget.h>

Inheritance diagram for ChessClockWidget:
ChessClock

List of all members.

Public Slots

virtual void repaintClock ()
 Refresh clock information.

Public Member Functions

 ChessClockWidget (bool white, QWidget *parent=0)

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.
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 * loserLabel_
QLabel * leftLabel_
QVBoxLayout * mainLayout

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 109 of file chessclockwidget.cpp.

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

Init QLabels.

Definition at line 59 of file chessclockwidget.cpp.

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

Init pictures from resources.

Definition at line 43 of file chessclockwidget.cpp.

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

Init top: picture, details, loser mark.

Definition at line 80 of file chessclockwidget.cpp.

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

Refresh clock information.

Implements ChessClock.

Definition at line 121 of file chessclockwidget.cpp.

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

Convert msecs to h:mm:ss QString.

Definition at line 148 of file chessclockwidget.cpp.


Member Data Documentation

QLabel* ChessClockWidget::leftLabel_ [protected]

Definition at line 75 of file chessclockwidget.h.

QLabel* ChessClockWidget::loserLabel_ [protected]

Definition at line 74 of file chessclockwidget.h.

QVBoxLayout* ChessClockWidget::mainLayout [protected]

Definition at line 77 of file chessclockwidget.h.

QPixmap ChessClockWidget::picActive_ [protected]

Definition at line 66 of file chessclockwidget.h.

QPixmap ChessClockWidget::picLoser_ [protected]

Definition at line 68 of file chessclockwidget.h.

QPixmap ChessClockWidget::picPassive_ [protected]

Definition at line 67 of file chessclockwidget.h.

QLabel* ChessClockWidget::pictureLabel_ [protected]

Definition at line 70 of file chessclockwidget.h.

Definition at line 72 of file chessclockwidget.h.

QLabel* ChessClockWidget::timeUsedLabel_ [protected]

Definition at line 71 of file chessclockwidget.h.

QLabel* ChessClockWidget::turnLabel_ [protected]

Definition at line 73 of file chessclockwidget.h.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Enumerations Enumerator
Generated on Sat Aug 14 01:28:48 2010 for Chess Clock by  doxygen 1.6.3