dolphin/Source/Core/DolphinWX/Main.h

49 lines
919 B
C
Raw Normal View History

// Copyright 2013 Dolphin Emulator Project
// Licensed under GPLv2
// Refer to the license.txt file included.
#pragma once
2014-02-22 15:36:30 -07:00
#include <wx/app.h>
#include <wx/chartype.h>
#include <wx/defs.h>
#include <wx/event.h>
#include <wx/string.h>
class CFrame;
2014-02-22 15:36:30 -07:00
class wxLocale;
class wxTimer;
class wxTimerEvent;
2014-07-08 07:58:25 -06:00
extern CFrame* main_frame;
2014-02-22 15:36:30 -07:00
// Define a new application
class DolphinApp : public wxApp
{
public:
CFrame* GetCFrame();
private:
2014-03-07 17:54:44 -07:00
bool OnInit() override;
int OnExit() override;
void OnFatalException() override;
bool Initialize(int& c, wxChar **v) override;
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);