tools/MissionsEditor/teamedit.h
author unc0rr
Fri, 30 Oct 2009 19:28:44 +0000
changeset 2594 0047e16dbacb
parent 2589 4329597c85c8
child 2596 41b46f83d088
permissions -rw-r--r--
Add loading team parameters
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2589
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
     1
#ifndef TEAMEDIT_H
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
     2
#define TEAMEDIT_H
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
     3
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
     4
#include <QtGui/QWidget>
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
     5
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
     6
namespace Ui {
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
     7
    class TeamEdit;
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
     8
}
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
     9
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
    10
class TeamEdit : public QWidget {
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
    11
    Q_OBJECT
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
    12
public:
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
    13
    TeamEdit(QWidget *parent = 0);
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
    14
    ~TeamEdit();
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
    15
2594
0047e16dbacb Add loading team parameters
unc0rr
parents: 2589
diff changeset
    16
    void addTeam(const QString & teamName = QString(), quint32 color = 0xdd0000);
0047e16dbacb Add loading team parameters
unc0rr
parents: 2589
diff changeset
    17
    void setFort(const QString & name);
0047e16dbacb Add loading team parameters
unc0rr
parents: 2589
diff changeset
    18
    void setGrave(const QString & name);
0047e16dbacb Add loading team parameters
unc0rr
parents: 2589
diff changeset
    19
    void setVoicepack(const QString & name);
2589
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
    20
protected:
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
    21
    void changeEvent(QEvent *e);
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
    22
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
    23
private:
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
    24
    Ui::TeamEdit *m_ui;
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
    25
};
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
    26
4329597c85c8 Further work on missions editor
unc0rr
parents:
diff changeset
    27
#endif // TEAMEDIT_H