Standalone simulator startup options (#4164)
* [simulator] Save and restore Simulator window sizes and positions (based on current radio profile). * [simulator] Set startup throttle stick lock in standalone sim based on default mode in current Companion radio profile; Add new flag indicating standalone simulator; Unique titles for simulator console windows. * [simulator] New/updated Simulator startup options: Radio profile used for standalone Simulator can now be separate from Companion; Allow selecting a radio profile and EEPROM image file (in addition to radio type) at startup via GUI and CLI; All startup settings are saved between uses.
This commit is contained in:
committed by
Bertrand Songis
parent
fd01376f1e
commit
e204031ef6
@@ -122,6 +122,9 @@ class Profile: protected CompStoreObj
|
||||
int _channelOrder;
|
||||
int _defaultMode;
|
||||
|
||||
// Simulator variables
|
||||
QByteArray _simuWinGeo;
|
||||
|
||||
// Firmware Variables
|
||||
QString _beeper;
|
||||
QString _countryCode;
|
||||
@@ -156,6 +159,8 @@ class Profile: protected CompStoreObj
|
||||
int channelOrder() const;
|
||||
int defaultMode() const;
|
||||
|
||||
QByteArray simuWinGeo() const;
|
||||
|
||||
QString beeper() const;
|
||||
QString countryCode() const;
|
||||
QString display() const;
|
||||
@@ -188,6 +193,8 @@ class Profile: protected CompStoreObj
|
||||
void channelOrder (const int);
|
||||
void defaultMode (const int);
|
||||
|
||||
void simuWinGeo (const QByteArray);
|
||||
|
||||
void beeper (const QString);
|
||||
void countryCode (const QString);
|
||||
void display (const QString);
|
||||
@@ -255,6 +262,7 @@ class AppData: protected CompStoreObj
|
||||
QString _sambaLocation;
|
||||
QString _sambaPort;
|
||||
QString _lastSimulator;
|
||||
QString _simuLastEepe;
|
||||
|
||||
QString _backupDir;
|
||||
QString _gePath;
|
||||
@@ -285,6 +293,7 @@ class AppData: protected CompStoreObj
|
||||
int _id;
|
||||
int _theme;
|
||||
int _warningId;
|
||||
int _simuLastProfId;
|
||||
|
||||
public:
|
||||
// All the get definitions
|
||||
@@ -306,6 +315,7 @@ class AppData: protected CompStoreObj
|
||||
QString sambaLocation();
|
||||
QString sambaPort();
|
||||
QString lastSimulator();
|
||||
QString simuLastEepe();
|
||||
|
||||
QString backupDir();
|
||||
QString gePath();
|
||||
@@ -336,6 +346,7 @@ class AppData: protected CompStoreObj
|
||||
int id();
|
||||
int theme();
|
||||
int warningId();
|
||||
int simuLastProfId();
|
||||
|
||||
// All the set definitions
|
||||
void recentFiles (const QStringList x);
|
||||
@@ -356,6 +367,7 @@ class AppData: protected CompStoreObj
|
||||
void sambaLocation (const QString);
|
||||
void sambaPort (const QString);
|
||||
void lastSimulator (const QString);
|
||||
void simuLastEepe (const QString);
|
||||
|
||||
void backupDir (const QString);
|
||||
void gePath (const QString);
|
||||
@@ -387,10 +399,13 @@ class AppData: protected CompStoreObj
|
||||
void id (const int);
|
||||
void theme (const int);
|
||||
void warningId (const int);
|
||||
void simuLastProfId (const int);
|
||||
|
||||
// Constructor
|
||||
AppData();
|
||||
void init();
|
||||
|
||||
QMap<int, QString> getActiveProfiles();
|
||||
};
|
||||
|
||||
extern AppData g;
|
||||
|
||||
Reference in New Issue
Block a user