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

#ifndef _TEAMSEL_HELPER_INCLUDED
#define _TEAMSEL_HELPER_INCLUDED

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

#include "teamselect.h"
#include "hedgehogerWidget.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, bool isPlaying, QWidget * parent);
 void setPlaying(bool isPlaying);
 unsigned char getHedgehogsNum() const;
 
 private:
 TeamShowWidget();
 QHBoxLayout mainLayout;
 HWTeam m_team;
 bool m_isPlaying;
 CHedgehogerWidget* phhoger;

 signals:
 void teamStatusChanged(HWTeam team);
};

#endif // _TEAMSEL_HELPER_INCLUDED