31#include <kdialogbase.h>
45 enum Fields { Name = 1 << 0,
56 typedef TQMap<int, TQString> FieldInfo;
63 KScoreDialog(
int fields, TQWidget *parent=0,
const char *name=0);
85 void addField(
int field,
const TQString &header,
const TQString &key);
98 int addScore(
int newScore,
const FieldInfo &newInfo,
bool askName,
bool lessIsMore);
99 int addScore(
int newScore,
const FieldInfo &newInfo,
bool askName=
true);
109 void slotGotReturn();
119 void keyPressEvent( TQKeyEvent *ev);
122 class KScoreDialogPrivate;
123 KScoreDialogPrivate *d;
KScoreDialog(int fields, TQWidget *parent=0, const char *name=0)
int highScore()
Returns the current best score.
void addField(int field, const TQString &header, const TQString &key)
Define an extra FieldInfo entry.
int addScore(int newScore, const FieldInfo &newInfo, bool askName, bool lessIsMore)
Adds a new score to the list.
void setComment(const TQString &comment)
void setConfigGroup(const TQString &group)