VehicleProduction_SelectionWindow Class Reference

#include <vehicleproductionselection.h>

Inheritance diagram for VehicleProduction_SelectionWindow:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 VehicleProduction_SelectionWindow (PG_Widget *parent, const PG_Rect &r, ContainerBase *plant, const ConstructUnitCommand::Producables &produceableUnits, bool internally)
void updateProducables ()
bool addProductionLine ()
bool removeProductionLine ()
bool fillWithAmmo ()
bool fillWithResources ()
const VehicleTypegetVehicletype ()

Public Attributes

SigC::Signal0< void > reloadProducebles

Protected Member Functions

void vtMarked (const VehicleType *vt)
void vtSelected (const VehicleType *vt, bool mouse)
bool produce ()
bool closeWindow ()
bool quitSignalled ()
void reLoadAndUpdate ()
bool eventKeyDown (const SDL_KeyboardEvent *key)

Detailed Description

Definition at line 73 of file vehicleproductionselection.h.


Constructor & Destructor Documentation

VehicleProduction_SelectionWindow::VehicleProduction_SelectionWindow ( PG_Widget *  parent,
const PG_Rect &  r,
ContainerBase plant,
const ConstructUnitCommand::Producables produceableUnits,
bool  internally 
)

Definition at line 214 of file vehicleproductionselection.cpp.

References addProductionLine(), ContainerBaseType::AmmoProduction, ContainerBase::baseType, CGameOptions::fillAmmo, ContainerBase::getResource(), VehicleProduction_SelectionItemFactory::getResourceFilling(), ContainerBaseType::hasFunction(), CGameOptions::Instance(), maxint, ContainerBaseType::NoProductionCustomization, produce(), quitSignalled(), VehicleTypeSelectionItemFactory::reloadAllItems, reLoadAndUpdate(), removeProductionLine(), VehicleProduction_SelectionItemFactory::setAmmoFilling(), VehicleProduction_SelectionItemFactory::setResourceFilling(), ItemSelectorWidget::sigQuitModal, VehicleProduction_SelectionItemFactory::sigVehicleTypeMarked, VehicleProduction_SelectionItemFactory::sigVehicleTypeSelected, vtMarked(), and vtSelected().


Member Function Documentation

void VehicleProduction_SelectionWindow::vtMarked ( const VehicleType vt  )  [protected]

Definition at line 142 of file vehicleproductionselection.cpp.

References vtSelected().

Referenced by VehicleProduction_SelectionWindow().

void VehicleProduction_SelectionWindow::vtSelected ( const VehicleType vt,
bool  mouse 
) [protected]

Definition at line 147 of file vehicleproductionselection.cpp.

References produce().

Referenced by VehicleProduction_SelectionWindow(), and vtMarked().

bool VehicleProduction_SelectionWindow::produce (  )  [protected]

Definition at line 155 of file vehicleproductionselection.cpp.

References ASC_PG_Dialog::quitModalLoop().

Referenced by VehicleProduction_SelectionWindow(), and vtSelected().

bool VehicleProduction_SelectionWindow::closeWindow (  )  [protected, virtual]

Reimplemented from ASC_PG_Dialog.

Definition at line 166 of file vehicleproductionselection.cpp.

References ASC_PG_Dialog::closeWindow().

Referenced by eventKeyDown().

bool VehicleProduction_SelectionWindow::quitSignalled (  )  [protected]

Definition at line 172 of file vehicleproductionselection.cpp.

Referenced by VehicleProduction_SelectionWindow().

void VehicleProduction_SelectionWindow::reLoadAndUpdate (  )  [protected]

Definition at line 179 of file vehicleproductionselection.cpp.

References ContainerBase::getResource(), maxint, ItemSelectorWidget::reLoad(), reloadProducebles, VehicleTypeSelectionItemFactory::setAvailableResource(), and VehicleProduction_SelectionItemFactory::updateProducables().

Referenced by addProductionLine(), removeProductionLine(), and VehicleProduction_SelectionWindow().

bool VehicleProduction_SelectionWindow::eventKeyDown ( const SDL_KeyboardEvent *  key  )  [protected, virtual]

Reimplemented from ASC_PG_Dialog.

Definition at line 187 of file vehicleproductionselection.cpp.

References addProductionLine(), closeWindow(), and removeProductionLine().

void VehicleProduction_SelectionWindow::updateProducables (  ) 

bool VehicleProduction_SelectionWindow::addProductionLine (  ) 

Definition at line 269 of file vehicleproductionselection.cpp.

References BuildProductionLineCommand::productionLinesBuyable(), reLoadAndUpdate(), and ItemSelectorWindow::RunModal().

Referenced by eventKeyDown(), and VehicleProduction_SelectionWindow().

bool VehicleProduction_SelectionWindow::removeProductionLine (  ) 

Definition at line 281 of file vehicleproductionselection.cpp.

References choice_dlg(), createContext(), displayActionError(), reLoadAndUpdate(), ActionRegistry::RemoveProductionLineCommand, and ActionResult::successful().

Referenced by eventKeyDown(), and VehicleProduction_SelectionWindow().

bool VehicleProduction_SelectionWindow::fillWithAmmo (  ) 

Definition at line 297 of file vehicleproductionselection.cpp.

References VehicleProduction_SelectionItemFactory::getAmmoFilling().

bool VehicleProduction_SelectionWindow::fillWithResources (  ) 

Definition at line 302 of file vehicleproductionselection.cpp.

References VehicleProduction_SelectionItemFactory::getResourceFilling().

const VehicleType* VehicleProduction_SelectionWindow::getVehicletype (  )  [inline]

Definition at line 112 of file vehicleproductionselection.h.

Referenced by GuiFunctions::BuildVehicleCommand::execute().


Member Data Documentation

SigC::Signal0<void> VehicleProduction_SelectionWindow::reloadProducebles

Definition at line 102 of file vehicleproductionselection.h.

Referenced by reLoadAndUpdate().


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