Wizard data broken out into separate files.
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user