#include <NetworkSelectDialog.h>

Public Member Functions | |
| virtual void | simulate (float frameTime) |
| virtual void | display () |
| virtual void | hide () |
| 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) |
| virtual void | textChanged (unsigned int id, const LangString &text) |
| virtual void | select (unsigned int id, const int pos, GLWSelectorEntry value) |
Static Public Member Functions | |
| static NetworkSelectDialog * | instance () |
Protected Member Functions | |
| void | updateTable () |
| void | startRefresh () |
| void | stopRefresh () |
| bool | serverCompatable (std::string pversion, std::string version) |
| GLTexture * | getTexture (int row, LangString *&message) |
| void | drawIcon (GLTexture *tex, float &x, float y, LangString &message) |
| void | drawColumnGames (unsigned int id, int row, int column, float x, float y, float w) |
| void | drawColumnPlayers (unsigned int id, int row, int col, float x, float y, float w) |
| void | rowSelectedGames (unsigned int id, int row) |
| void | rowChosenGames (unsigned int id, int row) |
| void | columnSelectedGames (unsigned int id, int col) |
Protected Attributes | |
| float | totalTime_ |
| GLTexture * | okTex_ |
| GLTexture * | questionTex_ |
| GLTexture * | warningTex_ |
| GLTexture * | noentryTex_ |
| GLTexture * | tankTex_ |
| GLTexture * | exclaimTex_ |
| GLTexture * | keyTex_ |
| GLTexture * | cogTex_ |
| GLWIconTable * | gamesIconTable_ |
| GLWIconTable * | playersIconTable_ |
| GLWTextButton * | ok_ |
| GLWTextButton * | refresh_ |
| GLWTextButton * | favourites_ |
| GLWTextBox * | ipaddress_ |
| GLWDropDownText * | refreshType_ |
| unsigned int | invalidateId_ |
| unsigned int | cancelId_ |
| unsigned int | addFavouriteId_ |
| ToolTip | colToolTip_ |
Static Protected Attributes | |
| static NetworkSelectDialog * | instance_ = 0 |
Private Member Functions | |
| NetworkSelectDialog () | |
| virtual | ~NetworkSelectDialog () |
Definition at line 31 of file NetworkSelectDialog.h.
| NetworkSelectDialog::NetworkSelectDialog | ( | ) | [private] |
Definition at line 79 of file NetworkSelectDialog.cpp.
References GLWDropDownText::addText(), GLWPanel::addWidget(), GLWButton::ButtonFlagCancel, GLWButton::ButtonFlagCenterX, GLWButton::ButtonFlagOk, cancelId_, favourites_, gamesIconTable_, getGamesCols(), GLWidget::getId(), getPlayerCols(), ipaddress_, LANG_RESOURCE, ok_, playersIconTable_, refresh_, refreshType_, GLWTextBox::setCurrent(), GLWDropDownText::setCurrentText(), GLWDropDown::setHandler(), GLWTextBox::setHandler(), and GLWIconTable::setHandler().
| NetworkSelectDialog::~NetworkSelectDialog | ( | ) | [private, virtual] |
Definition at line 135 of file NetworkSelectDialog.cpp.
| NetworkSelectDialog * NetworkSelectDialog::instance | ( | ) | [static] |
Definition at line 70 of file NetworkSelectDialog.cpp.
References instance_.
Referenced by StartDialog::mouseDown(), and ClientWindowSetup::setupStartWindows().
| void NetworkSelectDialog::simulate | ( | float | frameTime | ) | [virtual] |
Reimplemented from GLWPanel.
Definition at line 140 of file NetworkSelectDialog.cpp.
References GLWPanel::simulate(), totalTime_, and updateTable().
| void NetworkSelectDialog::display | ( | ) | [virtual] |
Reimplemented from GLWPanel.
Definition at line 487 of file NetworkSelectDialog.cpp.
References ipaddress_, LANG_RESOURCE, refreshType_, GLWDropDownText::setCurrentText(), and GLWTextBox::setText().
| void NetworkSelectDialog::hide | ( | ) | [virtual] |
Reimplemented from GLWPanel.
Definition at line 493 of file NetworkSelectDialog.cpp.
References stopRefresh().
| void NetworkSelectDialog::buttonDown | ( | unsigned int | id | ) | [virtual] |
Implements GLWButtonI.
Definition at line 564 of file NetworkSelectDialog.cpp.
References cancelId_, favourites_, ServerBrowser::getCollect(), ServerBrowserCollect::getFavourites(), GLWidget::getId(), ServerBrowser::getRefreshing(), GLWTextBox::getText(), GLWWindowManager::hideWindow(), GLWidget::id_, ClientParams::instance(), GLWWindowManager::instance(), ServerBrowser::instance(), ipaddress_, GLWDropDownText::isSelected(), LANG_RESOURCE, ok_, refresh_, refreshType_, ClientParams::reset(), ClientParams::setConnect(), ServerBrowserCollect::setFavourites(), ClientMain::startClient(), startRefresh(), and stopRefresh().
Referenced by rowChosenGames().
| void NetworkSelectDialog::drawColumn | ( | unsigned int | id, | |
| int | row, | |||
| int | column, | |||
| float | x, | |||
| float | y, | |||
| float | w | |||
| ) | [virtual] |
Implements GLWIconTableI.
Definition at line 237 of file NetworkSelectDialog.cpp.
References drawColumnGames(), drawColumnPlayers(), gamesIconTable_, GLWidget::getId(), and playersIconTable_.
| void NetworkSelectDialog::rowSelected | ( | unsigned int | id, | |
| int | row | |||
| ) | [virtual] |
Implements GLWIconTableI.
Definition at line 421 of file NetworkSelectDialog.cpp.
References gamesIconTable_, GLWidget::getId(), and rowSelectedGames().
| void NetworkSelectDialog::rowChosen | ( | unsigned int | id, | |
| int | row | |||
| ) | [virtual] |
Implements GLWIconTableI.
Definition at line 467 of file NetworkSelectDialog.cpp.
References gamesIconTable_, GLWidget::getId(), and rowChosenGames().
| void NetworkSelectDialog::columnSelected | ( | unsigned int | id, | |
| int | col | |||
| ) | [virtual] |
Implements GLWIconTableI.
Definition at line 477 of file NetworkSelectDialog.cpp.
References columnSelectedGames(), gamesIconTable_, and GLWidget::getId().
| void NetworkSelectDialog::textChanged | ( | unsigned int | id, | |
| const LangString & | text | |||
| ) | [virtual] |
Implements GLWTextBoxI.
Definition at line 558 of file NetworkSelectDialog.cpp.
References favourites_, ok_, and GLWButton::setEnabled().
| void NetworkSelectDialog::select | ( | unsigned int | id, | |
| const int | pos, | |||
| GLWSelectorEntry | value | |||
| ) | [virtual] |
Implements GLWDropDownI.
Definition at line 522 of file NetworkSelectDialog.cpp.
References favourites_, GLWDropDownText::isSelected(), LANG_RESOURCE, refreshType_, GLWTextButton::setText(), and startRefresh().
| void NetworkSelectDialog::updateTable | ( | ) | [protected] |
Definition at line 498 of file NetworkSelectDialog.cpp.
References gamesIconTable_, ServerBrowser::instance(), invalidateId_, LANG_RESOURCE, refresh_, GLWIconTable::setItemCount(), and GLWTextButton::setText().
Referenced by simulate(), startRefresh(), and stopRefresh().
| void NetworkSelectDialog::startRefresh | ( | ) | [protected] |
Definition at line 536 of file NetworkSelectDialog.cpp.
References gamesIconTable_, ServerBrowser::instance(), GLWDropDownText::isSelected(), LANG_RESOURCE, playersIconTable_, ServerBrowser::RefreshFavourites, ServerBrowser::RefreshLan, ServerBrowser::refreshList(), ServerBrowser::RefreshNet, ServerBrowser::RefreshNone, refreshType_, GLWIconTable::setItemCount(), stopRefresh(), and updateTable().
Referenced by buttonDown(), and select().
| void NetworkSelectDialog::stopRefresh | ( | ) | [protected] |
Definition at line 552 of file NetworkSelectDialog.cpp.
References ServerBrowser::cancel(), ServerBrowser::instance(), and updateTable().
Referenced by buttonDown(), hide(), and startRefresh().
| bool NetworkSelectDialog::serverCompatable | ( | std::string | pversion, | |
| std::string | version | |||
| ) | [protected] |
Definition at line 410 of file NetworkSelectDialog.cpp.
References S3D::ScorchedProtocolVersion, and LangStringUtil::strcmp().
Referenced by getTexture(), and rowSelectedGames().
| GLTexture * NetworkSelectDialog::getTexture | ( | int | row, | |
| LangString *& | message | |||
| ) | [protected] |
Definition at line 182 of file NetworkSelectDialog.cpp.
References exclaimTex_, ServerBrowser::getServerList(), ServerBrowser::instance(), LANG_RESOURCE_CONST_VAR, noentryTex_, okTex_, questionTex_, serverCompatable(), LangStringUtil::strcmp(), and warningTex_.
Referenced by drawColumnGames().
| void NetworkSelectDialog::drawIcon | ( | GLTexture * | tex, | |
| float & | x, | |||
| float | y, | |||
| LangString & | message | |||
| ) | [protected] |
Definition at line 151 of file NetworkSelectDialog.cpp.
References GLState::BLEND_ON, colToolTip_, GLTexture::draw(), GLWTranslate::getPosX(), GLWTranslate::getPosY(), GL_QUADS, glBegin(), glColor3f(), glEnd(), glTexCoord2f(), glVertex2f(), GLWToolTip::instance(), LANG_RESOURCE, ToolTip::setText(), GLState::TEXTURE_ON, and ToolTip::ToolTipInfo.
Referenced by drawColumnGames().
| void NetworkSelectDialog::drawColumnGames | ( | unsigned int | id, | |
| int | row, | |||
| int | column, | |||
| float | x, | |||
| float | y, | |||
| float | w | |||
| ) | [protected] |
Definition at line 244 of file NetworkSelectDialog.cpp.
References GLWToolTip::addToolTip(), cogTex_, colToolTip_, drawIcon(), GLFont2d::drawWidth(), exclaimTex_, S3D::formatStringBuffer(), S3D::getDataFile(), ServerBrowserServerList::getEntryValue(), GLWFont::getGameFont(), getGamesCols(), GLWTranslate::getPosX(), GLWTranslate::getPosY(), ServerBrowser::getServerList(), getTexture(), GLWToolTip::instance(), GLWFont::instance(), TextureStore::instance(), ServerBrowser::instance(), keyTex_, LANG_RESOURCE_CONST_VAR, LANG_STRING, TextureStore::loadTexture(), noentryTex_, okTex_, questionTex_, ToolTip::setText(), LangStringUtil::strcmp(), tankTex_, ToolTip::ToolTipInfo, and warningTex_.
Referenced by drawColumn().
| void NetworkSelectDialog::drawColumnPlayers | ( | unsigned int | id, | |
| int | row, | |||
| int | col, | |||
| float | x, | |||
| float | y, | |||
| float | w | |||
| ) | [protected] |
Definition at line 390 of file NetworkSelectDialog.cpp.
References GLFont2d::drawWidth(), S3D::formatStringBuffer(), gamesIconTable_, ServerBrowserServerList::getEntryValue(), GLWFont::getGameFont(), getPlayerCols(), GLWIconTable::getSelected(), ServerBrowser::getServerList(), GLWFont::instance(), and ServerBrowser::instance().
Referenced by drawColumn().
| void NetworkSelectDialog::rowSelectedGames | ( | unsigned int | id, | |
| int | row | |||
| ) | [protected] |
Definition at line 426 of file NetworkSelectDialog.cpp.
References ServerBrowserServerList::getEntryValue(), ServerBrowser::getServerList(), MsgBoxDialog::instance(), ServerBrowser::instance(), ipaddress_, LANG_RESOURCE_4, LANG_STRING, playersIconTable_, S3D::ScorchedProtocolVersion, S3D::ScorchedVersion, serverCompatable(), GLWIconTable::setItemCount(), GLWTextBox::setText(), and MsgBoxDialog::show().
Referenced by rowSelected().
| void NetworkSelectDialog::rowChosenGames | ( | unsigned int | id, | |
| int | row | |||
| ) | [protected] |
Definition at line 472 of file NetworkSelectDialog.cpp.
References buttonDown(), GLWButton::getEnabled(), GLWidget::getId(), and ok_.
Referenced by rowChosen().
| void NetworkSelectDialog::columnSelectedGames | ( | unsigned int | id, | |
| int | col | |||
| ) | [protected] |
Definition at line 482 of file NetworkSelectDialog.cpp.
References getGamesCols(), ServerBrowser::getServerList(), ServerBrowser::instance(), and ServerBrowserServerList::sortEntries().
Referenced by columnSelected().
NetworkSelectDialog * NetworkSelectDialog::instance_ = 0 [static, protected] |
float NetworkSelectDialog::totalTime_ [protected] |
GLTexture* NetworkSelectDialog::okTex_ [protected] |
Definition at line 66 of file NetworkSelectDialog.h.
Referenced by drawColumnGames(), and getTexture().
GLTexture * NetworkSelectDialog::questionTex_ [protected] |
Definition at line 66 of file NetworkSelectDialog.h.
Referenced by drawColumnGames(), and getTexture().
GLTexture* NetworkSelectDialog::warningTex_ [protected] |
Definition at line 67 of file NetworkSelectDialog.h.
Referenced by drawColumnGames(), and getTexture().
GLTexture * NetworkSelectDialog::noentryTex_ [protected] |
Definition at line 67 of file NetworkSelectDialog.h.
Referenced by drawColumnGames(), and getTexture().
GLTexture* NetworkSelectDialog::tankTex_ [protected] |
GLTexture * NetworkSelectDialog::exclaimTex_ [protected] |
Definition at line 68 of file NetworkSelectDialog.h.
Referenced by drawColumnGames(), and getTexture().
GLTexture* NetworkSelectDialog::keyTex_ [protected] |
GLTexture * NetworkSelectDialog::cogTex_ [protected] |
GLWIconTable* NetworkSelectDialog::gamesIconTable_ [protected] |
Definition at line 70 of file NetworkSelectDialog.h.
Referenced by columnSelected(), drawColumn(), drawColumnPlayers(), NetworkSelectDialog(), rowChosen(), rowSelected(), startRefresh(), and updateTable().
GLWIconTable* NetworkSelectDialog::playersIconTable_ [protected] |
Definition at line 71 of file NetworkSelectDialog.h.
Referenced by drawColumn(), NetworkSelectDialog(), rowSelectedGames(), and startRefresh().
GLWTextButton* NetworkSelectDialog::ok_ [protected] |
Definition at line 72 of file NetworkSelectDialog.h.
Referenced by buttonDown(), NetworkSelectDialog(), rowChosenGames(), and textChanged().
GLWTextButton * NetworkSelectDialog::refresh_ [protected] |
Definition at line 72 of file NetworkSelectDialog.h.
Referenced by buttonDown(), NetworkSelectDialog(), and updateTable().
GLWTextButton * NetworkSelectDialog::favourites_ [protected] |
Definition at line 72 of file NetworkSelectDialog.h.
Referenced by buttonDown(), NetworkSelectDialog(), select(), and textChanged().
GLWTextBox* NetworkSelectDialog::ipaddress_ [protected] |
Definition at line 73 of file NetworkSelectDialog.h.
Referenced by buttonDown(), display(), NetworkSelectDialog(), and rowSelectedGames().
GLWDropDownText* NetworkSelectDialog::refreshType_ [protected] |
Definition at line 74 of file NetworkSelectDialog.h.
Referenced by buttonDown(), display(), NetworkSelectDialog(), select(), and startRefresh().
unsigned int NetworkSelectDialog::invalidateId_ [protected] |
unsigned int NetworkSelectDialog::cancelId_ [protected] |
Definition at line 76 of file NetworkSelectDialog.h.
Referenced by buttonDown(), and NetworkSelectDialog().
unsigned int NetworkSelectDialog::addFavouriteId_ [protected] |
Definition at line 76 of file NetworkSelectDialog.h.
ToolTip NetworkSelectDialog::colToolTip_ [protected] |
Definition at line 77 of file NetworkSelectDialog.h.
Referenced by drawColumnGames(), and drawIcon().
1.5.3