#include <campaign_selection.hpp>


Public Member Functions | |
| tcampaign_selection (const std::vector< config > &campaigns) | |
| int | get_choice () const |
Private Member Functions | |
| void | campaign_selected (twindow &window) |
| Called when another campaign is selected. | |
| 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 | |
| const std::vector< config > & | campaigns_ |
| Contains the config objects for all campaigns. | |
| int | choice_ |
| The chosen campaign. | |
Definition at line 25 of file campaign_selection.hpp.
| gui2::tcampaign_selection::tcampaign_selection | ( | const std::vector< config > & | campaigns | ) | [inline, explicit] |
Definition at line 29 of file campaign_selection.hpp.
| void gui2::tcampaign_selection::campaign_selected | ( | twindow & | window | ) | [private] |
Called when another campaign is selected.
Definition at line 75 of file campaign_selection.cpp.
References gui2::ttree_view::empty(), gui2::twidget::id(), lexical_cast(), gui2::new_widgets, and gui2::ttree_view::selected_item().

| int gui2::tcampaign_selection::get_choice | ( | ) | const [inline] |
Definition at line 38 of file campaign_selection.hpp.
References choice_.
Referenced by game_controller::new_campaign().

| void gui2::tcampaign_selection::post_show | ( | twindow & | window | ) | [private, virtual] |
Inherited from tdialog.
Reimplemented from gui2::tdialog.
Definition at line 243 of file campaign_selection.cpp.
Inherited from tdialog.
Reimplemented from gui2::tdialog.
Definition at line 105 of file campaign_selection.cpp.
| virtual const std::string& gui2::tcampaign_selection::window_id | ( | ) | const [private, virtual] |
Inherited from tdialog, implemented by REGISTER_DIALOG.
Implements gui2::tdialog.
const std::vector<config>& gui2::tcampaign_selection::campaigns_ [private] |
Contains the config objects for all campaigns.
Definition at line 55 of file campaign_selection.hpp.
int gui2::tcampaign_selection::choice_ [private] |
The chosen campaign.
Definition at line 58 of file campaign_selection.hpp.
Referenced by get_choice().
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:21:59 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |