RulesDialog Class Reference

#include <RulesDialog.h>

Inheritance diagram for RulesDialog:

GLWWindow GLWButtonI GLWPanel GLWidget MetaClass

List of all members.

Public Member Functions

virtual void hide ()
virtual void display ()
virtual void buttonDown (unsigned int id)
virtual void draw ()
void addIcon (GLTexture *texture)

Static Public Member Functions

static RulesDialoginstance ()

Protected Member Functions

void drawRules ()
void addMOTD (const char *text)

Protected Attributes

GLWListViewmotdList_
GLWListViewrulesList_
GLWIconicon_
GLWTabrulesTab_
GLWTabmotdTab_
unsigned int okId_

Static Protected Attributes

static RulesDialoginstance_ = 0

Private Member Functions

 RulesDialog ()
virtual ~RulesDialog ()


Detailed Description

Definition at line 30 of file RulesDialog.h.


Constructor & Destructor Documentation

RulesDialog::RulesDialog (  )  [private]

Definition at line 45 of file RulesDialog.cpp.

References GLWPanel::addWidget(), GLWButton::ButtonFlagCancel, GLWButton::ButtonFlagCenterX, GLWButton::ButtonFlagOk, GLWidget::getId(), icon_, LANG_RESOURCE, motdList_, motdTab_, GLWWindow::needCentered_, okId_, rulesList_, and rulesTab_.

Referenced by instance().

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

Definition at line 66 of file RulesDialog.cpp.


Member Function Documentation

RulesDialog * RulesDialog::instance (  )  [static]

Definition at line 36 of file RulesDialog.cpp.

References instance_, and RulesDialog().

Referenced by ClientWindowSetup::addCommonComponents(), ClientConnectionAcceptHandler::processMessage(), and ClientWindowSetup::setupGameWindows().

void RulesDialog::hide (  )  [virtual]

Reimplemented from GLWPanel.

Definition at line 221 of file RulesDialog.cpp.

References GLWidget::getId(), GLWPanel::hide(), PlayerDialog::instance(), GLWWindowManager::instance(), and GLWWindowManager::showWindow().

void RulesDialog::display (  )  [virtual]

Reimplemented from GLWPanel.

Definition at line 214 of file RulesDialog.cpp.

References addMOTD(), GLWPanel::display(), and ScorchedClient::instance().

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

Implements GLWButtonI.

Definition at line 206 of file RulesDialog.cpp.

References GLWWindowManager::hideWindow(), GLWidget::id_, GLWWindowManager::instance(), and okId_.

void RulesDialog::draw (  )  [virtual]

Reimplemented from GLWWindow.

Definition at line 131 of file RulesDialog.cpp.

References GLWWindow::draw(), drawRules(), GLWTab::getDepressed(), and rulesTab_.

void RulesDialog::addIcon ( GLTexture texture  ) 

Definition at line 70 of file RulesDialog.cpp.

References GLWIcon::getTexture(), icon_, and GLWIcon::setTexture().

Referenced by ClientConnectionAcceptHandler::processMessage().

void RulesDialog::drawRules (  )  [protected]

Definition at line 141 of file RulesDialog.cpp.

References GLState::DEPTH_OFF, GLFont2d::draw(), S3D::formatStringBuffer(), GLWFont::getGameFont(), ScorchedContext::getOptionsGame(), ScorchedContext::getOptionsTransient(), GLWidget::h_, GLWFont::instance(), ScorchedClient::instance(), LANG_RESOURCE_VAR, LANG_RESOURCE_VAR_1, left, GLState::TEXTURE_OFF, GLWidget::x_, and GLWidget::y_.

Referenced by draw().

void RulesDialog::addMOTD ( const char *  text  )  [protected]

Definition at line 76 of file RulesDialog.cpp.

References GLWListView::addLine(), GLWListView::clear(), S3D::formatStringBuffer(), OptionsScorched::getLevelOptions(), OptionsScorched::getMainOptions(), OptionEntry::getName(), OptionsGame::getOptions(), ScorchedContext::getOptionsGame(), OptionEntry::getValueAsString(), ScorchedClient::instance(), OptionEntry::isChangedValue(), OptionEntry::isDefaultValue(), motdList_, motdTab_, rulesList_, and GLWTab::setDepressed().

Referenced by display().


Member Data Documentation

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

Definition at line 44 of file RulesDialog.h.

Referenced by instance().

GLWListView* RulesDialog::motdList_ [protected]

Definition at line 45 of file RulesDialog.h.

Referenced by addMOTD(), and RulesDialog().

GLWListView * RulesDialog::rulesList_ [protected]

Definition at line 45 of file RulesDialog.h.

Referenced by addMOTD(), and RulesDialog().

GLWIcon* RulesDialog::icon_ [protected]

Definition at line 46 of file RulesDialog.h.

Referenced by addIcon(), and RulesDialog().

GLWTab* RulesDialog::rulesTab_ [protected]

Definition at line 47 of file RulesDialog.h.

Referenced by draw(), and RulesDialog().

GLWTab* RulesDialog::motdTab_ [protected]

Definition at line 48 of file RulesDialog.h.

Referenced by addMOTD(), and RulesDialog().

unsigned int RulesDialog::okId_ [protected]

Definition at line 49 of file RulesDialog.h.

Referenced by buttonDown(), and RulesDialog().


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