Public Member Functions | Private Member Functions | Private Attributes

gui2::tunit_create Class Reference

#include <unit_create.hpp>

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

List of all members.

Public Member Functions

 tunit_create ()
const std::string & choice () const
 Unit type choice from the user.
bool no_choice () const
 Whether the user actually chose a unit type or not.
unit_race::GENDER gender ()
 Gender choice from the user.

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.
void gender_toggle_callback (twindow &window)

Private Attributes

unit_race::GENDER gender_
std::string choice_
std::vector< std::string > type_ids_

Detailed Description

Definition at line 27 of file unit_create.hpp.


Constructor & Destructor Documentation

gui2::tunit_create::tunit_create (  ) 

Definition at line 82 of file unit_create.cpp.


Member Function Documentation

const std::string& gui2::tunit_create::choice (  )  const [inline]

Unit type choice from the user.

Definition at line 33 of file unit_create.hpp.

References choice_.

Referenced by events::menu_handler::create_unit_2().

Here is the caller graph for this function:

unit_race::GENDER gui2::tunit_create::gender (  )  [inline]

Gender choice from the user.

Definition at line 39 of file unit_create.hpp.

References gender_.

Referenced by events::menu_handler::create_unit_2().

Here is the caller graph for this function:

void gui2::tunit_create::gender_toggle_callback ( twindow window  )  [private]

Definition at line 174 of file unit_create.cpp.

References unit_race::FEMALE, gender_, gui2::ttoggle_button::get_value(), and unit_race::MALE.

Here is the call graph for this function:

bool gui2::tunit_create::no_choice (  )  const [inline]

Whether the user actually chose a unit type or not.

Definition at line 36 of file unit_create.hpp.

References choice_.

Referenced by events::menu_handler::create_unit_2().

Here is the caller graph for this function:

void gui2::tunit_create::post_show ( twindow window  )  [private, virtual]

Inherited from tdialog.

Reimplemented from gui2::tdialog.

Definition at line 146 of file unit_create.cpp.

References choice_, ERR_GUI_G, unit_race::FEMALE, gender_, gui2::tdialog::get_retval(), gui2::ttoggle_button::get_value(), and type_ids_.

Here is the call graph for this function:

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

Inherited from tdialog.

Reimplemented from gui2::tdialog.

Definition at line 89 of file unit_create.cpp.

References choice_, ERR_GUI_G, unit_type_data::find(), unit_type_data::find_race(), gender_, unit_type::HELP_INDEX, gui2::ttoggle_button::set_callback_state_change(), type_ids_, unit_type_data::types(), and unit_types.

Here is the call graph for this function:

virtual const std::string& gui2::tunit_create::window_id (  )  const [private, virtual]

Inherited from tdialog, implemented by REGISTER_DIALOG.

Implements gui2::tdialog.


Member Data Documentation

std::string gui2::tunit_create::choice_ [private]

Definition at line 44 of file unit_create.hpp.

Referenced by choice(), no_choice(), post_show(), and pre_show().

Definition at line 42 of file unit_create.hpp.

Referenced by gender(), gender_toggle_callback(), post_show(), and pre_show().

std::vector<std::string> gui2::tunit_create::type_ids_ [private]

Definition at line 45 of file unit_create.hpp.

Referenced by post_show(), and pre_show().


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:38 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs