libkdegames/highscore
kexthighscore.cpp
Go to the documentation of this file.
void submitScore(const Score &score, QWidget *widget)
Submit a score.
Definition: kexthighscore.cpp:66
void setTrackDrawGames(bool track)
Set if the number of "draw" games should be track for the world-wide highscores statistics.
Definition: kexthighscore.cpp:130
void setShowMode(ShowMode mode)
Set how the highscores dialog is shown at game end.
Definition: kexthighscore.cpp:166
void setTrackLostGames(bool track)
Set if the number of lost games should be track for the world-wide highscores statistics.
Definition: kexthighscore.cpp:125
uint toUInt(bool *ok) const
This class defines how to convert and how to display a highscore element (such as the score...
Definition: kexthighscore_item.h:39
void submitLegacyScore(const Score &score) const
This method should be called from convertLegacy.
Definition: kexthighscore.cpp:193
ShowMode
Enumerate different conditions under which to show the high score dialog.
Definition: kexthighscore.h:215
void setScoreItem(uint worstScore, Item *item)
Replace the default score item in the highscores list by the given one.
Definition: kexthighscore.cpp:228
bool isEmpty() const
void setShowDrawGamesStatistic(bool show)
Set if draw games statistics should be shown (enable this if draws are possible in your game)...
Definition: kexthighscore.cpp:140
void addScoreItem(const QString &name, Item *item)
Add an item in the highscores list (it will add a column to this list).
Definition: kexthighscore.cpp:238
virtual QString gameTypeLabel(uint gameType, LabelType type) const
Definition: kexthighscore.cpp:261
Definition: kexthighscore.h:298
static void addToQueryURL(KUrl &url, const QString &item, const QString &content)
Add an entry to the url to be submitted (.
Definition: kexthighscore.cpp:275
void setShowStatistics(bool show)
Set if the statistics tab should be shown in the highscores dialog.
Definition: kexthighscore.cpp:135
void setScoreHistogram(const QVector< uint > &scores, ScoreTypeBound type)
Set the ranges for the score histogram.
Definition: kexthighscore.cpp:157
Show if score has improved.
Definition: kexthighscore.h:217
void setPlayerItem(PlayerItemType type, Item *item)
Replace an item in the players list.
Definition: kexthighscore.cpp:243
Definition: kexthighscore.h:298
Definition: kexthighscore.h:298
QByteArray toPercentEncoding(const QString &input, const QByteArray &exclude, const QByteArray &include)
virtual bool isStrictlyLess(const Score &s1, const Score &s2) const
Definition: kexthighscore.cpp:198
Manager::ShowMode showMode
Definition: kexthighscore_internal.h:258
void setPrettySpecial(Special special)
Set the special value for display.
Definition: kexthighscore_item.cpp:77
int size() const
void setWWHighscores(const KUrl &url, const QString &version)
Set the world-wide highscores.
Definition: kexthighscore.cpp:145
bool hasBeenSaved() const
Definition: kexthighscore_gui.h:163
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:46 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:46 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.