Inheritance diagram for DzContentReplaceMgr:
Enums | |
enum | ContentReplaceMode { ALWAYS_REPLACE, ASK_TO_REPLACE, NEVER_REPLACE } |
Methods | |
void | clearReplaceData () |
void | doReplace () |
String | getNewContentPath () |
String | getNewContentType () |
ContentReplaceMode | getReplaceMode () |
void | initReplaceForContentLoad (String path, DzNode baseNode) |
void | removeReplaceNodes () |
void | setNewContentPath (String contentPath) |
void | setNewContentType (String contentType) |
void | setReplaceMode (ContentReplaceMode mode) |
void | updateReplaceNodes (DzNode baseNode) |
Signals | |
void | contentReplaceModeChanged (DzContentReplaceMgr::ContentReplaceMode mode) |
Signature: "contentReplaceModeChanged(DzContentReplaceMgr::ContentReplaceMode)" |
Replacing methods when loading content
void DzContentReplaceMgr::clearReplaceData | ( | ) |
Resets all replace data to default values, excluding replace mode.
void DzContentReplaceMgr::contentReplaceModeChanged | ( | DzContentReplaceMgr::ContentReplaceMode | mode | ) | [signal] |
Signature: "contentReplaceModeChanged(DzContentReplaceMgr::ContentReplaceMode)"
Emitted when the content replace mode has changed.
void DzContentReplaceMgr::doReplace | ( | ) |
Performs all the necessary steps to remove content marked for replacement.
QString DzContentReplaceMgr::getNewContentPath | ( | ) |
QString DzContentReplaceMgr::getNewContentType | ( | ) |
DzContentReplaceMgr::ContentReplaceMode DzContentReplaceMgr::getReplaceMode | ( | ) |
Performs all the necessary initialization for doing content replacement when the given file will be loaded, using items attached to baseNode as potential items to replace.
void DzContentReplaceMgr::removeReplaceNodes | ( | ) |
Removes all nodes in the replace list from the scene.
void DzContentReplaceMgr::setNewContentPath | ( | String | contentPath | ) |
contentPath | The path of the new content. |
void DzContentReplaceMgr::setNewContentType | ( | String | contentType | ) |
contentType | The type of the new content. |
void DzContentReplaceMgr::setReplaceMode | ( | ContentReplaceMode | mode | ) |
Sets the content replace mode.
void DzContentReplaceMgr::updateReplaceNodes | ( | DzNode | baseNode | ) |
Updates the replace list to contain all items that should be removed during content load. If the replace mode is ALWAYS_REPLACE, the list will contain all nodes attached (conformed, parented, etc.) to baseNode whose type matches the current "New Content Type" (as set through setNewContentType()). If the replace mode is ASK_TO_REPLACE, a dialog will allow the user to select what nodes should be replaced.