8 #ifndef __FeatureTableDlg_H__
9 #define __FeatureTableDlg_H__
12 #include "AutoDialog.h"
13 #include "vtdata/Features.h"
27 FeatureTableDlg( wxWindow *parent, wxWindowID
id,
const wxString &title,
28 const wxPoint& pos = wxDefaultPosition,
29 const wxSize& size = wxDefaultSize,
30 long style = wxDEFAULT_DIALOG_STYLE );
38 void ShowFeature(
int iFeat);
39 void UpdateFeatureText(
int iItem,
int iFeat);
41 bool EditValue(
int iFeature,
int iColumn);
43 virtual void OnModified() {}
44 virtual void RefreshViz() {}
45 virtual void OnFeatureDelete(
vtFeature *f) {}
46 virtual void OnFieldEdited(uint iIndex) {}
47 virtual void OnEditEnd() {}
50 wxStaticText* GetTextVertical() {
return (wxStaticText*) FindWindow( ID_TEXT_VERTICAL ); }
51 wxButton* GetDelHigh() {
return (wxButton*) FindWindow( ID_DEL_HIGH ); }
52 wxChoice* GetChoiceVertical() {
return (wxChoice*) FindWindow( ID_CHOICE_VERTICAL ); }
53 wxChoice* GetChoiceShow() {
return (wxChoice*) FindWindow( ID_CHOICE_SHOW ); }
54 wxListCtrl* GetList() {
return (wxListCtrl*) FindWindow( ID_LIST ); }
69 void OnItemRightClick( wxListEvent &
event );
70 void OnLeftDClick( wxMouseEvent &event );
71 void OnDeleteHighlighted( wxCommandEvent &event );
72 void OnChoiceVertical( wxCommandEvent &event );
73 void OnChoiceShow( wxCommandEvent &event );
74 void OnListRightClick( wxListEvent &event );
75 void OnItemSelected( wxListEvent &event );
76 void OnInitDialog(wxInitDialogEvent& event);
82 #endif // __FeatureTableDlg_H__