Advanced Strategic Command
Public Member Functions | Public Attributes | List of all members
CargoDialog Class Reference
Inheritance diagram for CargoDialog:
Inheritance graph
[legend]

Public Member Functions

int getResourceValue (int resourcetype, int y, int scope)
 
 CargoDialog (PG_Widget *parent, ContainerBase *cb)
 
void addAvailableSubwin (SubWindow *w)
 
void updateResourceDisplay ()
 
VehiclegetMarkedUnit ()
 
void cargoChanged ()
 
int RunModal ()
 
bool ProcessEvent (const SDL_Event *event, bool bModal=false)
 
void showAmmo ()
 
void userHandler (const ASCString &label, PropertyReadingContainer &pc, PG_Widget *parent, WidgetParameters widgetParams)
 
ContainerBasegetContainer ()
 
GameMapgetMap ()
 
void setUnitInfoWidgets (const ContainerBase *container, const ASCString &prefix)
 
void updateVariables ()
 
 ~CargoDialog ()
 
- Public Member Functions inherited from Panel
 Panel (PG_Widget *parent, const PG_Rect &r, const ASCString &panelName_, bool loadTheme=true)
 
- Public Member Functions inherited from ASCGUI_Window
void setLabelText (const ASCString &widgetName, const ASCString &text, PG_Widget *parent=NULL)
 
void setLabelText (const ASCString &widgetName, int i, PG_Widget *parent=NULL)
 
void setLabelColor (const ASCString &widgetName, PG_Color color, PG_Widget *parent=NULL)
 
void setImage (const ASCString &widgetName, Surface &image, PG_Widget *parent=NULL)
 
void setImage (const ASCString &widgetName, SDL_Surface *image=NULL, PG_Widget *parent=NULL)
 
void setImage (const ASCString &widgetName, const ASCString &filename, PG_Widget *parent=NULL)
 
void hide (const ASCString &widgetName, PG_Widget *parent=NULL)
 
void show (const ASCString &widgetName, PG_Widget *parent=NULL)
 
void setBargraphValue (const ASCString &widgetName, float fraction, PG_Widget *parent=NULL)
 
void setBarGraphColor (const ASCString &widgetName, PG_Color color, PG_Widget *parent=NULL)
 
void rename (const ASCString &widgetName, const ASCString &newname, PG_Widget *parent=NULL)
 
void setWidgetTransparency (const ASCString &widgetName, int transparency, PG_Widget *parent=NULL)
 
int RunModal ()
 

Public Attributes

sigc::signal< void > sigCargoChanged
 

Additional Inherited Members

- Protected Types inherited from ASCGUI_Window
typedef deallocating_map
< ASCString, TextPropertyGroup * > 
GuiCache
 
- Protected Member Functions inherited from Panel
WidgetParameters getDefaultWidgetParams ()
 
- Protected Member Functions inherited from ASCGUI_Window
bool setup ()
 
void parsePanelASCTXT (PropertyReadingContainer &pc, PG_Widget *parent, WidgetParameters widgetParams)
 
 ASCGUI_Window (PG_Widget *parent, const PG_Rect &r, const ASCString &panelName_, const ASCString &baseStyle="Panel", bool loadTheme=true)
 
 ~ASCGUI_Window ()
 
- Static Protected Member Functions inherited from ASCGUI_Window
static PG_Rect parseRect (PropertyReadingContainer &pc, PG_Widget *parent)
 
- Protected Attributes inherited from ASCGUI_Window
TextPropertyGrouptextPropertyGroup
 
- Static Protected Attributes inherited from ASCGUI_Window
static GuiCache guiCache
 

Detailed Description

Definition at line 335 of file cargodialog.cpp.

Constructor & Destructor Documentation

CargoDialog::CargoDialog ( PG_Widget *  parent,
ContainerBase cb 
)
CargoDialog::~CargoDialog ( )
inline

Definition at line 859 of file cargodialog.cpp.

References NewGuiHost::popIconHandler().

Member Function Documentation

void CargoDialog::addAvailableSubwin ( SubWindow w)
inline

Definition at line 592 of file cargodialog.cpp.

Referenced by SubWindow::registerSubwindow().

void CargoDialog::cargoChanged ( )
inline
ContainerBase* CargoDialog::getContainer ( )
inline
GameMap* CargoDialog::getMap ( void  )
inline
Vehicle* CargoDialog::getMarkedUnit ( )
inline

Definition at line 604 of file cargodialog.cpp.

References CargoWidget::getMarkedUnit().

Referenced by updateVariables().

int CargoDialog::getResourceValue ( int  resourcetype,
int  y,
int  scope 
)
inline
bool CargoDialog::ProcessEvent ( const SDL_Event *  event,
bool  bModal = false 
)
inline
int CargoDialog::RunModal ( )
inline

Definition at line 626 of file cargodialog.cpp.

References ASCGUI_Window::RunModal().

Referenced by cargoDialog().

void CargoDialog::setUnitInfoWidgets ( const ContainerBase container,
const ASCString prefix 
)
inline
void CargoDialog::showAmmo ( )
inline
void CargoDialog::updateResourceDisplay ( )
inline
void CargoDialog::updateVariables ( )
inline
void CargoDialog::userHandler ( const ASCString label,
PropertyReadingContainer pc,
PG_Widget *  parent,
WidgetParameters  widgetParams 
)
virtual

Member Data Documentation

sigc::signal<void> CargoDialog::sigCargoChanged

Definition at line 669 of file cargodialog.cpp.

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


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