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 #define GIZMODLLEXPORT WXDLLEXPORT
23 #define GIZMODLLEXPORT
27 class WXDLLEXPORT wxBitmapButton
;
28 class WXDLLEXPORT wxListCtrl
;
29 class WXDLLEXPORT wxListEvent
;
31 // This class provides a composite control that lets the
32 // user easily enter list of strings
34 class GIZMODLLEXPORT wxEditableListBox
: public wxPanel
36 DECLARE_CLASS(wxEditableListBox
);
39 wxEditableListBox(wxWindow
*parent
, wxWindowID id
,
40 const wxString
& label
,
41 const wxPoint
& pos
= wxDefaultPosition
,
42 const wxSize
& size
= wxDefaultSize
,
43 const wxString
& name
= wxT("editableListBox"));
45 void SetStrings(const wxArrayString
& strings
);
46 void GetStrings(wxArrayString
& strings
);
49 wxBitmapButton
*m_bDel
, *m_bNew
, *m_bUp
, *m_bDown
, *m_bEdit
;
50 wxListCtrl
*m_listCtrl
;
54 void OnItemSelected(wxListEvent
& event
);
55 void OnEndLabelEdit(wxListEvent
& event
);
56 void OnNewItem(wxCommandEvent
& event
);
57 void OnDelItem(wxCommandEvent
& event
);
58 void OnEditItem(wxCommandEvent
& event
);
59 void OnUpItem(wxCommandEvent
& event
);
60 void OnDownItem(wxCommandEvent
& event
);