Wizard data broken out into separate files.

This commit is contained in:
Kjell Kernen
2014-03-03 14:40:02 +01:00
parent 858c9193cb
commit b347b6f9c5
5 changed files with 597 additions and 512 deletions
+39
View File
@@ -0,0 +1,39 @@
#ifndef WIZARDDATA_H
#define WIZARDDATA_H
#include <QObject>
#define MAX_CHANNELS 8
enum Input {NOINPUT, THROTTLE, RUDDER, ELEVATOR, AILERON, FLAP, AIRBREAK};
enum Vehicle {NOVEHICLE, PLANE, MULTICOPTER, HELICOPTER };
QString inputName(Input);
QString vehicleName(Input);
class Channel
{
public:
int sourceDlg; // Originating dialog, only of interest for producer
Input input1;
Input input2;
int weight1;
int weight2;
Channel();
bool isEmpty();
void clear();
QString toString();
};
class Mix:QObject
{
Q_OBJECT
public:
QString name;
Vehicle vehicleType;
Channel channel[MAX_CHANNELS];
QString toString();
};
#endif // WIZARDDATA_H