QTfrontend/teamselhelper.h
author unc0rr
Sun, 20 Aug 2006 19:22:12 +0000
changeset 123 6987769ced3d
parent 117 d21a48200772
child 132 2d0f404cdf05
permissions -rw-r--r--
Various small fixes
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
80
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
     1
#ifndef _TEAMSEL_HELPER_INCLUDED
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
     2
#define _TEAMSEL_HELPER_INCLUDED
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
     3
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
     4
#include <QLabel>
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
     5
#include <QWidget>
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
     6
#include <QString>
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
     7
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
     8
#include "teamselect.h"
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
     9
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    10
class TeamLabel : public QLabel
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    11
{
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    12
 Q_OBJECT
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    13
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    14
 public:
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    15
 TeamLabel(const QString& inp_str) : QLabel(inp_str) {};
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    16
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    17
 signals:
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    18
 void teamActivated(QString team_name);
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    19
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    20
 public slots:
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    21
 void teamButtonClicked();
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    22
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    23
};
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    24
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    25
class TeamShowWidget : public QWidget
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    26
{
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    27
 Q_OBJECT
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    28
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    29
 private slots:
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    30
 void activateTeam();
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    31
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    32
 public:
117
d21a48200772 HWTeam integration in team select widget
displacer
parents: 80
diff changeset
    33
 TeamShowWidget(HWTeam team, QWidget * parent = 0);
80
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    34
 
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    35
 private:
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    36
 QHBoxLayout mainLayout;
117
d21a48200772 HWTeam integration in team select widget
displacer
parents: 80
diff changeset
    37
 HWTeam m_team;
80
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    38
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    39
 signals:
117
d21a48200772 HWTeam integration in team select widget
displacer
parents: 80
diff changeset
    40
 void teamStatusChanged(HWTeam team);
80
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    41
};
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    42
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    43
#endif // _TEAMSEL_HELPER_INCLUDED