tools/MissionsEditor/teamedit.h
branch0.9.14
changeset 4271 3fa9eb4d25b9
parent 4268 cc20f79361d8
child 4273 4035d5b78eeb
child 4274 8292066cb45c
equal deleted inserted replaced
4268:cc20f79361d8 4271:3fa9eb4d25b9
     1 #ifndef TEAMEDIT_H
       
     2 #define TEAMEDIT_H
       
     3 
       
     4 #include <QtGui/QWidget>
       
     5 
       
     6 namespace Ui {
       
     7     class TeamEdit;
       
     8 }
       
     9 
       
    10 class TeamEdit : public QWidget {
       
    11     Q_OBJECT
       
    12 public:
       
    13     TeamEdit(QWidget *parent = 0);
       
    14     ~TeamEdit();
       
    15 
       
    16     void reset();
       
    17     void setTeam(const QString & teamName = QString(), quint32 color = 0xdd0000);
       
    18     void addHedgehog(quint32 level = 0, quint32 health = 100, const QString & name = QString());
       
    19     void setFort(const QString & name);
       
    20     void setGrave(const QString & name);
       
    21     void setLastHHHat(const QString & name);
       
    22     void setLastHHCoords(int x, int y);
       
    23     void setVoicepack(const QString & name);
       
    24 protected:
       
    25     void changeEvent(QEvent *e);
       
    26 
       
    27 private:
       
    28     Ui::TeamEdit *m_ui;
       
    29 };
       
    30 
       
    31 #endif // TEAMEDIT_H