blob: a10ee1e755dbe6b82e2ea7dadb52bb2a517bca5d (
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
|
#ifndef ATLANTK_DESIGNER_H
#define ATLANTK_DESIGNER_H
#include <tqcolor.h>
#include <tqguardedptr.h>
#include <tqptrlist.h>
#include <tqstring.h>
#include <tqvaluelist.h>
#include <kmainwindow.h>
#include "boardinfo.h"
#include "group.h"
#include "editor.h"
class EstateEdit;
class TQCloseEvent;
class TDEListAction;
class TDERecentFilesAction;
class Estate;
class Player;
class ConfigEstate;
class AtlantikBoard;
class AtlanticDesigner : public TDEMainWindow
{
Q_OBJECT
public:
AtlanticDesigner(TQWidget *parent = 0, const char *name = 0);
~AtlanticDesigner();
protected:
void closeEvent(TQCloseEvent *);
public slots:
void modified();
private slots:
void open();
void openRecent(const KURL &);
void openNew();
void save();
void saveAs();
void copy();
void paste();
void changeEstate(int);
void changeEstate(Estate *);
void movePlayer(Estate *);
void setPlayerAtBeginning();
void info();
void editGroups();
void groupsChanged();
void goChanged(int);
void updateBackground();
void up();
void down();
void left();
void right();
void smaller();
void larger();
void updateJumpMenu();
private:
void openFile(const TQString &);
bool warnClose();
void initBoard();
void initMembers();
void initToken();
bool firstBoard;
ConfigEstate *newEstate(int);
TQGuardedPtr<EstateEdit> editor;
TQGuardedPtr<TQVBoxLayout> layout;
TQGuardedPtr<AtlantikBoard> board;
TQGuardedPtr<GroupEditor> groupEditor;
TQGuardedPtr<BoardInfoDlg> boardInfoDlg;
EstateList estates;
TDEListAction *estateAct;
TDERecentFilesAction *recentAct;
TQValueList<CardStack> cards;
BoardInfo boardInfo;
ConfigEstateGroupList groups;
TQString filename;
ConfigEstate *copiedEstate;
void doCaption(bool);
int max;
TQStringList types;
Player *m_player;
bool isMod;
TQColor defaultFg;
TQColor defaultBg;
};
#endif
|