-
Notifications
You must be signed in to change notification settings - Fork 2
/
PatternDlg.h
106 lines (86 loc) · 2.64 KB
/
PatternDlg.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
#if !defined(AFX_PATTERNDLG_H__BF2314F4_1C6C_45B2_9897_554500DEADD9__INCLUDED_)
#define AFX_PATTERNDLG_H__BF2314F4_1C6C_45B2_9897_554500DEADD9__INCLUDED_
#include "CircleArc.h" // Added by ClassView
#include "CA210.h"
#include "MsrItemDlg.h"
#include "CColorRef.h"
#include <cmath>
#include <vector>
enum initType{ MsrForItem = 0, MsrForPoint, MsrForTable };
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// PatternDlg.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CPatternDlg dialog
class CPatternDlg : public CDialog
{
// Construction
public:
CPatternDlg(const initType& it, CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CPatternDlg)
enum { IDD = IDD_PATTERN_DIALOG };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CPatternDlg)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CPatternDlg)
virtual BOOL OnInitDialog();
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
afx_msg void OnPaint();
afx_msg void OnTimer(UINT nIDevent);
afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
initType InitDataType;
RNA m_RNA;
//手動可調
BOOL c_bStatusBar;
//自動使用的參數
BOOL c_bMsrBegin;
BOOL c_bMsrEnd;
BOOL c_bMsrEndnMsred;
BOOL c_bRunMsrAI;
BOOL c_bUnCntCA210;
std::vector<Cartridge2>::iterator m_itor;
std::vector<Cartridge2>::iterator m_BeginItor;
std::vector<Cartridge2>::iterator m_EndItor;
CBrush m_BkBrush;
ColorRef m_BkColor; //背景色
CString m_NitsLv;
Circle m_Goal; //目標圈圈
Ca210* m_pCA210;
private:
void initLCMSize() const;
void initCa210();
void initDataDlgType() const; //Call SelMsrItem
void initDocument();
void trigger();
void checkMsrLimit();
void setBkColor(const ColorRef&);
const CaState recoil();
void msrKernel();
void eventGoPrvsGoal();
BOOL eventGoNextGoal();
void eventSwCntCa210();
void eventRunMsrAi(BOOL isRun = 2);
UINT eventCatchMsrValue();
void eventExitDialog();
public:
void LoadedCartridge(); //彈匣
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_PATTERNDLG_H__BF2314F4_1C6C_45B2_9897_554500DEADD9__INCLUDED_)