Public Member Functions | Private Member Functions | Private Attributes

gui2::tcampaign_selection Class Reference

#include <campaign_selection.hpp>

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

List of all members.

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.

Detailed Description

Definition at line 25 of file campaign_selection.hpp.


Constructor & Destructor Documentation

gui2::tcampaign_selection::tcampaign_selection ( const std::vector< config > &  campaigns  )  [inline, explicit]

Definition at line 29 of file campaign_selection.hpp.


Member Function Documentation

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

Here is the call graph for this function:

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

Here is the caller graph for this function:

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.

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

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.


Member Data Documentation

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.

The chosen campaign.

Definition at line 58 of file campaign_selection.hpp.

Referenced by get_choice().


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