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.

96 lines
2.3 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef OPTCONFIGS_H
  7. #define OPTCONFIGS_H
  8. #pragma once
  9. #include "AutoSelCombo.h"
  10. class COPTConfigs : public CPropertyPage
  11. {
  12. DECLARE_DYNCREATE(COPTConfigs)
  13. public:
  14. COPTConfigs();
  15. ~COPTConfigs();
  16. inline CGameConfig *GetCurrentConfig( void );
  17. // Dialog Data
  18. //{{AFX_DATA(COPTConfigs)
  19. enum { IDD = IDD_OPTIONS_CONFIGS };
  20. CEdit m_cMapDir;
  21. CEdit m_cPrefabDir;
  22. CEdit m_cGameExeDir;
  23. CEdit m_cModDir;
  24. CEdit m_cCordonTexture;
  25. CEdit m_cDefaultTextureScale;
  26. CComboBox m_cMapFormat;
  27. CComboBox m_cTextureFormat;
  28. CAutoSelComboBox m_cDefaultPoint;
  29. CAutoSelComboBox m_cDefaultSolid;
  30. CListBox m_cGDFiles;
  31. CComboBox m_cConfigs;
  32. //}}AFX_DATA
  33. // ClassWizard generate virtual function overrides
  34. //{{AFX_VIRTUAL(COPTConfigs)
  35. public:
  36. virtual BOOL OnApply();
  37. protected:
  38. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  39. //}}AFX_VIRTUAL
  40. protected:
  41. // Generated message map functions
  42. //{{AFX_MSG(COPTConfigs)
  43. afx_msg void OnEditconfigs();
  44. afx_msg void OnGdfileAdd();
  45. afx_msg void OnGdfileEdit();
  46. afx_msg void OnGdfileRemove();
  47. virtual BOOL OnInitDialog();
  48. afx_msg void OnBrowseexe();
  49. afx_msg void OnSelchangeConfigurations();
  50. afx_msg void OnConfigureExes();
  51. afx_msg void OnBrowsemapdir();
  52. afx_msg void OnBrowsePrefabDir();
  53. afx_msg void OnBrowseGameExeDir(void);
  54. afx_msg void OnBrowseModDir(void);
  55. afx_msg void OnBrowseCordonTexture(void);
  56. afx_msg LRESULT OnSettingChange(WPARAM wParam, LPARAM lParam);
  57. //}}AFX_MSG
  58. DECLARE_MESSAGE_MAP()
  59. BOOL BrowseForFolder(char *pszTitle, char *pszDirectory);
  60. void SaveInfo(CGameConfig*);
  61. void UpdateConfigList();
  62. void UpdateEntityLists();
  63. bool ConfigChanged(CGameConfig *pConfig);
  64. CGameConfig *m_pLastSelConfig;
  65. CGameConfig *m_pInitialSelectedConfig;
  66. CString m_strInitialGameDir;
  67. };
  68. //-----------------------------------------------------------------------------
  69. // Purpose: get the last selected game configuration for this page
  70. // Output: return pointer to last selected game configuration
  71. //-----------------------------------------------------------------------------
  72. inline CGameConfig *COPTConfigs::GetCurrentConfig( void )
  73. {
  74. return m_pLastSelConfig;
  75. }
  76. #endif // OPTCONFIGS_H