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.

91 lines
2.4 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. #if !defined(AFX_FOLDERSELECTPROPS_H__D6AFABE3_5BD5_11D3_A5CF_005004039597__INCLUDED_)
  9. #define AFX_FOLDERSELECTPROPS_H__D6AFABE3_5BD5_11D3_A5CF_005004039597__INCLUDED_
  10. #if _MSC_VER > 1000
  11. #pragma once
  12. #endif // _MSC_VER > 1000
  13. // FolderSelectProps.h : header file
  14. //
  15. #include "resource.h"
  16. #include "PersistentString.h"
  17. /////////////////////////////////////////////////////////////////////////////
  18. // CFolderSelectProps dialog
  19. class CFolderSelectProps : public CPropertyPage
  20. {
  21. // Construction
  22. public:
  23. virtual BOOL OnSetActive();
  24. virtual BOOL OnKillActive();
  25. CFolderSelectProps(CWnd* pParent = NULL); // standard constructor
  26. CPersistentString m_StrSupportHTTPPath;
  27. CPersistentString m_StrPlayerHTTPPath;
  28. CPersistentString m_StrPlayerDir;
  29. CPersistentString m_StrTFStatsDir;
  30. CPersistentString m_StrSupportDir;
  31. CPersistentString m_StrRuleDir;
  32. CPersistentString m_StrOutDir;
  33. CPersistentString m_BoolSupportDefault;
  34. CPersistentString m_BoolTFStatsDefault;
  35. CPersistentString m_BoolOutputDefault;
  36. CPersistentString m_BoolRuleDefault;
  37. CPersistentString m_BoolPlayerDefault;
  38. void UpdateFolders(bool safe=true);
  39. bool alreadyAcknowledged;
  40. bool lockOutDir;
  41. bool lockTFSDir;
  42. bool windowInitted;
  43. // Dialog Data
  44. //{{AFX_DATA(CFolderSelectProps)
  45. enum { IDD = IDD_DIRS };
  46. CButton m_DefTFStats;
  47. CButton m_DefSupportHTTP;
  48. CButton m_DefSupport;
  49. CButton m_DefRule;
  50. CButton m_DefPlayerHTTP;
  51. CButton m_DefPlayer;
  52. CButton m_DefOutput;
  53. CEdit m_SupportHTTPPath;
  54. CEdit m_PlayerHTTPPath;
  55. CEdit m_PlayerDir;
  56. CEdit m_TFStatsDir;
  57. CEdit m_SupportDir;
  58. CEdit m_RuleDir;
  59. CEdit m_OutDir;
  60. //}}AFX_DATA
  61. // Overrides
  62. // ClassWizard generated virtual function overrides
  63. //{{AFX_VIRTUAL(CFolderSelectProps)
  64. protected:
  65. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  66. //}}AFX_VIRTUAL
  67. // Implementation
  68. protected:
  69. // Generated message map functions
  70. //{{AFX_MSG(CFolderSelectProps)
  71. afx_msg void OnDefaultCheckBoxClick();
  72. afx_msg void OnChangeTfstatsdir();
  73. afx_msg void OnChangeOutputdir();
  74. //}}AFX_MSG
  75. DECLARE_MESSAGE_MAP()
  76. };
  77. //{{AFX_INSERT_LOCATION}}
  78. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  79. #endif // !defined(AFX_FOLDERSELECTPROPS_H__D6AFABE3_5BD5_11D3_A5CF_005004039597__INCLUDED_)