Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

[f76c33]: ScriptEdit.h Maximize Restore History

Download this file

ScriptEdit.h    97 lines (87 with data), 2.8 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#if !defined(AFX_SCRIPTEDIT_H__1216F756_9F12_4ABB_8F6F_7FC1A925260D__INCLUDED_)
#define AFX_SCRIPTEDIT_H__1216F756_9F12_4ABB_8F6F_7FC1A925260D__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ScriptEdit.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CScriptEdit dialog
class CScriptEdit : public CDialog
{
// Construction
public:
CScriptEdit(CWnd* pParent = NULL); // standard constructor
void NewScript();
// Dialog Data
//{{AFX_DATA(CScriptEdit)
enum { IDD = IDD_SCRIPTEDIT };
CRichEditCtrl m_text_control;
//}}AFX_DATA
CString m_idsname;
int m_indent;
int m_bcs;
int m_count, m_firsterror;
int *m_errors;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CScriptEdit)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual void PostNcDestroy();
//}}AFX_VIRTUAL
// Implementation
protected:
CToolTipCtrl m_tooltip;
CFindReplaceDialog *m_searchdlg;
int m_infind;
long OnFindReplace(WPARAM wParam, LPARAM lParam);
int perform_search_and_replace(int idx, int mode, int match, CString search, CString replace);
int do_search_and_replace(int direction,int mode,int match,CString search,CString replace);
int decompile(CString &filepath, CString tmpname);
int compile(CString filepath);
CString GetLine(int idx);
void CheckScript(int messages);
void RefreshDialog();
void RefreshMenu();
int RunWeidu(CString syscommand);
void OnSaveasGeneral(int type);
void OnSaveasBCS();
void OnSaveasBAF();
// Generated message map functions
//{{AFX_MSG(CScriptEdit)
virtual BOOL OnInitDialog();
afx_msg void OnLoad();
afx_msg void OnLoadex();
afx_msg void OnSaveas();
afx_msg void OnNew();
afx_msg void OnSetfocusText();
afx_msg void OnCheck();
afx_msg void OnSaveAsBAF();
afx_msg void OnSaveAsBCS();
afx_msg void OnFileLoadsource();
afx_msg void OnSearch();
afx_msg void OnKillfocusText();
afx_msg void OnMaxtextText();
afx_msg void OnOptionsAutocheck();
afx_msg void OnOptionsLargeindent();
afx_msg void OnEditSelectall();
afx_msg void OnEditUndo();
afx_msg void OnEditCut();
afx_msg void OnEditCopy();
afx_msg void OnEditPaste();
afx_msg void OnEditDelete();
afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
afx_msg void OnIDS();
afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo);
afx_msg void OnChangeText();
afx_msg void OnUpdateText();
virtual void OnCancel();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SCRIPTEDIT_H__1216F756_9F12_4ABB_8F6F_7FC1A925260D__INCLUDED_)