feat(cpn): Trainer modes more closely mimic firmware (#3981)
This commit is contained in:
@@ -35,6 +35,7 @@ namespace Ui {
|
||||
}
|
||||
|
||||
class AutoLineEdit;
|
||||
class FilteredItemModel;
|
||||
|
||||
class TimerPanel : public ModelPanel
|
||||
{
|
||||
@@ -79,11 +80,13 @@ class ModulePanel : public ModelPanel
|
||||
public slots:
|
||||
void onExtendedLimitsToggled();
|
||||
void onFailsafeModified(unsigned index);
|
||||
void updateTrainerModeItemModel();
|
||||
|
||||
signals:
|
||||
void channelsRangeChanged();
|
||||
void failsafeModified(unsigned index);
|
||||
void updateItemModels();
|
||||
void protocolChanged();
|
||||
|
||||
private slots:
|
||||
void setupFailsafes();
|
||||
@@ -133,6 +136,10 @@ class ModulePanel : public ModelPanel
|
||||
QMap<int, ChannelFailsafeWidgetsGroup> failsafeGroupsMap;
|
||||
static quint8 failsafesValueDisplayType; // FailsafeValueDisplayTypes
|
||||
void updateFailsafeUI(unsigned channel, quint8 updtSb);
|
||||
FilteredItemModel *trainerModeItemModel;
|
||||
static bool isTrainerModule(int index) { return index < 0; }
|
||||
static bool isInternalModule(int index) { return index == 0; }
|
||||
static bool isExternalModule(int index) { return index > 0; }
|
||||
};
|
||||
|
||||
class FunctionSwitchesPanel : public ModelPanel
|
||||
|
||||
Reference in New Issue
Block a user