From 149e7c0836927e14a926a952bd1a7f0d1b49e779 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Fri, 5 May 2023 15:46:58 -0400 Subject: Organised repo --- src/connection_dialog.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/connection_dialog.h (limited to 'src/connection_dialog.h') diff --git a/src/connection_dialog.h b/src/connection_dialog.h new file mode 100644 index 0000000..5d2703d --- /dev/null +++ b/src/connection_dialog.h @@ -0,0 +1,30 @@ +#ifndef CONNECTION_DIALOG_H_E526D0E7 +#define CONNECTION_DIALOG_H_E526D0E7 + +#include + +#ifndef WX_PRECOMP +#include +#endif + +#include + +class ConnectionDialog : public wxDialog { + public: + ConnectionDialog(); + + std::string GetServerValue() { return server_box_->GetValue().ToStdString(); } + + std::string GetPlayerValue() { return player_box_->GetValue().ToStdString(); } + + std::string GetPasswordValue() { + return password_box_->GetValue().ToStdString(); + } + + private: + wxTextCtrl* server_box_; + wxTextCtrl* player_box_; + wxTextCtrl* password_box_; +}; + +#endif /* end of include guard: CONNECTION_DIALOG_H_E526D0E7 */ -- cgit 1.4.1