kigo
gamewidget.cpp
Go to the documentation of this file.
66 QPixmap whiteStone = ThemeRenderer::self()->renderElement(Kigo::ThemeRenderer::WhiteStone, QSize(48, 48));
68 QPixmap blackStone = ThemeRenderer::self()->renderElement(Kigo::ThemeRenderer::BlackStone, QSize(48, 48));
81 lastMoveLabel->setText(i18nc("Indication who played the last move", "%1 (white)", last.stone().toString()));
83 lastMoveLabel->setText(i18nc("Indication who played the last move", "%1 (black)", last.stone().toString()));
90 QPixmap whiteStone = ThemeRenderer::self()->renderElement(Kigo::ThemeRenderer::WhiteStone, QSize(64, 64));
94 QPixmap blackStone = ThemeRenderer::self()->renderElement(Kigo::ThemeRenderer::BlackStone, QSize(64, 64));
101 whiteCapturesLabel->setText(i18np("%1 capture", "%1 captures", m_game->captures(m_game->whitePlayer())));
102 blackCapturesLabel->setText(i18np("%1 capture", "%1 captures", m_game->captures(m_game->blackPlayer())));
void finishClicked()
void setupUi(QWidget *widget)
QString number(int n, int base)
bool isRunning() const
Check whether the Game object is connected to a Go game, running and waiting for commands to be fed w...
Definition: game.h:99
int captures(const Player &player)
List the number of captures taken by either player.
Definition: game.cpp:636
QList< Move > moves(const Player &player)
Returns a list of all moves by that player.
Definition: game.cpp:558
static ThemeRenderer * self()
Only one ThemeRenderer is needed per application, this method returns the singleton self...
Definition: themerenderer.h:78
The Move class is a light-weight representation of a Go move (to be) made by a Go player...
Definition: move.h:36
The Game class implements the Go game and acts as a wrapper around a remote Go Game game implementing...
Definition: game.h:60
void renderElement(Element element, QPainter *painter, const QRectF &rect) const
Renders a specific element of the current SVG theme.
Definition: themerenderer.cpp:86
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:29 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:29 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.