qgcApp()->showAppMessage(tr("Instrument Values"),tr("The support for custom instrument values display has changed. Because of this the display will be reset to the new default setup. You will need to modify it again to suit your needs."));
}
}
voidInstrumentValueArea::_saveSettings(void)
{
if(_preventSaveSettings){
return;
}
QSettingssettings;
if(_userSettingsGroup.isEmpty()){
// This means we are setting up default settings
settings.beginGroup(_defaultSettingsGroup);
}else{
// This means we are saving user modifications
settings.remove(_defaultSettingsGroup);
settings.beginGroup(_userSettingsGroup);
}
settings.remove("");// Remove any previous settings
qgcApp()->showAppMessage(tr("Load Settings"),tr("Settings version %1 for %2 is not supported. Setup will be reset to defaults.").arg(version).arg(_userSettingsGroup));
HorizontalOrientation=0,// Labels will be to the left of the value
VerticalOrientation// Labels will be above the value
};
Q_ENUMS(Orientation)
enumFontSize{
DefaultFontSize=0,
SmallFontSize,
MediumFontSize,
LargeFontSize,
};
Q_ENUMS(FontSize)
// valuePageDefaultSettingsGroup:
// This is the setting group name for default settings which are used when the user has not modified anything from the default setup. These settings will be overwritten
// prior to each use by the call to QGCCorePlugin::instrumentValueAreaCreateDefaultSettings.
// valuePageUserSettingsGroup:
// This is the settings group name for user modified settings. Settings will be saved to here whenever the user modified anything. Also at that point in time the
// defaults settings group will be removed.
// The combination of the two valuePage*SettingsGroup values allows each InstrumentValueArea to have it's own persistence space.