QTfrontend/teamselhelper.h
author displacer
Sun, 03 Sep 2006 12:56:13 +0000
changeset 132 2d0f404cdf05
parent 117 d21a48200772
child 140 50ccde437ea1
permissions -rw-r--r--
first hedgehogs number selection added
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:
132
2d0f404cdf05 first hedgehogs number selection added
displacer
parents: 117
diff changeset
    33
 TeamShowWidget(HWTeam team, bool isPlaying, QWidget * parent = 0);
2d0f404cdf05 first hedgehogs number selection added
displacer
parents: 117
diff changeset
    34
 void setPlaying(bool isPlaying);
80
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    35
 
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    36
 private:
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    37
 QHBoxLayout mainLayout;
117
d21a48200772 HWTeam integration in team select widget
displacer
parents: 80
diff changeset
    38
 HWTeam m_team;
132
2d0f404cdf05 first hedgehogs number selection added
displacer
parents: 117
diff changeset
    39
 bool m_isPlaying;
80
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    40
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    41
 signals:
117
d21a48200772 HWTeam integration in team select widget
displacer
parents: 80
diff changeset
    42
 void teamStatusChanged(HWTeam team);
80
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    43
};
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    44
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    45
#endif // _TEAMSEL_HELPER_INCLUDED