Code::Blocks  SVN r11506
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
CodeBlocksApp Class Reference

#include <app.h>

Inheritance diagram for CodeBlocksApp:
Collaboration diagram for CodeBlocksApp:

Public Member Functions

virtual bool OnInit ()
 
virtual int OnExit ()
 
virtual int OnRun ()
 
wxString GetAppPath () const
 
int ParseCmdLine (MainFrame *handlerFrame, const wxString &CmdLine=wxEmptyString)
 
void OnAppActivate (wxActivateEvent &event)
 
bool OnCmdLineParsed (wxCmdLineParser &parser)
 
void OnFatalException ()
 
void LoadDelayedFiles (MainFrame *frame)
 
void SetAutoFile (wxString &file)
 
void AttachDebugger ()
 
void AddFileToOpenDelayed (const wxString &filename)
 
- Public Member Functions inherited from wxApp
 wxApp ()
 
virtual ~wxApp ()
 
virtual wxVideoMode GetDisplayMode () const
 
bool GetExitOnFrameDelete () const
 
virtual wxLayoutDirection GetLayoutDirection () const
 
bool GetUseBestVisual () const
 
virtual wxWindowGetTopWindow () const
 
virtual bool IsActive () const
 
virtual bool SafeYield (wxWindow *win, bool onlyIfNeeded)
 
virtual bool SafeYieldFor (wxWindow *win, long eventsToProcess)
 
bool ProcessMessage (WXMSG *msg)
 
virtual bool SetDisplayMode (const wxVideoMode &info)
 
void SetExitOnFrameDelete (bool flag)
 
virtual bool SetNativeTheme (const wxString &theme)
 
void SetTopWindow (wxWindow *window)
 
void SetUseBestVisual (bool flag, bool forceTrueColour=false)
 
virtual void MacNewFile ()
 
virtual void MacOpenFiles (const wxArrayString &fileNames)
 
virtual void MacOpenFile (const wxString &fileName)
 
virtual void MacOpenURL (const wxString &url)
 
virtual void MacPrintFile (const wxString &fileName)
 
virtual void MacReopenApp ()
 
virtual bool OSXIsGUIApplication ()
 
virtual ~wxAppConsole ()
 
bool Yield (bool onlyIfNeeded=false)
 
void SetCLocale ()
 
virtual int MainLoop ()
 
virtual void ExitMainLoop ()
 
virtual int FilterEvent (wxEvent &event)
 
wxEventLoopBaseGetMainLoop () const
 
virtual void HandleEvent (wxEvtHandler *handler, wxEventFunction func, wxEvent &event) const
 
virtual bool UsesEventLoop () const
 
virtual void ProcessPendingEvents ()
 
void DeletePendingEvents ()
 
bool HasPendingEvents () const
 
void SuspendProcessingOfPendingEvents ()
 
void ResumeProcessingOfPendingEvents ()
 
void ScheduleForDestruction (wxObject *object)
 
bool IsScheduledForDestruction (wxObject *object) const
 
virtual void OnAssertFailure (const wxChar *file, int line, const wxChar *func, const wxChar *cond, const wxChar *msg)
 
virtual bool OnCmdLineError (wxCmdLineParser &parser)
 
virtual bool OnCmdLineHelp (wxCmdLineParser &parser)
 
virtual void OnEventLoopEnter (wxEventLoopBase *loop)
 
virtual void OnEventLoopExit (wxEventLoopBase *loop)
 
virtual bool OnExceptionInMainLoop ()
 
virtual void OnInitCmdLine (wxCmdLineParser &parser)
 
virtual void OnUnhandledException ()
 
wxString GetAppDisplayName () const
 
wxString GetAppName () const
 
wxString GetClassName () const
 
wxAppTraitsGetTraits ()
 
const wxStringGetVendorDisplayName () const
 
const wxStringGetVendorName () const
 
void SetAppDisplayName (const wxString &name)
 
void SetAppName (const wxString &name)
 
void SetClassName (const wxString &name)
 
void SetVendorDisplayName (const wxString &name)
 
void SetVendorName (const wxString &name)
 
virtual void QueueEvent (wxEvent *event)
 
virtual void AddPendingEvent (const wxEvent &event)
 
virtual bool ProcessEvent (wxEvent &event)
 
virtual void SetNextHandler (wxEvtHandler *handler)
 
virtual void SetPreviousHandler (wxEvtHandler *handler)
 
 wxEventFilter ()
 
virtual ~wxEventFilter ()
 

Protected Member Functions

void OnBatchBuildDone (CodeBlocksEvent &event)
 
void OnTBIconLeftDown (wxTaskBarIconEvent &event)
 
bool LoadConfig ()
 
void InitDebugConsole ()
 
void InitExceptionHandler ()
 
bool InitXRCStuff ()
 
MainFrameInitFrame ()
 
void CheckVersion ()
 
void InitLocale ()
 
int BatchJob ()
 
- Protected Member Functions inherited from wxApp
virtual wxAppTraitsCreateTraits ()
 

Protected Attributes

wxLocale m_locale
 
