Advanced Strategic Command
Classes | Public Member Functions | Protected Types | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
ASCGUI_Window Class Referenceabstract

#include <windowing.h>

Inheritance diagram for ASCGUI_Window:
Inheritance graph
[legend]

Classes

class  WidgetParameters
 

Public Member Functions

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 Types

typedef deallocating_map
< ASCString, TextPropertyGroup * > 
GuiCache
 

Protected Member Functions

bool setup ()
 
virtual WidgetParameters getDefaultWidgetParams ()=0
 
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 ()
 

Static Protected Member Functions

static PG_Rect parseRect (PropertyReadingContainer &pc, PG_Widget *parent)
 

Protected Attributes

TextPropertyGrouptextPropertyGroup
 

Static Protected Attributes

static GuiCache guiCache
 

Detailed Description

Definition at line 34 of file windowing.h.

Member Typedef Documentation

Definition at line 80 of file windowing.h.

Constructor & Destructor Documentation

ASCGUI_Window::ASCGUI_Window ( PG_Widget *  parent,
const PG_Rect &  r,
const ASCString panelName_,
const ASCString baseStyle = "Panel",
bool  loadTheme = true 
)
protected

Definition at line 312 of file windowing.cpp.

ASCGUI_Window::~ASCGUI_Window ( )
protected

Definition at line 942 of file windowing.cpp.

Member Function Documentation

virtual WidgetParameters ASCGUI_Window::getDefaultWidgetParams ( )
protectedpure virtual

Implemented in ConfigurableWindow, and Panel.

Referenced by setup().

void ASCGUI_Window::hide ( const ASCString widgetName,
PG_Widget *  parent = NULL 
)
void ASCGUI_Window::parsePanelASCTXT ( PropertyReadingContainer pc,
PG_Widget *  parent,
WidgetParameters  widgetParams 
)
protected
PG_Rect ASCGUI_Window::parseRect ( PropertyReadingContainer pc,
PG_Widget *  parent 
)
staticprotected

Definition at line 319 of file windowing.cpp.

References PropertyContainer::addInteger().

Referenced by parsePanelASCTXT(), and UnitInfoDialog::userHandler().

void ASCGUI_Window::rename ( const ASCString widgetName,
const ASCString newname,
PG_Widget *  parent = NULL 
)

Definition at line 675 of file windowing.cpp.

Referenced by UnitInfoDialog::userHandler().

int ASCGUI_Window::RunModal ( )
void ASCGUI_Window::setBarGraphColor ( const ASCString widgetName,
PG_Color  color,
PG_Widget *  parent = NULL 
)

Definition at line 801 of file windowing.cpp.

References BarGraphWidget::setColor().

Referenced by DashboardPanel::eval(), and AttackPanel::setBarGraphColor().

void ASCGUI_Window::setBargraphValue ( const ASCString widgetName,
float  fraction,
PG_Widget *  parent = NULL 
)
void ASCGUI_Window::setImage ( const ASCString widgetName,
Surface image,
PG_Widget *  parent = NULL 
)
void ASCGUI_Window::setImage ( const ASCString widgetName,
SDL_Surface *  image = NULL,
PG_Widget *  parent = NULL 
)

Definition at line 744 of file windowing.cpp.

void ASCGUI_Window::setImage ( const ASCString widgetName,
const ASCString filename,
PG_Widget *  parent = NULL 
)

Definition at line 733 of file windowing.cpp.

References IconRepository::getIcon(), and setImage().

void ASCGUI_Window::setLabelColor ( const ASCString widgetName,
PG_Color  color,
PG_Widget *  parent = NULL 
)

Definition at line 710 of file windowing.cpp.

Referenced by WeaponInfoPanel::showWeapon().

void ASCGUI_Window::setLabelText ( const ASCString widgetName,
const ASCString text,
PG_Widget *  parent = NULL 
)
void ASCGUI_Window::setLabelText ( const ASCString widgetName,
int  i,
PG_Widget *  parent = NULL 
)

Definition at line 726 of file windowing.cpp.

References setLabelText(), and ASCString::toString().

bool ASCGUI_Window::setup ( void  )
protected
void ASCGUI_Window::setWidgetTransparency ( const ASCString widgetName,
int  transparency,
PG_Widget *  parent = NULL 
)

Definition at line 757 of file windowing.cpp.

Referenced by assignWeaponInfo().

void ASCGUI_Window::show ( const ASCString widgetName,
PG_Widget *  parent = NULL 
)
virtual void ASCGUI_Window::userHandler ( const ASCString label,
PropertyReadingContainer pc,
PG_Widget *  parent,
WidgetParameters  widgetParams 
)
inlineprotectedvirtual

Reimplemented in CargoDialog, UnitInfoDialog, and StartMultiplayerGame.

Definition at line 101 of file windowing.h.

Referenced by parsePanelASCTXT().

Member Data Documentation

ASCGUI_Window::GuiCache ASCGUI_Window::guiCache
staticprotected

Definition at line 81 of file windowing.h.

Referenced by setup().

TextPropertyGroup* ASCGUI_Window::textPropertyGroup
protected

Definition at line 83 of file windowing.h.

Referenced by setup(), and WeaponInfoPanel::WeaponInfoPanel().


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