1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: ListBox with editable items
4 // Author: Vaclav Slavik
6 // Copyright: (c) Vaclav Slavik
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
11 #ifndef __WX_EDITLBOX_H__
12 #define __WX_EDITLBOX_H__
15 #pragma interface "editlbox.h"
21 class WXDLLEXPORT wxBitmapButton
;
22 class WXDLLEXPORT wxListCtrl
;
23 class WXDLLEXPORT wxListEvent
;
25 // This class provides a composite control that lets the
26 // user easily enter list of strings
28 class WXDLLEXPORT wxEditableListBox
: public wxPanel
30 DECLARE_CLASS(wxEditableListBox
);
33 wxEditableListBox(wxWindow
*parent
, wxWindowID id
,
34 const wxString
& label
,
35 const wxPoint
& pos
= wxDefaultPosition
,
36 const wxSize
& size
= wxDefaultSize
);
38 void SetStrings(const wxArrayString
& strings
);
39 void GetStrings(wxArrayString
& strings
);
42 wxBitmapButton
*m_bDel
, *m_bNew
, *m_bUp
, *m_bDown
, *m_bEdit
;
43 wxListCtrl
*m_listCtrl
;
47 void OnItemSelected(wxListEvent
& event
);
48 void OnEndLabelEdit(wxListEvent
& event
);
49 void OnNewItem(wxCommandEvent
& event
);
50 void OnDelItem(wxCommandEvent
& event
);
51 void OnEditItem(wxCommandEvent
& event
);
52 void OnUpItem(wxCommandEvent
& event
);
53 void OnDownItem(wxCommandEvent
& event
);