DlgAutoDeltaCSG.cpp 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. // DlgAutoDeltaCSG.cpp : implementation file
  13. //
  14. #include "stdafx.h"
  15. #include "WorldEditor.h"
  16. #include "DlgAutoDeltaCSG.h"
  17. #ifdef _DEBUG
  18. #undef new
  19. #define new DEBUG_NEW
  20. #undef THIS_FILE
  21. static char THIS_FILE[] = __FILE__;
  22. #endif
  23. /////////////////////////////////////////////////////////////////////////////
  24. // CDlgAutoDeltaCSG dialog
  25. CDlgAutoDeltaCSG::CDlgAutoDeltaCSG(CWnd* pParent /*=NULL*/)
  26. : CDialog(CDlgAutoDeltaCSG::IDD, pParent)
  27. {
  28. //{{AFX_DATA_INIT(CDlgAutoDeltaCSG)
  29. m_ctNumberOfClones = 0;
  30. //}}AFX_DATA_INIT
  31. }
  32. void CDlgAutoDeltaCSG::DoDataExchange(CDataExchange* pDX)
  33. {
  34. CDialog::DoDataExchange(pDX);
  35. // if dialog is receiving data
  36. if( pDX->m_bSaveAndValidate == FALSE)
  37. {
  38. // get last used number of CSG clones
  39. m_ctNumberOfClones = theApp.GetProfileInt(L"World editor", L"Number of CSG clones", 2);
  40. }
  41. //{{AFX_DATA_MAP(CDlgAutoDeltaCSG)
  42. DDX_Text(pDX, IDC_NO_OF_CLONES, m_ctNumberOfClones);
  43. DDV_MinMaxUInt(pDX, m_ctNumberOfClones, 1, 100);
  44. //}}AFX_DATA_MAP
  45. }
  46. BEGIN_MESSAGE_MAP(CDlgAutoDeltaCSG, CDialog)
  47. //{{AFX_MSG_MAP(CDlgAutoDeltaCSG)
  48. // NOTE: the ClassWizard will add message map macros here
  49. //}}AFX_MSG_MAP
  50. END_MESSAGE_MAP()
  51. /////////////////////////////////////////////////////////////////////////////
  52. // CDlgAutoDeltaCSG message handlers