DlgPreferences.h 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. // DlgPreferences.h : header file
  13. //
  14. #ifndef DLGPREFERENCES_H
  15. #define DLGPREFERENCES_H 1
  16. /////////////////////////////////////////////////////////////////////////////
  17. // CDlgPreferences dialog
  18. class CDlgPreferences : public CDialog
  19. {
  20. // Construction
  21. public:
  22. CDisplayMode m_dmFullScreen;
  23. GfxAPIType m_gatFullScreen;
  24. // constructor
  25. CDlgPreferences( CWnd* pParent = NULL);
  26. // Dialog Data
  27. //{{AFX_DATA(CDlgPreferences)
  28. enum { IDD = IDD_PREFERENCES };
  29. CComboBox m_ctrlTerrainSelectionHidden;
  30. CComboBox m_ctrlTerrainSelectionVisible;
  31. CComboBox m_ctrGfxApi;
  32. CSliderCtrl m_ctrlCSGPrecission;
  33. CSliderCtrl m_UndoLevels;
  34. CButton m_OkButton;
  35. BOOL m_PrefsCopy;
  36. BOOL m_AutoMaximize;
  37. BOOL m_SetDefaultColors;
  38. BOOL m_AutomaticInfo;
  39. BOOL m_UpdateAllways;
  40. BOOL m_BinaryGrid;
  41. BOOL m_bSaveUndoForDelete;
  42. int m_iWndStartupCfg;
  43. BOOL m_bAutoColorize;
  44. CString m_strSSProject;
  45. BOOL m_bShowAllOnOpen;
  46. CString m_strCSGPrecission;
  47. BOOL m_bAutoUpdateDisplaceMap;
  48. float m_fFlyModeSpeed;
  49. BOOL m_bHideShadowsOnStart;
  50. BOOL m_bAutoUpdateTerrainDistribution;
  51. int m_iMemoryForTerrainUndo;
  52. //}}AFX_DATA
  53. // Overrides
  54. // ClassWizard generated virtual function overrides
  55. //{{AFX_VIRTUAL(CDlgPreferences)
  56. protected:
  57. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  58. //}}AFX_VIRTUAL
  59. // Implementation
  60. protected:
  61. // Generated message map functions
  62. //{{AFX_MSG(CDlgPreferences)
  63. virtual BOOL OnInitDialog();
  64. afx_msg void OnSavePreferences();
  65. afx_msg void OnLoadPreferences();
  66. afx_msg void OnChangeFullScreenDisplayMode();
  67. afx_msg void OnReleasedcaptureCsgPrecission(NMHDR* pNMHDR, LRESULT* pResult);
  68. //}}AFX_MSG
  69. afx_msg void OnChangePreferences(UINT nID);
  70. DECLARE_MESSAGE_MAP()
  71. };
  72. #endif // DLGPREFERENCES_H