aboutsummaryrefslogtreecommitdiff
path: root/include/widgets/add_server_dialog.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/widgets/add_server_dialog.h')
-rw-r--r--include/widgets/add_server_dialog.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/include/widgets/add_server_dialog.h b/include/widgets/add_server_dialog.h
new file mode 100644
index 00000000..db999bfe
--- /dev/null
+++ b/include/widgets/add_server_dialog.h
@@ -0,0 +1,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