Debian Codegraph @

codelite-cli/main_app.h

raw
1 #ifndef MAINAPP_H
2 #define MAINAPP_H
3
4 #include "csManager.h"
5 #include <wx/app.h>
6 #include <wx/cmdline.h>
7
8 class MainApp : public wxAppConsole
9 {
10 protected:
11 csManager* m_manager;
12
13 protected:
14 /**
15 * @brief parse the command line here
16 * @return true on success, false otherwise
17 */
18 bool DoParseCommandLine(wxCmdLineParser& parser);
19 void PrintUsage(const wxCmdLineParser& parser);
20
21 public:
22 MainApp();
23 virtual ~MainApp();
24
25 /**
26 * @brief intialize the application
27 */
28 virtual bool OnInit();
29 /**
30 * @brief perform cleanup before exiting
31 */
32 virtual int OnExit();
33 };
34
35 DECLARE_APP(MainApp)
36
37 #endif // MAINAPP_H