| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
#pragma once |
| 5 |
|
| 6 |
#include <optional> |
| 7 |
|
| 8 |
#include <QDialog> |
| 9 |
|
| 10 |
class QDialogButtonBox; |
| 11 |
class QGridLayout; |
| 12 |
class QLineEdit; |
| 13 |
class QSpinBox; |
| 14 |
|
| 15 |
class DualShockUDPClientEditServerDialog final : public QDialog |
| 16 |
{ |
| 17 |
Q_OBJECT |
| 18 |
public: |
| 19 |
explicit DualShockUDPClientEditServerDialog(QWidget* parent, |
| 20 |
std::optional<size_t> existing_index); |
| 21 |
|
| 22 |
private: |
| 23 |
void CreateWidgets(); |
| 24 |
void OnServerFinished(); |
| 25 |
|
| 26 |
std::optional<size_t> m_existing_index; |
| 27 |
QDialogButtonBox* m_buttonbox; |
| 28 |
QGridLayout* m_main_layout; |
| 29 |
QLineEdit* m_description; |
| 30 |
QLineEdit* m_server_address; |
| 31 |
QSpinBox* m_server_port; |
| 32 |
}; |