wxArrayString m_DelayedFilesToOpen
 

Private Member Functions

void SetupPersonality (const wxString &personality)
 
void InitAssociations ()
 

Private Attributes

wxString m_Prefix
 
wxString m_UserDataDir
 
wxString m_BatchTarget
 
wxString m_Script
 
wxString m_AutoFile
 
wxString m_DebuggerAttach
 
wxString m_DebuggerConfig
 
wxScrollingDialogm_pBatchBuildDialog
 
MainFramem_Frame
 
wxSingleInstanceCheckerm_pSingleInstance
 
bool m_Batch
 
bool m_BatchNotify
 
bool m_BatchWindowAutoClose
 
bool m_Build
 
bool m_ReBuild
 
bool m_Clean
 
bool m_HasProject
 
bool m_HasWorkSpace
 
bool m_Splash
 
bool m_HasDebugLog
 
bool m_CrashHandler
 
bool m_SafeMode
 
bool m_DDE
 
bool m_Assocs
 
int m_BatchExitCode
 

Additional Inherited Members

- Static Public Member Functions inherited from wxApp
static void SetInstance (wxAppConsole *app)
 
static wxAppConsoleGetInstance ()
 
static bool IsMainLoopRunning ()
 
- Public Attributes inherited from wxApp
int argc
 
wxChar ** argv
 

Detailed Description

Definition at line 107 of file app.h.

Member Function Documentation

◆ AddFileToOpenDelayed()

void CodeBlocksApp::AddFileToOpenDelayed ( const wxString filename)

Definition at line 1460 of file app.cpp.

Referenced by GetResourcesDir().

◆ AttachDebugger()

void CodeBlocksApp::AttachDebugger ( )

◆ BatchJob()

int CodeBlocksApp::BatchJob ( )
protected

◆ CheckVersion()

void CodeBlocksApp::CheckVersion ( )
protected

◆ GetAppPath()

wxString CodeBlocksApp::GetAppPath ( ) const

Definition at line 1065 of file app.cpp.

References _T, wxFileName::GetPath(), and wxString::IsEmpty().

◆ InitAssociations()

void CodeBlocksApp::InitAssociations ( )
private

◆ InitDebugConsole()

void CodeBlocksApp::InitDebugConsole ( )
protected

Definition at line 457 of file app.cpp.

◆ InitExceptionHandler()

void CodeBlocksApp::InitExceptionHandler ( )
protected

Definition at line 472 of file app.cpp.

◆ InitFrame()

MainFrame * CodeBlocksApp::InitFrame ( )
protected

Definition at line 501 of file app.cpp.

References wxUpdateUIEvent::SetUpdateInterval().

◆ InitLocale()

void CodeBlocksApp::InitLocale ( )
protected

◆ InitXRCStuff()

bool CodeBlocksApp::InitXRCStuff ( )
protected

◆ LoadConfig()

bool CodeBlocksApp::LoadConfig ( )
protected

Referenced by IMPLEMENT_APP().

◆ LoadDelayedFiles()

void CodeBlocksApp::LoadDelayedFiles ( MainFrame frame)

◆ OnAppActivate()

void CodeBlocksApp::OnAppActivate ( wxActivateEvent event)

◆ OnBatchBuildDone()

void CodeBlocksApp::OnBatchBuildDone ( CodeBlocksEvent event)
protected

◆ OnCmdLineParsed()

bool CodeBlocksApp::OnCmdLineParsed ( wxCmdLineParser parser)
virtual

Reimplemented from wxApp.

Definition at line 894 of file app.cpp.

References wxApp::OnCmdLineParsed().

◆ OnExit()

int CodeBlocksApp::OnExit ( )
virtual

Reimplemented from wxApp.

Definition at line 820 of file app.cpp.

References Manager::Free(), and wxTheClipboard.

◆ OnFatalException()

void CodeBlocksApp::OnFatalException ( )
virtual

◆ OnInit()

bool CodeBlocksApp::OnInit ( )
virtual

Reimplemented from wxApp.

Definition at line 572 of file app.cpp.

References _(), _T, wxFileSystem::AddHandler(), appglobals::AppActualVersionVerb, appglobals::AppBuildTimestamp, appglobals::AppName, cbC2U(), cbEVT_APP_STARTUP_DONE, cbEVT_COMPILER_FINISHED, cbMessageBox(), DDE_SERVICE, DDE_TOPIC, ScriptingManager::DisplayErrors(), wxLog::EnableLogging(), F(), wxString::Format(), wxCmdLineParser::Found(), wxXmlResource::Get(), Manager::Get(), Manager::GetCmdLineParser(), Manager::GetConfigManager(), LoaderBase::GetData(), Manager::GetFileManager(), Manager::GetLogManager(), Manager::GetProjectManager(), Manager::GetScriptingManager(), ConfigManager::GetTempFolder(), wxXmlResource::InitAllHandlers(), wxXmlResource::InsertHandler(), wxString::IsEmpty(), FileManager::Load(), ScriptingManager::LoadBuffer(), ScriptingManager::LoadScript(), ProjectManager::LoadWorkspace(), ConfigManager::LocateDataFile(), LogManager::Log(), OnBatchBuildDone(), Manager::ProcessEvent(), Manager::ProcessPendingEvents(), ConfigManager::ReadBool(), Manager::RegisterEventSink(), wxString::Replace(), sdScriptsGlobal, sdScriptsUser, wxMessageOutput::Set(), Manager::SetAppStartedUp(), Manager::SetBatchBuild(), wxCmdLineParser::SetDesc(), PluginManager::SetSafeMode(), cbException::ShowErrorMessage(), MainFrame::ShowTips(), MainFrame::StartupDone(), wxCmdLineParser::Usage(), ProjectManager::WorkspaceChanged(), wxGetUserId(), wxHandleFatalExceptions(), wxICON_ERROR, wxInitAllImageHandlers(), wxOK, wxSafeShowMessage(), wxT, and wxTheClipboard.

