tools/MissionsEditor/editor.h
author unc0rr
Sun, 25 Oct 2009 12:19:47 +0000
changeset 2583 f8da275981e5
parent 2572 af96861683f8
child 2596 41b46f83d088
permissions -rw-r--r--
Partially implement loading mission options
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);
f8da275981e5 Partially implement loading mission options
unc0rr
parents: 2572
diff changeset
    26
f8da275981e5 Partially implement loading mission options
unc0rr
parents: 2572
diff changeset
    27
private slots:
f8da275981e5 Partially implement loading mission options
unc0rr
parents: 2572
diff changeset
    28
    void on_actionLoad_triggered();
2572
af96861683f8 Start work on missions/trainings editor
unc0rr
parents:
diff changeset
    29
};
af96861683f8 Start work on missions/trainings editor
unc0rr
parents:
diff changeset
    30
af96861683f8 Start work on missions/trainings editor
unc0rr
parents:
diff changeset
    31
#endif // EDITOR_H