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

DashboardPanel Class Reference

#include <dashboard.h>

Inheritance diagram for DashboardPanel:

Inheritance graph
[legend]
List of all members.

Public Member Functions

void eval ()
void showUnitData (Vehicle *veh, Building *bld, tfield *fld, bool redraw=false)

Protected Member Functions

 DashboardPanel (PG_Widget *parent, const PG_Rect &r, const ASCString &panelName_, bool loadTheme)
void painter (const PG_Rect &src, const ASCString &name, const PG_Rect &dst)
void registerSpecialDisplay (const ASCString &name)
void reset (GameMap &map)
bool containerRenamed (PG_LineEdit *lineEdit)
bool viewExperienceOverview ()

Protected Attributes

Vehicleveh
Buildingbld

Constructor & Destructor Documentation

DashboardPanel::DashboardPanel PG_Widget parent,
const PG_Rect r,
const ASCString panelName_,
bool  loadTheme
[protected]
 

Definition at line 108 of file dashboard.cpp.

References ContainerBase::anyContainerDestroyed, eval(), registerSpecialDisplay(), reset(), GameMap::sigMapDeletion, ASCString::toString(), updateFieldInfo, and viewExperienceOverview().


Member Function Documentation

bool DashboardPanel::containerRenamed PG_LineEdit lineEdit  )  [protected]
 

Definition at line 155 of file dashboard.cpp.

References bld, ContainerBase::getMap(), ContainerBase::getOwner(), Vehicle::name, and veh.

Referenced by UnitInfoPanel::UnitInfoPanel().

void DashboardPanel::eval  ) 
 

Definition at line 295 of file dashboard.cpp.

References actmap, GameMap::actplayer, tfield::bdt, bld, tfield::building, cbharbour, cbpipeline, Player::cursorPos, fieldvisiblenow(), tfield::getattackbonus(), tfield::getdefensebonus(), GameMap::getField(), tfield::getjamming(), getmaxwindspeedforunit(), GameMap::getPlayerView(), maxint, maxwindspeed, TerrainType::name, GameMap::player, ASCGUI_Window::setBarGraphColor(), ASCGUI_Window::setBargraphValue(), ASCGUI_Window::setLabelText(), showUnitData(), TerrainType::Weather::terraintype, tfield::typ, MapCoordinate::valid(), veh, tfield::vehicle, GameMap::weather, and GameMap::Weather::windSpeed.

Referenced by DashboardPanel(), and NewGuiHost::evalCursor().

void DashboardPanel::painter const PG_Rect src,
const ASCString name,
const PG_Rect dst
[protected]
 

Reimplemented in WindInfoPanel, and MapInfoPanel.

Definition at line 193 of file dashboard.cpp.

References actmap, GameMap::actplayer, MegaBlitter< BytesPerSourcePixel, BytesPerTargetPixel, SourceColorTransform, ColorMerger, SourcePixelSelector, TargetPixelSelector, MyColorConverter >::blit(), Vehicle::experience, fieldvisiblenow(), Player::getColor(), GameMap::getCursor(), GameMap::getField(), IconRepository::getIcon(), SingleWeapon::getIconFileName(), ContainerBase::getMap(), ContainerBase::getOwner(), ContainerBase::getOwningPlayer(), GameMap::getPlayerView(), Vehicle::getPosition(), SingleWeapon::getScalarWeaponType(), PG_Application::GetScreen(), Vehicletype::height, Vehicle::height, Vehicletype::paint(), GameMap::player, screen, SingleWeapon::service(), ASCString::toString(), Vehicle::typ, MapCoordinate::valid(), veh, UnitWeapon::weapon, Vehicletype::weapons, GameMap::weather, GameMap::Weather::windDirection, GameMap::Weather::windSpeed, and Surface::Wrap().

Referenced by registerSpecialDisplay().

void DashboardPanel::registerSpecialDisplay const ASCString name  )  [protected]
 

Definition at line 185 of file dashboard.cpp.

References SpecialDisplayWidget::display, PG_Widget::FindChild(), and painter().

Referenced by DashboardPanel().

void DashboardPanel::reset GameMap map  )  [protected]
 

Definition at line 174 of file dashboard.cpp.

References bld, ContainerBase::getMap(), and veh.

Referenced by DashboardPanel().

void DashboardPanel::showUnitData Vehicle veh,
Building bld,
tfield fld,
bool  redraw = false
 

Definition at line 366 of file dashboard.cpp.

References Vehicle::ammo, Vehicletype::armor, SingleWeapon::count, cwminen, ContainerBase::damage, Vehicletype::description, Vehicletype::fuelConsumption, Building::getArmor(), Building::getAvailableResource(), PG_Application::GetBulkMode(), UnitHooveringLogic::getEndurance(), Vehicle::getMovement(), SingleWeapon::getScalarWeaponType(), ContainerBase::getStorageCapacity(), Vehicle::getTank(), ContainerBaseType::hasFunction(), maxint, SingleWeapon::maxstrength, Building::name, Vehicle::name, ContainerBaseType::name, ContainerBaseType::NoReactionfire, tfield::objects, SingleWeapon::reactionFireShots, PG_Widget::Redraw(), SingleWeapon::service(), ASCGUI_Window::setBargraphValue(), PG_Application::SetBulkMode(), ASCGUI_Window::setLabelText(), SingleWeapon::shootable(), ASCString::toString(), Building::typ, Vehicle::typ, UnitWeapon::weapon, and Vehicletype::weapons.

Referenced by eval().

bool DashboardPanel::viewExperienceOverview  )  [protected]
 

Definition at line 132 of file dashboard.cpp.

References PG_Widget::GetParent(), ExperienceOverview::RunModal(), and PG_Widget::Show().

Referenced by DashboardPanel().


Member Data Documentation

Building* DashboardPanel::bld [protected]
 

Definition at line 45 of file dashboard.h.

Referenced by containerRenamed(), eval(), and reset().

Vehicle* DashboardPanel::veh [protected]
 

Definition at line 44 of file dashboard.h.

Referenced by containerRenamed(), eval(), UnitInfoPanel::onClick(), painter(), and reset().


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