blob: db999bfea64cffa8adcd1bade95d4f031f4f6dd4 (
plain)
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
|
#pragma once
#ifndef ADD_SERVER_DIALOG_H
#define ADD_SERVER_DIALOG_H
#include "interfaces/server_dialog.h"
class QComboBox;
class QDialogButton;
class QDialogButtonBox;
class QLabel;
class QLineEdit;
class QPlainTextEdit;
class QPushButton;
class QSpinBox;
class AddServerDialog : public AttorneyOnline::UI::FavoriteServerDialog {
Q_OBJECT
public:
AddServerDialog();
~AddServerDialog() = default;
private:
QWidget *ui_widget;
QLineEdit *ui_server_display_name_edit;
QLineEdit *ui_server_hostname_edit;
QSpinBox *ui_server_port_box;
QComboBox *ui_server_protocol_box;
QPlainTextEdit *ui_server_description_edit;
QDialogButtonBox *ui_server_dialog_button;
// Legacy Server UI
QLabel *ui_server_legacy_lbl;
QLineEdit *ui_server_legacy_edit;
QPushButton *ui_server_legacy_load_button;
private slots:
void onSavePressed() override;
void onCancelPressed() override;
void parseLegacyServerEntry();
};
#endif // ADD_SERVER_DIALOG_H
|