Debian Codegraph @

editor/ScriptSyncDialog.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_SCRIPTSYNCDIALOG_H__9C4083C0_CB58_11D2_AB2B_006008BF0B09__INCLUDED_)
20 #define AFX_SCRIPTSYNCDIALOG_H__9C4083C0_CB58_11D2_AB2B_006008BF0B09__INCLUDED_
21
22 #if _MSC_VER > 1000
23 #pragma once
24 #endif // _MSC_VER > 1000
25 // ScriptSyncDialog.h : header file
26 //
27
28 /////////////////////////////////////////////////////////////////////////////
29 // CScriptSyncDialog dialog
30
31 /////////////////////////////////////////////////////////////////////////////
32 // CMyListCtrl window
33 #include "manage_external.h"
34
35 #define STATE_COMPILED 0
36 #define STATE_OOD 1
37 #define STATE_OOS 2
38 #define STATE_MISSING 3
39 #define STATE_ERROOD 4
40 #define STATE_ERROOS 5
41 #define STATE_NOCOMPILER 6
42
43 struct tFileInfo {
44 char filename[PAGENAME_LEN];
45 int state;
46 };
47
48 class CMyListCtrl : public CListCtrl {
49 // Construction
50 public:
51 CMyListCtrl();
52 void Initialize(void);
53 int AddItem(char *name, int state);
54 bool SetItem(int item, int state);
55 bool GetItem(int item, char *name, char *state);
56 void SelectItem(int index);
57
58 // Attributes
59 public:
60 // Operations
61 public:
62 // Overrides
63 // ClassWizard generated virtual function overrides
64 //{{AFX_VIRTUAL(CMyListCtrl)
65 //}}AFX_VIRTUAL
66
67 // Implementation
68 public:
69 virtual ~CMyListCtrl();
70
71 // Generated message map functions
72 protected:
73 //{{AFX_MSG(CMyListCtrl)
74 // NOTE - the ClassWizard will add and remove member functions here.
75 //}}AFX_MSG
76
77 DECLARE_MESSAGE_MAP()
78 };
79
80 class CScriptSyncDialog : public CDialog {
81 // Construction
82 public:
83 CScriptSyncDialog(CWnd *pParent = NULL); // standard constructor
84 void DoStuff(void);
85 void BuildList(void);
86 void defer(void);
87 bool early_exit;
88 bool first_paint;
89
90 tFileInfo *m_Files;
91 int m_NumFiles;
92 bool m_InStuff;
93 int m_Index;
94 bool m_Done;
95 char old_dir[_MAX_PATH];
96 bool m_FillingIn;
97 int m_ErrorCount;
98 int m_HasCompiler;
99
100 // Dialog Data
101 //{{AFX_DATA(CScriptSyncDialog)
102 enum { IDD = IDD_SYNCSCRIPTS };
103 CMyListCtrl m_List;
104 //}}AFX_DATA
105
106 // Overrides
107 // ClassWizard generated virtual function overrides
108 //{{AFX_VIRTUAL(CScriptSyncDialog)
109 protected:
110 virtual void DoDataExchange(CDataExchange *pDX); // DDX/DDV support
111 //}}AFX_VIRTUAL
112
113 // Implementation
114 protected:
115 // Generated message map functions
116 //{{AFX_MSG(CScriptSyncDialog)
117 virtual BOOL OnInitDialog();
118 afx_msg void OnPaint();
119 afx_msg void OnTimer(UINT nIDEvent);
120 afx_msg void OnDestroy();
121 //}}AFX_MSG
122 DECLARE_MESSAGE_MAP()
123 };
124
125 //{{AFX_INSERT_LOCATION}}
126 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
127
128 #endif // !defined(AFX_SCRIPTSYNCDIALOG_H__9C4083C0_CB58_11D2_AB2B_006008BF0B09__INCLUDED_)