Team Fortress 2 Source Code as on 22/4/2020
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.

81 lines
1.7 KiB

  1. //========= Copyright 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_cEnableAutosave;
  30. CStatic m_cAutosaveTimeLabel;
  31. CEdit m_cAutosaveTime;
  32. CStatic m_cAutosaveSpaceLabel;
  33. CEdit m_cAutosaveSpace;
  34. CStatic m_cAutosaveIterationLabel;
  35. CEdit m_cAutosaveIterations;
  36. CStatic m_cAutosaveDirectoryLabel;
  37. CButton m_cAutosaveBrowseButton;
  38. CSpinButtonCtrl m_UndoSpin;
  39. int m_iUndoLevels;
  40. int m_nMaxCameras;
  41. int m_iMaxAutosavesPerMap;
  42. int m_iMaxAutosaveSpace;
  43. int m_iTimeBetweenSaves;
  44. CEdit m_cAutosaveDir;
  45. //}}AFX_DATA
  46. // Overrides
  47. // ClassWizard generate virtual function overrides
  48. //{{AFX_VIRTUAL(COPTGeneral)
  49. protected:
  50. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  51. //}}AFX_VIRTUAL
  52. // Implementation
  53. protected:
  54. // Generated message map functions
  55. //{{AFX_MSG(COPTGeneral)
  56. virtual BOOL OnInitDialog(void);
  57. afx_msg void OnIndependentwindows(void);
  58. afx_msg void OnEnableAutosave(void);
  59. afx_msg void OnBrowseAutosaveDir(void);
  60. //}}AFX_MSG
  61. BOOL BrowseForFolder(char *pszTitle, char *pszDirectory);
  62. BOOL OnApply();
  63. DECLARE_MESSAGE_MAP()
  64. };
  65. #endif // OPTGENERAL_H