mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-08-20 21:43:12 -07:00
Toggle Discovery
This commit is contained in:
parent
696cf7823f
commit
fd0bf8600d
8 changed files with 134 additions and 31 deletions
|
@ -24,6 +24,7 @@
|
|||
|
||||
class DynamicGridWidget;
|
||||
class ServerItemWidget;
|
||||
class Settings;
|
||||
|
||||
struct DisplayServer
|
||||
{
|
||||
|
@ -36,6 +37,10 @@ class MainWindow : public QMainWindow
|
|||
Q_OBJECT
|
||||
|
||||
private:
|
||||
Settings *settings;
|
||||
|
||||
QAction *discover_action;
|
||||
|
||||
DynamicGridWidget *grid_widget;
|
||||
QList<ServerItemWidget *> server_item_widgets;
|
||||
|
||||
|
@ -47,14 +52,14 @@ class MainWindow : public QMainWindow
|
|||
void ServerItemWidgetSelected();
|
||||
void ServerItemWidgetTriggered();
|
||||
|
||||
void RunDiscovery();
|
||||
void UpdateDiscoveryEnabled();
|
||||
void ShowSettings();
|
||||
|
||||
void UpdateDisplayServers();
|
||||
void UpdateServerWidgets();
|
||||
|
||||
public:
|
||||
explicit MainWindow(QWidget *parent = nullptr);
|
||||
explicit MainWindow(Settings *settings, QWidget *parent = nullptr);
|
||||
~MainWindow() override;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue