-
Notifications
You must be signed in to change notification settings - Fork 18
/
SettingsDialog.h
53 lines (44 loc) · 1.2 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
51
52
53
#ifndef SETTINGSDIALOG_H
#define SETTINGSDIALOG_H
#include <QDialog>
class QAbstractButton;
class QTcpSocket;
class AddExtensionDialog;
class QTreeWidgetItem;
namespace Ui {
class SettingsDialog;
}
class SettingsDialog : public QDialog
{
Q_OBJECT
public:
explicit SettingsDialog(QWidget *parent = 0);
~SettingsDialog();
void saveSettings();
void loadSettings();
void show();
protected:
void handleButtonBox(QAbstractButton * button);
void okPressed();
void applyPressed();
void onSpeedAddClicked();
void onSpeedEditClicked();
void onSpeedRemoveClicked();
void onAddButtonClicked();
void onRemoveButtonClicked();
void onEditButtonClicked();
void applySettings();
void onReplaceDialAddClicked();
void onReplaceDialRemoveClicked();
void onReplaceDialTreeClicked(QTreeWidgetItem * item, int column);
void onReplaceDialTreeDoubleClicked(QTreeWidgetItem * item, int column);
void onMinCallerIDBoxChanged(int state);
void onAddLanguageBtn();
void loadLanguages();
private:
Ui::SettingsDialog *ui;
QTcpSocket *m_tcpSocket;
AddExtensionDialog *m_addExtensionDialog;
QStringList m_countries;
};
#endif // SETTINGSDIALOG_H