1 // NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
2 // Copyright (C) 2010 Winch Gate Property Limited
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Affero General Public License as
6 // published by the Free Software Foundation, either version 3 of the
7 // License, or (at your option) any later version.
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Affero General Public License for more details.
14 // You should have received a copy of the GNU Affero General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
17 #if !defined(AFX_VEGETABLEAPPERANCEPAGE_H__BCF1C014_7271_4F83_9E62_F45C434B64F7__INCLUDED_)
18 #define AFX_VEGETABLEAPPERANCEPAGE_H__BCF1C014_7271_4F83_9E62_F45C434B64F7__INCLUDED_
22 #endif // _MSC_VER > 1000
23 // VegetableApperancePage.h : header file
27 #include "vegetable_list_color.h"
36 class CVegetableNoiseValueDlg
;
40 /////////////////////////////////////////////////////////////////////////////
41 // CVegetableApperancePage dialog
43 class CVegetableApperancePage
: public CPropertyPage
45 DECLARE_DYNCREATE(CVegetableApperancePage
)
49 CVegetableApperancePage();
50 ~CVegetableApperancePage();
51 void initVegetableDlg(CVegetableDlg
*vegetableDlg
) {_VegetableDlg
= vegetableDlg
;}
54 //{{AFX_DATA(CVegetableApperancePage)
55 enum { IDD
= IDD_VEGETABLE_APPEARANCE_DLG
};
56 CVegetableListColor ColorList
;
61 // ClassWizard generate virtual function overrides
62 //{{AFX_VIRTUAL(CVegetableApperancePage)
64 virtual void DoDataExchange(CDataExchange
* pDX
); // DDX/DDV support
69 /** set the vegetble to edit. NULL will disable all the controls.
70 * Called by CVegetableDlg.
72 void setVegetableToEdit(NL3D::CVegetable
*vegetable
);
77 // Generated message map functions
78 //{{AFX_MSG(CVegetableApperancePage)
79 virtual BOOL
OnInitDialog();
80 afx_msg
void OnButtonVegetableAdd();
81 afx_msg
void OnButtonVegetableGetother();
82 afx_msg
void OnButtonVegetableInsert();
83 afx_msg
void OnButtonVegetableRemove();
84 afx_msg
void OnDblclkListVegetableColor();
88 // The "father" VegetableDlg.
89 CVegetableDlg
*_VegetableDlg
;
92 // The NoiseValue edition.
93 CVegetableNoiseValueDlg
*_BendPhaseDlg
;
94 CVegetableNoiseValueDlg
*_BendFactorDlg
;
95 CVegetableNoiseValueDlg
*_ColorDlg
;
98 // The vegetable to edit.
99 NL3D::CVegetable
*_Vegetable
;
102 void writeToVegetableColor(NL3D::CVegetable
*vegetable
);
103 void readFromVegetableColor(NL3D::CVegetable
*vegetable
);
107 //{{AFX_INSERT_LOCATION}}
108 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
110 #endif // !defined(AFX_VEGETABLEAPPERANCEPAGE_H__BCF1C014_7271_4F83_9E62_F45C434B64F7__INCLUDED_)