
* Ported the project to CMake * Android and Mac support dropped for the time being. * Tests, BASS and Discord-RPC are now options * Restructured and reformated the project. * Merged `include` and `src` * Renamed `resource` to `data` * Renamed various files * External libraries headers are no longer included in `src` * Replaced header guards with #pragma once * Multiple refactors (keywords, headers) * Added Qt6 compatibility * Removed various unused functions and headers * Reworked AOPacket * When content is passed to AOPacket, it should be ensured that the content is already decoded. * Encoding/decoding are now static methods. * Fixed various memory leaks * Removed animation code for AOImage * AOImage is always using static images * Simplified ChatLogPiece
43 lines
902 B
C++
43 lines
902 B
C++
#pragma once
|
|
|
|
#include "interfaces/server_dialog.h"
|
|
|
|
#include <QComboBox>
|
|
#include <QDialogButtonBox>
|
|
#include <QLabel>
|
|
#include <QLineEdit>
|
|
#include <QPlainTextEdit>
|
|
#include <QPushButton>
|
|
#include <QSpinBox>
|
|
|
|
class EditServerDialog : public AttorneyOnline::UI::FavoriteServerDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
EditServerDialog(int index);
|
|
~EditServerDialog() = 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;
|
|
|
|
int index;
|
|
void loadEntry();
|
|
|
|
private Q_SLOTS:
|
|
void onSavePressed() override;
|
|
void onCancelPressed() override;
|
|
};
|