QTfrontend/teamselhelper.h
author unc0rr
Sun, 30 Jul 2006 22:18:37 +0000
changeset 93 c21ff3af56cf
parent 80 3c3dc6a148ca
child 117 d21a48200772
permissions -rw-r--r--
- small fix to translation - Forts preview renders square pixmap
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:
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    33
 TeamShowWidget(tmprop team, QWidget * parent = 0);
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;
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    37
 tmprop m_team;
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:
3c3dc6a148ca - Fixed bug with hedgehog under water using rope
unc0rr
parents: 61
diff changeset
    40
 void teamStatusChanged(tmprop team);
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