forked from vpinball/vpinball
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Debugger.h
79 lines (67 loc) · 1.96 KB
/
Debugger.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#pragma once
class DebuggerDialog;
class DbgLightDialog : public CDialog
{
public:
DbgLightDialog();
protected:
virtual BOOL OnInitDialog();
virtual void OnOK();
virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
virtual void OnClose();
virtual INT_PTR DialogProc(UINT uMsg, WPARAM wParam, LPARAM lParam);
private:
Light *GetLight();
void SetCheckButtonState(const Light *plight);
CComboBox m_lightsCombo;
HWND m_hLightOnCheck;
HWND m_hLightOffCheck;
HWND m_hLightBlinkCheck;
CColorDialog m_colorDialog;
ColorButton m_colorButton;
ColorButton m_colorButton2;
};
class DbgMaterialDialog : public CDialog
{
public:
DbgMaterialDialog();
protected:
virtual BOOL OnInitDialog();
virtual void OnOK();
virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
virtual void OnClose();
virtual INT_PTR DialogProc(UINT uMsg, WPARAM wParam, LPARAM lParam);
private:
CComboBox m_materialsCombo;
CColorDialog m_colorDialog;
ColorButton m_colorButton1;
ColorButton m_colorButton2;
ColorButton m_colorButton3;
};
class DebuggerDialog : public CDialog
{
public:
DebuggerDialog();
BOOL IsSubDialogMessage(MSG& msg) const;
protected:
virtual BOOL OnInitDialog();
virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
virtual void OnClose();
virtual LRESULT OnNotify(WPARAM wparam, LPARAM lparam);
virtual INT_PTR DialogProc(UINT uMsg, WPARAM wParam, LPARAM lParam);
private:
CButton m_playButton;
CButton m_pauseButton;
CButton m_stepButton;
CEdit m_stepAmountEdit;
CButton m_dbgLightsButton;
CButton m_dbgMaterialsButton;
HWND m_hThrowBallsInPlayerCheck;
HWND m_hBallControlCheck;
CEdit m_ballSizeEdit;
CEdit m_ballMassEdit;
DbgLightDialog m_lightDialog;
DbgMaterialDialog m_materialDialog;
CResizer m_resizer;
CEdit m_notesEdit;
};