tools/MissionsEditor/editor.h
author nemo
Sat, 08 May 2010 21:50:26 +0000
changeset 3450 c250116b9136
parent 2596 41b46f83d088
permissions -rw-r--r--
Fix spectator bug in health tag
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2572
af96861683f8 Start work on missions/trainings editor
unc0rr
parents:
diff changeset
     1
#ifndef EDITOR_H
af96861683f8 Start work on missions/trainings editor
unc0rr
parents:
diff changeset
     2
#define EDITOR_H
af96861683f8 Start work on missions/trainings editor
unc0rr
parents:
diff changeset
     3
af96861683f8 Start work on missions/trainings editor
unc0rr
parents:
diff changeset
     4
#include <QtGui/QMainWindow>
af96861683f8 Start work on missions/trainings editor
unc0rr
parents:
diff changeset
     5
af96861683f8 Start work on missions/trainings editor
unc0rr
parents:
diff changeset
     6
namespace Ui
af96861683f8 Start work on missions/trainings editor
unc0rr
parents:
diff changeset
     7
{
af96861683f8 Start work on missions/trainings editor
unc0rr
parents:
diff changeset
     8
    class editor;
af96861683f8 Start work on missions/trainings editor
unc0rr
parents:
diff changeset
     9
}
af96861683f8 Start work on missions/trainings editor
unc0rr
parents:
diff changeset
    10
2583
f8da275981e5 Partially implement loading mission options
unc0rr
parents: 2572
diff changeset
    11
class QCheckBox;
f8da275981e5 Partially implement loading mission options
unc0rr
parents: 2572
diff changeset
    12
2572
af96861683f8 Start work on missions/trainings editor
unc0rr
parents:
diff changeset
    13
class editor : public QMainWindow
af96861683f8 Start work on missions/trainings editor
unc0rr
parents:
diff changeset
    14
{
af96861683f8 Start work on missions/trainings editor
unc0rr
parents:
diff changeset
    15
    Q_OBJECT
af96861683f8 Start work on missions/trainings editor
unc0rr
parents:
diff changeset
    16
af96861683f8 Start work on missions/trainings editor
unc0rr
parents:
diff changeset
    17
public:
af96861683f8 Start work on missions/trainings editor
unc0rr
parents:
diff changeset
    18
    editor(QWidget *parent = 0);
af96861683f8 Start work on missions/trainings editor
unc0rr
parents:
diff changeset
    19
    ~editor();
af96861683f8 Start work on missions/trainings editor
unc0rr
parents:
diff changeset
    20
af96861683f8 Start work on missions/trainings editor
unc0rr
parents:
diff changeset
    21
private:
af96861683f8 Start work on missions/trainings editor
unc0rr
parents:
diff changeset
    22
    Ui::editor *ui;
2583
f8da275981e5 Partially implement loading mission options
unc0rr
parents: 2572
diff changeset
    23
    QList<QCheckBox  *> cbFlags;
f8da275981e5 Partially implement loading mission options
unc0rr
parents: 2572
diff changeset
    24
f8da275981e5 Partially implement loading mission options
unc0rr
parents: 2572
diff changeset
    25
    void load(const QString & fileName);
2596
41b46f83d088 Compete loading teams/hedgehogs part from mission config
unc0rr
parents: 2583
diff changeset
    26
    void reset();
2583
f8da275981e5 Partially implement loading mission options
unc0rr
parents: 2572
diff changeset
    27
f8da275981e5 Partially implement loading mission options
unc0rr
parents: 2572
diff changeset
    28
private slots:
f8da275981e5 Partially implement loading mission options
unc0rr
parents: 2572
diff changeset
    29
    void on_actionLoad_triggered();
2572
af96861683f8 Start work on missions/trainings editor
unc0rr
parents:
diff changeset
    30
};
af96861683f8 Start work on missions/trainings editor
unc0rr
parents:
diff changeset
    31
af96861683f8 Start work on missions/trainings editor
unc0rr
parents:
diff changeset
    32
#endif // EDITOR_H