about summary refs log tree commit diff stats
path: root/src/connection_dialog.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/connection_dialog.h')
-rw-r--r--src/connection_dialog.h30
1 files changed, 30 insertions, 0 deletions
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 @@
1#ifndef CONNECTION_DIALOG_H_E526D0E7
2#define CONNECTION_DIALOG_H_E526D0E7
3
4#include <wx/wxprec.h>
5
6#ifndef WX_PRECOMP
7#include <wx/wx.h>
8#endif
9
10#include <string>
11
12class ConnectionDialog : public wxDialog {
13 public:
14 ConnectionDialog();
15
16 std::string GetServerValue() { return server_box_->GetValue().ToStdString(); }
17
18 std::string GetPlayerValue() { return player_box_->GetValue().ToStdString(); }
19
20 std::string GetPasswordValue() {
21 return password_box_->GetValue().ToStdString();
22 }
23
24 private:
25 wxTextCtrl* server_box_;
26 wxTextCtrl* player_box_;
27 wxTextCtrl* password_box_;
28};
29
30#endif /* end of include guard: CONNECTION_DIALOG_H_E526D0E7 */