Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / ACE / examples / ConfigViewer / MainFrame.h
blob1cd750c2a563456b37025eb2c6f87ecf7c795964
1 /* -*- C++ -*- */
2 #ifndef _ConfigurationViewer_MainFrame_H
3 #define _ConfigurationViewer_MainFrame_H
5 class ConfigTreeCtrl;
6 class ValueListCtrl;
8 enum
10 // menu items
11 QUIT = 1,
12 ABOUT,
13 FILE_NEW_PERSISTENT_HEAP,
14 FILE_NEW_TRANSIENT_HEAP,
15 FILE_OPEN_PERSISTENT_HEAP,
16 FILE_OPEN_REGISTRY,
17 FILE_EXPORT,
18 FILE_IMPORT,
19 LEFT_SASH,
20 FRAME_TREE
24 class MainFrame : public wxFrame
26 public:
27 ///////////////////////////////////////////
28 // Initializers
29 ///////////////////////////////////////////
30 MainFrame(const wxString& title, const wxPoint& pos, const wxSize& size);
31 virtual ~MainFrame();
33 ///////////////////////////////////////////
34 // Methods
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;};
51 protected:
52 // Not Used
53 MainFrame(const MainFrame& RHS);
54 const MainFrame& operator=(const MainFrame& RHS);
56 // Operations
57 void SetNewConfig(ACE_Configuration* pConfig);
59 // Attributes
60 wxSplitterWindow* m_pSplitter;
61 ConfigTreeCtrl* m_pTreeCtrl;
62 ValueListCtrl* m_pListCtrl;
63 private:
64 DECLARE_EVENT_TABLE()
65 ACE_Configuration* m_pConfig;
66 static MainFrame* m_pInstance;
69 #endif