WeaponInfoPanel Class Reference

Inheritance diagram for WeaponInfoPanel:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 WeaponInfoPanel (PG_Widget *parent, const Vehicle *veh, const VehicleType *vt)
void showWeapon (const SingleWeapon *weap=NULL)
bool eventMouseButtonUp (const SDL_MouseButtonEvent *button)

Static Public Member Functions

static const ASCStringWIP_Name ()

Protected Member Functions

bool onClick (PG_MessageObject *obj, const SDL_MouseButtonEvent *event)
void painter (const PG_Rect &src, const ASCString &name, const PG_Rect &dst)
bool eventMouseMotion (const SDL_MouseMotionEvent *motion)

Detailed Description

Definition at line 48 of file dashboard.cpp.


Constructor & Destructor Documentation

WeaponInfoPanel::WeaponInfoPanel ( PG_Widget *  parent,
const Vehicle veh,
const VehicleType vt 
)

Definition at line 682 of file dashboard.cpp.

References Vehicle::ammo, assignWeaponInfo(), UnitWeapon::count, Panel::getDefaultWidgetParams(), IconRepository::getIcon(), SingleWeapon::getScalarWeaponType(), ContainerBaseType::hasFunction(), line(), ContainerBaseType::MoveAfterAttack, ASCGUI_Window::parsePanelASCTXT(), WeaponInfoLine::registerSpecialDisplay(), ASCGUI_Window::setLabelText(), ASCGUI_Window::textPropertyGroup, VehicleType::wait, UnitWeapon::weapon, and VehicleType::weapons.


Member Function Documentation

bool WeaponInfoPanel::onClick ( PG_MessageObject *  obj,
const SDL_MouseButtonEvent *  event 
) [protected]

void WeaponInfoPanel::painter ( const PG_Rect &  src,
const ASCString name,
const PG_Rect &  dst 
) [protected]

bool WeaponInfoPanel::eventMouseMotion ( const SDL_MouseMotionEvent *  motion  )  [protected]

Definition at line 832 of file dashboard.cpp.

void WeaponInfoPanel::showWeapon ( const SingleWeapon weap = NULL  ) 

Definition at line 739 of file dashboard.cpp.

References getheightdelta().

Referenced by WeaponInfoLine::activate(), WeaponInfoLine::eventMouseEnter(), and WeaponInfoLine::eventMouseLeave().

bool WeaponInfoPanel::eventMouseButtonUp ( const SDL_MouseButtonEvent *  button  ) 

Definition at line 819 of file dashboard.cpp.

const ASCString & WeaponInfoPanel::WIP_Name (  )  [static]

Definition at line 842 of file dashboard.cpp.

Referenced by UnitInfoPanel::onClick().


The documentation for this class was generated from the following file:
Generated on Mon May 21 01:48:08 2012 for Advanced Strategic Command by  doxygen 1.5.1