summaryrefslogtreecommitdiffstats
path: root/kue/newgame.h
diff options
context:
space:
mode:
Diffstat (limited to 'kue/newgame.h')
-rw-r--r--kue/newgame.h64
1 files changed, 64 insertions, 0 deletions
diff --git a/kue/newgame.h b/kue/newgame.h
new file mode 100644
index 00000000..6cc0da5b
--- /dev/null
+++ b/kue/newgame.h
@@ -0,0 +1,64 @@
+#ifndef _NEWGAME_H
+#define _NEWGAME_H
+
+#include <kdialogbase.h>
+#include "pluginloader.h"
+#include <ntqvaluelist.h>
+
+class KColorButton;
+class KComboBox;
+class KueTeam;
+class TQGridLayout;
+class TQVBoxLayout;
+class TQLabel;
+class KLineEdit;
+class TQPushButton;
+
+struct playerRow
+{
+ TQLabel *label;
+ KLineEdit *nameEdit;
+ KColorButton *colorButton;
+};
+
+class newGameDialog : public KDialogBase
+{
+ TQ_OBJECT
+ public:
+ newGameDialog(TQWidget *parent, const char *name = 0);
+ ~newGameDialog();
+
+ KuePluginInfo selectedPlugin();
+ TQValueList<KueTeam*> selectedTeams();
+
+ protected slots:
+ void slotOk();
+ void slotNewPluginSelection();
+
+ void addPlayerRow();
+ void removePlayerRow();
+
+ protected:
+ void removePlayerRow(playerRow *);
+ void updateButtons();
+ TQColor defaultPlayerColor(unsigned int player);
+
+ TQWidget *_page;
+ TQVBoxLayout *_top_layout;
+
+ TQPushButton *_add_player_button;
+ TQPushButton *_remove_player_button;
+
+ TQWidget *_player_widget;
+ TQGridLayout *_player_layout;
+ TQPtrList<playerRow> _players;
+
+ KComboBox *_game_type;
+ TQValueList<KuePluginInfo> _plugins_list;
+
+ unsigned int _max_players;
+ unsigned int _min_players;
+};
+
+#endif
+