MainDialog.cpp File Reference

#include <stdlib.h>
#include <wx/wx.h>
#include <wx/image.h>
#include <wx/process.h>
#include <wx/txtstrm.h>
#include <wx/msgdlg.h>
#include <wx/dcbuffer.h>
#include <wx/splash.h>
#include <windows.h>
#include <SDL/SDL.h>
#include <wxdialogs/MainDialog.h>
#include <wxdialogs/DisplayDialog.h>
#include <wxdialogs/ServerSDialog.h>
#include <wxdialogs/TrueTypeFont.h>
#include <scorched/ScorchedParams.h>
#include <graph/OptionsDisplay.h>
#include <common/Defines.h>

Go to the source code of this file.

Classes

class  ScorchedProcess
class  MainFrame
struct  MainFrame::ImageData

Defines

#define WIN32_LEAN_AND_MEAN

Enumerations

enum  { ID_MAIN_TIMER }

Functions

wxString convertString (const std::string &input)
void addTitleToWindow (wxWindow *parent, wxSizer *sizer, const char *fileName, int buttonId)
void runScorched3D (const char *text, bool server)
wxButton * addButtonToWindow (int id, const char *text, const char *bitmapName, wxWindow *parent, wxSizer *sizer, wxObjectRefData *data)
void showMainDialog ()
wxFrame * getMainDialog ()

Variables

char scorched3dAppName [128]
static wxFrame * mainDialog = 0
bool wxWindowExit = false
static SDL_mutex * messageMutex_ = 0
static std::string messageString_
static int exitCode_ = 0
bool newVersion


Define Documentation

#define WIN32_LEAN_AND_MEAN

Definition at line 29 of file MainDialog.cpp.


Enumeration Type Documentation

anonymous enum

Enumerator:
ID_MAIN_TIMER 

Definition at line 44 of file MainDialog.cpp.


Function Documentation

wxButton* addButtonToWindow ( int  id,
const char *  text,
const char *  bitmapName,
wxWindow *  parent,
wxSizer *  sizer,
wxObjectRefData *  data 
)

Definition at line 183 of file MainDialog.cpp.

void addTitleToWindow ( wxWindow *  parent,
wxSizer *  sizer,
const char *  fileName,
int  buttonId 
)

Definition at line 55 of file MainDialog.cpp.

wxString convertString ( const std::string input  ) 

Definition at line 49 of file MainDialog.cpp.

Referenced by SettingsFrame::createLandPanel(), OptionEntrySetterUtil::createOtherSetter(), DisplayFrame::DisplayFrame(), KeyFrame::KeyFrame(), MainFrame::MainFrame(), DisplayFrame::onExportMod(), DisplayFrame::onImportMod(), DisplayFrame::refreshScreen(), ServerSFrame::ServerSFrame(), SettingsFrame::SettingsFrame(), showMainDialog(), and ServerSFrame::TransferDataToWindow().

wxFrame* getMainDialog (  ) 

Definition at line 577 of file MainDialog.cpp.

Referenced by ScorchedApp::OnInit().

void runScorched3D ( const char *  text,
bool  server 
)

Definition at line 142 of file MainDialog.cpp.

Referenced by MainFrame::onSingleButton(), and showServerSDialog().

void showMainDialog (  ) 

Definition at line 558 of file MainDialog.cpp.

Referenced by ScorchedApp::OnInit().


Variable Documentation

int exitCode_ = 0 [static]

Definition at line 76 of file MainDialog.cpp.

Referenced by ScorchedProcess::OnTerminate(), and MainFrame::onTimer().

wxFrame* mainDialog = 0 [static]

Definition at line 41 of file MainDialog.cpp.

Referenced by getMainDialog(), and showMainDialog().

SDL_mutex* messageMutex_ = 0 [static]

Definition at line 74 of file MainDialog.cpp.

Referenced by MainFrame::MainFrame(), ScorchedProcess::OnTerminate(), and MainFrame::onTimer().

std::string messageString_ [static]

Definition at line 75 of file MainDialog.cpp.

Referenced by ScorchedProcess::OnTerminate(), and MainFrame::onTimer().

bool newVersion

Definition at line 36 of file main.cpp.

char scorched3dAppName[128]

Definition at line 30 of file main.h.

bool wxWindowExit = false

Definition at line 42 of file MainDialog.cpp.

Referenced by MainFrame::onQuitButton().


Generated on Mon Feb 16 15:14:59 2009 for Scorched3D by  doxygen 1.5.3