2 #ifndef _ConfigurationViewer_ConfigTreeCtrl_H
3 #define _ConfigurationViewer_ConfigTreeCtrl_H
7 class ConfigTreeCtrl
: public wxTreeCtrl
10 ///////////////////////////////////////////
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 ///////////////////////////////////////////
18 ///////////////////////////////////////////
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
;};
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
);
45 ACE_Configuration
* m_pConfig
;
46 ValueListCtrl
* m_pListCtrl
;