From a91544d04ed391bbdc0c6f95ff8a80d35190788c Mon Sep 17 00:00:00 2001 From: leseb Date: Mon, 15 Apr 2002 22:40:28 +0000 Subject: New directory structure --- (limited to 'noncore/games/kpacman/status.h') diff --git a/noncore/games/kpacman/status.h b/noncore/games/kpacman/status.h new file mode 100644 index 0000000..4f69b02 --- a/dev/null +++ b/noncore/games/kpacman/status.h @@ -0,0 +1,78 @@ +#ifndef STATUS_H +#define STATUS_H + +#ifdef HAVE_CONFIG_H +#include +#endif + +#include "portable.h" + +#if defined( KDE2_PORT ) +#include +#include +#endif + +#include +#include +#include +#include +#include +#include +#include + +class Status : public QWidget +{ + Q_OBJECT +public: + Status(QWidget *parent=0, const char *name=0, int scheme=-1, int mode=-1); + ~Status() {}; + +public slots: + void setScheme(int scheme, int mode); + void setLevel(int level); + void setLifes(int lifes); + +protected: + void paintEvent(QPaintEvent *); + int minHeight(); + int minWidth(); + + QString decodeHexOctString(QString str); + + void fillArray(QArray &, QString, int); + void fillStrList(QStrList &, QString, int); + void fillPixmapName(QStrList &); + + void confScheme(); + void confLevels(bool defGroup=TRUE); + void confMisc(bool defGroup=TRUE); + + void initPixmaps(); + +private: + QArray levelPos; + int actualLifes; + int actualLevel; + + QString pixmapDirectory; + + QStrList lifesPixmapName; + QStrList levelPixmapName; + + QString lastLifesPixmapName; + QString lastLevelPixmapName; + + QList *loadPixmap(QWidget *parent, QString pixmapName, + QList *pixmaps=0); + + QList *lifesPix; + QList *levelPix; + + int maxLevel; + int level; + + int scheme; + int mode; +}; + +#endif // STATUS_H -- cgit v0.9.0.2