mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-07-28 13:04:17 -04:00
Massive UI revamping (v7): fixed device workspace index save/restore and removed useless geometry blobs. Fixes #1207
This commit is contained in:
@@ -46,10 +46,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::SigMFFileInputGUI* ui;
|
||||
|
||||
@@ -36,7 +36,6 @@ void SigMFFileInputSettings::resetToDefaults()
|
||||
m_reverseAPIAddress = "127.0.0.1";
|
||||
m_reverseAPIPort = 8888;
|
||||
m_reverseAPIDeviceIndex = 0;
|
||||
m_workspaceIndex = 0;
|
||||
}
|
||||
|
||||
QByteArray SigMFFileInputSettings::serialize() const
|
||||
@@ -50,8 +49,6 @@ QByteArray SigMFFileInputSettings::serialize() const
|
||||
s.writeString(6, m_reverseAPIAddress);
|
||||
s.writeU32(7, m_reverseAPIPort);
|
||||
s.writeU32(8, m_reverseAPIDeviceIndex);
|
||||
s.writeS32(9, m_workspaceIndex);
|
||||
s.writeBlob(10, m_geometryBytes);
|
||||
|
||||
return s.final();
|
||||
}
|
||||
@@ -85,8 +82,6 @@ bool SigMFFileInputSettings::deserialize(const QByteArray& data)
|
||||
|
||||
d.readU32(8, &uintval, 0);
|
||||
m_reverseAPIDeviceIndex = uintval > 99 ? 99 : uintval;
|
||||
d.readS32(9, &m_workspaceIndex, 0);
|
||||
d.readBlob(10, &m_geometryBytes);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -30,8 +30,6 @@ struct SigMFFileInputSettings {
|
||||
QString m_reverseAPIAddress;
|
||||
uint16_t m_reverseAPIPort;
|
||||
uint16_t m_reverseAPIDeviceIndex;
|
||||
int m_workspaceIndex;
|
||||
QByteArray m_geometryBytes;
|
||||
|
||||
static const unsigned int m_accelerationMaxScale; //!< Max power of 10 multiplier to 2,5,10 base ex: 2 -> 2,5,10,20,50,100,200,500,1000
|
||||
|
||||
|
||||
Reference in New Issue
Block a user