QTfrontend/teamselhelper.h
author unc0rr
Sun, 16 Jul 2006 08:13:51 +0000
changeset 79 29b477319854
parent 61 505691a09dee
child 80 3c3dc6a148ca
permissions -rw-r--r--
- New test map - Baseball bat - Flames - Bots can use baseball bat - Many small changes

#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(tmprop team, QWidget * parent = 0);
 
 private:
 QHBoxLayout mainLayout;
 tmprop m_team;

 signals:
 void teamStatusChanged(tmprop team);
};

#endif // _TEAMSEL_HELPER_INCLUDED