◆ OnRun()

int CodeBlocksApp::OnRun ( )
virtual

◆ OnTBIconLeftDown()

void CodeBlocksApp::OnTBIconLeftDown ( wxTaskBarIconEvent event)
protected

Definition at line 1055 of file app.cpp.

◆ ParseCmdLine()

int CodeBlocksApp::ParseCmdLine ( MainFrame handlerFrame,
const wxString CmdLine = wxEmptyString 
)

◆ SetAutoFile()

void CodeBlocksApp::SetAutoFile ( wxString file)

Definition at line 1102 of file app.cpp.

Referenced by GetResourcesDir().

◆ SetupPersonality()

void CodeBlocksApp::SetupPersonality ( const wxString personality)
private

Member Data Documentation

◆ m_Assocs

bool CodeBlocksApp::m_Assocs
private

Definition at line 174 of file app.h.

◆ m_AutoFile

wxString CodeBlocksApp::m_AutoFile
private

Definition at line 149 of file app.h.

◆ m_Batch

bool CodeBlocksApp::m_Batch
private

Definition at line 157 of file app.h.

◆ m_BatchExitCode

int CodeBlocksApp::m_BatchExitCode
private

Definition at line 176 of file app.h.

◆ m_BatchNotify

bool CodeBlocksApp::m_BatchNotify
private

Definition at line 158 of file app.h.

◆ m_BatchTarget

wxString CodeBlocksApp::m_BatchTarget
private

Definition at line 147 of file app.h.

◆ m_BatchWindowAutoClose

bool CodeBlocksApp::m_BatchWindowAutoClose
private

Definition at line 159 of file app.h.

◆ m_Build

bool CodeBlocksApp::m_Build
private

Definition at line 160 of file app.h.

◆ m_Clean

bool CodeBlocksApp::m_Clean
private

Definition at line 162 of file app.h.

◆ m_CrashHandler

bool CodeBlocksApp::m_CrashHandler
private

Definition at line 167 of file app.h.

◆ m_DDE

bool CodeBlocksApp::m_DDE
private

Definition at line 172 of file app.h.

◆ m_DebuggerAttach

wxString CodeBlocksApp::m_DebuggerAttach
private

Definition at line 150 of file app.h.

◆ m_DebuggerConfig

wxString CodeBlocksApp::m_DebuggerConfig
private

Definition at line 151 of file app.h.

◆ m_DelayedFilesToOpen

wxArrayString CodeBlocksApp::m_DelayedFilesToOpen
protected

Definition at line 140 of file app.h.

◆ m_Frame

MainFrame* CodeBlocksApp::m_Frame
private

Definition at line 154 of file app.h.

◆ m_HasDebugLog

bool CodeBlocksApp::m_HasDebugLog
private

Definition at line 166 of file app.h.

◆ m_HasProject

bool CodeBlocksApp::m_HasProject
private

Definition at line 163 of file app.h.

◆ m_HasWorkSpace

bool CodeBlocksApp::m_HasWorkSpace
private

Definition at line 164 of file app.h.

◆ m_locale

wxLocale CodeBlocksApp::m_locale
protected

Definition at line 139 of file app.h.

◆ m_pBatchBuildDialog

wxScrollingDialog* CodeBlocksApp::m_pBatchBuildDialog
private

Definition at line 153 of file app.h.

◆ m_Prefix

wxString CodeBlocksApp::m_Prefix
private

Definition at line 145 of file app.h.

◆ m_pSingleInstance

wxSingleInstanceChecker* CodeBlocksApp::m_pSingleInstance
private

Definition at line 155 of file app.h.

◆ m_ReBuild

bool CodeBlocksApp::m_ReBuild
private

Definition at line 161 of file app.h.

◆ m_SafeMode

bool CodeBlocksApp::m_SafeMode
private

Definition at line 168 of file app.h.

◆ m_Script

wxString CodeBlocksApp::m_Script
private

Definition at line 148 of file app.h.

◆ m_Splash

bool CodeBlocksApp::m_Splash
private

Definition at line 165 of file app.h.

◆ m_UserDataDir

wxString CodeBlocksApp::m_UserDataDir
private

Definition at line 146 of file app.h.


The documentation for this class was generated from the following files: