Advanced Strategic Command
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
DashboardPanel Class Reference

#include <dashboard.h>

Inheritance diagram for DashboardPanel:
Inheritance graph
[legend]

Public Member Functions

void eval ()
 
void showUnitData (Vehicle *veh, Building *bld, MapField *fld, bool redraw=false)
 
- Public Member Functions inherited from LayoutablePanel
 LayoutablePanel (PG_Widget *parent, const PG_Rect &r, const ASCString &panelName_, bool loadTheme=true)
 
- 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 ()
 

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 Member Functions inherited from LayoutablePanel
void eventMoveWidget (int x, int y)
 
void eventHide ()
 
void eventShow ()
 
- Protected Member Functions inherited from Panel
WidgetParameters getDefaultWidgetParams ()
 
- Protected Member Functions inherited from ASCGUI_Window
bool setup ()
 
virtual void userHandler (const ASCString &label, PropertyReadingContainer &pc, PG_Widget *parent, WidgetParameters widgetParams)
 
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 ()
 

Protected Attributes

Vehicleveh
 
Buildingbld
 
- Protected Attributes inherited from ASCGUI_Window
TextPropertyGrouptextPropertyGroup
 

Additional Inherited Members

- Protected Types inherited from ASCGUI_Window
typedef deallocating_map
< ASCString, TextPropertyGroup * > 
GuiCache
 
- Static Protected Member Functions inherited from ASCGUI_Window
static PG_Rect parseRect (PropertyReadingContainer &pc, PG_Widget *parent)
 
- Static Protected Attributes inherited from ASCGUI_Window
static GuiCache guiCache
 

Detailed Description

Definition at line 40 of file dashboard.h.

Constructor & Destructor Documentation

DashboardPanel::DashboardPanel ( PG_Widget *  parent,
const PG_Rect &  r,
const ASCString panelName_,
bool  loadTheme = true 
)
protected

Member Function Documentation

bool DashboardPanel::containerRenamed ( PG_LineEdit *  lineEdit)
protected
void DashboardPanel::eval ( )
void DashboardPanel::painter ( const PG_Rect &  src,
const ASCString name,
const PG_Rect &  dst 
)
protected
void DashboardPanel::registerSpecialDisplay ( const ASCString name)
protected

Definition at line 187 of file dashboard.cpp.

References SpecialDisplayWidget::display, and painter().

Referenced by DashboardPanel().

void DashboardPanel::reset ( GameMap map)
protected

Definition at line 176 of file dashboard.cpp.

References bld, ContainerBase::getMap(), and veh.

Referenced by DashboardPanel().

void DashboardPanel::showUnitData ( Vehicle veh,
Building bld,
MapField fld,
bool  redraw = false 
)
bool DashboardPanel::viewExperienceOverview ( )
protected

Definition at line 134 of file dashboard.cpp.

References ExperienceOverview::RunModal().

Referenced by DashboardPanel().

Member Data Documentation

Building* DashboardPanel::bld
protected

Definition at line 45 of file dashboard.h.

Referenced by containerRenamed(), eval(), reset(), showUnitData(), and UnitInfoPanel::unitNaming().

Vehicle* DashboardPanel::veh
protected

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