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

GameParameterEditorWidget Class Reference

#include <editmapparam.h>

Inheritance diagram for GameParameterEditorWidget:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 GameParameterEditorWidget (GameMap *gamemap, PG_Widget *parent, const PG_Rect &rect)
bool Valid ()
bool Apply ()

Protected Member Functions

bool LoadParameter ()
bool SaveParameter ()
bool ResetParameter ()

Static Protected Attributes

static const char * fileNamePattern = "*.asc.gameparam"
static const char * blockName = "GameParam"

Constructor & Destructor Documentation

GameParameterEditorWidget::GameParameterEditorWidget GameMap gamemap,
PG_Widget parent,
const PG_Rect rect
 

Definition at line 94 of file editmapparam.cpp.

References GameParameterSettings::defaultValue, gameparameternum, gameParameterSettings, GameMap::getgameparameter(), PG_Rect::Height(), LoadParameter(), GameParameterSettings::longName, PG_Rect::PG_Rect(), ResetParameter(), SaveParameter(), PG_PropertyField_Integer< IntegerType >::SetRange(), PG_Widget::SetTransparency(), PG_Button::sigClick, and PG_Rect::Width().


Member Function Documentation

bool GameParameterEditorWidget::Apply  ) 
 

Definition at line 131 of file editmapparam.cpp.

References PG_PropertyEditor::Apply(), gameparameternum, and GameMap::setgameparameter().

Referenced by StartMultiplayerGame::Apply().

bool GameParameterEditorWidget::LoadParameter  )  [protected]
 

Definition at line 56 of file editmapparam.cpp.

References blockName, fileNamePattern, tnstream::reading, PG_PropertyEditor::Reload(), TextFormatParser::run(), and selectFile().

Referenced by GameParameterEditorWidget().

bool GameParameterEditorWidget::ResetParameter  )  [protected]
 

Definition at line 86 of file editmapparam.cpp.

References GameParameterSettings::defaultValue, gameparameternum, gameParameterSettings, and PG_PropertyEditor::Reload().

Referenced by GameParameterEditorWidget().

bool GameParameterEditorWidget::SaveParameter  )  [protected]
 

Definition at line 74 of file editmapparam.cpp.

References blockName, fileNamePattern, selectFile(), and tnstream::writing.

Referenced by GameParameterEditorWidget().

bool GameParameterEditorWidget::Valid  ) 
 

Definition at line 126 of file editmapparam.cpp.

References PG_PropertyEditor::Valid().

Referenced by StartMultiplayerGame::Apply().


Member Data Documentation

const char * GameParameterEditorWidget::blockName = "GameParam" [static, protected]
 

Definition at line 141 of file editmapparam.cpp.

Referenced by LoadParameter(), and SaveParameter().

const char * GameParameterEditorWidget::fileNamePattern = "*.asc.gameparam" [static, protected]
 

Definition at line 140 of file editmapparam.cpp.

Referenced by LoadParameter(), and SaveParameter().


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