QTfrontend/teamselhelper.h
author displacer
Sun, 20 Aug 2006 17:18:53 +0000
changeset 121 6c7111eddea9
parent 117 d21a48200772
child 132 2d0f404cdf05
permissions -rw-r--r--
resize fix

#ifndef _TEAMSEL_HELPER_INCLUDED
#define _TEAMSEL_HELPER_INCLUDED

#include <QLabel>
#include <QWidget>
#include <QString>

#include "teamselect.h"

class TeamLabel : public QLabel
{
 Q_OBJECT

 public:
 TeamLabel(const QString& inp_str) : QLabel(inp_str) {};

 signals:
 void teamActivated(QString team_name);

 public slots:
 void teamButtonClicked();

};

class TeamShowWidget : public QWidget
{
 Q_OBJECT

 private slots:
 void activateTeam();

 public:
 TeamShowWidget(HWTeam team, QWidget * parent = 0);
 
 private:
 QHBoxLayout mainLayout;
 HWTeam m_team;

 signals:
 void teamStatusChanged(HWTeam team);
};

#endif // _TEAMSEL_HELPER_INCLUDED