Debian Codegraph @

editor/ScriptWizard.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
19 #if !defined(AFX_SCRIPTWIZARD_H__A08FC7B1_14DB_11D1_BD98_00A0C96ED595__INCLUDED_)
20 #define AFX_SCRIPTWIZARD_H__A08FC7B1_14DB_11D1_BD98_00A0C96ED595__INCLUDED_
21
22 #if _MSC_VER >= 1000
23 #pragma once
24 #endif // _MSC_VER >= 1000
25 // ScriptWizard.h : header file
26 //
27
28 /////////////////////////////////////////////////////////////////////////////
29 // CScriptWizard dialog
30
31 struct tD3XProgram;
32
33 class CScriptWizard : public CDialog {
34 // Construction
35 public:
36 CScriptWizard(CWnd *pParent = NULL); // standard constructor
37
38 // Dialog Data
39 //{{AFX_DATA(CScriptWizard)
40 enum { IDD = IDD_SCRIPTWIZ };
41 // NOTE: the ClassWizard will add data members here
42 //}}AFX_DATA
43
44 // Overrides
45 // ClassWizard generated virtual function overrides
46 //{{AFX_VIRTUAL(CScriptWizard)
47 protected:
48 virtual void DoDataExchange(CDataExchange *pDX); // DDX/DDV support
49 //}}AFX_VIRTUAL
50
51 // Implementation
52 protected:
53 // Generated message map functions
54 //{{AFX_MSG(CScriptWizard)
55 virtual BOOL OnInitDialog();
56 afx_msg void OnAddScript();
57 afx_msg void OnLock();
58 afx_msg void OnUnlock();
59 afx_msg void OnEditScript();
60 virtual void OnOK();
61 virtual void OnCancel();
62 afx_msg void OnSelChangeScrListbox();
63 afx_msg void OnAddEvent();
64 afx_msg void OnSelchangeScrevtListbox();
65 afx_msg void OnSelchangeScrmodBox();
66 afx_msg void OnDestroy();
67 //}}AFX_MSG
68 DECLARE_MESSAGE_MAP()
69
70 private:
71 char ScriptFileName[32];
72 char ScriptCodeName[32];
73 int m_CurScriptSel; // The current script selected from LISTBOX
74 int m_CurEventSel; // Current event selected from LISTBOX index.
75
76 char *m_ScriptSource; // script source
77 tD3XProgram *m_ScriptCode; // script code.
78
79 private:
80 void LoadCurrentModule();
81 void UpdateScriptListbox();
82 void UpdateEventListbox();
83 void UpdateDialogButtons();
84 };
85
86 //{{AFX_INSERT_LOCATION}}
87 // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
88
89 #endif // !defined(AFX_SCRIPTWIZARD_H__A08FC7B1_14DB_11D1_BD98_00A0C96ED595__INCLUDED_)