-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettingsdialog.h
executable file
·50 lines (38 loc) · 1.03 KB
/
settingsdialog.h
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef SETTINGSDIALOG_H
#define SETTINGSDIALOG_H
#include <QObject>
#include "common.h"
#include <QWidget>
#include <QInputDialog>
#include "QsKineticScroller.h"
namespace Ui {
class SettingsDialog;
}
class SettingsDialog : public QWidget
{
Q_OBJECT
public:
explicit SettingsDialog(QWidget *parent = 0);
SettingsDialog(QList<serverprofile> profiles,QWidget *parent);
~SettingsDialog();
QList<serverprofile> getProfiles();
private:
Ui::SettingsDialog *ui;
QList<serverprofile> profiles;
serverprofile getServerProfile(QString name);
QsKineticScroller *kineticscroller;
public slots:
void connectionEstablished();
protected slots:
void okClicked();
void selectedProfileChange(QString text);
void addProfile();
void deleteProfile();
void makeNoDefault();
void valueChanged();
signals:
void connectRequest(serverprofile);
void okRequested(QList<serverprofile>);
void cancelRequested();
};
#endif // SETTINGSDIALOG_H