-
Notifications
You must be signed in to change notification settings - Fork 0
/
cApp.h
44 lines (34 loc) · 927 Bytes
/
cApp.h
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
43
44
#pragma once
#include "cMain.h"
#include "cLoadoutPanel.h"
#include <wx/wxprec.h>
#include <wx/cmdline.h>
#include <wx/msw/registry.h>
#include <wx/stdpaths.h>
#include <wx/msgdlg.h>
#include "resource.h"
#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif
class cApp : public wxApp
{
public:
cApp();
~cApp();
virtual bool OnInit();
virtual int OnExit();
virtual int OnRun();
virtual void OnInitCmdLine(wxCmdLineParser& parser);
virtual bool OnCmdLineParsed(wxCmdLineParser& parser);
cMain* m_main = nullptr;
std::string openFile;
};
static const wxCmdLineEntryDesc g_cmdLineDesc[] =
{
{ wxCMD_LINE_PARAM, NULL, NULL, "Open File", wxCMD_LINE_VAL_STRING, wxCMD_LINE_PARAM_OPTIONAL},
{ wxCMD_LINE_SWITCH, "h", "help", "displays help on the command line parameters",
wxCMD_LINE_VAL_NONE, wxCMD_LINE_OPTION_HELP },
{ wxCMD_LINE_SWITCH, "t", "test", "test switch"},
{ wxCMD_LINE_NONE }
};
DECLARE_APP(cApp);