@@ -40,14 +40,23 @@ class TimerPanel : public ModelPanel
|
||||
|
||||
class ModulePanel : public ModelPanel
|
||||
{
|
||||
static const int maxChannels = 16;
|
||||
|
||||
struct ChannelFailsafeWidgetsGroup {
|
||||
QComboBox * combo;
|
||||
QDoubleSpinBox * spinbox;
|
||||
};
|
||||
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
ModulePanel(QWidget *parent, ModelData & model, ModuleData & module, GeneralSettings & generalSettings, Firmware * firmware, int moduleIdx);
|
||||
virtual ~ModulePanel();
|
||||
|
||||
virtual void update();
|
||||
|
||||
protected:
|
||||
void updateFailsafe(int channel);
|
||||
|
||||
private slots:
|
||||
void on_trainerMode_currentIndexChanged(int index);
|
||||
void on_protocol_currentIndexChanged(int index);
|
||||
@@ -59,6 +68,7 @@ class ModulePanel : public ModelPanel
|
||||
void on_ppmFrameLength_editingFinished();
|
||||
void on_rxNumber_editingFinished();
|
||||
void on_failsafeMode_currentIndexChanged(int value);
|
||||
void onFailsafeComboIndexChanged(int index);
|
||||
void onFailsafeSpinChanged(double value);
|
||||
|
||||
private:
|
||||
@@ -66,6 +76,7 @@ class ModulePanel : public ModelPanel
|
||||
int moduleIdx;
|
||||
Ui::Module *ui;
|
||||
QVector<QDoubleSpinBox *> failsafeSpins;
|
||||
ChannelFailsafeWidgetsGroup failsafeGroups[maxChannels];
|
||||
};
|
||||
|
||||
class SetupPanel : public ModelPanel
|
||||
|
||||
Reference in New Issue
Block a user