Umasoft
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
TextureDlg.h
1 //
2 // Name: TextureDlg.h
3 //
4 // Copyright (c) 2006-2011 Virtual Terrain Project
5 // Free for all uses, see license.txt for details.
6 //
7 
8 #ifndef __TextureDlg_H__
9 #define __TextureDlg_H__
10 
11 #include "EnviroUI.h"
12 #include "vtui/AutoDialog.h"
13 #include "vtlib/core/TParams.h"
14 
15 // WDR: class declarations
16 
17 //----------------------------------------------------------------------------
18 // TextureDlg
19 //----------------------------------------------------------------------------
20 
22 {
23 public:
24  // constructors and destructors
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 );
29 
30  void SetParams(const TParams &Params);
31  void GetParams(TParams &Params);
32  void UpdateEnableState();
33  void UpdateColorMapChoice();
34 
35  // WDR: method declarations for TextureDlg
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 ); }
42 
43 private:
44  // WDR: member variable declarations for TextureDlg
45 
46  // texture
47  int m_iTexture;
48  wxString m_strTextureSingle;
49  wxString m_strTextureTileset;
50  wxString m_strColorMap;
51 
52  bool m_bSetting;
53  vtStringArray m_TextureFiles;
54 
55  wxRadioButton* m_pSingle;
56  wxRadioButton* m_pDerived;
57  wxChoice* m_pColorMap;
58  wxComboBox* m_pTextureFileSingle;
59 
60 private:
61  // WDR: handler declarations for TextureDlg
62  void OnEditColors( wxCommandEvent &event );
63  void OnComboTFileSingle( wxCommandEvent &event );
64  void OnRadio( wxCommandEvent &event );
65  void OnInitDialog(wxInitDialogEvent& event);
66 
67  bool TransferDataToWindow();
68  bool TransferDataFromWindow();
69 
70 private:
71  DECLARE_EVENT_TABLE()
72 };
73 
74 #endif // __TextureDlg_H__
75