mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-04 14:07:30 +00:00
gui: implement status bar based upon device state
When device has not been connected for the first time, status bar doesn't any information. This implementation tries to encapsulate changes required on several widgets associated with status bar based upon device state whether this has been connected or not.
This commit is contained in:
parent
b15084032a
commit
07e000f01e
2 changed files with 67 additions and 30 deletions
|
|
@ -61,7 +61,17 @@ private slots:
|
|||
nlohmann::json SaveSetup();
|
||||
void LoadSetup(nlohmann::json j);
|
||||
private:
|
||||
|
||||
enum DeviceStatusBar {
|
||||
Connected,
|
||||
Updated,
|
||||
Disconnected,
|
||||
};
|
||||
|
||||
void DeviceConnectionLost();
|
||||
|
||||
void SetupStatusBar();
|
||||
void UpdateStatusBar(DeviceStatusBar status);
|
||||
void CreateToolbars();
|
||||
void SetupSCPI();
|
||||
void StartTCPServer(int port);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue