2 ===========================================================================
5 Copyright (C) 1999-2011 id Software LLC, a ZeniMax Media company.
7 This file is part of the Doom 3 GPL Source Code (?Doom 3 Source Code?).
9 Doom 3 Source Code is free software: you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation, either version 3 of the License, or
12 (at your option) any later version.
14 Doom 3 Source Code is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
19 You should have received a copy of the GNU General Public License
20 along with Doom 3 Source Code. If not, see <http://www.gnu.org/licenses/>.
22 In addition, the Doom 3 Source Code is also subject to certain additional terms. You should have received a copy of these additional terms immediately following the terms and conditions of the GNU General Public License which accompanied the Doom 3 Source Code. If not, please request a copy in writing from id Software at the address below.
24 If you have questions concerning this license or the applicable additional terms, you may contact in writing id Software LLC, c/o ZeniMax Media Inc., Suite 120, Rockville, Maryland 20850 USA.
26 ===========================================================================
28 #if !defined(AFX_PROPERTYLIST_H__74205380_1B56_11D4_BC48_00105AA2186F__INCLUDED_)
29 #define AFX_PROPERTYLIST_H__74205380_1B56_11D4_BC48_00105AA2186F__INCLUDED_
33 #endif // _MSC_VER > 1000
34 // PropertyList.h : header file
37 #define PIT_COMBO 0 //PIT = property item type
46 #define PIT_MATERIAL 9
49 #define IDC_PROPCMBBOX 712
50 #define IDC_PROPEDITBOX 713
51 #define IDC_PROPBTNCTRL 714
54 /////////////////////////////////////////////////////////////////////////////
67 CPropertyItem(CString propName, CString curValue,
68 int nItemType, CString cmbItems)
70 m_propName = propName;
71 m_curValue = curValue;
72 m_nItemType = nItemType;
73 m_cmbItems = cmbItems;
81 /////////////////////////////////////////////////////////////////////////////
82 // CPropertyList window
84 class CPropertyList : public CListBox
95 int AddItem(CString txt);
96 int AddPropItem(CPropertyItem* pItem);
101 void SetUpdateInspectors(bool b) {
102 updateInspectors = b;
104 void SetDivider( int div ) {
107 afx_msg void OnKillfocusEditBox();
108 afx_msg void OnChangeEditBox();
111 // ClassWizard generated virtual function overrides
112 //{{AFX_VIRTUAL(CPropertyList)
114 virtual void MeasureItem(LPMEASUREITEMSTRUCT lpMeasureItemStruct);
115 virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
116 afx_msg void OnSelchange();
118 virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
119 virtual void PreSubclassWindow();
124 virtual ~CPropertyList();
126 // Generated message map functions
128 //{{AFX_MSG(CPropertyList)
129 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
130 afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
131 afx_msg void OnKillFocus(CWnd* pNewWnd);
132 afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
133 afx_msg void OnMouseMove(UINT nFlags, CPoint point);
134 afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
137 afx_msg void OnKillfocusCmbBox();
138 afx_msg void OnSelchangeCmbBox();
139 afx_msg void OnButton();
141 DECLARE_MESSAGE_MAP()
143 void InvertLine(CDC* pDC,CPoint ptFrom,CPoint ptTo);
144 void DisplayButton(CRect region);
151 int m_curSel,m_prevSel;
159 HCURSOR m_hCursorArrow;
160 HCURSOR m_hCursorSize;
161 CPropertyItem *measureItem;
162 bool updateInspectors;
165 /////////////////////////////////////////////////////////////////////////////
167 //{{AFX_INSERT_LOCATION}}
168 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
170 #endif // !defined(AFX_PROPERTYLIST_H__74205380_1B56_11D4_BC48_00105AA2186F__INCLUDED_)