Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

83 lines
1.8 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $Workfile: $
  6. // $Date: $
  7. //
  8. //-----------------------------------------------------------------------------
  9. // $Log: $
  10. //
  11. // $NoKeywords: $
  12. //=============================================================================//
  13. #ifndef OPTGENERAL_H
  14. #define OPTGENERAL_H
  15. #pragma once
  16. #include "Resource.h"
  17. class COPTGeneral : public CPropertyPage
  18. {
  19. DECLARE_DYNCREATE(COPTGeneral)
  20. // Construction
  21. public:
  22. COPTGeneral();
  23. ~COPTGeneral();
  24. // Dialog Data
  25. //{{AFX_DATA(COPTGeneral)
  26. enum { IDD = IDD_OPTIONS_MAIN };
  27. CButton m_cLoadWinPos;
  28. CButton m_cIndependentWin;
  29. CButton m_cEnablePerforceIntegration;
  30. CButton m_cEnableAutosave;
  31. CStatic m_cAutosaveTimeLabel;
  32. CEdit m_cAutosaveTime;
  33. CStatic m_cAutosaveSpaceLabel;
  34. CEdit m_cAutosaveSpace;
  35. CStatic m_cAutosaveIterationLabel;
  36. CEdit m_cAutosaveIterations;
  37. CStatic m_cAutosaveDirectoryLabel;
  38. CButton m_cAutosaveBrowseButton;
  39. CSpinButtonCtrl m_UndoSpin;
  40. int m_iUndoLevels;
  41. int m_nMaxCameras;
  42. int m_iMaxAutosavesPerMap;
  43. int m_iMaxAutosaveSpace;
  44. int m_iTimeBetweenSaves;
  45. CEdit m_cAutosaveDir;
  46. //}}AFX_DATA
  47. // Overrides
  48. // ClassWizard generate virtual function overrides
  49. //{{AFX_VIRTUAL(COPTGeneral)
  50. protected:
  51. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  52. //}}AFX_VIRTUAL
  53. // Implementation
  54. protected:
  55. // Generated message map functions
  56. //{{AFX_MSG(COPTGeneral)
  57. virtual BOOL OnInitDialog(void);
  58. afx_msg void OnIndependentwindows(void);
  59. afx_msg void OnEnablePerforceIntegration(void);
  60. afx_msg void OnEnableAutosave(void);
  61. afx_msg void OnBrowseAutosaveDir(void);
  62. //}}AFX_MSG
  63. BOOL BrowseForFolder(char *pszTitle, char *pszDirectory);
  64. BOOL OnApply();
  65. DECLARE_MESSAGE_MAP()
  66. };
  67. #endif // OPTGENERAL_H