diff options
author | Mavridis Philippe <mavridisf@gmail.com> | 2024-08-07 19:13:02 +0300 |
---|---|---|
committer | Mavridis Philippe <mavridisf@gmail.com> | 2024-08-07 19:23:24 +0300 |
commit | 04b5a62b8d9f5ff8240f25361046f2a5d58e8262 (patch) | |
tree | 98b126454cdf68d544e138d7e8b31d5fd45b72c2 /kue/newgame.h | |
parent | 83ba00b7e569587d50383ff06a70148042ca780e (diff) | |
download | tdegames-feat/kue.tar.gz tdegames-feat/kue.zip |
Add Kue billiards gamefeat/kue
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
Diffstat (limited to 'kue/newgame.h')
-rw-r--r-- | kue/newgame.h | 64 |
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 + |