-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathObLvlcView.h
132 lines (107 loc) · 4.22 KB
/
ObLvlcView.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
/*===========================================================================
*
* File: Oblvlcview.H
* Author: Dave Humphrey ([email protected])
* Created On: October 8, 2006
*
* Description
*
*=========================================================================*/
#ifndef __OBLVLCVIEW_H
#define __OBLVLCVIEW_H
/*===========================================================================
*
* Begin Required Includes
*
*=========================================================================*/
#include "dialogs/obrecorddialog.h"
#include "windows/obrecordlistctrl.h"
/*===========================================================================
* End of Required Includes
*=========================================================================*/
/*===========================================================================
*
* Begin Class CObLvlcView Definition
*
*=========================================================================*/
class CObLvlcView : public CObRecordDialog {
DECLARE_DYNCREATE(CObLvlcView)
DECLARE_OBRECUIFIELDS()
/*---------- Begin Protected Class Members ----------------------------*/
protected:
CObLvlcRecord m_CopyRecord;
/*---------- Begin Protected Class Methods ----------------------------*/
protected:
/* Protected constructor used by dynamic creation */
CObLvlcView();
virtual ~CObLvlcView();
/* Helper update methods */
void FillItemList (void);
void SaveSubrecords (void);
int AddItemList (CObLvloSubrecord* pItem);
void UpdateItem (const int ListIndex, CObLvloSubrecord* pSubrecord);
/* Drag/drop helpers */
int OnDropCustomData (obrldroprecords_t& DropItems);
int OnDropRecords (obrldroprecords_t& DropItems);
/*---------- Begin Public Class Methods -------------------------------*/
public:
/* Get and set data */
virtual void GetControlData (void);
virtual void SetControlData (void);
/* Listener events */
virtual int OnListenCleanRecord (CObListenEvent* pEvent);
virtual int OnListenUpdateRecord (CObListenEvent* pEvent);
virtual int GetListenEvents (void) { return (OB_EVENT_CLEANRECORD | OB_EVENT_UPDATERECORD); }
//{{AFX_DATA(CObLvlcView)
enum { IDD = IDD_LVLC_VIEW };
CEdit m_CreatureTemplate;
CEdit m_Script;
CButton m_CalculateEach;
CButton m_CalculateAll;
CEdit m_ChanceNone;
CEdit m_EditorID;
CEdit m_FormID;
CObRecordListCtrl m_ItemList;
//}}AFX_DATA
/* ClassWizard generated virtual function overrides */
//{{AFX_VIRTUAL(CObLvlcView)
protected:
virtual void DoDataExchange(CDataExchange* pDX);
//}}AFX_VIRTUAL
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
/* Generated message map functions */
//{{AFX_MSG(CObLvlcView)
virtual void OnInitialUpdate (void);
afx_msg void OnContextMenu (CWnd* pWnd, CPoint Point);
afx_msg void OnLvllistEdit();
afx_msg void OnUpdateLvllistEdit(CCmdUI* pCmdUI);
afx_msg void OnLvllistAdd();
afx_msg void OnLvllistDelete();
afx_msg void OnUpdateLvllistDelete(CCmdUI* pCmdUI);
afx_msg void OnMinusCount();
afx_msg void OnAddCount();
afx_msg void OnMinusLevel();
afx_msg void OnAddLevel();
afx_msg LRESULT OnEditRecordMsg (WPARAM wParam, LPARAM lParam);
afx_msg LRESULT OnEditBaseRecordMsg (WPARAM wParam, LPARAM lParam);
afx_msg void OnLvlEditrecord();
afx_msg void OnDropItemList (NMHDR* pNotifyStruct, LRESULT* pResult);
afx_msg void OnEditCreaturetemplate();
afx_msg void OnSelectcreatureButton();
afx_msg void OnDropCreatureTemplate (NMHDR* pNotifyStruct, LRESULT* pResult);
afx_msg void OnKeydownItemList (NMHDR* pHdr, LRESULT* lResult);
//}}AFX_MSG
DECLARE_MESSAGE_MAP();
};
/*===========================================================================
* End of Class CObLvlcView Definition
*=========================================================================*/
//{{AFX_INSERT_LOCATION}}
//}}AFX_INSERT_LOCATION
#endif
/*===========================================================================
* End of File Oblvlcview.H
*=========================================================================*/