SettingsSubSelectDialog Class Reference

#include <SettingsSubSelectDialog.h>

Inheritance diagram for SettingsSubSelectDialog:

GLWWindow GLWButtonI GLWIconListI GLWPanel GLWidget MetaClass

List of all members.

Public Member Functions

virtual void buttonDown (unsigned int id)
virtual void display ()
virtual void selected (unsigned int id, int position)
virtual void chosen (unsigned int id, int position)

Static Public Member Functions

static
SettingsSubSelectDialog
instance ()

Protected Member Functions

void displayLand ()

Protected Attributes

GLWTabmainTab_
GLWTabecoTab_
GLWTabscoreTab_
GLWTabenvTab_
GLWTablandTab_
GLWIconListlandList_
std::list
< GLWOptionEntry
controls_
unsigned int cancelId_
unsigned int okId_
unsigned int advancedId_
unsigned int selectAllId_
unsigned int selectNoneId_

Static Protected Attributes

static
SettingsSubSelectDialog
instance_ = 0

Private Member Functions

 SettingsSubSelectDialog ()
virtual ~SettingsSubSelectDialog ()


Detailed Description

Definition at line 57 of file SettingsSubSelectDialog.h.


Constructor & Destructor Documentation

SettingsSubSelectDialog::SettingsSubSelectDialog (  )  [private]

Definition at line 86 of file SettingsSubSelectDialog.cpp.

References GLWPanel::addWidget(), GLWPanel::AlignRight, GLWButton::ButtonFlagCancel, GLWButton::ButtonFlagCenterX, GLWButton::ButtonFlagOk, cancelId_, controls_, GLWOptionEntry::createEntry(), ecoTab_, GLWIconList::eNoDrawSelected, envTab_, OptionsGame::getBuyingTimeEntry(), OptionsGame::getBuyOnRoundEntry(), OptionsGame::getCycleMapsEntry(), OptionsGame::getDelayedDefenseActivationEntry(), OptionsGame::getEconomyEntry(), OptionsGame::getEndArmsLevelEntry(), OptionsGame::getGiveAllWeaponsEntry(), GLWidget::getH(), GLWidget::getId(), OptionsGame::getInterestEntry(), OptionsGame::getMaxClimbingDistanceEntry(), OptionsGame::getMinFallingDistanceEntry(), OptionsGame::getMoneyPerHealthPointEntry(), OptionsGame::getMoneyPerRoundEntry(), OptionsGame::getMoneyWonForLivesEntry(), OptionsGame::getMoneyWonForRoundEntry(), OptionsGame::getMoneyWonPerAssistPointEntry(), OptionsGame::getMoneyWonPerHitPointEntry(), OptionsGame::getMoneyWonPerKillPointEntry(), OptionsGame::getMoneyWonPerMultiKillPointEntry(), OptionsGame::getMovementRestrictionEntry(), OptionsGame::getNoMaxRoundTurnsEntry(), OptionsGame::getNoRoundsEntry(), SettingsSelectDialog::getOptions(), OptionsGame::getPlayerLivesEntry(), OptionsGame::getResignModeEntry(), OptionsGame::getScorePerAssistEntry(), OptionsGame::getScorePerKillEntry(), OptionsGame::getScorePerMoneyEntry(), OptionsGame::getScoreWonForLivesEntry(), OptionsGame::getScoreWonForRoundEntry(), OptionsGame::getShotTimeEntry(), OptionsGame::getStartArmsLevelEntry(), OptionsGame::getStartMoneyEntry(), OptionsGame::getStartTimeEntry(), OptionsGame::getTeamBallanceEntry(), GLWidget::getW(), OptionsGame::getWallTypeEntry(), OptionsGame::getWeapScaleEntry(), OptionsGame::getWindForceEntry(), OptionsGame::getWindTypeEntry(), GLWPanel::GLWPanel(), SettingsSelectDialog::instance(), landList_, landTab_, LANG_RESOURCE, GLWPanel::layout(), GLWPanel::LayoutGrid, GLWPanel::LayoutHorizontal, GLWPanel::LayoutVerticle, mainTab_, okId_, scoreTab_, selectAllId_, selectNoneId_, GLWPanel::setGridWidth(), GLWPanel::setLayout(), GLWidget::setX(), GLWPanel::SpaceAll, GLWPanel::SpaceBottom, GLWPanel::SpaceLeft, and GLWPanel::SpaceRight.

SettingsSubSelectDialog::~SettingsSubSelectDialog (  )  [private, virtual]

Definition at line 239 of file SettingsSubSelectDialog.cpp.


Member Function Documentation

SettingsSubSelectDialog * SettingsSubSelectDialog::instance (  )  [static]

Definition at line 77 of file SettingsSubSelectDialog.cpp.

References instance_.

Referenced by SettingsSelectDialog::buttonDown(), StartDialog::mouseDown(), and ClientWindowSetup::setupStartWindows().

void SettingsSubSelectDialog::buttonDown ( unsigned int  id  )  [virtual]

Implements GLWButtonI.

Definition at line 305 of file SettingsSubSelectDialog.cpp.

