Cafu Engine
AppCaWE.hpp
1 /*
2 Cafu Engine, http://www.cafu.de/
3 Copyright (c) Carsten Fuchs and other contributors.
4 This project is licensed under the terms of the MIT license.
5 */
6 
7 #ifndef CAFU_APP_CAWE_HPP_INCLUDED
8 #define CAFU_APP_CAWE_HPP_INCLUDED
9 
10 #include "wx/cmdline.h"
11 #include "wx/wx.h"
12 
13 class ParentFrameT;
14 class wxFileConfig;
15 
16 
17 /// This class represents the CaWE application.
18 class AppCaWE : public wxApp
19 {
20  public:
21 
22  AppCaWE();
23 
24  bool OnInit();
25  int OnExit();
26 
27  // CaWE-specific additional methods.
28  ParentFrameT* GetParentFrame() { return m_ParentFrame; }
29 
30 
31  private:
32 
33  void WriteLuaDoxygenHeaders() const;
34 
35  wxLocale* m_Locale;
36  wxCmdLineParser m_CmdLineParser;
37  wxFileConfig* m_FileConfig;
38  ParentFrameT* m_ParentFrame;
39 };
40 
41 
42 /// This macro provides the wxGetApp() function, which returns a reference to AppCaWE, for use in other files.
43 DECLARE_APP(AppCaWE)
44 
45 #endif
This class represents the CaWE parent (main) frame.
Definition: ParentFrame.hpp:33
This class represents the CaWE application.
Definition: AppCaWE.hpp:18