Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

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)
 Overridable Eventhandler for a SDL_MouseButtonEvent message.

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)
 Overridable Eventhandler for a SDL_MouseMotionEvent message.

Constructor & Destructor Documentation

WeaponInfoPanel::WeaponInfoPanel PG_Widget parent,
const Vehicle veh,
const Vehicletype vt
 

Definition at line 642 of file dashboard.cpp.

References Vehicle::ammo, assert, assignWeaponInfo(), PropertyContainer::closeBracket(), PG_Widget::FindChild(), Surface::getBaseSurface(), Panel::getDefaultWidgetParams(), IconRepository::getIcon(), SingleWeapon::getScalarWeaponType(), PG_Window::GetTitlebarHeight(), ContainerBaseType::hasFunction(), line(), ContainerBaseType::MoveAfterAttack, PG_Widget::MoveWidget(), PropertyContainer::openBracket(), ASCGUI_Window::parsePanelASCTXT(), WeaponInfoLine::registerSpecialDisplay(), ASCGUI_Window::setLabelText(), PG_Widget::SetName(), PG_Widget::SizeWidget(), ASCGUI_Window::textPropertyGroup, Vehicletype::wait, UnitWeapon::weapon, and Vehicletype::weapons.


Member Function Documentation

bool WeaponInfoPanel::eventMouseButtonUp const SDL_MouseButtonEvent *  button  )  [virtual]
 

Overridable Eventhandler for a SDL_MouseButtonEvent message.

This handler is called when a mouse button is released. The default implementation returns 'false' which indicates that this message is not processed by this object.

Parameters:
button SDL_MouseButtonEvent message
Returns:
Notifies the message pump if this message is processed by this object or it should be routed to the next message receiver.

Reimplemented from PG_Window.

Definition at line 779 of file dashboard.cpp.

References PG_Window::eventMouseButtonUp(), and PG_Widget::QuitModal().

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

Overridable Eventhandler for a SDL_MouseMotionEvent message.

This handler is called when mouse movement is detected. The default implementation returns 'false' which indicates that this message is not processed by this object.

Parameters:
motion SDL_MouseMotionEvent message
Returns:
Notifies the message pump if this message is processed by this object or it should be routed to the next message receiver.

Reimplemented from PG_Window.

Definition at line 792 of file dashboard.cpp.

References PG_Widget::IsMouseInside().

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]
 

void WeaponInfoPanel::showWeapon const SingleWeapon weap = NULL  ) 
 

Definition at line 699 of file dashboard.cpp.

References cmovemalitypenum, getheightdelta(), IconRepository::getIcon(), SingleWeapon::getIconFileName(), ASCGUI_Window::hide(), PG_Application::SetBulkMode(), ASCGUI_Window::setImage(), ASCGUI_Window::setLabelColor(), ASCGUI_Window::setLabelText(), ASCGUI_Window::show(), ASCString::toString(), unitCategoryTags, and PG_Widget::Update().

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

const ASCString & WeaponInfoPanel::WIP_Name  )  [static]
 

Definition at line 802 of file dashboard.cpp.

Referenced by UnitInfoPanel::onClick().


The documentation for this class was generated from the following file:
Generated on Tue Jun 24 02:22:25 2008 for Advanced Strategic Command by  doxygen 1.4.2