dialogs::unit_preview_pane Class Reference

#include <dialogs.hpp>

Inheritance diagram for dialogs::unit_preview_pane:

Inheritance graph
[legend]
Collaboration diagram for dialogs::unit_preview_pane:

Collaboration graph
[legend]

List of all members.

Public Types

enum  TYPE { SHOW_ALL, SHOW_BASIC }

Public Member Functions

 unit_preview_pane (game_display &disp, const gamemap *map, TYPE type=SHOW_ALL, bool left_side=true)
 Show unit-stats in a side-pane to unit-list, recall-list, etc.
bool show_above () const
bool left_side () const
void set_selection (int index)
handler_vector handler_members ()

Protected Attributes

game_displaydisp_
const gamemapmap_
int index_
gui::button details_button_

Private Member Functions

virtual size_t size () const =0
virtual const details get_details () const =0
virtual void process_event ()=0
void draw_contents ()

Private Attributes

bool left_
bool weapons_

Classes

struct  details


Detailed Description

Definition at line 68 of file dialogs.hpp.


Member Enumeration Documentation

Enumerator:
SHOW_ALL 
SHOW_BASIC 

Definition at line 71 of file dialogs.hpp.


Constructor & Destructor Documentation

dialogs::unit_preview_pane::unit_preview_pane ( game_display disp,
const gamemap map,
TYPE  type = SHOW_ALL,
bool  left_side = true 
)

Show unit-stats in a side-pane to unit-list, recall-list, etc.

Definition at line 760 of file dialogs.cpp.

References font::relative_size(), gui::widget::set_measurements(), and weapons_.


Member Function Documentation

bool dialogs::unit_preview_pane::show_above (  )  const [virtual]

Reimplemented from gui::preview_pane.

Definition at line 778 of file dialogs.cpp.

References weapons_.

bool dialogs::unit_preview_pane::left_side (  )  const [virtual]

Implements gui::preview_pane.

Definition at line 783 of file dialogs.cpp.

References left_.

Referenced by draw_contents().

void dialogs::unit_preview_pane::set_selection ( int  index  )  [virtual]

handler_vector dialogs::unit_preview_pane::handler_members (  )  [virtual]

Reimplemented from gui::preview_pane.

Definition at line 771 of file dialogs.cpp.

References details_button_.

virtual size_t dialogs::unit_preview_pane::size (  )  const [private, pure virtual]

virtual const details dialogs::unit_preview_pane::get_details (  )  const [private, pure virtual]

virtual void dialogs::unit_preview_pane::process_event (  )  [private, pure virtual]

void dialogs::unit_preview_pane::draw_contents (  )  [private, virtual]


Member Data Documentation

Definition at line 106 of file dialogs.hpp.

Referenced by draw_contents(), and left_side().

Definition at line 107 of file dialogs.hpp.

Referenced by draw_contents(), show_above(), and unit_preview_pane().


The documentation for this class was generated from the following files:

Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs