Umasoft
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
SizeDlg.h
1 //
2 // Name: SizeDlg.h
3 //
4 // Copyright (c) 2008-2011 Virtual Terrain Project
5 // Free for all uses, see license.txt for details.
6 //
7 
8 #ifndef __SizeDlg_H__
9 #define __SizeDlg_H__
10 
11 #include "vtdata/MathTypes.h"
12 #include "vtui/AutoDialog.h"
13 #include "vtui_UI.h"
14 
15 // WDR: class declarations
16 
17 //----------------------------------------------------------------------------
18 // SizeDlg
19 //----------------------------------------------------------------------------
20 
21 class SizeDlg: public SizeDlgBase
22 {
23 public:
24  // constructors and destructors
25  SizeDlg( 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  // WDR: method declarations for SizeDlg
31  wxTextCtrl* GetTextCtrl() { return (wxTextCtrl*) FindWindow( ID_TEXTCTRL ); }
32  wxSlider* GetSliderRatio() { return (wxSlider*) FindWindow( ID_SLIDER_RATIO ); }
33  wxTextCtrl* GetTextY() { return (wxTextCtrl*) FindWindow( ID_TEXT_Y ); }
34  wxTextCtrl* GetTextX() { return (wxTextCtrl*) FindWindow( ID_TEXT_X ); }
35 
36  void SetBase(const IPoint2 &size);
37  void SetRatioRange(float fMin, float fMax);
38  void Update();
39 
40  IPoint2 m_Base, m_Current;
41  int m_iRatio;
42  float m_fRatio, m_fRatioMin, m_fRatioMax;
43 
44 private:
45  // WDR: member variable declarations for SizeDlg
46 
47 private:
48  // WDR: handler declarations for SizeDlg
49  void OnSlider( wxCommandEvent &event );
50 
51 private:
52  DECLARE_EVENT_TABLE()
53 };
54 
55 #endif // __SizeDlg_H__