28 #include "../../idlib/precompiled.h"
GLsizei const GLfloat * value
int GetInt(const char *key, const char *defaultString="0") const
MaterialDocManager * manager
Base class for Undo/Redo operations for attribute changes.
virtual void Undo()
Performs an undo operation of a deleted material folder.
virtual void Redo()
Performs a redo operation of a renamed material folder.
void DeleteMaterial(MaterialDoc *material, bool addUndo=true)
Deletes a material.
virtual void Redo()
Performs a redo operation of a string attribute change.
virtual void Redo()
Performs a redo operation of a renamed material.
RenameMaterialFolderModifier(MaterialDocManager *manager, const char *materialName, MaterialTreeView *view, HTREEITEM item, const char *oldName)
Constructor for RenameMaterialFolderModifier.
virtual void Redo()
Performs a redo operation of a moved stage.
Base class for modifications that can be made to a material that can be undone and redone...
virtual void Undo()
Performs an undo operation of a deleted material.
void MoveStage(int from, int to, bool addUndo=true)
Moves a stage from one location to another.
virtual void Undo()
Performs an undo operation of a string attribute change.
HTREEITEM AddFolder(const char *name, HTREEITEM parent)
Adds a new material folder.
idStrList affectedMaterials
virtual void Undo()
Performs an undo operation of a stage move.
StageInsertModifier(MaterialDocManager *manager, const char *materialName, int stageNum, int stageType, const char *stageName)
Constructor for StageInsertModifier.
virtual void Undo()
Performs an undo operation of a boolean attribute change.
StageDeleteModifier(MaterialDocManager *manager, const char *materialName, int stageNum, idDict stageData)
Constructor for StageDeleteModifier.
void RemoveStage(int stage, bool addUndo=true)
Removes a stage from the material.
void InsertStage(int stage, int stageType, const char *stageName, bool addUndo=true)
Inserts a new stage to the material at a specified location.
AddMaterialModifier(MaterialDocManager *manager, const char *materialName, const char *materialFile)
Constructor for AddMaterialModifier.
StageMoveModifier(MaterialDocManager *manager, const char *materialName, int from, int to)
Constructor for StageMoveModifier.
virtual void Redo()
Performs a redo operation of a moved material.
void SetAttribute(int stage, const char *attribName, const char *value, bool addUndo=true)
Sets an attribute string in the material or a stage.
DeleteMaterialFolderModifier(MaterialDocManager *manager, const char *materialName, MaterialTreeView *view, HTREEITEM parent, idStrList *affectedMaterials)
Constructor for DeleteMaterialFolderModifier.
Responsible for managing a single material that is being viewed and/or edited.
void DeleteFolder(HTREEITEM item, bool addUndo=true)
Deletes a given folder.
const char * GetString(const char *key, const char *defaultString="") const
AddMaterialFolderModifier(MaterialDocManager *manager, const char *materialName, MaterialTreeView *view, HTREEITEM item, HTREEITEM parent)
Constructor for AddMaterialFolderModifier.
DeleteMaterialModifier(MaterialDocManager *manager, const char *materialName)
Constructor for DeleteMaterialModifier.
virtual void Redo()
Performs a redo operation of an inserted stage.
AttributeMaterialModifierString(MaterialDocManager *manager, const char *materialName, int stage, const char *key, const char *value, const char *oldValue)
Constructor for AttributeMaterialModifierString.
void SetMaterialName(const char *materialName, bool addUndo=true)
Sets the material name.
RenameMaterialModifier(MaterialDocManager *manager, const char *materialName, const char *oldName)
Constructor for RenameMaterialModifier.
virtual void Redo()
Performs a redo operation of an added material.
virtual void Undo()
Performs an undo operation of a renamed material folder.
virtual void Undo()
Performs an undo operation of a moved material.
MaterialDoc * CreateMaterialDoc(const char *materialName)
Creates a MaterialDoc object for the specified material name.
virtual void Undo()
Performs an undo operation of an added material folder.
MoveMaterialModifier(MaterialDocManager *manager, const char *materialName, const char *materialFile, const char *copyMaterial)
Constructor for MoveMaterialModifier.
void SetAttributeBool(int stage, const char *attribName, bool value, bool addUndo=true)
Sets an attribute bool in the material or a stage.
virtual void Undo()
Performs an undo operation of a renamed material.
virtual void Undo()
Performs an undo operation of an inserted stage.
virtual void Undo()
Performs an undo operation of an added material.
A tree view of all the materials that have been defined.
virtual void Redo()
Performs a redo operation of a deleted stage.
void SetData(int stage, idDict *data)
Sets the entire dictionary for a material or stage.
virtual void Redo()
Performs a redo operation of a boolean attribute change.
virtual void Redo()
Performs a redo operation of a deleted material.
Responsible for managing the materials that are being viewed and/or edited.
AttributeMaterialModifierBool(MaterialDocManager *manager, const char *materialName, int stage, const char *key, bool value, bool oldValue)
Constructor for AttributeMaterialModifierBool.
virtual void Undo()
Performs an undo operation of a deleted stage.
AttributeMaterialModifier(MaterialDocManager *manager, const char *materialName, int stage, const char *key)
Constructor for AttributeMaterialModifier.
virtual void Redo()
Performs a redo operation of an added material folder.
MaterialModifier(MaterialDocManager *manager, const char *materialName)
Constructor for MaterialModifier.
virtual void Redo()
Performs a redo operation of a deleted material folder.
void RenameFolder(HTREEITEM item, const char *name)
Renames a material folder.
void RedoAddMaterial(const char *name, bool clearData=true)
Used to redo an add material and undo a delete material.