ProgressDialog Class Reference

#include <ProgressDialog.h>

Inheritance diagram for ProgressDialog:

GLWWindow ProgressCounterI ProgressCounter GLWPanel GLWidget MetaClass

List of all members.

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 ProgressDialoginstance ()

Protected Attributes

GLTexture icon_
GLTexture bar1_
GLTexture bar2_
FileLines tips_
LangString progressText_
float progressPercentage_

Static Protected Attributes

static ProgressDialoginstance_ = 0

Private Member Functions

 ProgressDialog ()
virtual ~ProgressDialog ()


Detailed Description

Definition at line 29 of file ProgressDialog.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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().


Member Data Documentation

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

Definition at line 44 of file ProgressDialog.h.

Referenced by instance().

GLTexture ProgressDialog::icon_ [protected]

Definition at line 46 of file ProgressDialog.h.

Referenced by draw(), and setIcon().

GLTexture ProgressDialog::bar1_ [protected]

Definition at line 47 of file ProgressDialog.h.

Referenced by draw().

GLTexture ProgressDialog::bar2_ [protected]

Definition at line 47 of file ProgressDialog.h.

Referenced by draw().

FileLines ProgressDialog::tips_ [protected]

Definition at line 48 of file ProgressDialog.h.

Referenced by changeTip().

LangString ProgressDialog::progressText_ [protected]

Definition at line 49 of file ProgressDialog.h.

Referenced by draw(), and progressChange().

float ProgressDialog::progressPercentage_ [protected]

Definition at line 50 of file ProgressDialog.h.

Referenced by draw(), and progressChange().


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