Simple chess clock widget. More...
#include <chessclockwidget.h>
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_ |
Simple chess clock widget.
Definition at line 39 of file chessclockwidget.h.
ChessClockWidget::ChessClockWidget | ( | bool | white, | |
QWidget * | parent = 0 | |||
) |
Definition at line 29 of file chessclockwidget.cpp.
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.
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.
int ChessClockWidget::greenTime_ [protected] |
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.
QLabel* ChessClockWidget::timeAverageLabel_ [protected] |
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.