Fix model input trims and cosmetic for scale fields

This commit is contained in:
elecpower
2021-09-22 18:57:27 +10:00
committed by Peter Feerick
parent b06cbe92bf
commit 9266ad1f34
6 changed files with 86 additions and 27 deletions
+15
View File
@@ -26,7 +26,11 @@
#include <QtCore>
// identiying names of static abstract item models
constexpr char AIM_EXPO_CARRYTRIM[] {"expo.carrytrim"};
class RadioDataConversionState;
class AbstractStaticItemModel;
enum InputMode {
INPUT_MODE_NONE,
@@ -35,6 +39,14 @@ enum InputMode {
INPUT_MODE_BOTH
};
constexpr int CARRYTRIM_DEFAULT = {0};
constexpr int CARRYTRIM_STICK_OFF = {1};
enum CarryTrimGroups {
CarryTrimSticksGroup = 0x001,
CarryTrimNotSticksGroup = 0x002
};
#define EXPODATA_NAME_LEN 10
class ExpoData {
@@ -58,4 +70,7 @@ class ExpoData {
void convert(RadioDataConversionState & cstate);
void clear() { memset(reinterpret_cast<void *>(this), 0, sizeof(ExpoData)); }
bool isEmpty() const;
QString carryTrimToString() const;
static AbstractStaticItemModel * carryTrimItemModel();
};