equal
deleted
inserted
replaced
19 #ifndef PAGE_EDITTEAM_H |
19 #ifndef PAGE_EDITTEAM_H |
20 #define PAGE_EDITTEAM_H |
20 #define PAGE_EDITTEAM_H |
21 |
21 |
22 #include "AbstractPage.h" |
22 #include "AbstractPage.h" |
23 #include "binds.h" |
23 #include "binds.h" |
|
24 #include "hwconsts.h" |
|
25 #include "namegen.h" |
24 #include "SDLs.h" |
26 #include "SDLs.h" |
|
27 |
|
28 #include "team.h" |
25 |
29 |
26 class SquareLabel; |
30 class SquareLabel; |
27 |
31 |
28 class PageEditTeam : public AbstractPage |
32 class PageEditTeam : public AbstractPage |
29 { |
33 { |
30 Q_OBJECT |
34 Q_OBJECT |
31 |
35 |
32 public: |
36 public: |
33 PageEditTeam(QWidget* parent, SDLInteraction * sdli); |
37 PageEditTeam(QWidget* parent, SDLInteraction * sdli); |
|
38 |
|
39 void createTeam(const QString & name, const QString & playerHash); |
|
40 void editTeam(const QString & name, const QString & playerHash); |
|
41 void deleteTeam(const QString & name); |
|
42 |
|
43 signals: |
|
44 void teamEdited(); |
|
45 |
|
46 public slots: |
|
47 void CBFort_activated(const QString & gravename); |
|
48 |
|
49 private: |
|
50 QPushButton * randTeamButton; |
34 QSignalMapper* signalMapper1; |
51 QSignalMapper* signalMapper1; |
35 QSignalMapper* signalMapper2; |
52 QSignalMapper* signalMapper2; |
36 QGroupBox *GBoxHedgehogs; |
53 QGroupBox *GBoxHedgehogs; |
37 QGroupBox *GBoxTeam; |
54 QGroupBox *GBoxTeam; |
38 QGroupBox *GBoxFort; |
55 QGroupBox *GBoxFort; |
46 QToolBox *BindsBox; |
63 QToolBox *BindsBox; |
47 QPushButton *BtnTeamDiscard; |
64 QPushButton *BtnTeamDiscard; |
48 QPushButton *BtnTeamSave; |
65 QPushButton *BtnTeamSave; |
49 QPushButton * BtnTestSound; |
66 QPushButton * BtnTestSound; |
50 QLineEdit * TeamNameEdit; |
67 QLineEdit * TeamNameEdit; |
51 QLineEdit * HHNameEdit[8]; |
68 QLineEdit * HHNameEdit[HEDGEHOGS_PER_TEAM]; |
52 QComboBox * HHHats[8]; |
69 QComboBox * HHHats[HEDGEHOGS_PER_TEAM]; |
53 QPushButton * randButton[8]; |
70 QPushButton * randButton[HEDGEHOGS_PER_TEAM]; |
54 QComboBox * CBBind[BINDS_NUMBER]; |
71 QComboBox * CBBind[BINDS_NUMBER]; |
55 QPushButton * randTeamButton; |
72 SDLInteraction * mySdli; |
|
73 HWTeam data(); |
|
74 QString m_playerHash; |
56 |
75 |
57 private: |
76 void loadTeam(const HWTeam & team); |
58 SDLInteraction * mySdli; |
|
59 |
|
60 public slots: |
|
61 void CBFort_activated(const QString & gravename); |
|
62 |
77 |
63 private slots: |
78 private slots: |
|
79 void saveTeam(); |
|
80 void setRandomNames(); |
|
81 void setRandomName(int hh_index); |
64 void testSound(); |
82 void testSound(); |
65 void fixHHname(int idx); |
83 void fixHHname(int idx); |
66 }; |
84 }; |
67 |
85 |
68 #endif |
86 #endif |