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.

100 lines
2.4 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 RUNMAPEXPERTDLG_H
  14. #define RUNMAPEXPERTDLG_H
  15. #pragma once
  16. #include "RunCommands.h"
  17. #include "MyCheckListBox.h"
  18. class CCommandSequence;
  19. class CRunMapExpertDlg : public CDialog
  20. {
  21. // Construction
  22. public:
  23. CRunMapExpertDlg(CWnd* pParent = NULL); // standard constructor
  24. // Dialog Data
  25. //{{AFX_DATA(CRunMapExpertDlg)
  26. enum { IDD = IDD_RUNMAPEXPERT };
  27. CComboBox m_cCmdSequences;
  28. CButton m_cMoveUp;
  29. CButton m_cMoveDown;
  30. CEdit m_cEnsureFn;
  31. CButton m_cEnsureCheck;
  32. CButton m_cLongFilenames;
  33. CEdit m_cParameters;
  34. CEdit m_cCommand;
  35. BOOL m_bWaitForKeypress;
  36. //}}AFX_DATA
  37. BOOL m_bSwitchMode;
  38. CMyCheckListBox m_cCommandList;
  39. BOOL m_bNoUpdateCmd;
  40. // currently active sequence - might be NULL <at startup>
  41. CCommandSequence *m_pActiveSequence;
  42. // Overrides
  43. // ClassWizard generated virtual function overrides
  44. //{{AFX_VIRTUAL(CRunMapExpertDlg)
  45. protected:
  46. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  47. //}}AFX_VIRTUAL
  48. void DeleteCommand(int iIndex);
  49. void AddCommand(int iIndex, PCCOMMAND pCommand);
  50. void MoveCommand(int iIndex, BOOL bUp);
  51. PCCOMMAND GetCommandAtIndex(int *piIndex);
  52. void UpdateCommandWithEditFields(int iIndex);
  53. void InitSequenceList();
  54. void SaveCommandsToSequence();
  55. LPCTSTR GetCmdString(PCCOMMAND pCommand);
  56. // Implementation
  57. protected:
  58. // Generated message map functions
  59. //{{AFX_MSG(CRunMapExpertDlg)
  60. afx_msg void OnBrowsecommand();
  61. afx_msg void OnSelchangeCommandlist();
  62. afx_msg void OnInsertparm();
  63. afx_msg void OnMovedown();
  64. afx_msg void OnMoveup();
  65. afx_msg void OnNew();
  66. afx_msg void OnNormal();
  67. afx_msg void OnRemove();
  68. afx_msg void OnUpdateCommand();
  69. afx_msg void OnUpdateParameters();
  70. afx_msg void OnEnsurecheck();
  71. afx_msg void OnUpdateEnsurefn();
  72. afx_msg void OnLongfilenames();
  73. virtual BOOL OnInitDialog();
  74. virtual void OnOK();
  75. afx_msg void OnSelchangeConfigurations();
  76. afx_msg void OnEditconfigs();
  77. virtual void OnCancel();
  78. //}}AFX_MSG
  79. afx_msg BOOL HandleInsertParm(UINT nID);
  80. afx_msg BOOL HandleInsertCommand(UINT nID);
  81. DECLARE_MESSAGE_MAP()
  82. };
  83. #endif // RUNMAPEXPERTDLG_H