mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-14 03:38:41 -04:00
Massive UI revamping (v7): fixed device workspace index save/restore and removed useless geometry blobs. Fixes #1207
This commit is contained in:
@@ -44,10 +44,6 @@ public:
|
||||
QByteArray serialize() const;
|
||||
bool deserialize(const QByteArray& data);
|
||||
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
|
||||
virtual void setWorkspaceIndex(int index) { m_settings.m_workspaceIndex = index; }
|
||||
virtual int getWorkspaceIndex() const { return m_settings.m_workspaceIndex; }
|
||||
virtual void setGeometryBytes(const QByteArray& blob) { m_settings.m_geometryBytes = blob; }
|
||||
virtual QByteArray getGeometryBytes() const { return m_settings.m_geometryBytes; }
|
||||
|
||||
private:
|
||||
Ui::FCDProPlusGui* ui;
|
||||
|
||||
@@ -46,7 +46,6 @@ void FCDProPlusSettings::resetToDefaults()
|
||||
m_reverseAPIAddress = "127.0.0.1";
|
||||
m_reverseAPIPort = 8888;
|
||||
m_reverseAPIDeviceIndex = 0;
|
||||
m_workspaceIndex = 0;
|
||||
}
|
||||
|
||||
QByteArray FCDProPlusSettings::serialize() const
|
||||
@@ -71,8 +70,6 @@ QByteArray FCDProPlusSettings::serialize() const
|
||||
s.writeU32(16, m_reverseAPIPort);
|
||||
s.writeU32(17, m_reverseAPIDeviceIndex);
|
||||
s.writeBool(18, m_iqOrder);
|
||||
s.writeS32(19, m_workspaceIndex);
|
||||
s.writeBlob(20, m_geometryBytes);
|
||||
|
||||
return s.final();
|
||||
}
|
||||
@@ -119,8 +116,6 @@ bool FCDProPlusSettings::deserialize(const QByteArray& data)
|
||||
d.readU32(17, &uintval, 0);
|
||||
m_reverseAPIDeviceIndex = uintval > 99 ? 99 : uintval;
|
||||
d.readBool(18, &m_iqOrder, true);
|
||||
d.readS32(19, &m_workspaceIndex, 0);
|
||||
d.readBlob(20, &m_geometryBytes);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -47,8 +47,6 @@ struct FCDProPlusSettings {
|
||||
QString m_reverseAPIAddress;
|
||||
uint16_t m_reverseAPIPort;
|
||||
uint16_t m_reverseAPIDeviceIndex;
|
||||
int m_workspaceIndex;
|
||||
QByteArray m_geometryBytes;
|
||||
|
||||
FCDProPlusSettings();
|
||||
void resetToDefaults();
|
||||
|
||||
Reference in New Issue
Block a user