#include <ProgressDialog.h>

Public Member Functions | |
| virtual void | progressChange (const LangString &op, const float percentage) |
| virtual void | draw () |
| void | changeTip () |
| void | setIcon (const std::string &iconName) |
Static Public Member Functions | |
| static ProgressDialog * | instance () |
Protected Attributes | |
| GLTexture | icon_ |
| GLTexture | bar1_ |
| GLTexture | bar2_ |
| FileLines | tips_ |
| LangString | progressText_ |
| float | progressPercentage_ |
Static Protected Attributes | |
| static ProgressDialog * | instance_ = 0 |
Private Member Functions | |
| ProgressDialog () | |
| virtual | ~ProgressDialog () |
Definition at line 29 of file ProgressDialog.h.
| ProgressDialog::ProgressDialog | ( | ) | [private] |
Definition at line 52 of file ProgressDialog.cpp.
References ProgressCounter::setUser().
Referenced by instance().
| ProgressDialog::~ProgressDialog | ( | ) | [private, virtual] |
Definition at line 59 of file ProgressDialog.cpp.
| ProgressDialog * ProgressDialog::instance | ( | ) | [static] |
Definition at line 46 of file ProgressDialog.cpp.
References instance_, and ProgressDialog().
Referenced by ClientNewGameHandler::actualProcessMessage(), ClientMain::clientMain(), ConnectDialog::connected(), AnimatedBackdropDialog::init(), ClientFileHandler::processMessage(), ProgressDialogSync::progressChange(), ClientConnectionAuthHandler::sendAuth(), ClientWindowSetup::setupGameWindows(), ClientWindowSetup::setupStartWindows(), and ConnectDialog::tryConnection().
| void ProgressDialog::progressChange | ( | const LangString & | op, | |
| const float | percentage | |||
| ) | [virtual] |
Implements ProgressCounterI.
Definition at line 63 of file ProgressDialog.cpp.
References progressPercentage_, and progressText_.
Referenced by ConnectDialog::connected(), ClientFileHandler::processMessage(), ProgressDialogSync::progressChange(), ClientConnectionAuthHandler::sendAuth(), and ConnectDialog::tryConnection().
| void ProgressDialog::draw | ( | ) | [virtual] |
Reimplemented from GLWWindow.
Definition at line 90 of file ProgressDialog.cpp.
References bar1_, bar2_, GLWColors::black, GLState::BLEND_ON, GLTexture::create(), GLState::DEPTH_OFF, GLTexture::draw(), GLWWindow::draw(), GLFont2d::drawWidth(), S3D::getDataFile(), GLWFont::getGameFont(), GLWFont::getGameShadowFont(), GL_CLAMP, GL_LINE_LOOP, GL_QUADS, GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, glBegin(), glColor3f(), glEnd(), glLineWidth(), glPopMatrix(), glPushMatrix(), glTexCoord2f(), glTexParameteri(), glTranslatef(), glVertex2f(), icon_, GLWFont::instance(), ImageFactory::loadAlphaImageHandle(), progressPercentage_, progressText_, setIcon(), GLState::TEXTURE_OFF, GLState::TEXTURE_ON, GLTexture::textureValid(), GLWidget::x_, and GLWidget::y_.
Referenced by ProgressDialogSync::progressChange().
| void ProgressDialog::changeTip | ( | ) |
Definition at line 69 of file ProgressDialog.cpp.
References S3D::getDataFile(), FileLines::getLines(), ClientChannelManager::instance(), LANG_RESOURCE_1, GLWWindow::needsCentered(), FileLines::readFile(), ClientChannelManager::showText(), and tips_.
Referenced by ClientNewGameHandler::actualProcessMessage(), ClientMain::clientMain(), and AnimatedBackdropDialog::init().
| void ProgressDialog::setIcon | ( | const std::string & | iconName | ) |
Definition at line 83 of file ProgressDialog.cpp.
References GLTexture::create(), Image::createResize(), icon_, and ImageFactory::loadImageHandle().
Referenced by ClientNewGameHandler::actualProcessMessage(), and draw().
ProgressDialog * ProgressDialog::instance_ = 0 [static, protected] |
GLTexture ProgressDialog::icon_ [protected] |
GLTexture ProgressDialog::bar1_ [protected] |
GLTexture ProgressDialog::bar2_ [protected] |
FileLines ProgressDialog::tips_ [protected] |
LangString ProgressDialog::progressText_ [protected] |
float ProgressDialog::progressPercentage_ [protected] |
1.5.3