-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathClassBrowserDialog.h
56 lines (46 loc) · 1.55 KB
/
ClassBrowserDialog.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
50
51
52
53
54
55
56
#pragma once
#include "afxwin.h"
#include "afxcmn.h"
#include "Compile\ScriptOM.h"
#include "ClassBrowser.h"
// CClassBrowserDialog dialog
class CClassBrowserDialog : public CDialog
{
DECLARE_DYNAMIC(CClassBrowserDialog)
public:
CClassBrowserDialog(const SCIClassBrowser *pBrowser, CWnd* pParent = NULL); // standard constructor
virtual ~CClassBrowserDialog();
// Dialog Data
enum { IDD = IDD_CLASSBROWSERDIALOG };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
void OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct);
void OnSelChange();
void OnInstanceSelChange();
private:
void _PopulateTree();
void _PopulateTree(HTREEITEM hItemParent, const SCIClassBrowserNode *pBrowserInfo);
void _ShowFunction(const sci::FunctionBase *pFunc);
void _ShowClass(const sci::ClassDefinition *pClass);
void _ShowHTML(const std::stringstream &html);
void _OnClassOrInstanceSelected(const SCIClassBrowserNode *pBrowserInfo);
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnTvnSelchangedTreeClass(NMHDR *pNMHDR, LRESULT *pResult);
protected:
CListBox m_wndProperties;
CListBox m_wndMethods;
CTreeCtrl m_wndTree;
CStatic m_wndClassName;
CImageList _imagelist;
// Keep this around, as it owns the lifetimes of the objects we inserted into the tree.
const SCIClassBrowser *_pBrowser;
CFont m_font;
int _iIndexPropSC;
int _iIndexMethodSC;
CListBox m_wndInstances;
CWnd m_wndBrowser;
bool _fInitialized;
public:
afx_msg void OnBnClickedButtonprint();
};