-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.hpp
42 lines (34 loc) · 840 Bytes
/
main.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//
// main.cpp
// AmiKo-wx
//
// Created by Alex Bettarini on 12 Jun 2020
// Copyright © 2020 Ywesee GmbH. All rights reserved.
#pragma once
#include <wx/wx.h>
#include <wx/apptrait.h>
#include <wx/taskbar.h>
#include "MainWindow.h"
#include "SplashWindow.h"
class MyAppTraits : public wxGUIAppTraits
{
public:
wxConfigBase *CreateConfig ();
};
class MyApp : public wxApp
{
public:
virtual bool OnInit();
virtual int OnExit();
DECLARE_EVENT_TABLE()
void OnPrefs(wxCommandEvent& evt);
void OnTimer(wxTimerEvent& event);
protected:
wxLanguage m_lang; // language specified by user
wxLocale m_locale; // locale we'll be using
MainWindow *m_window;
SplashWindow *m_splash;
wxTimer *m_timer;
virtual wxAppTraits *CreateTraits() { return new MyAppTraits; }
};
DECLARE_APP(MyApp)