2 #ifndef _ConfigurationViewer_MainFrame_H
3 #define _ConfigurationViewer_MainFrame_H
13 FILE_NEW_PERSISTENT_HEAP
,
14 FILE_NEW_TRANSIENT_HEAP
,
15 FILE_OPEN_PERSISTENT_HEAP
,
24 class MainFrame
: public wxFrame
27 ///////////////////////////////////////////
29 ///////////////////////////////////////////
30 MainFrame(const wxString
& title
, const wxPoint
& pos
, const wxSize
& size
);
33 ///////////////////////////////////////////
35 ///////////////////////////////////////////
36 static MainFrame
* Instance();
37 void OnQuit(wxCommandEvent
& event
);
38 void OnAbout(wxCommandEvent
& event
);
39 void OnFileNewPersistentHeap(wxCommandEvent
& event
);
40 void OnFileNewTransientHeap(wxCommandEvent
& event
);
41 void OnFileOpenPersistentHeap(wxCommandEvent
& event
);
42 void OnFileOpenRegistry(wxCommandEvent
& event
);
43 void OnFileExport(wxCommandEvent
& event
);
44 void OnFileImport(wxCommandEvent
& event
);
45 void OnSize(wxSizeEvent
& event
);
47 ///////////////////////////////////////////
48 // Attribute Accessors
49 ///////////////////////////////////////////
50 ACE_Configuration
* GetpConfig() {return m_pConfig
;};
53 MainFrame(const MainFrame
& RHS
);
54 const MainFrame
& operator=(const MainFrame
& RHS
);
57 void SetNewConfig(ACE_Configuration
* pConfig
);
60 wxSplitterWindow
* m_pSplitter
;
61 ConfigTreeCtrl
* m_pTreeCtrl
;
62 ValueListCtrl
* m_pListCtrl
;
65 ACE_Configuration
* m_pConfig
;
66 static MainFrame
* m_pInstance
;