forked from sabrogden/Ditto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathScriptEditor.h
49 lines (37 loc) · 1.07 KB
/
ScriptEditor.h
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
#pragma once
#include "ChaiScriptXml.h"
#include "DialogResizer.h"
// CScriptEditor dialog
class CScriptEditor : public CDialogEx
{
DECLARE_DYNAMIC(CScriptEditor)
public:
CScriptEditor(CWnd* pParent = NULL); // standard constructor
virtual ~CScriptEditor();
CChaiScriptXml m_xml;
CString m_title;
protected:
void EnableDisable(BOOL enable);
// Dialog Data
#ifdef AFX_DESIGN_TIME
enum { IDD = IDD_SCRIPT_EDITOR };
#endif
CListBox m_scriptsList;
CDialogResizer m_resize;
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
DECLARE_MESSAGE_MAP()
public:
virtual BOOL OnInitDialog();
afx_msg void OnLbnSelchangeListScripts();
afx_msg void OnBnClickedButtonAddScript();
afx_msg void OnEnKillfocusEditName();
afx_msg void OnEnKillfocusEditDesc();
afx_msg void OnEnKillfocusEditScript();
afx_msg void OnBnClickedCheckActive();
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnBnClickedButtonDeleteScript();
afx_msg void OnBnClickedButtonRun();
CRichEditCtrl m_rich;
virtual BOOL PreTranslateMessage(MSG* pMsg);
};