Umasoft
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
ModelDlg.h
1 //
2 // Name: ModelDlg.h
3 //
4 // Copyright (c) 2004-2011 Virtual Terrain Project
5 // Free for all uses, see license.txt for details.
6 //
7 
8 #ifndef __ModelDlg_H__
9 #define __ModelDlg_H__
10 
11 #include "CManager_UI.h"
12 
13 class vtModel;
14 
15 // WDR: class declarations
16 
17 //----------------------------------------------------------------------------
18 // ModelDlg
19 //----------------------------------------------------------------------------
20 
22 {
23 public:
24  // constructors and destructors
25  ModelPanel( wxWindow *parent, wxWindowID id = -1,
26  const wxPoint& pos = wxDefaultPosition,
27  const wxSize& size = wxDefaultSize,
28  long style = wxTAB_TRAVERSAL | wxNO_BORDER );
29 
30  // WDR: method declarations for ModelDlg
31  void SetCurrentModel(vtModel *mod);
32  void SetModelStatus(const char *string);
33  void UpdateFromControls();
34 
35 private:
36  // WDR: member variable declarations for ModelDlg
37  wxString m_strFilename;
38  float m_fDistance;
39  float m_fScale;
40  wxString m_strStatus;
41  vtModel *m_pCurrentModel;
42  bool m_bUpdating;
43 
44 private:
45  // WDR: handler declarations for ModelDlg
46  void OnEnterFilename( wxCommandEvent &event );
47  void OnTextScale( wxCommandEvent &event );
48  void OnTextVisible( wxCommandEvent &event );
49  void OnTextFilename( wxCommandEvent &event );
50 
51 private:
52  DECLARE_EVENT_TABLE()
53 };
54 
55 #endif
56