8 #ifndef __TextureDlg_H__
9 #define __TextureDlg_H__
12 #include "vtui/AutoDialog.h"
13 #include "vtlib/core/TParams.h"
25 TextureDlg( wxWindow *parent, wxWindowID
id,
const wxString &title,
26 const wxPoint& pos = wxDefaultPosition,
27 const wxSize& size = wxDefaultSize,
28 long style = wxDEFAULT_DIALOG_STYLE );
30 void SetParams(
const TParams &Params);
31 void GetParams(
TParams &Params);
32 void UpdateEnableState();
33 void UpdateColorMapChoice();
36 wxRadioButton* GetSingle() {
return (wxRadioButton*) FindWindow( ID_SINGLE ); }
37 wxRadioButton* GetDerived() {
return (wxRadioButton*) FindWindow( ID_DERIVED ); }
38 wxChoice* GetColorMap() {
return (wxChoice*) FindWindow( ID_CHOICE_COLORS ); }
39 wxButton* GetEditColors() {
return (wxButton*) FindWindow( ID_EDIT_COLORS ); }
40 wxChoice* GetChoiceColors() {
return (wxChoice*) FindWindow( ID_CHOICE_COLORS ); }
41 wxComboBox* GetTfileSingle() {
return (wxComboBox*) FindWindow( ID_TFILE_SINGLE ); }
48 wxString m_strTextureSingle;
49 wxString m_strTextureTileset;
50 wxString m_strColorMap;
53 vtStringArray m_TextureFiles;
55 wxRadioButton* m_pSingle;
56 wxRadioButton* m_pDerived;
57 wxChoice* m_pColorMap;
58 wxComboBox* m_pTextureFileSingle;
62 void OnEditColors( wxCommandEvent &
event );
63 void OnComboTFileSingle( wxCommandEvent &event );
64 void OnRadio( wxCommandEvent &event );
65 void OnInitDialog(wxInitDialogEvent& event);
67 bool TransferDataToWindow();
68 bool TransferDataFromWindow();
74 #endif // __TextureDlg_H__