5 * th9x - http://code.google.com/p/th9x
6 * er9x - http://code.google.com/p/er9x
7 * gruvin9x - http://code.google.com/p/gruvin9x
9 * License GPLv2: http://www.gnu.org/licenses/gpl-2.0.html
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License version 2 as
13 * published by the Free Software Foundation.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
21 #ifndef _WIZARDDATA_H_
22 #define _WIZARDDATA_H_
24 #include "eeprominterface.h"
26 #define WIZ_MAX_CHANNELS 8
27 // TODO use a constant common to the whole companion
28 // TODO when in the wizard use the getCapacity(...) to know how long the name can be
29 #define WIZ_MODEL_NAME_LENGTH 12
48 #define WIZ_MAX_OPTIONS 3
82 WizardPage page
; // Originating dialog, only of interest for producer
83 bool prebooked
; // Temporary lock variable
97 char name
[WIZ_MODEL_NAME_LENGTH
+ 1];
99 const GeneralSettings
& settings
;
100 const ModelData
& originalModelData
;
102 Channel channel
[WIZ_MAX_CHANNELS
];
103 bool options
[WIZ_MAX_OPTIONS
];
105 WizMix(const GeneralSettings
& settings
, unsigned int modelId
, const ModelData
& modelData
);
106 operator ModelData();
110 void addMix(ModelData
& model
, Input input
, int weight
, int channel
, int & mixerIndex
);
111 void maxMixSwitch(char *name
, MixData
&mix
, int destCh
, int sw
, int weight
);
115 #endif // _WIZARDDATA_H_