11 #include "CManager_UI.h"
12 #include "vtdata/vtString.h"
27 PropPanel( wxWindow *parent, wxWindowID
id = -1,
28 const wxPoint& pos = wxDefaultPosition,
29 const wxSize& size = wxDefaultSize,
30 long style = wxTAB_TRAVERSAL | wxNO_BORDER );
33 wxListCtrl* GetTaglist() {
return (wxListCtrl*) FindWindow( ID_TAGLIST ); }
34 wxChoice* GetTypeChoice() {
return (wxChoice*) FindWindow( ID_TYPECHOICE ); }
35 wxChoice* GetSubtypeChoice() {
return (wxChoice*) FindWindow( ID_SUBTYPECHOICE ); }
36 void SetCurrentItem(
vtItem *item);
37 void UpdateFromControls();
39 void UpdateSubtypes();
43 struct Pair {
vtString type, subtype; };
44 std::vector<Pair> m_types;
47 wxString m_strType, m_strSubtype;
49 wxListCtrl *m_pTagList;
50 wxChoice *m_pTypeChoice;
51 wxChoice *m_pSubtypeChoice;
56 void OnTagEdit( wxCommandEvent &
event );
57 void OnRemoveTag( wxCommandEvent &event );
58 void OnAddTag( wxCommandEvent &event );
59 void OnChoiceType( wxCommandEvent &event );
60 void OnChoiceSubtype( wxCommandEvent &event );
61 void OnTextItem( wxCommandEvent &event );
62 void OnInitDialog(wxInitDialogEvent& event);
68 #endif // __PropDlg_H__