QTfrontend/teamselhelper.h
author unc0rr
Tue, 11 Jul 2006 21:09:06 +0000
changeset 76 4e50c2bdeefc
parent 61 505691a09dee
child 80 3c3dc6a148ca
permissions -rw-r--r--
Delete deprecated folder .)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
50
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
     1
#ifndef _TEAMSEL_HELPER_INCLUDED
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
     2
#define _TEAMSEL_HELPER_INCLUDED
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
     3
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
     4
#include <QLabel>
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
     5
#include <QWidget>
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
     6
#include <QString>
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
     7
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
     8
#include "teamselect.h"
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
     9
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    10
class TeamLabel : public QLabel
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    11
{
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    12
 Q_OBJECT
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    13
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    14
 public:
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    15
 TeamLabel(const QString& inp_str) : QLabel(inp_str) {};
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    16
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    17
 signals:
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    18
 void teamActivated(QString team_name);
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    19
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    20
 public slots:
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    21
 void teamButtonClicked();
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    22
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    23
};
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    24
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    25
class TeamShowWidget : public QWidget
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    26
{
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    27
 Q_OBJECT
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    28
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    29
 private slots:
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    30
 void activateTeam();
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    31
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    32
 public:
61
505691a09dee colors added to teamselwidget
displacer
parents: 50
diff changeset
    33
 TeamShowWidget(tmprop team, QWidget * parent = 0);
50
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    34
 
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    35
 private:
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    36
 QHBoxLayout mainLayout;
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    37
 tmprop m_team;
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    38
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    39
 signals:
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    40
 void teamStatusChanged(tmprop team);
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    41
};
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    42
9ab4067dabec TeamSelect widget alpha added
displacer
parents:
diff changeset
    43
#endif // _TEAMSEL_HELPER_INCLUDED