blob: c94349f55f6eab78b1d60a5f27b5d29d84f5121d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
/***************************************************************************
kpacmanview.h - description
-------------------
begin : Sam Jan 19 13:37:57 CET 2002
copyright : (C) 1998-2003 by J�rg Th�nnissen
email : [email protected]
***************************************************************************/
/***************************************************************************
* *
* 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 TQt
#include <tqwidget.h>
#include <tqregexp.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 TQWidget as a base class and represents the view object of a KTMainWindow.
*/
class KpacmanView : public TQWidget
{
Q_OBJECT
public:
/** Constructor for the main view */
KpacmanView ( TQWidget *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( TQResizeEvent * );
private:
Bitfont *bitfont;
uchar bitfontFirstChar;
uchar bitfontLastChar;
TQString fontName;
int scheme;
int mode;
};
#endif // KPACMANVIEW_H
|