tools/MissionsEditor/editor.h
author nemo
Thu, 01 Jul 2010 14:17:22 -0400
changeset 3602 99c93fa258d6
parent 2596 41b46f83d088
permissions -rw-r--r--
Restore prior optimisation with the wildly out-of-bounds tx in LandDirty removed
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