summaryrefslogtreecommitdiffstats
path: root/atlantikdesigner/designer/designer.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit84da08d7b7fcda12c85caeb5a10b4903770a6f69 (patch)
tree2a6aea76f2dfffb4cc04bb907c4725af94f70e72 /atlantikdesigner/designer/designer.h
downloadtdeaddons-84da08d7b7fcda12c85caeb5a10b4903770a6f69.tar.gz
tdeaddons-84da08d7b7fcda12c85caeb5a10b4903770a6f69.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'atlantikdesigner/designer/designer.h')
-rw-r--r--atlantikdesigner/designer/designer.h106
1 files changed, 106 insertions, 0 deletions
diff --git a/atlantikdesigner/designer/designer.h b/atlantikdesigner/designer/designer.h
new file mode 100644
index 0000000..91dd7b4
--- /dev/null
+++ b/atlantikdesigner/designer/designer.h
@@ -0,0 +1,106 @@
+#ifndef ATLANTK_DESIGNER_H
+#define ATLANTK_DESIGNER_H
+
+#include <qcolor.h>
+#include <qguardedptr.h>
+#include <qptrlist.h>
+#include <qstring.h>
+#include <qvaluelist.h>
+
+#include <kmainwindow.h>
+
+#include "boardinfo.h"
+#include "group.h"
+#include "editor.h"
+
+class EstateEdit;
+class QCloseEvent;
+class KListAction;
+class KRecentFilesAction;
+class Estate;
+class Player;
+class ConfigEstate;
+class AtlantikBoard;
+
+class AtlanticDesigner : public KMainWindow
+{
+ Q_OBJECT
+
+ public:
+ AtlanticDesigner(QWidget *parent = 0, const char *name = 0);
+ ~AtlanticDesigner();
+
+ protected:
+ void closeEvent(QCloseEvent *);
+
+ 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 QString &);
+ bool warnClose();
+ void initBoard();
+ void initMembers();
+ void initToken();
+ bool firstBoard;
+ ConfigEstate *newEstate(int);
+
+ QGuardedPtr<EstateEdit> editor;
+ QGuardedPtr<QVBoxLayout> layout;
+ QGuardedPtr<AtlantikBoard> board;
+ QGuardedPtr<GroupEditor> groupEditor;
+ QGuardedPtr<BoardInfoDlg> boardInfoDlg;
+ EstateList estates;
+ KListAction *estateAct;
+ KRecentFilesAction *recentAct;
+
+ QValueList<CardStack> cards;
+ BoardInfo boardInfo;
+ ConfigEstateGroupList groups;
+
+ QString filename;
+
+ ConfigEstate *copiedEstate;
+
+ void doCaption(bool);
+
+ int max;
+ QStringList types;
+
+ Player *m_player;
+
+ bool isMod;
+
+ QColor defaultFg;
+ QColor defaultBg;
+};
+
+#endif