author | leseb <leseb> | 2002-04-15 22:40:28 (UTC) |
---|---|---|
committer | leseb <leseb> | 2002-04-15 22:40:28 (UTC) |
commit | a91544d04ed391bbdc0c6f95ff8a80d35190788c (patch) (side-by-side diff) | |
tree | 85dea85fd8a1cdb6d2d18fef57753d0b5e4bd143 /noncore/games/kpacman/kpacman.h | |
parent | 6396d8b9fca7f3f50010a13a26e4ee9569abefb3 (diff) | |
download | opie-a91544d04ed391bbdc0c6f95ff8a80d35190788c.zip opie-a91544d04ed391bbdc0c6f95ff8a80d35190788c.tar.gz opie-a91544d04ed391bbdc0c6f95ff8a80d35190788c.tar.bz2 |
New directory structure
Diffstat (limited to 'noncore/games/kpacman/kpacman.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/games/kpacman/kpacman.h | 95 |
1 files changed, 95 insertions, 0 deletions
diff --git a/noncore/games/kpacman/kpacman.h b/noncore/games/kpacman/kpacman.h new file mode 100644 index 0000000..d7de9de --- a/dev/null +++ b/noncore/games/kpacman/kpacman.h @@ -0,0 +1,95 @@ +#ifndef KPACMAN_H +#define KPACMAN_H + +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + +#include "portable.h" + +#if defined( KDE2_PORT ) +#include <kapp.h> +#include <klocale.h> +#include <ktmainwindow.h> +#include <kmenubar.h> +#elif defined( QPE_PORT ) +#include <qmainwindow.h> +class QMenuBar; +#endif + +#include <qregexp.h> + +#include "kpacmanwidget.h" + +#include <qpopmenu.h> + +#include <qlist.h> +#include <qfileinf.h> + +#if defined( KDE2_PORT ) +#include <referee.h> +#include <status.h> +#include <score.h> +#include <keys.h> +#elif defined( QPE_PORT ) +#include "referee.h" +#include "status.h" +#include "score.h" +#include "keys.h" +#endif + +class Kpacman : public KTMainWindow +{ + Q_OBJECT +public: + Kpacman(QWidget *parent = 0, const char *name = 0); + virtual ~Kpacman(); + +public slots: + void forcedHallOfFame(bool); + +private slots: + void newKpacman(); + void pauseKpacman(); + void toggleHallOfFame(); + void toggleNew(); + void togglePaused(); + void quitKpacman(); + + void schemeChecked(int); + void toggleFocusOutPause(); + void toggleFocusInContinue(); + void toggleHideMouseCursor(); + void confKeys(); + +protected: + +private: + KpacmanWidget *view; + + void menu(); + + int lookupSchemes(); + + KMenuBar *_menuBar; + QPopupMenu *gamePopup; + QPopupMenu *optionsPopup; + QPopupMenu *modesPopup; + QList<QPopupMenu> *schemesPopup; + + int newID; + int pauseID; + int hofID; + QArray<int> modeID; + QArray<int> schemeID; + QArray<int> schemeMode; + int focusOutPauseID; + int focusInContinueID; + int hideMouseCursorID; + + bool focusOutPause; + bool focusInContinue; + bool hideMouseCursor; +}; + +#endif // KPACMAN_H |