doom3-gpl
Doom 3 GPL source release
|
View that contains the material edit controls. More...
#include <MaterialEditView.h>
Public Types | |
enum | { IDD = IDD_MATERIALEDIT_FORM } |
Public Member Functions | |
virtual | ~MaterialEditView () |
Destructor for MaterialEditView. More... | |
virtual void | MV_OnMaterialSelectionChange (MaterialDoc *pMaterial) |
Called when the selected material has changed. More... | |
virtual void | MV_OnMaterialNameChanged (MaterialDoc *pMaterial, const char *oldName) |
Called when the material name has changed. More... | |
virtual idStr | GetSourceText () |
Returns the current source text in the source edit control. More... | |
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_OnMaterialChange (MaterialDoc *pMaterial) |
Called when the material has changed but not applied. 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_OnFileReload (const char *filename) |
Called when a file has been reloaded. More... | |
Public Attributes | |
CEdit | m_nameEdit |
CSplitterWnd | m_editSplitter |
StageView * | m_stageView |
MaterialPropTreeView * | m_materialPropertyView |
CTabCtrl | m_tabs |
CSyntaxRichEditCtrl | m_textView |
Protected Member Functions | |
MaterialEditView () | |
Constructor for MaterialEditView. More... | |
void | GetMaterialSource () |
Gets the source of the current document and populates the source edit control. More... | |
void | ApplyMaterialSource () |
Takes the source out of the edit control and applies it to the material. More... | |
virtual void | DoDataExchange (CDataExchange *pDX) |
Transfers data to and from the controls in the console. More... | |
virtual void | OnInitialUpdate () |
Called by the MFC framework when the view is being created. More... | |
afx_msg int | OnCreate (LPCREATESTRUCT lpCreateStruct) |
Called by the MFC framework when the view is being created. More... | |
afx_msg void | OnSize (UINT nType, int cx, int cy) |
Windows message called when the window is resized. More... | |
afx_msg void | OnTcnSelChange (NMHDR *pNMHDR, LRESULT *pResult) |
Called when the user changes the properties/text tab selection. More... | |
afx_msg void | OnEnChangeEdit (NMHDR *pNMHDR, LRESULT *pResult) |
Called when the user changes text in the edit control. More... | |
Protected Attributes | |
bool | initHack |
bool | sourceInit |
bool | sourceChanged |
idStr | currentMaterialName |
Protected Attributes inherited from MaterialView | |
MaterialDocManager * | materialDocManager |
Additional Inherited Members | |
Private Member Functions inherited from SourceModifyOwner | |
SourceModifyOwner () | |
virtual | ~SourceModifyOwner () |
View that contains the material edit controls.
These controls include the stage view, the properties view and the source view.
Definition at line 40 of file MaterialEditView.h.
anonymous enum |
Enumerator | |
---|---|
IDD |
Definition at line 43 of file MaterialEditView.h.
|
virtual |
Destructor for MaterialEditView.
Definition at line 65 of file MaterialEditView.cpp.
|
protected |
Constructor for MaterialEditView.
Definition at line 54 of file MaterialEditView.cpp.
|
protected |
Takes the source out of the edit control and applies it to the material.
Definition at line 155 of file MaterialEditView.cpp.
|
protectedvirtual |
Transfers data to and from the controls in the console.
Definition at line 173 of file MaterialEditView.cpp.
|
protected |
Gets the source of the current document and populates the source edit control.
Definition at line 125 of file MaterialEditView.cpp.
|
virtual |
Returns the current source text in the source edit control.
Reimplemented from SourceModifyOwner.
Definition at line 107 of file MaterialEditView.cpp.
|
virtual |
Called when the material name has changed.
pMaterial | The material that was deleted. |
oldName | The old name of the material. |
Reimplemented from MaterialView.
Definition at line 98 of file MaterialEditView.cpp.
|
virtual |
Called when the selected material has changed.
pMaterial | The newly selected material. |
Reimplemented from MaterialView.
Definition at line 72 of file MaterialEditView.cpp.
|
protected |
Called by the MFC framework when the view is being created.
Definition at line 201 of file MaterialEditView.cpp.
|
protected |
Called when the user changes text in the edit control.
Definition at line 293 of file MaterialEditView.cpp.
|
protectedvirtual |
Called by the MFC framework when the view is being created.
Definition at line 183 of file MaterialEditView.cpp.
Windows message called when the window is resized.
Definition at line 237 of file MaterialEditView.cpp.
|
protected |
Called when the user changes the properties/text tab selection.
This methods shows and hides the appropriate windows.
Definition at line 267 of file MaterialEditView.cpp.
|
protected |
Definition at line 86 of file MaterialEditView.h.
|
protected |
Definition at line 82 of file MaterialEditView.h.
CSplitterWnd MaterialEditView::m_editSplitter |
Definition at line 46 of file MaterialEditView.h.
MaterialPropTreeView* MaterialEditView::m_materialPropertyView |
Definition at line 49 of file MaterialEditView.h.
CEdit MaterialEditView::m_nameEdit |
Definition at line 45 of file MaterialEditView.h.
StageView* MaterialEditView::m_stageView |
Definition at line 48 of file MaterialEditView.h.
CTabCtrl MaterialEditView::m_tabs |
Definition at line 50 of file MaterialEditView.h.
CSyntaxRichEditCtrl MaterialEditView::m_textView |
Definition at line 51 of file MaterialEditView.h.
|
protected |
Definition at line 85 of file MaterialEditView.h.
|
protected |
Definition at line 83 of file MaterialEditView.h.