summaryrefslogtreecommitdiffstats
path: root/kpacman/kpacmanview.h
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-08-17 18:58:43 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-08-17 18:58:43 +0200
commit6f2c87870081718731cccee678e1e89869826de2 (patch)
tree942f97a4b9d4126d385e8bdc0aee30ff3dc6ed6d /kpacman/kpacmanview.h
downloadtdepacman-6f2c87870081718731cccee678e1e89869826de2.tar.gz
tdepacman-6f2c87870081718731cccee678e1e89869826de2.zip
Initial import of version 0.3.2 from the source package.
https://sourceforge.net/projects/kpacman/files/kpacman/0.3.2/kpacman-0.3.2.tar.gz Original package is licenced under GPL 2.0. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'kpacman/kpacmanview.h')
-rw-r--r--kpacman/kpacmanview.h68
1 files changed, 68 insertions, 0 deletions
diff --git a/kpacman/kpacmanview.h b/kpacman/kpacmanview.h
new file mode 100644
index 0000000..e7025e1
--- /dev/null
+++ b/kpacman/kpacmanview.h
@@ -0,0 +1,68 @@
+/***************************************************************************
+ kpacmanview.h - description
+ -------------------
+ begin : Sam Jan 19 13:37:57 CET 2002
+ copyright : (C) 1998-2003 by Jörg Thönnissen
+ email : joe@dsite.de
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#ifndef KPACMANVIEW_H
+#define KPACMANVIEW_H
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+//include files for Qt
+#include <qwidget.h>
+#include <qregexp.h>
+
+// application specific includes
+#include "score.h"
+#include "referee.h"
+#include "status.h"
+#include "painter.h"
+
+/** The KpacmanView class provides the view widget for the KpacmanApp instance.
+ * The View instance inherits QWidget as a base class and represents the view object of a KTMainWindow.
+ */
+class KpacmanView : public QWidget
+{
+ Q_OBJECT
+public:
+ /** Constructor for the main view */
+ KpacmanView ( QWidget *parent = 0, const char *name = 0);
+ /** Destructor for the main view */
+ virtual ~KpacmanView();
+
+ void setScheme(int scheme=-1, int mode=-1);
+ Score *score;
+ Referee *referee;
+ Status *status;
+
+protected:
+ void confScheme();
+ void confMisc(bool defGroup=TRUE);
+ void resizeEvent( QResizeEvent * );
+
+private:
+ Bitfont *bitfont;
+ uchar bitfontFirstChar;
+ uchar bitfontLastChar;
+
+ QString fontName;
+
+ int scheme;
+ int mode;
+};
+
+#endif // KPACMANVIEW_H