QTfrontend/ui/page/pageeditteam.h
changeset 8346 3443e0de2c9d
parent 7553 9cfe74ee418b
child 8374 3a1708759c4f
equal deleted inserted replaced
8344:3d18f7f71d65 8346:3443e0de2c9d
    26 #include "SDLInteraction.h"
    26 #include "SDLInteraction.h"
    27 
    27 
    28 #include "team.h"
    28 #include "team.h"
    29 
    29 
    30 class SquareLabel;
    30 class SquareLabel;
       
    31 class KeyBinder;
    31 
    32 
    32 class PageEditTeam : public AbstractPage
    33 class PageEditTeam : public AbstractPage
    33 {
    34 {
    34         Q_OBJECT
    35         Q_OBJECT
    35 
    36 
    42 
    43 
    43     public slots:
    44     public slots:
    44         void CBFort_activated(const QString & gravename);
    45         void CBFort_activated(const QString & gravename);
    45 
    46 
    46     private:
    47     private:
       
    48         QTabWidget * tbw;
    47         QSignalMapper* signalMapper1;
    49         QSignalMapper* signalMapper1;
    48         QSignalMapper* signalMapper2;
    50         QSignalMapper* signalMapper2;
    49         QGroupBox *GBoxHedgehogs;
    51         QGroupBox *GBoxHedgehogs;
    50         QGroupBox *GBoxTeam;
    52         QGroupBox *GBoxTeam;
    51         QGroupBox *GBoxFort;
    53         QGroupBox *GBoxFort;
    58         QGroupBox *GBoxBinds;
    60         QGroupBox *GBoxBinds;
    59         QToolBox *BindsBox;
    61         QToolBox *BindsBox;
    60         QLineEdit * TeamNameEdit;
    62         QLineEdit * TeamNameEdit;
    61         QLineEdit * HHNameEdit[HEDGEHOGS_PER_TEAM];
    63         QLineEdit * HHNameEdit[HEDGEHOGS_PER_TEAM];
    62         QComboBox * HHHats[HEDGEHOGS_PER_TEAM];
    64         QComboBox * HHHats[HEDGEHOGS_PER_TEAM];
    63         QComboBox * CBBind[BINDS_NUMBER];
       
    64         HWTeam data();
    65         HWTeam data();
    65         QString m_playerHash;
    66         QString m_playerHash;
       
    67         KeyBinder * binder;
    66 
    68 
    67         QLayout * bodyLayoutDefinition();
    69         QLayout * bodyLayoutDefinition();
    68         QLayout * footerLayoutDefinition();
    70         QLayout * footerLayoutDefinition();
    69         void connectSignals();
    71         void connectSignals();
    70 
    72 
    83 
    85 
    84         /// Plays a random voice sound of the currently edited team.
    86         /// Plays a random voice sound of the currently edited team.
    85         void testSound();
    87         void testSound();
    86 
    88 
    87         void fixHHname(int idx);
    89         void fixHHname(int idx);
       
    90         void resetAllBinds();
    88 };
    91 };
    89 
    92 
    90 #endif
    93 #endif
    91 
    94