equal
deleted
inserted
replaced
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" |
24 #include "hwconsts.h" |
|
25 #include "HWDataManager.h" |
25 #include "namegen.h" |
26 #include "namegen.h" |
26 #include "SDLs.h" |
27 #include "SDLInteraction.h" |
27 |
28 |
28 #include "team.h" |
29 #include "team.h" |
29 |
30 |
30 class SquareLabel; |
31 class SquareLabel; |
31 |
32 |
32 class PageEditTeam : public AbstractPage |
33 class PageEditTeam : public AbstractPage |
33 { |
34 { |
34 Q_OBJECT |
35 Q_OBJECT |
35 |
36 |
36 public: |
37 public: |
37 PageEditTeam(QWidget* parent, SDLInteraction * sdli); |
38 PageEditTeam(QWidget* parent); |
38 |
39 |
39 void createTeam(const QString & name, const QString & playerHash); |
40 void createTeam(const QString & name, const QString & playerHash); |
40 void editTeam(const QString & name, const QString & playerHash); |
41 void editTeam(const QString & name, const QString & playerHash); |
41 void deleteTeam(const QString & name); |
42 void deleteTeam(const QString & name); |
42 |
43 |
62 QToolBox *BindsBox; |
63 QToolBox *BindsBox; |
63 QLineEdit * TeamNameEdit; |
64 QLineEdit * TeamNameEdit; |
64 QLineEdit * HHNameEdit[HEDGEHOGS_PER_TEAM]; |
65 QLineEdit * HHNameEdit[HEDGEHOGS_PER_TEAM]; |
65 QComboBox * HHHats[HEDGEHOGS_PER_TEAM]; |
66 QComboBox * HHHats[HEDGEHOGS_PER_TEAM]; |
66 QComboBox * CBBind[BINDS_NUMBER]; |
67 QComboBox * CBBind[BINDS_NUMBER]; |
67 SDLInteraction * mySdli; |
|
68 HWTeam data(); |
68 HWTeam data(); |
69 QString m_playerHash; |
69 QString m_playerHash; |
70 |
70 |
71 QLayout * bodyLayoutDefinition(); |
71 QLayout * bodyLayoutDefinition(); |
72 QLayout * footerLayoutDefinition(); |
72 QLayout * footerLayoutDefinition(); |
83 QPushButton * btnSave; |
83 QPushButton * btnSave; |
84 |
84 |
85 private slots: |
85 private slots: |
86 void saveTeam(); |
86 void saveTeam(); |
87 void setRandomNames(); |
87 void setRandomNames(); |
|
88 |
88 void setRandomName(int hh_index); |
89 void setRandomName(int hh_index); |
|
90 |
|
91 /// Plays a random voice sound of the currently edited team. |
89 void testSound(); |
92 void testSound(); |
|
93 |
90 void fixHHname(int idx); |
94 void fixHHname(int idx); |
91 }; |
95 }; |
92 |
96 |
93 #endif |
97 #endif |
94 |
98 |