Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / ACE / examples / ConfigViewer / ValueListCtrl.h
blob78f33256a8947579e3ec6ca3b52b0b84f92843b0
1 /* -*- C++ -*- */
2 #ifndef _ConfigurationViewer_ValueListCtrl_H
3 #define _ConfigurationViewer_ValueListCtrl_H
5 class ValueListCtrl : public wxListCtrl
7 public:
8 ///////////////////////////////////////////
9 // Initializers
10 ///////////////////////////////////////////
11 ValueListCtrl(wxWindow* parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition,
12 const wxSize& size = wxDefaultSize, long style = wxLC_ICON,
13 const wxValidator& validator = wxDefaultValidator,
14 const wxString& name = "listCtrl");
15 virtual ~ValueListCtrl();
17 ///////////////////////////////////////////
18 // Methods
19 ///////////////////////////////////////////
20 void DisplaySection(const ACE_Configuration_Section_Key& Key);
21 long GetSelectedItem();
22 void SelectItem(long ItemID);
23 void OnRightDown(wxMouseEvent& event);
24 void OnModify(wxCommandEvent& event);
25 void OnDelete(wxCommandEvent& event);
26 void OnRename(wxCommandEvent& event);
27 void ChangeConfig(ACE_Configuration* pConfig);
28 ///////////////////////////////////////////
29 // Attribute Accessors
30 ///////////////////////////////////////////
32 protected:
33 // Not Used
34 ValueListCtrl(const ValueListCtrl& RHS);
35 const ValueListCtrl& operator=(const ValueListCtrl& RHS);
37 DECLARE_EVENT_TABLE()
38 private:
39 ACE_Configuration* m_pConfig;
40 ACE_Configuration_Section_Key m_Key;
43 #endif