Running Manager  1.7
API for Running Manager (https://github.com/HWiman-ICONIC/running-manager)
D:/dev/running-manager/Mainframe.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <Defines.h>
4 #include <wx/frame.h>
5 #include <wx/aui/framemanager.h>
6 #include <wx/menu.h>
7 #include <wx/html/helpctrl.h>
8 #include <boost/make_shared.hpp>
9 
10 
11 // Define a new frame type: this is going to be our main frame
12 
18 class MyFrame : public wxFrame {
19 public:
25  MyFrame(const wxString& title, wxString const &installationDirectory);
26 
30  virtual ~MyFrame();
31 
36  void OnQuit(wxCommandEvent& event);
37 
42  void OnAbout(wxCommandEvent& event);
43 
48  void OnClose( wxCloseEvent &e );
49 
54  void OnFullscreen( wxCommandEvent &e );
55 
60  void OnUpdateFullscreen( wxUpdateUIEvent &e );
61 
66  void SetAuiManager(boost::shared_ptr<wxAuiManager> otherAuiManager);
67 
72  boost::shared_ptr<wxAuiManager> GetAuiManager() const;
73 
78  void OnHelp(wxCommandEvent& event);
79 
80 private:
81  boost::shared_ptr<wxAuiManager> auiManager;
82  wxHtmlHelpController *cpHelp;
83  wxString installationDirectory;
84  // any class wishing to process wxWidgets events must use this macro
85  wxDECLARE_EVENT_TABLE();
86 };
void OnQuit(wxCommandEvent &event)
Handle quit.
void OnFullscreen(wxCommandEvent &e)
Toggle fullscreen mode on/off.
The main frame for the application.
Definition: Mainframe.h:18
MyFrame(const wxString &title, wxString const &installationDirectory)
Constructor.
virtual ~MyFrame()
Destructor.
void OnHelp(wxCommandEvent &event)
Show help window.
void SetAuiManager(boost::shared_ptr< wxAuiManager > otherAuiManager)
Set Advanced User Interface (AUI) manager.
void OnAbout(wxCommandEvent &event)
Show about dialog.
boost::shared_ptr< wxAuiManager > GetAuiManager() const
Get Advanced User Interface (AUI) manager.
void OnClose(wxCloseEvent &e)
Handle close.
void OnUpdateFullscreen(wxUpdateUIEvent &e)
Toggle check/uncheck fullscreen depending on mode.