Public Member Functions | Private Member Functions | Private Attributes

gui2::taddon_list Class Reference

Shows the list of addons on the server. More...

#include <addon_list.hpp>

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

List of all members.

Public Member Functions

 taddon_list (const config &cfg)

Private Member Functions

void collapse (tgrid &grid)
 Collapses the description of an addon.
void expand (tgrid &grid)
 Expands the description of an addon.
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 create_campaign (tpane &pane, const config &campaign)
 Creates a single campaign.
void load (tpane &pane)
 Debug function to load a single campaign.

Private Attributes

const configcfg_
 Config which contains the list with the campaigns.
config::const_child_itors cfg_iterators_
 Debug iterators for testing with --new-widgets.

Detailed Description

Shows the list of addons on the server.

Definition at line 31 of file addon_list.hpp.


Constructor & Destructor Documentation

gui2::taddon_list::taddon_list ( const config cfg  )  [inline, explicit]

Definition at line 35 of file addon_list.hpp.


Member Function Documentation

void gui2::taddon_list::collapse ( tgrid grid  )  [private]

Collapses the description of an addon.

Parameters:
grid The grid of the item whose description to collapse.

Definition at line 59 of file addon_list.cpp.

void gui2::taddon_list::create_campaign ( tpane pane,
const config campaign 
) [private]

Creates a single campaign.

Parameters:
pane The pane to add the campaigns to.
campaign A config object containing the campaign info as send by campaignd.

Definition at line 210 of file addon_list.cpp.

void gui2::taddon_list::expand ( tgrid grid  )  [private]

Expands the description of an addon.

Parameters:
grid The grid of the item whose description to expand.

Definition at line 71 of file addon_list.cpp.

References gui2::twidget::INVISIBLE, and gui2::twidget::VISIBLE.

void gui2::taddon_list::load ( tpane pane  )  [private]

Debug function to load a single campaign.

Parameters:
pane The pane to add the campaigns to.

Definition at line 296 of file addon_list.cpp.

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

Inherited from tdialog.

Todo:
do we really want to keep the length limit for the various items?

Reimplemented from gui2::tdialog.

Definition at line 83 of file addon_list.cpp.

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

Inherited from tdialog, implemented by REGISTER_DIALOG.

Implements gui2::tdialog.


Member Data Documentation

const config& gui2::taddon_list::cfg_ [private]

Config which contains the list with the campaigns.

Definition at line 75 of file addon_list.hpp.

Debug iterators for testing with --new-widgets.

Definition at line 80 of file addon_list.hpp.


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