doom3-gpl
Doom 3 GPL source release
|
View that displays material and stage properties and allows the user to edit the properties. More...
#include <MaterialPropTreeView.h>
Public Member Functions | |
virtual | ~MaterialPropTreeView () |
Destructor for MaterialPropTreeView. More... | |
void | SetPropertyListType (int listType, int stageNum=-1) |
Initializes the list of properties based on the type (material, stage, special stage). More... | |
void | LoadSettings () |
Loads the property view settings from the registry. More... | |
void | SaveSettings () |
Saves the property view settings to the registry. More... | |
virtual void | MV_OnMaterialChange (MaterialDoc *pMaterial) |
Called when the material has changed but not applied. More... | |
Public Member Functions inherited from CPropTreeView | |
virtual void | OnDraw (CDC *pDC) |
CPropTree & | GetPropertyTreeCtrl () |
virtual BOOL | Create (LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT &rect, CWnd *pParentWnd, UINT nID, CCreateContext *pContext=NULL) |
afx_msg int | OnCreate (LPCREATESTRUCT lpCreateStruct) |
afx_msg void | OnSize (UINT nType, int cx, int cy) |
afx_msg void | OnPaint () |
Public Member Functions inherited from MaterialView | |
MaterialView (void) | |
Constructor. More... | |
virtual | ~MaterialView (void) |
Destructor. More... | |
virtual void | SetMaterialDocManager (MaterialDocManager *docManager) |
Sets the material document manager for this view instance. More... | |
virtual void | MV_OnMaterialSelectionChange (MaterialDoc *pMaterial) |
Called when the selected material has changed. More... | |
virtual void | MV_OnMaterialApply (MaterialDoc *pMaterial) |
Called when the material changes have been applied. More... | |
virtual void | MV_OnMaterialSaved (MaterialDoc *pMaterial) |
Called when the material changes have been saved. More... | |
virtual void | MV_OnMaterialSaveFile (const char *filename) |
Called when a material file has been saved. More... | |
virtual void | MV_OnMaterialAdd (MaterialDoc *pMaterial) |
Called when a material is added. More... | |
virtual void | MV_OnMaterialDelete (MaterialDoc *pMaterial) |
Called when a material is deleted. More... | |
virtual void | MV_OnMaterialStageAdd (MaterialDoc *pMaterial, int stageNum) |
Called when a stage is added. More... | |
virtual void | MV_OnMaterialStageDelete (MaterialDoc *pMaterial, int stageNum) |
Called when a stage is deleted. More... | |
virtual void | MV_OnMaterialStageMove (MaterialDoc *pMaterial, int from, int to) |
Called when a stage is moved. More... | |
virtual void | MV_OnMaterialAttributeChanged (MaterialDoc *pMaterial, int stage, const char *attribName) |
Called when an attribute is changed. More... | |
virtual void | MV_OnMaterialNameChanged (MaterialDoc *pMaterial, const char *oldName) |
Called when the material name has changed. More... | |
virtual void | MV_OnFileReload (const char *filename) |
Called when a file has been reloaded. More... | |
Protected Member Functions | |
MaterialPropTreeView () | |
Constructor for MaterialPropTreeView. More... | |
afx_msg void | OnPropertyChangeNotification (NMHDR *nmhdr, LRESULT *lresult) |
Updated the material when an attribute has been changed. More... | |
afx_msg void | OnPropertyItemExpanding (NMHDR *nmhdr, LRESULT *lresult) |
Changes the property setting of a group when is expanding. More... | |
MaterialDef * | FindDefForTreeID (UINT treeID) |
Returns the MeterialDef for a given property tree item. More... | |
void | RefreshProperties () |
Initializes the property tree with the data from the currently selected material. More... | |
Protected Member Functions inherited from CPropTreeView | |
CPropTreeView () | |
virtual | ~CPropTreeView () |
Protected Attributes | |
MaterialDoc * | currentMaterial |
int | currentListType |
int | currentStage |
MaterialDefList * | currentPropDefs |
rvRegistryOptions | registry |
bool | internalChange |
Protected Attributes inherited from CPropTreeView | |
CPropTree | m_Tree |
Protected Attributes inherited from MaterialView | |
MaterialDocManager * | materialDocManager |
View that displays material and stage properties and allows the user to edit the properties.
Definition at line 40 of file MaterialPropTreeView.h.
|
virtual |
Destructor for MaterialPropTreeView.
Definition at line 55 of file MaterialPropTreeView.cpp.
|
protected |
Constructor for MaterialPropTreeView.
Definition at line 47 of file MaterialPropTreeView.cpp.
|
protected |
Returns the MeterialDef for a given property tree item.
treeID | The id of the tree item in question. |
Definition at line 200 of file MaterialPropTreeView.cpp.
void MaterialPropTreeView::LoadSettings | ( | ) |
Loads the property view settings from the registry.
Definition at line 121 of file MaterialPropTreeView.cpp.
|
virtual |
Called when the material has changed but not applied.
pMaterial | The selected material. |
Reimplemented from MaterialView.
Definition at line 136 of file MaterialPropTreeView.cpp.
|
protected |
Updated the material when an attribute has been changed.
Definition at line 149 of file MaterialPropTreeView.cpp.
|
protected |
Changes the property setting of a group when is expanding.
Definition at line 184 of file MaterialPropTreeView.cpp.
|
protected |
Initializes the property tree with the data from the currently selected material.
Definition at line 214 of file MaterialPropTreeView.cpp.
void MaterialPropTreeView::SaveSettings | ( | ) |
Saves the property view settings to the registry.
Definition at line 128 of file MaterialPropTreeView.cpp.
Initializes the list of properties based on the type (material, stage, special stage).
listType | The type of list (material, stage, special stage) |
stageNum | The stage from which to get the attributes. |
Definition at line 63 of file MaterialPropTreeView.cpp.
|
protected |
Definition at line 67 of file MaterialPropTreeView.h.
|
protected |
Definition at line 66 of file MaterialPropTreeView.h.
|
protected |
Definition at line 69 of file MaterialPropTreeView.h.
|
protected |
Definition at line 68 of file MaterialPropTreeView.h.
|
protected |
Definition at line 71 of file MaterialPropTreeView.h.
|
protected |
Definition at line 70 of file MaterialPropTreeView.h.