References cancelId_, controls_, GLWIconList::getItems(), OptionsGame::getLandscapesEntry(), SettingsSubSelectDialogListItem::getName(), SettingsSelectDialog::getOptions(), SettingsSubSelectDialogListItem::getSelected(), GLWWindowManager::hideWindow(), GLWidget::id_, GLWWindowManager::instance(), SettingsSelectDialog::instance(), landList_, okId_, selectAllId_, selectNoneId_, SettingsSubSelectDialogListItem::setSelected(), OptionEntryString::setValue(), and GLWOptionEntry::updateEntries().

void SettingsSubSelectDialog::display (  )  [virtual]

Reimplemented from GLWPanel.

Definition at line 291 of file SettingsSubSelectDialog.cpp.

References controls_, displayLand(), OptionsGame::getMod(), SettingsSelectDialog::getOptions(), SettingsSelectDialog::instance(), mainTab_, S3D::setDataFileMod(), GLWTab::setDepressed(), and GLWOptionEntry::updateControls().

void SettingsSubSelectDialog::selected ( unsigned int  id,
int  position 
) [virtual]

Implements GLWIconListI.

Definition at line 243 of file SettingsSubSelectDialog.cpp.

References GLWIconList::getItems(), SettingsSubSelectDialogListItem::getSelected(), landList_, and SettingsSubSelectDialogListItem::setSelected().

void SettingsSubSelectDialog::chosen ( unsigned int  id,
int  position 
) [virtual]

Implements GLWIconListI.

Definition at line 251 of file SettingsSubSelectDialog.cpp.

void SettingsSubSelectDialog::displayLand (  )  [protected]

Definition at line 255 of file SettingsSubSelectDialog.cpp.

References GLWIconList::addItem(), GLWIconList::clear(), LandscapeDefinitionsEntry::description, S3D::fileExists(), S3D::formatStringBuffer(), LandscapeDefinitionsBase::getAllLandscapes(), S3D::getDataFile(), SettingsSelectDialog::getOptions(), SettingsSelectDialog::instance(), landList_, LandscapeDefinitionsBase::landscapeEnabled(), LandscapeDefinitionsEntry::name, LandscapeDefinitionsEntry::picture, LandscapeDefinitionsBase::readLandscapeDefinitions(), and GLWIconList::setHandler().

Referenced by display().


Member Data Documentation

SettingsSubSelectDialog * SettingsSubSelectDialog::instance_ = 0 [static, protected]

Definition at line 76 of file SettingsSubSelectDialog.h.

Referenced by instance().

GLWTab* SettingsSubSelectDialog::mainTab_ [protected]

Definition at line 78 of file SettingsSubSelectDialog.h.

Referenced by display(), and SettingsSubSelectDialog().

GLWTab * SettingsSubSelectDialog::ecoTab_ [protected]

Definition at line 78 of file SettingsSubSelectDialog.h.

Referenced by SettingsSubSelectDialog().

GLWTab* SettingsSubSelectDialog::scoreTab_ [protected]

Definition at line 79 of file SettingsSubSelectDialog.h.

Referenced by SettingsSubSelectDialog().

GLWTab * SettingsSubSelectDialog::envTab_ [protected]

Definition at line 79 of file SettingsSubSelectDialog.h.

Referenced by SettingsSubSelectDialog().

GLWTab * SettingsSubSelectDialog::landTab_ [protected]

Definition at line 79 of file SettingsSubSelectDialog.h.

Referenced by SettingsSubSelectDialog().

GLWIconList* SettingsSubSelectDialog::landList_ [protected]

Definition at line 80 of file SettingsSubSelectDialog.h.

Referenced by buttonDown(), displayLand(), selected(), and SettingsSubSelectDialog().

std::list<GLWOptionEntry> SettingsSubSelectDialog::controls_ [protected]

Definition at line 81 of file SettingsSubSelectDialog.h.

Referenced by buttonDown(), display(), and SettingsSubSelectDialog().

unsigned int SettingsSubSelectDialog::cancelId_ [protected]

Definition at line 82 of file SettingsSubSelectDialog.h.

Referenced by buttonDown(), and SettingsSubSelectDialog().

unsigned int SettingsSubSelectDialog::okId_ [protected]

Definition at line 82 of file SettingsSubSelectDialog.h.

Referenced by buttonDown(), and SettingsSubSelectDialog().

unsigned int SettingsSubSelectDialog::advancedId_ [protected]

Definition at line 82 of file SettingsSubSelectDialog.h.

unsigned int SettingsSubSelectDialog::selectAllId_ [protected]

Definition at line 83 of file SettingsSubSelectDialog.h.

Referenced by buttonDown(), and SettingsSubSelectDialog().

unsigned int SettingsSubSelectDialog::selectNoneId_ [protected]

Definition at line 83 of file SettingsSubSelectDialog.h.

Referenced by buttonDown(), and SettingsSubSelectDialog().


The documentation for this class was generated from the following files:
Generated on Mon Feb 16 15:15:06 2009 for Scorched3D by  doxygen 1.5.3