Public Member Functions | Private Member Functions | Private Attributes

gui2::tmp_method_selection Class Reference

#include <mp_method_selection.hpp>

Inheritance diagram for gui2::tmp_method_selection:
Inheritance graph
[legend]
Collaboration diagram for gui2::tmp_method_selection:
Collaboration graph
[legend]

List of all members.

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.

Detailed Description

Definition at line 23 of file mp_method_selection.hpp.


Constructor & Destructor Documentation

gui2::tmp_method_selection::tmp_method_selection (  )  [inline]

Definition at line 26 of file mp_method_selection.hpp.


Member Function Documentation

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().

Here is the caller graph for this function:

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_.

Here is the call graph for this function:

void gui2::tmp_method_selection::pre_show ( CVideo video,
twindow window 
) [private, virtual]

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().

Here is the call graph for this function:

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.


Member Data Documentation

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().

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().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Thu May 24 2012 01:22:35 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs