#ifndef _NEWGAME_H #define _NEWGAME_H #include #include "pluginloader.h" #include 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 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 _players; KComboBox *_game_type; TQValueList _plugins_list; unsigned int _max_players; unsigned int _min_players; }; #endif