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

CargoDialog Class Reference

Inheritance diagram for CargoDialog:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 CargoDialog (PG_Widget *parent, ContainerBase *cb)
void addAvailableSubwin (SubWindow *w)
void updateResourceDisplay ()
VehiclegetMarkedUnit ()
void cargoChanged ()
int RunModal ()
 Enter modal mode.
bool ProcessEvent (const SDL_Event *event, bool bModal=false)
 Process a native PG_ event.
void showAmmo ()
void userHandler (const ASCString &label, PropertyReadingContainer &pc, PG_Widget *parent, WidgetParameters widgetParams)
ContainerBasegetContainer ()
GameMapgetMap ()
ContainerControlsgetControls ()
 ~CargoDialog ()

Public Attributes

SigC::Signal0< void > sigCargoChanged

Constructor & Destructor Documentation

CargoDialog::CargoDialog PG_Widget parent,
ContainerBase cb
 

Definition at line 1858 of file cargodialog.cpp.

References ContainerBase::baseType, cargoChanged(), errorMessage(), exist(), PG_Widget::FindChild(), Surface::getBaseSurface(), ASCmsgException::getMessage(), ContainerBase::getName(), PG_Widget::GetParent(), PG_Application::GetScreenWidth(), ASCGUI_Window::hide(), ContainerBaseType::infoImageFilename, PG_Widget::MoveWidget(), PG_Rect::my_xpos, ContainerBaseType::name, NewGuiHost::pushIconHandler(), PG_Widget::QuitModal(), Surface::readImageFile(), tnstream::reading, PG_Image::SetDrawMode(), PG_Image::SetImage(), ASCGUI_Window::setLabelText(), ASCGUI_Window::setup(), PG_Widget::Show(), PG_Window::sigClose, PG_Widget::SizeWidget(), PG_Draw::STRETCH, and PG_Rect::Width().

CargoDialog::~CargoDialog  )  [inline]
 

Definition at line 578 of file cargodialog.cpp.

References NewGuiHost::popIconHandler().


Member Function Documentation

void CargoDialog::addAvailableSubwin SubWindow w  )  [inline]
 

Definition at line 492 of file cargodialog.cpp.

Referenced by SubWindow::registerSubwindow().

void CargoDialog::cargoChanged  )  [inline]
 

Definition at line 514 of file cargodialog.cpp.

References CargoWidget::getMarkedUnit(), ASC_MainScreenWidget::getUnitInfoPanel(), mainScreenWidget, CargoWidget::redrawAll(), showAmmo(), sigCargoChanged, and updateResourceDisplay().

Referenced by CargoDialog(), CargoGuiFunctions::RecycleUnit::execute(), CargoGuiFunctions::OpenContainer::execute(), CargoGuiFunctions::RefuelUnitDialog::execute(), CargoGuiFunctions::MoveUnitIntoInnerContainer::execute(), CargoGuiFunctions::TransferUnitControl::execute(), CargoGuiFunctions::MoveUnitUp::execute(), CargoGuiFunctions::RepairUnit::execute(), CargoGuiFunctions::RefuelUnit::execute(), CargoGuiFunctions::UnitTraining::execute(), CargoGuiFunctions::UnitProduction::execute(), and CargoGuiFunctions::Movement::execute().

ContainerBase* CargoDialog::getContainer  )  [inline]
 

Definition at line 569 of file cargodialog.cpp.

Referenced by CargoGuiFunctions::RecycleUnit::available(), CargoGuiFunctions::RepairUnit::available(), CargoGuiFunctions::UnitTraining::available(), CargoGuiFunctions::UnitProduction::available(), ResearchWindow::available(), SolarPowerWindow::available(), SubWindow::container(), CargoGuiFunctions::RecycleUnit::execute(), CargoGuiFunctions::RefuelUnitDialog::execute(), CargoGuiFunctions::RepairUnit::execute(), CargoGuiFunctions::UnitProduction::execute(), CargoGuiFunctions::RecycleUnit::getName(), and CargoGuiFunctions::RepairUnit::getName().

ContainerControls& CargoDialog::getControls  )  [inline]
 

Definition at line 573 of file cargodialog.cpp.

