-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwindow.h
More file actions
34 lines (28 loc) · 712 Bytes
/
window.h
File metadata and controls
34 lines (28 loc) · 712 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef WINDOW_H
#define WINDOW_H
#include <QWidget>
#include <QVBoxLayout>
#include <config.h>
#include <QListWidgetItem>
class Window : public QWidget
{
Q_OBJECT
public:
Window();
public slots:
void onListViewItemSelected(QListWidgetItem *item);
void onBtnSettingsPressed();
void onBtnReloadPressed();
private:
void setupUi(Config *config);
Config *loadConfig();
QString getSettingsJsonString(QString filename);
void showErrorAlert(QString message);
void updateConnectionList(Config *config);
void reloadConfig();
Config *config;
QListWidget *listView;
void updateConnections();
bool fileExists(QString path);
};
#endif // WINDOW_H