tools/MissionsEditor/editor.h
author nemo
Tue, 16 Feb 2010 02:23:12 +0000
changeset 2818 df7ec369992b
parent 2596 41b46f83d088
permissions -rw-r--r--
Should be equivalent, but in any case, not needed
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