App_gSpiceUI.hpp
2.53 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
//**************************************************************************************************
// App_gSpiceUI.hpp *
// ------------------ *
// Description : The main application class. It all begins here. *
// Started : 2003-08-15 *
// Last Update : 2016-10-05 *
// Copyright : (C) 2003-2016 MSWaters *
//**************************************************************************************************
//**************************************************************************************************
// *
// This program is free software; you can redistribute it and/or modify it under the *
// terms of the GNU General Public License as published by the Free Software Foundation; *
// either version 3 of the License, or (at your option) any later version. *
// *
//**************************************************************************************************
#ifndef APP_GSPICEUI_HPP
#define APP_GSPICEUI_HPP
// Application includes
#include "CmdLinePcr.hpp"
#include "Config.hpp"
#include "main/FrmMain.hpp"
// This flag indicates debug mode, if it's enabled gspiceui will produce lots of lovely console spew
bool g_bDebug;
// This object is the global interface to the configuration file
Config g_oConfig;
//**************************************************************************************************
class App_gSpiceUI : public wxApp
{
private :
wxLocale m_oLocale;
CmdLinePcr m_oCmdLn;
FrmMain * m_poFrmMain;
void UpdateCfg( void );
public :
App_gSpiceUI( void );
~App_gSpiceUI( );
// Event handlers
virtual bool OnInit ( void );
// virtual int OnRun ( void );
virtual int OnExit ( void );
// Leave this as the last line as private access is envoked by this macro
// wxDECLARE_EVENT_TABLE( );
};
//**************************************************************************************************
#endif // APP_GSPICEUI_HPP