diff options
Diffstat (limited to 'ACE/examples/ConfigViewer/ValueListCtrl.h')
-rw-r--r-- | ACE/examples/ConfigViewer/ValueListCtrl.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/ACE/examples/ConfigViewer/ValueListCtrl.h b/ACE/examples/ConfigViewer/ValueListCtrl.h new file mode 100644 index 00000000000..ce802e67e96 --- /dev/null +++ b/ACE/examples/ConfigViewer/ValueListCtrl.h @@ -0,0 +1,47 @@ +/* -*- C++ -*- */ +// $Id$ + +#ifndef _ConfigurationViewer_ValueListCtrl_H +#define _ConfigurationViewer_ValueListCtrl_H + +class ValueListCtrl : public wxListCtrl +{ +public: + /////////////////////////////////////////// + // Initializers + /////////////////////////////////////////// + ValueListCtrl(wxWindow* parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, + const wxSize& size = wxDefaultSize, long style = wxLC_ICON, + const wxValidator& validator = wxDefaultValidator, + const wxString& name = "listCtrl"); + virtual ~ValueListCtrl(); + + /////////////////////////////////////////// + // Methods + /////////////////////////////////////////// + void DisplaySection(const ACE_Configuration_Section_Key& Key); + long GetSelectedItem(); + void SelectItem(long ItemID); + void OnRightDown(wxMouseEvent& event); + void OnModify(wxCommandEvent& event); + void OnDelete(wxCommandEvent& event); + void OnRename(wxCommandEvent& event); + void ChangeConfig(ACE_Configuration* pConfig); + /////////////////////////////////////////// + // Attribute Accessors + /////////////////////////////////////////// + +protected: + // Not Used + ValueListCtrl(const ValueListCtrl& RHS); + const ValueListCtrl& operator=(const ValueListCtrl& RHS); + + DECLARE_EVENT_TABLE() +private: + + ACE_Configuration* m_pConfig; + ACE_Configuration_Section_Key m_Key; +}; + +#endif + |