-
Notifications
You must be signed in to change notification settings - Fork 0
/
CreateView.h
140 lines (114 loc) · 4 KB
/
CreateView.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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
/*===========================================================================
*
* File: Createview.H
* Author: Dave Humphrey ([email protected])
* Created On: May 24, 2003
*
* Description
*
*=========================================================================*/
#ifndef __CREATEVIEW_H
#define __CREATEVIEW_H
/*===========================================================================
*
* Begin Required Includes
*
*=========================================================================*/
#include "MWRandItemGen.h"
/*===========================================================================
* End of Required Includes
*=========================================================================*/
/*===========================================================================
*
* Begin Definitions
*
*=========================================================================*/
/* User defined events */
#define MWRI_EVENT_NEWITEMS (WM_USER+1)
/*===========================================================================
* End of Definitions
*=========================================================================*/
/*===========================================================================
*
* Begin Class CCreateView Definition
*
*=========================================================================*/
class CMWRandItemDlg;
class CCreateView : public CPropertyPage {
DECLARE_DYNCREATE(CCreateView);
/*---------- Protected Class Methods ----------------------------*/
protected:
mwrig_options_t* m_pOptions; /* Reference to options object */
CMwRandItemGen* m_pRandItemGen;
CMWRandItemDlg* m_pParentDlg;
double m_CreateTime;
/*---------- Public Class Methods -------------------------------*/
public:
CCreateView();
~CCreateView();
/* Fill the ID type combo list */
void CreateIDTypeList (void);
/* Get/update control data */
void GetControlData (void);
void SetControlData (void);
/* Get class members */
double GetCreateTime (void) { return (m_CreateTime); }
/* Set class members */
void SetOptions (mwrig_options_t* pOptions) { m_pOptions = pOptions; }
void SetRandItemGen (CMwRandItemGen* pItemGen) { m_pRandItemGen = pItemGen; }
void SetParentDlg (CMWRandItemDlg* pParent) { m_pParentDlg = pParent; }
//{{AFX_DATA(CCreateView)
enum { IDD = IDD_CREATE_VIEW };
CButton m_MiscCheck;
CEdit m_UnScriptName;
CEdit m_InScriptName;
CButton m_UseScriptName;
CEdit m_PHListID;
CButton m_MakePHList;
CComboBox m_IdTypeList;
CButton m_OutputScriptRec;
CButton m_OutputScript;
CButton m_UseListID;
CEdit m_ChanceNone;
CButton m_RemoveDuplicates;
CEdit m_CurseChance;
CEdit m_UniqueChance;
CEdit m_SuffixChance;
CEdit m_PrefixChance;
CEdit m_IDPrefix;
CEdit m_ListID;
CButton m_CreateListCheck;
CButton m_ClothingCheck;
CButton m_ArmorCheck;
CButton m_WeaponCheck;
CEdit m_BellValue;
CButton m_BellCheck;
CEdit m_LevelTo;
CEdit m_LevelFrom;
CEdit m_ItemNumber;
//}}AFX_DATA
/* ClassWizard generate virtual function overrides */
//{{AFX_VIRTUAL(CCreateView)
protected:
virtual void DoDataExchange(CDataExchange* pDX);
//}}AFX_VIRTUAL
protected:
/* Generated message map functions */
//{{AFX_MSG(CCreateView)
afx_msg void OnCreateButton();
virtual BOOL OnInitDialog();
afx_msg void OnCreatelistcheck();
afx_msg void OnBellcheck();
afx_msg void OnUselistid();
//}}AFX_MSG
DECLARE_MESSAGE_MAP();
};
/*===========================================================================
* End of Class CCreateView Definition
*=========================================================================*/
//{{AFX_INSERT_LOCATION}}
//}}AFX_INSERT_LOCATION
#endif
/*===========================================================================
* End of File Createview.H
*=========================================================================*/