| 1 | /* |
| 2 | * Descent 3 |
| 3 | * Copyright (C) 2024 Parallax Software |
| 4 | * |
| 5 | * This program is free software: you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation, either version 3 of the License, or |
| 8 | * (at your option) any later version. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 | |
| 18 | --- HISTORICAL COMMENTS FOLLOW --- |
| 19 | |
| 20 | * $Logfile: /DescentIII/Main/editor/ScriptMassCompile.h $ |
| 21 | * $Revision: 1.1.1.1 $ |
| 22 | * $Date: 2003-08-26 03:57:39 $ |
| 23 | * $Author: kevinb $ |
| 24 | * |
| 25 | * Header file for mass script compile dialog |
| 26 | * |
| 27 | * $Log: not supported by cvs2svn $ |
| 28 | * |
| 29 | * 8 4/03/99 1:36a Jeff |
| 30 | * added no-check out option for mass compiler |
| 31 | * |
| 32 | * 7 2/21/99 8:05p Jeff |
| 33 | * better handling of out-of-sync scripts |
| 34 | * |
| 35 | * 6 1/11/99 3:34p Jeff |
| 36 | * added checks for when going editor->game to see if scripts are out of |
| 37 | * date, if so give the option of breaking out. Add some options to mass |
| 38 | * script compiler, along with a toolbar shortcut. |
| 39 | * |
| 40 | * 5 12/30/98 4:39p Jeff |
| 41 | * selectable to what scripts to display (checked out, non-checked out or |
| 42 | * both) |
| 43 | * |
| 44 | * 4 12/20/98 9:57p Jeff |
| 45 | * finished mass compile dialog |
| 46 | * |
| 47 | * 3 12/18/98 12:36p Jeff |
| 48 | * created a function to determine a script's type and hooked it in |
| 49 | * |
| 50 | * 2 12/18/98 12:11p Jeff |
| 51 | * added mass script compile dialog |
| 52 | * |
| 53 | * $NoKeywords: $ |
| 54 | */ |
| 55 | |
| 56 | #if !defined(AFX_SCRIPTMASSCOMPILE_H__7A381E00_966F_11D2_AB2B_006008BF0B09__INCLUDED_) |
| 57 | #define AFX_SCRIPTMASSCOMPILE_H__7A381E00_966F_11D2_AB2B_006008BF0B09__INCLUDED_ |
| 58 | |
| 59 | #if _MSC_VER > 1000 |
| 60 | #pragma once |
| 61 | #endif // _MSC_VER > 1000 |
| 62 | // ScriptMassCompile.h : header file |
| 63 | // |
| 64 | |
| 65 | ///////////////////////////////////////////////////////////////////////////// |
| 66 | // CScriptMassCompile dialog |
| 67 | #include "pstypes.h" |
| 68 | |
| 69 | uint8_t DetermineScriptType(char *filename); |
| 70 | |
| 71 | class CScriptMassCompile : public CDialog { |
| 72 | // Construction |
| 73 | public: |
| 74 | CScriptMassCompile(CWnd *pParent = NULL); // standard constructor |
| 75 | |
| 76 | void SetStepText(int step, char *format, ...); |
| 77 | bool Step1(char *filename); |
| 78 | bool Step2(char *filename); |
| 79 | bool Step3(char *filename, bool islevel); |
| 80 | bool Step4(char *filename); |
| 81 | void BuildList(void); |
| 82 | |
| 83 | // Dialog Data |
| 84 | //{{AFX_DATA(CScriptMassCompile) |
| 85 | enum { IDD = IDD_COMPILEALL }; |
| 86 | CCheckListBox m_ScriptList; |
| 87 | BOOL m_AutoCheckIn; |
| 88 | int m_DisplayType; |
| 89 | BOOL m_NoCheckout; |
| 90 | //}}AFX_DATA |
| 91 | |
| 92 | // Overrides |
| 93 | // ClassWizard generated virtual function overrides |
| 94 | //{{AFX_VIRTUAL(CScriptMassCompile) |
| 95 | protected: |
| 96 | virtual void DoDataExchange(CDataExchange *pDX); // DDX/DDV support |
| 97 | //}}AFX_VIRTUAL |
| 98 | |
| 99 | // Implementation |
| 100 | protected: |
| 101 | // Generated message map functions |
| 102 | //{{AFX_MSG(CScriptMassCompile) |
| 103 | afx_msg void OnBuild(); |
| 104 | virtual void OnOK(); |
| 105 | virtual BOOL OnInitDialog(); |
| 106 | afx_msg void OnLocked(); |
| 107 | afx_msg void OnNotlocked(); |
| 108 | afx_msg void OnBoth(); |
| 109 | afx_msg void OnSelectall(); |
| 110 | afx_msg void OnOodscripts(); |
| 111 | afx_msg void OnOosscripts(); |
| 112 | afx_msg void OnNocheckout(); |
| 113 | //}}AFX_MSG |
| 114 | DECLARE_MESSAGE_MAP() |
| 115 | }; |
| 116 | |
| 117 | //{{AFX_INSERT_LOCATION}} |
| 118 | // Microsoft Visual C++ will insert additional declarations immediately before the previous line. |
| 119 | |
| 120 | #endif // !defined(AFX_SCRIPTMASSCOMPILE_H__7A381E00_966F_11D2_AB2B_006008BF0B09__INCLUDED_) |