DAZ Script | |
---|---|
FolderType | { NATIVE_TYPE, POSER_TYPE, IMPORT_TYPE } |
DAZ Script | |
---|---|
Boolean | addSubFolder ( String folderName ) |
Boolean | canMoveFile ( DzContentFile file ) |
Boolean | copyFile ( DzContentFile file ) |
Boolean | deleteFolder () |
DzContentFile | getFirstFile () |
DzContentFolder | getFirstFolder () |
DzContentFile | getFirstHiddenFile () |
DzContentFolder | getFirstHiddenFolder () |
DzContentFolder | getNext () |
DzContentFolder | getParent () |
Boolean | hasSubFolders () |
Boolean | isModifiable () |
void | loadFiles () |
void | loadFolders () |
Boolean | moveFile ( DzContentFile file ) |
Boolean | refresh ( Boolean reloadIcons=false ) |
Boolean | rename ( String newName ) |
void | unloadFiles () |
void | unloadFolders () |
void | addedFolder ( DzContentFolder newFolder ) |
void | fileListChanged () |
void | folderListChanged () |
void | removedFolder ( DzContentFolder folder ) |
Represents a folder in the content library that holds DzContentFile objects as well as other DzContentFolder objects.
See Also:
The possible types of content folders.
Holds whether or not a sub folder can be added in this folder. (Read Only)
Holds whether or not this folder can be deleted. (Read Only)
Holds whether or not this folder can be renamed. (Read Only)
Holds whether or not the files of this folder are loaded. (Read Only)
Holds the name of the folder on disk. (Read Only)
Holds whether or not the subfolders of this folder are loaded. (Read Only)
Return Value:
true
if the child folders of this folder are already loaded, otherwise false
.Holds the type of this folder. (Read Only)
Holds the full path of the folder on disk. (Read Only)
Holds the icon of the folder. (Read Only)
Boolean : isBuiltInContentFolder
Holds whether or not this folder is a built-in content folder. (Read Only)
Holds the label of the folder as it is displayed to the user. (Read Only)
Boolean : addSubFolder( String folderName )
Adds a new subfolder with the given name to this folder.
Parameter(s):
Return Value:
true
if the new subfolder was created successfully, otherwise false
.Boolean : canMoveFile( DzContentFile file )
Parameter(s):
Return Value:
true
if the file is a type that can be moved or copied to this folder, otherwise false
.Boolean : copyFile( DzContentFile file )
Copies the given content file to this folder.
Parameter(s):
Return Value:
true
if the file was copied successfully, otherwise false
.Boolean : deleteFolder()
Removes this content folder. The default implementation of this function deletes all files and subfolders in this directory from the disk, so use with care!
Return Value:
true
if the file was removed successfully, otherwise false
.DzContentFile : getFirstFile()
Return Value:
DzContentFolder : getFirstFolder()
Return Value:
DzContentFile : getFirstHiddenFile()
Return Value:
DzContentFolder : getFirstHiddenFolder()
Return Value:
DzContentFolder : getNext()
Return Value:
DzContentFolder : getParent()
Return Value:
Boolean : hasSubFolders()
Return Value:
true
if this folder has subfolders, otherwise false
.Boolean : isModifiable()
Return Value:
true
if the folder can be modified, otherwise false
.void : loadFiles()
Loads file objects for the files that reside in this folder.
Since:
void : loadFolders()
Loads folder objects for the folders that reside in this folder.
Since:
Boolean : moveFile( DzContentFile file )
Moves the given content file to this folder.
Parameter(s):
Return Value:
true
if the file was moved successfully, otherwise false
.Boolean : refresh( Boolean reloadIcons=false )
Checks for changes in sub folders and files (if loaded).
Parameter(s):
true
, the icons will be reloaded from disk.Return Value:
true
if a change in subfolders was found and the tree needs to be reloaded, otherwise false
.Boolean : rename( String newName )
Rename the folder to the given name.
Parameter(s):
Return Value:
true
if the folder was successfully renamed, otherwise false
.void : unloadFiles()
Removes file objects of this folder.
Since:
void : unloadFolders()
Removes child folder objects of this folder object.
Since:
void : addedFolder( DzContentFolder newFolder )
Signature:“addedFolder(DzContentFolder*)”
Emitted when a new folder is added.
Parameter(s):
void : fileListChanged()
Signature:“fileListChanged()”
Emitted when the file list has changed.
void : folderListChanged()
Signature:“folderListChanged()”
Emitted when a folder is added or removed.
void : removedFolder( DzContentFolder folder )
Signature:“removedFolder(DzContentFolder*)”
Emitted when a folder is removed.
Parameter(s):