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.

101 lines
2.4 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 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. CButton m_cUseProcessWnd;
  28. CComboBox m_cCmdSequences;
  29. CButton m_cMoveUp;
  30. CButton m_cMoveDown;
  31. CEdit m_cEnsureFn;
  32. CButton m_cEnsureCheck;
  33. CButton m_cLongFilenames;
  34. CEdit m_cParameters;
  35. CEdit m_cCommand;
  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. afx_msg void OnUseprocesswnd();
  78. virtual void OnCancel();
  79. //}}AFX_MSG
  80. afx_msg BOOL HandleInsertParm(UINT nID);
  81. afx_msg BOOL HandleInsertCommand(UINT nID);
  82. DECLARE_MESSAGE_MAP()
  83. };
  84. #endif // RUNMAPEXPERTDLG_H