8 #ifndef __ColorMapDlg_H__
9 #define __ColorMapDlg_H__
15 #include "wx/imaglist.h"
16 #include "wx/colourdata.h"
19 #include "AutoDialog.h"
20 #include "vtdata/HeightField.h"
33 const wxString& title,
34 const wxPoint& pos = wxDefaultPosition,
35 const wxSize& size = wxDefaultSize,
36 long style = wxDEFAULT_DIALOG_STYLE );
39 wxButton* GetSave() {
return (wxButton*) FindWindow( ID_SAVE_CMAP ); }
40 wxTextCtrl* GetHeightToAdd() {
return (wxTextCtrl*) FindWindow( ID_HEIGHT_TO_ADD ); }
41 wxButton* GetDeleteColor() {
return (wxButton*) FindWindow( ID_DELETE_ELEVATION ); }
42 wxButton* GetChangeColor() {
return (wxButton*) FindWindow( ID_CHANGE_COLOR ); }
43 wxListCtrl* GetList() {
return (wxListCtrl*) FindWindow( ID_COLORLIST ); }
44 wxTextCtrl* GetCmapFile() {
return (wxTextCtrl*) FindWindow( ID_CMAP_FILE ); }
46 void SetFile(
const char *fname);
54 bool m_bRelative, m_bBlend;
56 wxColourData m_ColorData;
62 void OnLoad( wxCommandEvent &
event );
63 void OnSave( wxCommandEvent &event );
64 void OnSaveAs( wxCommandEvent &event );
65 void OnAdd( wxCommandEvent &event );
66 void OnDeleteColor( wxCommandEvent &event );
67 void OnChangeColor( wxCommandEvent &event );
68 void OnItemSelected( wxListEvent &event );
69 void OnInitDialog(wxInitDialogEvent& event);
71 void UpdateEnabling();
72 bool AskColor(
RGBi &rgb);
78 #endif // __ColorMapDlg_H__