DlgDisplaceMapSize.cpp 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /* Copyright (c) 2002-2012 Croteam Ltd.
  2. This program is free software; you can redistribute it and/or modify
  3. it under the terms of version 2 of the GNU General Public License as published by
  4. the Free Software Foundation
  5. This program is distributed in the hope that it will be useful,
  6. but WITHOUT ANY WARRANTY; without even the implied warranty of
  7. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  8. GNU General Public License for more details.
  9. You should have received a copy of the GNU General Public License along
  10. with this program; if not, write to the Free Software Foundation, Inc.,
  11. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */
  12. // DlgDisplaceMapSize.cpp : implementation file
  13. //
  14. #include "stdafx.h"
  15. #include "WorldEditor.h"
  16. #ifdef _DEBUG
  17. #undef new
  18. #define new DEBUG_NEW
  19. #undef THIS_FILE
  20. static char THIS_FILE[] = __FILE__;
  21. #endif
  22. /////////////////////////////////////////////////////////////////////////////
  23. // CDlgDisplaceMapSize dialog
  24. CDlgDisplaceMapSize::CDlgDisplaceMapSize(CWnd* pParent /*=NULL*/)
  25. : CDialog(CDlgDisplaceMapSize::IDD, pParent)
  26. {
  27. //{{AFX_DATA_INIT(CDlgDisplaceMapSize)
  28. m_pixWidth = 0;
  29. m_pixHeight = 0;
  30. m_bMidPixSample = FALSE;
  31. m_bHighResolution = FALSE;
  32. //}}AFX_DATA_INIT
  33. m_pixWidth = 33;
  34. m_pixHeight = 33;
  35. }
  36. void CDlgDisplaceMapSize::DoDataExchange(CDataExchange* pDX)
  37. {
  38. CDialog::DoDataExchange(pDX);
  39. //{{AFX_DATA_MAP(CDlgDisplaceMapSize)
  40. DDX_Text(pDX, IDC_EDIT_DISPLACE_X_SIZE, m_pixWidth);
  41. DDV_MinMaxUInt(pDX, m_pixWidth, 1, 1024);
  42. DDX_Text(pDX, IDC_EDIT_DISPLACE_Y_SIZE, m_pixHeight);
  43. DDV_MinMaxUInt(pDX, m_pixHeight, 1, 1024);
  44. DDX_Check(pDX, IDC_EDIT_DISPLACE_MIDPIXELSAMPLING, m_bMidPixSample);
  45. DDX_Check(pDX, IDC_EDIT_DISPLACE_16BITRESOLUTION, m_bHighResolution);
  46. //}}AFX_DATA_MAP
  47. }
  48. BEGIN_MESSAGE_MAP(CDlgDisplaceMapSize, CDialog)
  49. //{{AFX_MSG_MAP(CDlgDisplaceMapSize)
  50. // NOTE: the ClassWizard will add message map macros here
  51. //}}AFX_MSG_MAP
  52. END_MESSAGE_MAP()
  53. /////////////////////////////////////////////////////////////////////////////
  54. // CDlgDisplaceMapSize message handlers