doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
MaterialPropTreeView Class Reference

View that displays material and stage properties and allows the user to edit the properties. More...

#include <MaterialPropTreeView.h>

Inheritance diagram for MaterialPropTreeView:
CPropTreeView MaterialView

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)
 
CPropTreeGetPropertyTreeCtrl ()
 
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...
 
MaterialDefFindDefForTreeID (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

MaterialDoccurrentMaterial
 
int currentListType
 
int currentStage
 
MaterialDefListcurrentPropDefs
 
rvRegistryOptions registry
 
bool internalChange
 
- Protected Attributes inherited from CPropTreeView
CPropTree m_Tree
 
- Protected Attributes inherited from MaterialView
MaterialDocManagermaterialDocManager
 

Detailed Description

View that displays material and stage properties and allows the user to edit the properties.

Definition at line 40 of file MaterialPropTreeView.h.

Constructor & Destructor Documentation

MaterialPropTreeView::~MaterialPropTreeView ( )
virtual

Destructor for MaterialPropTreeView.

Definition at line 55 of file MaterialPropTreeView.cpp.

MaterialPropTreeView::MaterialPropTreeView ( )
protected

Constructor for MaterialPropTreeView.

Definition at line 47 of file MaterialPropTreeView.cpp.

Member Function Documentation

MaterialDef * MaterialPropTreeView::FindDefForTreeID ( UINT  treeID)
protected

Returns the MeterialDef for a given property tree item.

Parameters
treeIDThe 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.

void MaterialPropTreeView::MV_OnMaterialChange ( MaterialDoc pMaterial)
virtual

Called when the material has changed but not applied.

Parameters
pMaterialThe selected material.

Reimplemented from MaterialView.

Definition at line 136 of file MaterialPropTreeView.cpp.

void MaterialPropTreeView::OnPropertyChangeNotification ( NMHDR *  nmhdr,
LRESULT *  lresult 
)
protected

Updated the material when an attribute has been changed.

Definition at line 149 of file MaterialPropTreeView.cpp.

void MaterialPropTreeView::OnPropertyItemExpanding ( NMHDR *  nmhdr,
LRESULT *  lresult 
)
protected

Changes the property setting of a group when is expanding.

Definition at line 184 of file MaterialPropTreeView.cpp.

void MaterialPropTreeView::RefreshProperties ( )
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.

void MaterialPropTreeView::SetPropertyListType ( int  listType,
int  stageNum = -1 
)

Initializes the list of properties based on the type (material, stage, special stage).

Parameters
listTypeThe type of list (material, stage, special stage)
stageNumThe stage from which to get the attributes.

Definition at line 63 of file MaterialPropTreeView.cpp.

Member Data Documentation

int MaterialPropTreeView::currentListType
protected

Definition at line 67 of file MaterialPropTreeView.h.

MaterialDoc* MaterialPropTreeView::currentMaterial
protected

Definition at line 66 of file MaterialPropTreeView.h.

MaterialDefList* MaterialPropTreeView::currentPropDefs
protected

Definition at line 69 of file MaterialPropTreeView.h.

int MaterialPropTreeView::currentStage
protected

Definition at line 68 of file MaterialPropTreeView.h.

bool MaterialPropTreeView::internalChange
protected

Definition at line 71 of file MaterialPropTreeView.h.

rvRegistryOptions MaterialPropTreeView::registry
protected

Definition at line 70 of file MaterialPropTreeView.h.


The documentation for this class was generated from the following files: