-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathObContView.h
136 lines (111 loc) · 4.35 KB
/
ObContView.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
/*===========================================================================
*
* File: ObContView.H
* Author: Dave Humphrey ([email protected])
* Created On: October 12, 2006
*
* Description
*
*=========================================================================*/
#ifndef __OBCONTVIEW_H
#define __OBCONTVIEW_H
/*===========================================================================
*
* Begin Required Includes
*
*=========================================================================*/
#include "dialogs/obrecorddialog.h"
#include "windows/obrecordlistctrl.h"
/*===========================================================================
* End of Required Includes
*=========================================================================*/
/*===========================================================================
*
* Begin Class CObContView Definition
*
*=========================================================================*/
class CObContView : public CObRecordDialog {
DECLARE_DYNCREATE(CObContView)
DECLARE_OBRECUIFIELDS()
/*---------- Begin Protected Class Members ----------------------------*/
protected:
CObContRecord m_CopyRecord;
/*---------- Begin Protected Class Methods ----------------------------*/
protected:
/* Protected constructor used by dynamic creation */
CObContView();
virtual ~CObContView();
/* Helper update methods */
void FillItemList (void);
void SaveSubrecords (void);
int AddItemList (CObCntoSubrecord* pItem);
void UpdateItem (const int ListIndex, CObCntoSubrecord* 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(CObContView)
enum { IDD = IDD_CONT_VIEW };
CButton m_Respawns;
CButton m_QuestItem;
CEdit m_Weight;
CEdit m_FullName;
CEdit m_Script;
CEdit m_OpenSound;
CEdit m_ClosingSound;
CEdit m_Model;
CEdit m_EditorID;
CEdit m_FormID;
CObRecordListCtrl m_ItemList;
//}}AFX_DATA
/* ClassWizard generated virtual function overrides */
//{{AFX_VIRTUAL(CObContView)
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(CObContView)
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 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 OnKeydownItemList (NMHDR* pHdr, LRESULT* lResult);
afx_msg void OnSelectClosesoundButton();
afx_msg void OnEditCloseSound();
afx_msg void OnDropCloseSound (NMHDR* pNotifyStruct, LRESULT* pResult);
afx_msg void OnSelectOpensoundButton();
afx_msg void OnEditOpenSound();
afx_msg void OnDropOpenSound (NMHDR* pNotifyStruct, LRESULT* pResult);
//}}AFX_MSG
DECLARE_MESSAGE_MAP();
};
/*===========================================================================
* End of Class CObContView Definition
*=========================================================================*/
//{{AFX_INSERT_LOCATION}}
//}}AFX_INSERT_LOCATION
#endif
/*===========================================================================
* End of File ObContView.H
*=========================================================================*/