Advanced Strategic Command
Classes | Static Public Member Functions | List of all members
IconRepository Class Reference

#include <iconrepository.h>

Static Public Member Functions

static SurfacegetIcon (const ASCString &name)
 
static void clear ()
 
static bool exists (const ASCString &name)
 
static void insert (const ASCString &name, Surface *s)
 
static int getMemoryFootprint ()
 

Detailed Description

Definition at line 31 of file iconrepository.h.

Member Function Documentation

static void IconRepository::clear ( )
inlinestatic

Definition at line 39 of file iconrepository.h.

Referenced by executeUserAction().

bool IconRepository::exists ( const ASCString name)
static

Definition at line 75 of file iconrepository.cpp.

Surface & IconRepository::getIcon ( const ASCString name)
static

Definition at line 40 of file iconrepository.cpp.

References ASCString::endswith(), tnstream::reading, and SDL_RWFromStream().

Referenced by ASCGUI_Window::WidgetParameters::assign(), assignWeaponInfo(), GuiFunctions::buildGuiIcon(), BuildingTypeResourceWidget::BuildingTypeResourceWidget(), OverviewMapImage::create(), TextRenderer::eval_command(), StoringPosition::eventDraw(), ExperienceOverview::eventDraw(), DiplomaticModeChooser< SelectionType >::eventDraw(), StoringPosition::eventMouseMotion(), GuiFunctions::Movement::getImage(), GuiFunctions::Cancel::getImage(), GuiFunctions::AttackGui::getImage(), CargoGuiFunctions::CloseDialog::getImage(), CargoGuiFunctions::Movement::getImage(), CargoGuiFunctions::UnitProduction::getImage(), CargoGuiFunctions::UnitTraining::getImage(), CargoGuiFunctions::RefuelUnitCommand::getImage(), CargoGuiFunctions::RefuelUnitDialogCommand::getImage(), CargoGuiFunctions::RepairUnit::getImage(), CargoGuiFunctions::MoveUnitUp::getImage(), ReplayGuiFunctions::ReplayPlay::getImage(), CargoGuiFunctions::MoveUnitIntoInnerContainer::getImage(), CargoGuiFunctions::OpenContainer::getImage(), ReplayGuiFunctions::ReplayPause::getImage(), CargoGuiFunctions::RecycleUnitCommandButton::getImage(), CargoGuiFunctions::UnitInfo::getImage(), CargoGuiFunctions::TransferUnitControl::getImage(), ReplayGuiFunctions::ReplayFaster::getImage(), ReplayGuiFunctions::ReplaySlower::getImage(), ReplayGuiFunctions::ReplayRewind::getImage(), ReplayGuiFunctions::ReplayExit::getImage(), GuiFunctions::Ascend::getImage(), GuiFunctions::Descend::getImage(), ReplayGuiFunctions::ReplayRecord::getImage(), GuiFunctions::EndTurn::getImage(), ReplayGuiFunctions::ReplayRecordExit::getImage(), GuiFunctions::Attack::getImage(), GuiFunctions::PowerOn::getImage(), GuiFunctions::PowerOff::getImage(), GuiFunctions::UnitInfo::getImage(), GuiFunctions::DestructBuilding::getImage(), GuiFunctions::OpenContainer::getImage(), GuiFunctions::EnableReactionfire::getImage(), GuiFunctions::DisableReactionfire::getImage(), GuiFunctions::JumpDriveIcon::getImage(), GuiFunctions::RepairUnit::getImage(), GuiFunctions::RefuelUnitCommand::getImage(), GuiFunctions::RefuelUnitDialogCommand::getImage(), GuiFunctions::PutMine::getImage(), GuiFunctions::PutAntiTankMine::getImage(), GuiFunctions::PutAntiPersonalMine::getImage(), GuiFunctions::PutAntiShipMine::getImage(), GuiFunctions::PutAntiSubMine::getImage(), GuiFunctions::RemoveMine::getImage(), GuiFunctions::ObjectBuildingGui::getImage(), GuiFunctions::BuildObject::getImage(), GuiFunctions::BuildVehicleCommand::getImage(), GuiFunctions::ConstructBuilding::getImage(), GuiFunctions::InternalAmmoTransferDialog::getImage(), GuiFunctions::SelfDestructIcon::getImage(), GraphicSetManager_Base::getPic(), ObjectType::getPicture(), ExperienceOverview::getSize(), GuiButton::GuiButton(), InternalAmmoTransferWindow::InternalAmmoTransferWindow(), ListBoxImageItem< SelectionType >::ListBoxImageItem(), GraphicSetManager_Base::loadData(), MineType::paint(), DashboardPanel::painter(), AttackPanel::painter(), WeaponInfoLine::painter(), UnitTrainingLayer::paintSingleField(), Weathercast::paintWeatherArea(), ASCGUI_Window::parsePanelASCTXT(), WholeMapRenderer::renderVisibility(), SavegameWidget::SavegameWidget(), DataTab::setData(), ASCGUI_Window::setImage(), showSDLInfo(), WeaponInfoPanel::showWeapon(), SmallGuiButton::SmallGuiButton(), SubWinButton::SubWinButton(), TechWidget::TechWidget(), UnitInfoDialog::userHandler(), CargoDialog::userHandler(), VehicleBaseWidget::VehicleBaseWidget(), VehicleTypeBaseWidget::VehicleTypeBaseWidget(), VehicleTypeCountLocateWidget::VehicleTypeCountLocateWidget(), VehicleTypeResourceWidget::VehicleTypeResourceWidget(), WeaponInfoPanel::WeaponInfoPanel(), and WeatherPanel::WeatherPanel().

int IconRepository::getMemoryFootprint ( )
static

Definition at line 85 of file iconrepository.cpp.

Referenced by MemoryMeasurement::measureIcons().

void IconRepository::insert ( const ASCString name,
Surface s 
)
static

Definition at line 80 of file iconrepository.cpp.


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