dolphin/Source/Core/DolphinWX/Main.h
2014-02-23 00:27:27 +01:00

47 lines
855 B
C++

// Copyright 2013 Dolphin Emulator Project
// Licensed under GPLv2
// Refer to the license.txt file included.
#pragma once
#include <wx/app.h>
#include <wx/chartype.h>
#include <wx/defs.h>
#include <wx/event.h>
#include <wx/string.h>
class CFrame;
class wxLocale;
class wxTimer;
class wxTimerEvent;
// Define a new application
class DolphinApp : public wxApp
{
public:
CFrame* GetCFrame();
private:
bool OnInit();
int OnExit();
void OnFatalException();
bool Initialize(int& c, wxChar **v);
void InitLanguageSupport();
void MacOpenFile(const wxString &fileName);
DECLARE_EVENT_TABLE()
wxTimer *m_afterinit;
bool BatchMode;
bool LoadFile;
bool playMovie;
wxString FileToLoad;
wxString movieFile;
wxLocale *m_locale;
void AfterInit(wxTimerEvent& WXUNUSED(event));
void OnEndSession(wxCloseEvent& event);
};
DECLARE_APP(DolphinApp);