40 #include "../common/PropTree/PropTreeView.h"
65 afx_msg
int OnCreate(LPCREATESTRUCT lpCreateStruct);
67 afx_msg
void OnSize(
UINT nType,
int cx,
int cy);
109 DECLARE_MESSAGE_MAP()
CSplitterWnd m_previewSplitter
CSplitterWnd * m_materialEditSplitter
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct)
Called by the framework while the window is being created.
View that displays material and stage properties and allows the user to edit the properties.
afx_msg void OnApplyAllUpdate(CCmdUI *pCmdUI)
Enables the apply all menu item if there are any materials that need to be applied.
afx_msg void OnEditCopyUpdate(CCmdUI *pCmdUI)
Enables the copy menu item if a material or stage is selected.
void CloseFind()
Called by the find dialog when it is closing.
afx_msg void OnReloadImages()
Executes the reloadImages command to reload images that have been changed outside of the editor...
CStatusBar m_wndStatusBar
MaterialPropTreeView * m_materialPropertyView
afx_msg void OnEditPasteUpdate(CCmdUI *pCmdUI)
Enables a paste operation when a material or stage has been copied.
CONST PIXELFORMATDESCRIPTOR UINT
afx_msg void OnViewIncludeFile()
Toggles between including the file into the material list and not.
afx_msg void OnFileSaveAll()
Saves all modified materials.
afx_msg void OnEditDelete()
Performs a delete operation on the selected material or stage.
virtual BOOL PreCreateWindow(CREATESTRUCT &cs)
Sets a few window styles for the main window during the creation process.
afx_msg void OnEditDeleteUpdate(CCmdUI *pCmdUI)
Enables a delete operation when a material or stage is selected.
afx_msg void OnFileSaveAllUpdate(CCmdUI *pCmdUI)
Enables the Save All menu item if there are any materials that have been modified.
void PrintConsoleMessage(const char *msg)
Called to add console text to the console view.
afx_msg void OnSize(UINT nType, int cx, int cy)
Called by the MFC framework when the window size is changed.
afx_msg void OnEditFindNext()
Performs a search with the previously selected search parameters.
ConsoleView * m_consoleView
Wrapper class that is responsible for reading and writing Material Editor settings to the registry...
virtual ~MEMainFrame()
Destructor for MEMainFrame.
MaterialPreviewView * m_materialPreviewView
afx_msg void OnFileSaveMaterialUpdate(CCmdUI *pCmdUI)
Enables the save material menu item if a material is selected and has been modified.
afx_msg void OnApplyFileUpdate(CCmdUI *pCmdUI)
Enables the apply file menu item if the current file contains any materials that need to be applied...
afx_msg void OnFileSaveMaterial()
Saves the selected material.
Dialog that provides an input box and several checkboxes to define the parameters of a search...
Responsible for managing a single material that is being viewed and/or edited.
void FindNext(MaterialSearchData_t *search)
Begins a search based on the provided parameters or the previously used parameters.
View that contains the material edit controls.
View that handles managing the material stages.
afx_msg void OnReloadArbPrograms()
Executes the reloadARBPrograms console command for convinience.
afx_msg void OnEditCopy()
Performs a copy operation on the selected material or stage.
afx_msg void OnEditCutUpdate(CCmdUI *pCmdUI)
Enable the cut menu item if a material is selected.
MaterialTreeView * m_materialTreeView
afx_msg void OnEditRename()
Performs a rename operation on the selected material or stage.
afx_msg void OnEditRedoUpdate(CCmdUI *pCmdUI)
Enables the redo menu item if a redo is available.
virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext *pContext)
Called by the MFC framework to allow the window to create any client windows.
MaterialEditView * m_materialEditView
Structure used to store the user defined search parameters.
afx_msg void OnEditFind()
Opens the find dialog.
afx_msg void OnEditUndo()
Performs an undo operation.
afx_msg void OnFileSaveFileUpdate(CCmdUI *pCmdUI)
Enables the Save File menu item if the current file contains a modified material. ...
MEMainFrame()
Constructor for MEMainFrame.
afx_msg void OnTcnSelChange(NMHDR *pNMHDR, LRESULT *pResult)
Called when the user changes the editor/console tab selection.
A tree view of all the materials that have been defined.
afx_msg void OnApplyMaterial()
Apply the selected material.
MaterialPreviewPropView * m_previewPropertyView
afx_msg void OnEditCut()
Performs a cut operation on the selected material.
afx_msg void OnApplyAll()
Applies all modified materials.
View in the Material Editor that functions as a Doom III console.
CSplitterWnd m_editSplitter
afx_msg void OnEditPaste()
Performs a paste operation on the selected material or stage.
Responsible for managing the materials that are being viewed and/or edited.
afx_msg void OnEditUndoUpdate(CCmdUI *pCmdUI)
Enables the undo menu item if an undo is available.
afx_msg void OnFileSaveFile()
Saves the selected file.
afx_msg void OnDestroy()
Called by the MFC framework while the window is being destroyed.
afx_msg void OnFileExit()
Shuts down the material editor.
afx_msg void OnEditRedo()
Performs a redo operation.
virtual void MV_OnMaterialSelectionChange(MaterialDoc *pMaterial)
Called when the selected material has changed.
CSplitterWnd m_splitterWnd
MaterialSearchData_t searchData
afx_msg void OnApplyMaterialUpdate(CCmdUI *pCmdUI)
Enables the Apply Material menu item if the current material has an apply waiting.
afx_msg void OnEditRenameUpdate(CCmdUI *pCmdUI)
Enables a rename operation when a material, folder or stage is selected.
MaterialDocManager materialDocManager
afx_msg void OnApplyFile()
Applies all modified materials in the selected file.
The main window for the material editor.