00001 /* 00002 * $Id: mainwindow.h 424 2008-10-22 14:28:33Z misek $ 00003 * 00004 * Description : One line description of file. 00005 * Author : Vaclav Kyba <mail/Jabber: vaseo1@gmail.com> <ICQ: 98576293> 00006 * 00007 * Purpose : 00008 * Long description of what the file is for. 00009 */ 00010 00011 00012 #ifndef __MAIN_WINDOW__ 00013 #define __MAIN_WINDOW__ 00014 00015 #include <wx/frame.h> 00016 #include <wx/aui/aui.h> 00017 #include "common.h" 00018 00019 00020 namespace VRUT 00021 { 00023 class MainWindow: public wxFrame 00024 { 00025 // DECLARE_DYNAMIC_CLASS(MainWindow); 00026 00027 protected: 00029 wxAuiManager auiMgr; 00031 wxAuiNotebook * renderNotebook; 00032 00034 MainWindow(); 00035 00037 void onFileMenu(wxCommandEvent & evt); 00039 void onViewMenu(wxCommandEvent & evt); 00041 void onLogMenu(wxCommandEvent & evt); 00043 void onCommandEvent(wxCommandEvent & evt); 00045 void onClose(wxCloseEvent & evt); 00047 void onPaneClose(wxAuiManagerEvent & evt); 00048 00049 public: 00051 MainWindow(const wxString& title, const wxPoint& pos, const wxSize& size); 00053 virtual ~MainWindow(); 00054 00057 void FixLoglevelMenu(int logLevel); 00059 wxAuiManager * GetAUIManager() 00060 { 00061 return &auiMgr; 00062 } 00064 wxAuiNotebook * GetRenderNotebook() 00065 { 00066 return renderNotebook; 00067 } 00068 }; 00069 }; 00070 00071 00072 #endif
1.5.5