Debian Codegraph @

editor/ScriptLevelInterface.h

raw symbols SCIP
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/ScriptLevelInterface.h $
21 * $Revision: 1.1.1.1 $
22 * $Date: 2003-08-26 03:57:38 $
23 * $Author: kevinb $
24 *
25 * ScriptLevelInterface.h : implementation file
26 *
27 * $Log: not supported by cvs2svn $
28 *
29 * 10 2/17/99 6:54p Jeff
30 * added check box for auto check in/out scripts with levels...fix
31 * checksum mprintf bug
32 *
33 * 9 1/11/99 3:34p Jeff
34 * added checks for when going editor->game to see if scripts are out of
35 * date, if so give the option of breaking out. Add some options to mass
36 * script compiler, along with a toolbar shortcut.
37 *
38 * 8 1/05/99 4:54p Jeff
39 * save the last script edited and set the on init
40 *
41 * 7 12/20/98 9:57p Jeff
42 * added ability to display scripts not checked out. don't display
43 * message on checkin/out
44 *
45 * 6 12/18/98 12:48p Jeff
46 *
47 * 5 12/18/98 10:40a Jeff
48 * save out settings to registry
49 *
50 * 4 12/13/98 3:10a Jeff
51 * fixed some bugs. Automatically check in/out/etc .dll when operating
52 * with .cpp. Hooked in compiler and compiler configuration. Very
53 * complete.
54 *
55 * 3 12/11/98 10:34p Jeff
56 * Updated the script/level interface, all manage system integration is
57 * complete. External Script Editor loading is setup too.
58 *
59 * 2 12/11/98 5:50p Jeff
60 * implemented and added changes regarding Level&Scripting manage system
61 * and compiler interface
62 *
63 * $NoKeywords: $
64 */
65
66 #if !defined(AFX_SCRIPTLEVELINTERFACE_H__7CFE839C_90E9_11D2_AB2B_006008BF0B09__INCLUDED_)
67 #define AFX_SCRIPTLEVELINTERFACE_H__7CFE839C_90E9_11D2_AB2B_006008BF0B09__INCLUDED_
68
69 #if _MSC_VER > 1000
70 #pragma once
71 #endif // _MSC_VER > 1000
72 // ScriptLevelInterface.h : header file
73 //
74
75 /////////////////////////////////////////////////////////////////////////////
76 // CScriptLevelInterface dialog
77
78 class CScriptLevelInterface : public CDialog {
79 // Construction
80 public:
81 CScriptLevelInterface(CWnd *pParent = NULL); // standard constructor
82
83 // Dialog Data
84 //{{AFX_DATA(CScriptLevelInterface)
85 enum { IDD = IDD_SCRIPTINTERFACE };
86 CCheckListBox m_ListAvailable;
87 CCheckListBox m_ListCheckedOut;
88 CComboBox m_ScriptToCompile;
89 int m_ViewType;
90 int m_ScriptType;
91 BOOL m_ShowNonCheckedOut;
92 BOOL m_AutoCheckScripts;
93 //}}AFX_DATA
94
95 // Overrides
96 // ClassWizard generated virtual function overrides
97 //{{AFX_VIRTUAL(CScriptLevelInterface)
98 protected:
99 virtual void DoDataExchange(CDataExchange *pDX); // DDX/DDV support
100 //}}AFX_VIRTUAL
101
102 // Implementation
103 protected:
104 void SetStatus(char *str);
105 void UpdateAvailableWithLevels();
106 void UpdateAvailableWithScripts();
107 void UpdateCheckedOutWithLevels();
108 void UpdateCheckedOutWithScripts();
109 void UpdateScriptListWithLevels();
110 void UpdateScriptListWithScripts();
111 bool DeleteLevel();
112 bool DeleteScript();
113 bool CheckInScripts();
114 bool CheckInLevels();
115 bool CheckOutScripts();
116 bool CheckOutLevels();
117 bool UndoCheckOutScripts();
118 bool UndoCheckOutLevels();
119
120 bool InCritical;
121
122 void UpdateDialog();
123
124 bool AddNewLevel(void);
125 bool AddNewScript(void);
126
127 // Generated message map functions
128 //{{AFX_MSG(CScriptLevelInterface)
129 afx_msg void OnCheckout();
130 afx_msg void OnCheckin();
131 afx_msg void OnUndocheckout();
132 afx_msg void OnRadioScripts();
133 afx_msg void OnRadioLevels();
134 afx_msg void OnCompile();
135 afx_msg void OnEditscript();
136 afx_msg void OnCloseupSelectedScript();
137 virtual BOOL OnInitDialog();
138 afx_msg void OnAddnew();
139 afx_msg void OnDelete();
140 afx_msg void OnCreatescript();
141 afx_msg void OnClose();
142 afx_msg void OnDestroy();
143 afx_msg void OnConfigcompiler();
144 virtual void OnOK();
145 afx_msg void OnMasscompile();
146 afx_msg void OnSelchangeSelectedScript();
147 afx_msg void OnListNoncheckedOut();
148 //}}AFX_MSG
149 DECLARE_MESSAGE_MAP()
150 };
151
152 // Returns true if there are out of date script files (only checks those in manage system)
153 int AreScriptsOutofDate(void);
154 // returns true if the given .cpp file is has an out of date dll (or non-existant). Working
155 // dir MUST be set to data\scripts before calling this function
156 bool IsScriptOutofDate(char *name);
157
158 //{{AFX_INSERT_LOCATION}}
159 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
160
161 #endif // !defined(AFX_SCRIPTLEVELINTERFACE_H__7CFE839C_90E9_11D2_AB2B_006008BF0B09__INCLUDED_)