#include <mp_method_selection.hpp>


Public Member Functions | |
| tmp_method_selection () | |
| const std::string & | user_name () const |
| int | get_choice () const |
Private Member Functions | |
| virtual const std::string & | window_id () const |
| Inherited from tdialog, implemented by REGISTER_DIALOG. | |
| void | pre_show (CVideo &video, twindow &window) |
| Inherited from tdialog. | |
| void | post_show (twindow &window) |
| Inherited from tdialog. | |
Private Attributes | |
| std::string | user_name_ |
| The name to use on the MP server. | |
| int | choice_ |
| The selected method to `connect' to the MP server. | |
Definition at line 23 of file mp_method_selection.hpp.
| gui2::tmp_method_selection::tmp_method_selection | ( | ) | [inline] |
Definition at line 26 of file mp_method_selection.hpp.
| int gui2::tmp_method_selection::get_choice | ( | ) | const [inline] |
Definition at line 33 of file mp_method_selection.hpp.
References choice_.
Referenced by game_controller::play_multiplayer().

| void gui2::tmp_method_selection::post_show | ( | twindow & | window | ) | [private, virtual] |
Inherited from tdialog.
Reimplemented from gui2::tdialog.
Definition at line 70 of file mp_method_selection.cpp.
References choice_, gui2::tdialog::get_retval(), gui2::ttext_::get_value(), gui2::twindow::OK, gui2::ttext_box::save_to_history(), preferences::set_login(), and user_name_.

Inherited from tdialog.
Reimplemented from gui2::tdialog.
Definition at line 56 of file mp_method_selection.cpp.
References preferences::login(), mp::max_login_size, gui2::ttext_::set_maximum_length(), and gui2::ttext_::set_value().

| const std::string& gui2::tmp_method_selection::user_name | ( | ) | const [inline] |
Definition at line 31 of file mp_method_selection.hpp.
References user_name_.
| virtual const std::string& gui2::tmp_method_selection::window_id | ( | ) | const [private, virtual] |
Inherited from tdialog, implemented by REGISTER_DIALOG.
Implements gui2::tdialog.
int gui2::tmp_method_selection::choice_ [private] |
The selected method to `connect' to the MP server.
Definition at line 41 of file mp_method_selection.hpp.
Referenced by get_choice(), and post_show().
std::string gui2::tmp_method_selection::user_name_ [private] |
The name to use on the MP server.
Definition at line 38 of file mp_method_selection.hpp.
Referenced by post_show(), and user_name().
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:22:35 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |