| 1 |
#ifndef BMPTEXTSELECTORDLG_H |
| 2 |
#define BMPTEXTSELECTORDLG_H |
| 3 |
|
| 4 |
#include "wxcrafter.h" |
| 5 |
#include <vector> |
| 6 |
|
| 7 |
typedef std::vector<std::pair<wxString, wxString> > BmpTextVec_t; |
| 8 |
|
| 9 |
class BmpTextSelectorDlg : public BmpTextSelectorDlgBase |
| 10 |
{ |
| 11 |
public: |
| 12 |
BmpTextSelectorDlg(wxWindow* parent, const wxString& initialValue); |
| 13 |
virtual ~BmpTextSelectorDlg(); |
| 14 |
|
| 15 |
static BmpTextVec_t FromString(const wxString& text); |
| 16 |
static wxString ToString(const BmpTextVec_t& vec); |
| 17 |
wxString GetValue(); |
| 18 |
|
| 19 |
protected: |
| 20 |
virtual void OnItemActivated(wxDataViewEvent& event); |
| 21 |
virtual void OnDeleteUI(wxUpdateUIEvent& event); |
| 22 |
virtual void OnEditUI(wxUpdateUIEvent& event); |
| 23 |
virtual void OnDelete(wxCommandEvent& event); |
| 24 |
virtual void OnEdit(wxCommandEvent& event); |
| 25 |
virtual void OnNew(wxCommandEvent& event); |
| 26 |
}; |
| 27 |
#endif // BMPTEXTSELECTORDLG_H |