QTfrontend/teamselhelper.h
author displacer
Mon, 18 Sep 2006 17:56:27 +0000
changeset 152 c558957ef644
parent 150 d9e8a336195c
child 153 dc10da2a73f9
permissions -rw-r--r--
teams moving order fixed
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"
140
50ccde437ea1 teams and hedgedogs num selection added to HWgame
displacer
parents: 132
diff changeset
     9
#include "hedgehogerWidget.h"
80
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    10
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    11
class TeamLabel : public QLabel
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    12
{
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    13
 Q_OBJECT
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    14
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    15
 public:
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    16
 TeamLabel(const QString& inp_str) : QLabel(inp_str) {};
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    17
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    18
 signals:
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    19
 void teamActivated(QString team_name);
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    20
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    21
 public slots:
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    22
 void teamButtonClicked();
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
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    26
class TeamShowWidget : public QWidget
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    27
{
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    28
 Q_OBJECT
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    29
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    30
 private slots:
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    31
 void activateTeam();
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    32
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    33
 public:
150
d9e8a336195c team hedgehogs number improved
displacer
parents: 140
diff changeset
    34
 TeamShowWidget(HWTeam team, bool isPlaying, QWidget * parent);
132
2d0f404cdf05 first hedgehogs number selection added
displacer
parents: 117
diff changeset
    35
 void setPlaying(bool isPlaying);
152
c558957ef644 teams moving order fixed
displacer
parents: 150
diff changeset
    36
 unsigned char getHedgehogsNum() const;
80
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    37
 
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    38
 private:
150
d9e8a336195c team hedgehogs number improved
displacer
parents: 140
diff changeset
    39
 TeamShowWidget();
80
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    40
 QHBoxLayout mainLayout;
117
d21a48200772 HWTeam integration in team select widget
displacer
parents: 80
diff changeset
    41
 HWTeam m_team;
132
2d0f404cdf05 first hedgehogs number selection added
displacer
parents: 117
diff changeset
    42
 bool m_isPlaying;
140
50ccde437ea1 teams and hedgedogs num selection added to HWgame
displacer
parents: 132
diff changeset
    43
 CHedgehogerWidget* phhoger;
80
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
 signals:
117
d21a48200772 HWTeam integration in team select widget
displacer
parents: 80
diff changeset
    46
 void teamStatusChanged(HWTeam team);
80
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    47
};
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    48
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    49
#endif // _TEAMSEL_HELPER_INCLUDED