Referenced by CargoGuiFunctions::MoveUnitIntoInnerContainer::available(), CargoGuiFunctions::MoveUnitUp::available(), CargoGuiFunctions::UnitTraining::available(), CargoGuiFunctions::MoveUnitIntoInnerContainer::execute(), CargoGuiFunctions::MoveUnitUp::execute(), CargoGuiFunctions::RefuelUnit::execute(), and CargoGuiFunctions::UnitTraining::execute().

GameMap* CargoDialog::getMap void   )  [inline]
 

Definition at line 571 of file cargodialog.cpp.

References ContainerBase::getMap().

Referenced by ResearchWindow::available(), and SolarPowerWindow::available().

Vehicle* CargoDialog::getMarkedUnit  )  [inline]
 

Definition at line 506 of file cargodialog.cpp.

References CargoWidget::getMarkedUnit().

Referenced by CargoInfoWindow::update().

bool CargoDialog::ProcessEvent const SDL_Event *  event,
bool  bModal = false
[inline, virtual]
 

Process a native PG_ event.

Parameters:
event PG_ event to process
bModal set to true if processing takes place in a modal loop
Returns:
true if the event was sucessfully processed
ProcessEvent asks the widget to process a given event. It also asks its parent and, if bModal is true, its children.

Reimplemented from PG_Widget.

Definition at line 537 of file cargodialog.cpp.

References ASC_MainScreenWidget::getGuiHost(), ASC_MainScreenWidget::getUnitInfoPanel(), mainScreenWidget, and PG_Widget::ProcessEvent().

int CargoDialog::RunModal  )  [inline, virtual]
 

Enter modal mode.

Reimplemented from ASCGUI_Window.

Definition at line 530 of file cargodialog.cpp.

References ASCGUI_Window::RunModal().

Referenced by cargoDialog().

void CargoDialog::showAmmo  )  [inline]
 

Definition at line 555 of file cargodialog.cpp.

References cwbombn, cwcannonn, cwcruisemissile, cwlargemissilen, cwmachinegunn, cwminen, cwsmallmissilen, cwtorpedon, ContainerBase::getAmmo(), maxint, and ASCGUI_Window::setLabelText().

Referenced by cargoChanged().

void CargoDialog::updateResourceDisplay  )  [inline]
 

Definition at line 497 of file cargodialog.cpp.

References ContainerBase::damage, ContainerBase::getResource(), maxint, and ASCGUI_Window::setLabelText().

Referenced by cargoChanged(), and BuildingControlWindow::repair().

void CargoDialog::userHandler const ASCString label,
PropertyReadingContainer pc,
PG_Widget parent,
WidgetParameters  widgetParams
[virtual]
 

Reimplemented from ASCGUI_Window.

Definition at line 1956 of file cargodialog.cpp.

References PropertyContainer::addInteger(), ContainerBase::baseType, SubWinButton::buttonheight, SubWinButton::buttonwidth, cmovemalitypenum, cmovemalitypes, BuildingControlWindow::damageChanged, CargoWidget::enableDragNDrop(), ASC_MainScreenWidget::getGuiHost(), IconRepository::getIcon(), PG_Rect::Height(), mainScreenWidget, moveMaliTypeIcons, PropertyContainer::openBracket(), ASCGUI_Window::parsePanelASCTXT(), PG_NULLSTR, PG_Rect::PG_Rect(), CargoWidget::redrawAll(), CargoWidget::registerStoringPositions(), DamageBarWidget::repaint(), PG_Widget::SetName(), PG_Widget::SetTransparency(), ResearchGraph::sigChange, PG_Button::sigClick, CargoWidget::sigDragAborted, CargoWidget::sigDragAvail, CargoWidget::sigDragDone, CargoWidget::sigDragInProcess, CargoWidget::sigScrollTrack, CargoWidget::unitClicked, CargoWidget::unitMarked, CargoInfoWindow::update(), SubWindow::update(), ContainerBaseType::vehicleCategoriesStorable, and PG_Rect::Width().


Member Data Documentation

SigC::Signal0<void> CargoDialog::sigCargoChanged
 

Definition at line 573 of file cargodialog.cpp.

Referenced by cargoChanged(), and CargoInfoWindow::registerSubwindow().


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