chore: Companion - port of OpenTX function switches management (#1694)
* TPro - Port of OpenTX function switches management (https://github.com/opentx/opentx/pull/8847) * cleanup * Corrections * Fix YAML generation and adjusted switches to match TPRO firmware Co-authored-by: Batam <batam@macbook-pro.home>
This commit is contained in:
@@ -143,7 +143,11 @@ class FunctionSwitchesPanel : public ModelPanel
|
||||
virtual void update();
|
||||
void update(int index);
|
||||
|
||||
signals:
|
||||
void updateDataModels();
|
||||
|
||||
private slots:
|
||||
void on_nameEditingFinished();
|
||||
void on_configCurrentIndexChanged(int index);
|
||||
void on_startPosnCurrentIndexChanged(int index);
|
||||
void on_groupChanged(int value);
|
||||
@@ -207,6 +211,7 @@ class SetupPanel : public ModelPanel
|
||||
void onItemModelAboutToBeUpdated();
|
||||
void onItemModelUpdateComplete();
|
||||
void onModuleUpdateItemModels();
|
||||
void onFunctionSwitchesUpdateItemModels();
|
||||
void on_jitterFilter_currentIndexChanged(int index);
|
||||
|
||||
private:
|
||||
@@ -217,6 +222,8 @@ class SetupPanel : public ModelPanel
|
||||
QVector<QCheckBox *> centerBeepCheckboxes;
|
||||
ModulePanel * modules[CPN_MAX_MODULES + 1];
|
||||
TimerPanel * timers[CPN_MAX_TIMERS];
|
||||
FunctionSwitchesPanel * funcswitches;
|
||||
|
||||
void updateStartupSwitches();
|
||||
void updatePotWarnings();
|
||||
void updateBeepCenter();
|
||||
|
||||
Reference in New Issue
Block a user