MainFrame Class Reference

List of all members.

Public Member Functions

 MainFrame ()
void onTimer (wxTimerEvent &event)
void onPaint (wxPaintEvent &event)
void onMotion (wxMouseEvent &event)
void onEraseBackground (wxEraseEvent &event)
void onDisplayButton ()
void onQuitButton ()
void onSingleButton ()
void onServerButton ()
void onDonateClick ()
void onHelpButton ()

Private Member Functions

void generateCachedImage (int x, int y, wxImage &src, wxBitmap &destBitamp, bool highlight=false)

Private Attributes

wxTimer timer_
wxBitmap backdropBitmap_
wxImage backdropImage_
std::list< ImageData * > images_
long mouseX_
long mouseY_
int lastPos_

Classes

struct  ImageData


Detailed Description

Definition at line 214 of file MainDialog.cpp.


Constructor & Destructor Documentation

MainFrame::MainFrame (  ) 

Definition at line 263 of file MainDialog.cpp.

References convertString(), MainFrame::ImageData::descriptionImage, S3D::dialogMessage(), S3D::formatStringBuffer(), S3D::getDataFile(), TrueTypeFont::getImageForText(), MainFrame::ImageData::loadedImage, messageMutex_, MainFrame::ImageData::x, and MainFrame::ImageData::y.


Member Function Documentation

void MainFrame::onTimer ( wxTimerEvent &  event  ) 

Definition at line 478 of file MainDialog.cpp.

References exitCode_, OptionsDisplay::instance(), OptionsDisplay::loadSafeValues(), messageMutex_, messageString_, and OptionsDisplay::writeOptionsToFile().

void MainFrame::onPaint ( wxPaintEvent &  event  ) 

Definition at line 435 of file MainDialog.cpp.

References backdropBitmap_, MainFrame::ImageData::cachedBitmap1, MainFrame::ImageData::cachedBitmap2, MainFrame::ImageData::cachedDescription, MainFrame::ImageData::descriptionImage, generateCachedImage(), images_, MainFrame::ImageData::loadedImage, mouseX_, mouseY_, MainFrame::ImageData::x, and MainFrame::ImageData::y.

void MainFrame::onMotion ( wxMouseEvent &  event  ) 

Definition at line 338 of file MainDialog.cpp.

References MainFrame::ImageData::cachedBitmap1, images_, lastPos_, mouseX_, mouseY_, onDisplayButton(), onDonateClick(), onHelpButton(), onQuitButton(), onServerButton(), onSingleButton(), MainFrame::ImageData::x, and MainFrame::ImageData::y.

void MainFrame::onEraseBackground ( wxEraseEvent &  event  ) 

Definition at line 474 of file MainDialog.cpp.

void MainFrame::onDisplayButton (  ) 

Definition at line 531 of file MainDialog.cpp.

References showDisplayDialog().

Referenced by onMotion().

void MainFrame::onQuitButton (  ) 

Definition at line 546 of file MainDialog.cpp.

References wxWindowExit.

Referenced by onMotion().

void MainFrame::onSingleButton (  ) 

Definition at line 536 of file MainDialog.cpp.

References runScorched3D().

Referenced by onMotion().

void MainFrame::onServerButton (  ) 

Definition at line 541 of file MainDialog.cpp.

References showServerSDialog().

Referenced by onMotion().

void MainFrame::onDonateClick (  ) 

Definition at line 523 of file MainDialog.cpp.

References S3D::showURL().

Referenced by onMotion().

void MainFrame::onHelpButton (  ) 

Definition at line 552 of file MainDialog.cpp.

References S3D::showURL().

Referenced by onMotion().

void MainFrame::generateCachedImage ( int  x,
int  y,
wxImage &  src,
wxBitmap &  destBitamp,
bool  highlight = false 
) [private]

Definition at line 393 of file MainDialog.cpp.

References backdropImage_.

Referenced by onPaint().


Member Data Documentation

wxTimer MainFrame::timer_ [private]

Definition at line 244 of file MainDialog.cpp.

wxBitmap MainFrame::backdropBitmap_ [private]

Definition at line 245 of file MainDialog.cpp.

Referenced by onPaint().

wxImage MainFrame::backdropImage_ [private]

Definition at line 246 of file MainDialog.cpp.

Referenced by generateCachedImage().

std::list<ImageData *> MainFrame::images_ [private]

Definition at line 247 of file MainDialog.cpp.

Referenced by onMotion(), and onPaint().

long MainFrame::mouseX_ [private]

Definition at line 248 of file MainDialog.cpp.

Referenced by onMotion(), and onPaint().

long MainFrame::mouseY_ [private]

Definition at line 248 of file MainDialog.cpp.

Referenced by onMotion(), and onPaint().

int MainFrame::lastPos_ [private]

Definition at line 249 of file MainDialog.cpp.

Referenced by onMotion().


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