AdminDialog Class Reference

#include <AdminDialog.h>

Inheritance diagram for AdminDialog:

GLWWindow GLWButtonI GLWIconTableI GLWPanel GLWidget MetaClass

List of all members.

Public Member Functions

virtual void display ()
virtual void buttonDown (unsigned int id)
virtual void drawColumn (unsigned int id, int row, int column, float x, float y, float w)
virtual void rowSelected (unsigned int id, int row)
virtual void rowChosen (unsigned int id, int row)
virtual void columnSelected (unsigned int id, int col)

Static Public Member Functions

static AdminDialoginstance ()

Protected Attributes

GLWIconTableadminTable_
GLWTextButtonok_
GLWButtonkickButton_
GLWButtonbanButton_
GLWButtonslapButton_
GLWButtonpoorButton_
GLWButtonmuteButton_
GLWButtonunmuteButton_
GLWTabplayerTab_
GLWTabbotsTab_
GLWDropDownaiSelector_
GLWButtonaddButton_

Static Protected Attributes

static AdminDialoginstance_ = 0

Private Member Functions

 AdminDialog ()
virtual ~AdminDialog ()


Detailed Description

Definition at line 30 of file AdminDialog.h.


Constructor & Destructor Documentation

AdminDialog::AdminDialog (  )  [private]

Definition at line 44 of file AdminDialog.cpp.

References addButton_, GLWDropDown::addEntry(), GLWPanel::addWidget(), adminTable_, aiSelector_, banButton_, botsTab_, GLWButton::ButtonFlagCenterX, GLWButton::ButtonFlagOk, TankAINames::getAis(), TankContainer::getPlayingTanks(), ScorchedContext::getTankContainer(), GLWPanel::GLWPanel(), ScorchedClient::instance(), kickButton_, LANG_RESOURCE, LANG_STRING, GLWPanel::layout(), GLWPanel::LayoutHorizontal, TankAINames::loadAIs(), muteButton_, ok_, playerTab_, poorButton_, GLWTab::setDepressed(), GLWIconTable::setHandler(), GLWIconTable::setItemCount(), GLWPanel::setLayout(), slapButton_, GLWPanel::SpaceAll, GLWPanel::SpaceRight, and unmuteButton_.

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

Definition at line 118 of file AdminDialog.cpp.


Member Function Documentation

AdminDialog * AdminDialog::instance (  )  [static]

Definition at line 35 of file AdminDialog.cpp.

References instance_.

Referenced by ClientWindowSetup::addCommonComponents(), AdminCheckDialog::adminResult(), and ClientWindowSetup::setupGameWindows().

void AdminDialog::display (  )  [virtual]

Reimplemented from GLWPanel.

Definition at line 172 of file AdminDialog.cpp.

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

Implements GLWButtonI.

Definition at line 177 of file AdminDialog.cpp.

References addButton_, ComsAdminMessage::AdminAdd, ComsAdminMessage::AdminBan, ComsAdminMessage::AdminKick, ComsAdminMessage::AdminMute, ComsAdminMessage::AdminPoor, ComsAdminMessage::AdminSlap, adminTable_, ComsAdminMessage::AdminUnMute, aiSelector_, banButton_, S3D::formatStringBuffer(), GLWDropDown::getCurrentEntry(), GLWSelectorEntry::getDataText(), GLWidget::getId(), TankContainer::getPlayingTanks(), GLWIconTable::getSelected(), ClientAdminResultHandler::getSid(), ScorchedContext::getTankContainer(), GLWWindowManager::hideWindow(), GLWidget::id_, GLWWindowManager::instance(), ClientAdminResultHandler::instance(), ScorchedClient::instance(), kickButton_, muteButton_, ok_, poorButton_, ComsMessageSender::sendToServer(), GLWIconTable::setItemCount(), slapButton_, and unmuteButton_.

void AdminDialog::drawColumn ( unsigned int  id,
int  row,
int  column,
float  x,
float  y,
float  w 
) [virtual]

Implements GLWIconTableI.

Definition at line 123 of file AdminDialog.cpp.

References adminTable_, GLFont2d::drawWidth(), GLWFont::getGameFont(), TankContainer::getPlayingTanks(), ScorchedContext::getTankContainer(), TankColorGenerator::getTeamColor(), TankColorGenerator::getTeamName(), GLWFont::instance(), ScorchedClient::instance(), GLWIconTable::setItemCount(), and GLWFont::widgetFontColor.

void AdminDialog::rowSelected ( unsigned int  id,
int  row 
) [virtual]

Implements GLWIconTableI.

Definition at line 157 of file AdminDialog.cpp.

void AdminDialog::rowChosen ( unsigned int  id,
int  row 
) [virtual]

Implements GLWIconTableI.

Definition at line 162 of file AdminDialog.cpp.

void AdminDialog::columnSelected ( unsigned int  id,
int  col 
) [virtual]

Implements GLWIconTableI.

Definition at line 167 of file AdminDialog.cpp.


Member Data Documentation

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

Definition at line 51 of file AdminDialog.h.

Referenced by instance().

GLWIconTable* AdminDialog::adminTable_ [protected]

Definition at line 52 of file AdminDialog.h.

Referenced by AdminDialog(), buttonDown(), and drawColumn().

GLWTextButton* AdminDialog::ok_ [protected]

Definition at line 53 of file AdminDialog.h.

Referenced by AdminDialog(), and buttonDown().

GLWButton* AdminDialog::kickButton_ [protected]

Definition at line 54 of file AdminDialog.h.

Referenced by AdminDialog(), and buttonDown().

GLWButton * AdminDialog::banButton_ [protected]

Definition at line 54 of file AdminDialog.h.

Referenced by AdminDialog(), and buttonDown().

GLWButton * AdminDialog::slapButton_ [protected]

Definition at line 54 of file AdminDialog.h.

Referenced by AdminDialog(), and buttonDown().

GLWButton* AdminDialog::poorButton_ [protected]

Definition at line 55 of file AdminDialog.h.

Referenced by AdminDialog(), and buttonDown().

GLWButton * AdminDialog::muteButton_ [protected]

Definition at line 55 of file AdminDialog.h.

Referenced by AdminDialog(), and buttonDown().

GLWButton * AdminDialog::unmuteButton_ [protected]

Definition at line 55 of file AdminDialog.h.

Referenced by AdminDialog(), and buttonDown().

GLWTab* AdminDialog::playerTab_ [protected]

Definition at line 56 of file AdminDialog.h.

Referenced by AdminDialog().

GLWTab * AdminDialog::botsTab_ [protected]

Definition at line 56 of file AdminDialog.h.

Referenced by AdminDialog().

GLWDropDown* AdminDialog::aiSelector_ [protected]

Definition at line 57 of file AdminDialog.h.

Referenced by AdminDialog(), and buttonDown().

GLWButton* AdminDialog::addButton_ [protected]

Definition at line 58 of file AdminDialog.h.

Referenced by AdminDialog(), and buttonDown().


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