#include <dashboard.h>
Inheritance diagram for DashboardPanel:

Public Member Functions | |
| void | eval () |
| void | showUnitData (Vehicle *veh, Building *bld, MapField *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 | |
| Vehicle * | veh |
| Building * | bld |
Definition at line 40 of file dashboard.h.
| DashboardPanel::DashboardPanel | ( | PG_Widget * | parent, | |
| const PG_Rect & | r, | |||
| const ASCString & | panelName_, | |||
| bool | loadTheme | |||
| ) | [protected] |
Definition at line 113 of file dashboard.cpp.
References ContainerBase::anyContainerDestroyed, eval(), registerSpecialDisplay(), reset(), GameMap::sigMapDeletion, ASCString::toString(), updateFieldInfo, and viewExperienceOverview().
| void DashboardPanel::painter | ( | const PG_Rect & | src, | |
| const ASCString & | name, | |||
| const PG_Rect & | dst | |||
| ) | [protected] |
Reimplemented in WindInfoPanel, and MapInfoPanel.
Definition at line 198 of file dashboard.cpp.
References actmap, GameMap::actplayer, MegaBlitter< BytesPerSourcePixel, BytesPerTargetPixel, SourceColorTransform, ColorMerger, SourcePixelSelector, TargetPixelSelector, MyColorConverter >::blit(), UnitWeapon::count, Vehicle::experience, fieldvisiblenow(), Player::getColor(), GameMap::getCursor(), GameMap::getField(), IconRepository::getIcon(), SingleWeapon::getIconFileName(), ContainerBase::getMap(), ContainerBase::getOwner(), ContainerBase::getOwningPlayer(), Player::getPlayerColor(), GameMap::getPlayerView(), Vehicle::getPosition(), SingleWeapon::getScalarWeaponType(), MapField::getWeather(), ContainerBaseType::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 190 of file dashboard.cpp.
References SpecialDisplayWidget::display, and painter().
Referenced by DashboardPanel().
| void DashboardPanel::reset | ( | GameMap & | map | ) | [protected] |
Definition at line 179 of file dashboard.cpp.
References bld, ContainerBase::getMap(), and veh.
Referenced by DashboardPanel().
| bool DashboardPanel::containerRenamed | ( | PG_LineEdit * | lineEdit | ) | [protected] |
Definition at line 160 of file dashboard.cpp.
References GameMap::actplayer, bld, ContainerBase::getMap(), ContainerBase::getOwner(), ContainerBase::name, and veh.
| bool DashboardPanel::viewExperienceOverview | ( | ) | [protected] |
Definition at line 137 of file dashboard.cpp.
References ExperienceOverview::RunModal().
Referenced by DashboardPanel().
| void DashboardPanel::eval | ( | ) |
Definition at line 300 of file dashboard.cpp.
References actmap, GameMap::actplayer, MapField::bdt, bld, MapField::building, cbharbour, cbpipeline, Player::cursorPos, fieldvisiblenow(), MapField::getattackbonus(), MapField::getdefensebonus(), GameMap::getField(), MapField::getjamming(), getmaxwindspeedforunit(), GameMap::getPlayerView(), maxint, maxwindspeed, TerrainType::name, GameMap::player, ASCGUI_Window::setBarGraphColor(), ASCGUI_Window::setBargraphValue(), ASCGUI_Window::setLabelText(), showUnitData(), TerrainType::Weather::terraintype, MapField::typ, MapCoordinate::valid(), veh, MapField::vehicle, GameMap::weather, and GameMap::Weather::windSpeed.
Referenced by DashboardPanel(), and NewGuiHost::evalCursor().
| void DashboardPanel::showUnitData | ( | Vehicle * | veh, | |
| Building * | bld, | |||
| MapField * | fld, | |||
| bool | redraw = false | |||
| ) |
Definition at line 371 of file dashboard.cpp.
References Vehicle::ammo, VehicleType::armor, bld, SingleWeapon::count, UnitWeapon::count, cwminen, ContainerBase::damage, ContainerBaseType::description, Resources::energy, fieldvisiblenow(), Resources::fuel, VehicleType::fuelConsumption, Building::getArmor(), Building::getAvailableResource(), UnitHooveringLogic::getEndurance(), ContainerBase::getMap(), Vehicle::getMovement(), ContainerBase::getOwner(), GameMap::getPlayerView(), SingleWeapon::getScalarWeaponType(), ContainerBase::getStorageCapacity(), Vehicle::getTank(), ContainerBaseType::hasFunction(), ASCGUI_Window::hide(), ContainerBaseType::infoImageSmallFilename, Resources::material, maxint, SingleWeapon::maxstrength, ContainerBase::name, ContainerBaseType::name, ContainerBaseType::NoReactionfire, MapField::objects, ContainerBase::privateName, SingleWeapon::reactionFireShots, SingleWeapon::service(), ASCGUI_Window::setBargraphValue(), ASCGUI_Window::setImage(), ASCGUI_Window::setLabelText(), SingleWeapon::shootable(), ASCGUI_Window::show(), ASCString::toString(), Building::typ, Vehicle::typ, veh, UnitWeapon::weapon, and VehicleType::weapons.
Referenced by CargoDialog::cargoChanged(), eval(), and UnitInfoPanel::unitNaming().
Vehicle* DashboardPanel::veh [protected] |
Definition at line 44 of file dashboard.h.
Referenced by containerRenamed(), eval(), UnitInfoPanel::onClick(), painter(), reset(), showUnitData(), and UnitInfoPanel::unitNaming().
Building* DashboardPanel::bld [protected] |
Definition at line 45 of file dashboard.h.
Referenced by containerRenamed(), eval(), reset(), showUnitData(), and UnitInfoPanel::unitNaming().
1.5.1