Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / ACE / examples / ConfigViewer / ConfigTreeCtrl.h
blob7d553d88493faa1202ae03da71d9f78fdf766e3d
1 /* -*- C++ -*- */
2 #ifndef _ConfigurationViewer_ConfigTreeCtrl_H
3 #define _ConfigurationViewer_ConfigTreeCtrl_H
5 class ValueListCtrl;
7 class ConfigTreeCtrl : public wxTreeCtrl
9 public:
10 ///////////////////////////////////////////
11 // Initializers
12 ///////////////////////////////////////////
13 ConfigTreeCtrl(wxWindow* parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxTR_HAS_BUTTONS, const wxValidator& validator = wxDefaultValidator, const wxString& name = "listCtrl");
14 virtual ~ConfigTreeCtrl();
16 ///////////////////////////////////////////
17 // Methods
18 ///////////////////////////////////////////
19 void LoadTree();
20 void OnRightDown(wxMouseEvent& event);
21 void OnRightUp(wxMouseEvent& event);
22 void OnNewKey(wxCommandEvent& event);
23 void OnNewString(wxCommandEvent& event);
24 void OnNewUINT(wxCommandEvent& event);
25 void OnNewBinary(wxCommandEvent& event);
26 void OnFind(wxCommandEvent& event);
27 void OnDelete(wxCommandEvent& event);
28 void OnSelChanged(wxTreeEvent& event);
29 void ChangeConfig(ACE_Configuration* pConfig);
30 ///////////////////////////////////////////
31 // Attribute Accessors
32 ///////////////////////////////////////////
33 void SetpListCtrl(ValueListCtrl* pListCtrl) {m_pListCtrl = pListCtrl;};
35 protected:
36 // Not Used
37 ConfigTreeCtrl(const ConfigTreeCtrl& RHS);
38 const ConfigTreeCtrl& operator=(const ConfigTreeCtrl& RHS);
40 void LoadSection(wxTreeItemId& ParentItem, const ACE_Configuration_Section_Key& Key);
41 void ResolveKey(wxTreeItemId Item, ACE_Configuration_Section_Key& Key);
42 private:
43 DECLARE_EVENT_TABLE()
45 ACE_Configuration* m_pConfig;
46 ValueListCtrl* m_pListCtrl;
49 #endif