SDKBrowserContentNode Class Reference Library » Browser
#include <lib_browser.h>
Browser content node. A wrapper for calling SDKBrowserContentNodeInfo 函数。
公共成员函数 |
|
| Int32 | Rename ( Int32 mode, const String &name) |
| Int32 | NewFolder ( Int32 mode, const String &name, SDKBrowserContentNodeRef *folder=nullptr) |
| Int32 | MoveFrom ( SDKBrowserContentNodeRef new_child, Int32 模式, CopyMoveCallback *callback, void *private_data, BaseThread *thread=nullptr) |
| Int32 | CopyFrom ( SDKBrowserContentNodeRef new_child, Int32 mode, const String *rename, CopyMoveCallback *callback, void *private_data, BaseThread *thread=nullptr) |
| Int32 | 删除 ( Int32 模式, CopyMoveCallback *callback, void *private_data, BaseThread *thread=nullptr) |
Public Member Functions inherited from
SDKRTreeNode
|
|
| SDKRTreeNodeRef | GetUp (void) |
| SDKRTreeNodeRef | GetDown (void) |
| SDKRTreeNodeRef | GetNext (void) |
| SDKRTreeNodeRef | GetPred (void) |
| void | InsertUnder ( SDKRTreeNodeRef parent) |
| void | 移除 (void) |
Public Member Functions inherited from
SDKReferenceObject
|
|
| void | add_reference (void) |
| void | remove_reference (void) |
私有成员函数 |
|
| SDKBrowserContentNode () | |
| ~SDKBrowserContentNode () | |
Alloc/Free |
|
| static SDKBrowserContentNodeRef | Alloc ( SDKBrowserContentNodeInfo *info, SDKBrowserContentNodeRef parent=0) |
| static SDKBrowserContentNodeRef | AllocCategoryNode (const String &name, const String &local_path, const Filename &icon_file= Filename (), SDKBrowserContentNodeRef parent=0) |
| static void | FreeNodes ( Int32 plugin_id) |
SDKBrowserNodeTypeID |
|
| enum |
{
TypeUnknown , TypeCategory , TypeFileSystem , TypePreset , TypeCatalog , TypeMaterial } |
SDKBrowserNodeFlags |
|
| enum |
{
目录 , VirtualDirectory , VirtualFile , 链接 , ReadOnly , Flush , NoPreview , PrivateFlag0 , PrivateFlag1 , PrivateFlag2 , PrivateFlag3 , TargetNotFound , KeepResident } |
SDKBrowserIconFlags |
|
| enum |
{
IconNone , IconPreviewBitmap , IconFolderOpen } |
SDKBrowserItemType |
|
| enum |
{
BasicItemType , SpecificItemType , HierarchicalItemType } |
SDKBrowserPluginIdentification |
|
| enum | { LazyIdentification } |
Get |
|
| SDKBrowserContentNodeInfo * | GetNodeInfo ( Int32 plugin_id=0) const |
| Int32 | GetTypeID (void) const |
| SDKBrowserPluginRef | GetPlugin ( UInt32 flags=0) const |
| String | GetName (void) const |
| String | GetTypeName ( Int32 mode) const |
| Int32 | GetNodeURL ( SDKBrowserURL &url, UInt32 flags=0) const |
| SDKBrowserURL | GetNodeURL ( UInt32 flags=0, Int32 *idx=nullptr) const |
| Bool | GetFilename ( Filename &f, UInt32 flags=0) const |
| Bool | GetNodeTime ( UInt32 模式, LocalFileTime *out) const |
| LocalFileTime | GetNodeTime ( UInt32 mode= GE_FILETIME_MODIFIED ) const |
| UInt32 | GetNodeFlags ( Int64 *out_size=nullptr) const |
Checks |
|
| Bool | IsDirectory (void) const |
| Bool | IsLink (void) const |
| Bool | IsReadOnly (void) const |
| Bool | IsFlushed (void) const |
Icon |
|
| SDKBrowserIcon * | GetIcon ( Int32 state=0, Int32 pref_wh=0) const |
杂项 |
|
| Int32 | UpdateDirectory (void) |
| Int32 | PrivateCall ( Int32 plugin_id, Int32 node_type, Int32 selector, void *data) |
SDKBrowserOperation |
|
| enum |
{
CheckOperation , PrepareOperation , PerformOperation } |
SDKBrowserOperationResult |
|
| enum |
{
OperationSuccessful , RenameNotPermitted , MoveNotPermitted , CopyNotPermitted , DeleteNotPermitted , NewFolderNotPermitted , RenameError , MoveError , CopyError , DeleteError , UnsupportedNodeType , UserCancelled } |
预置 |
|
| BaseObject * | GetDefaultObject (void) |
| BaseDocument * | GetObjectPreset (void) |
| BaseMaterial * | GetMaterialPreset (void) |
| BaseTag * | GetTagPreset (void) |
| RenderData * | GetRenderDataPreset (void) |
| BaseShader * | GetShaderPreset (void) |
| BaseVideoPost * | GetVideoPostPreset (void) |
| GvNode * | GetXPressoPreset (void) |
| Int32 | GetPresetSourcePluginID (void) |
| anonymous enum |
| anonymous enum |
| anonymous enum |
| Enumerator | |
|---|---|
| IconNone |
No icon. |
| IconPreviewBitmap |
Preview bitmap. |
| IconFolderOpen |
Folder open. |
| anonymous enum |
| anonymous enum |
| Enumerator | |
|---|---|
| LazyIdentification |
For SDKBrowserContentNode::GetPlugin() only. |
| anonymous enum |
| anonymous enum |
|
|
|
static |
Allocates a content node.
| [in] | info | The info to allocate the node for. |
| [in] | parent | An optional parent node. |
|
static |
Allocates a category node.
| [in] | name | The category name. |
| [in] | local_path | The local path. |
| [in] | icon_file | The icon filename. |
| [in] | parent | An optional parent node. |
|
static |
Frees all SDKBrowserContentNodeInfo of the plugin and remove the nodes from the tree.
| [in] | plugin_id | The node plugin ID to free. |
| SDKBrowserContentNodeInfo * GetNodeInfo | ( | Int32 |
plugin_id
=
0
|
) | const |
Retrieves the SDKBrowserContentNodeInfo for the node.
| [in] | plugin_id | The node plugin ID. |
| Int32 GetTypeID | ( | void | ) | const |
返回 SDKBrowserContentNodeInfo::GetTypeID() for the node.
| SDKBrowserPluginRef GetPlugin | ( | UInt32 |
flags
=
0
|
) | const |
Returns SDKBrowserContentNodeInfo::GetPlugin(flags) for the node.
| String GetName | ( | void | ) | const |
返回 SDKBrowserContentNodeInfo::GetName() for the node.
| String GetTypeName | ( | Int32 | mode | ) | const |
Returns SDKBrowserContentNodeInfo::GetTypeName(mode) for the node.
| Int32 GetNodeURL | ( | SDKBrowserURL & | url , |
| UInt32 |
flags
=
0
|
||
| ) | const |
Returns SDKBrowserContentNodeInfo::GetNodeURL(url, flags) for the node.
| SDKBrowserURL GetNodeURL | ( | UInt32 |
flags
=
0
,
|
| Int32 * |
idx
=
nullptr
|
||
| ) | const |
Retrieves the URL of the content node.
| [in] | flags | Can be set to the optional flag LinkThrough . |
| [out] | idx | Reserved. |
| Bool GetFilename | ( | Filename & | f , |
| UInt32 |
flags
=
0
|
||
| ) | const |
Retrieves the file name of the node, if applicable.
| [out] | f | Assigned the file name of the node. |
| [in] | flags | Can be set to the optional flag LinkThrough . |
| Bool GetNodeTime | ( | UInt32 | mode , |
| LocalFileTime * | out | ||
| ) | const |
Returns SDKBrowserContentNodeInfo::GetNodeTime(mode, out) for the node.
| LocalFileTime GetNodeTime | ( | UInt32 |
mode
=
GE_FILETIME_MODIFIED
|
) | const |
Gets the node time specified by mode .
| [in] | mode | The mode: GE_FILETIME |
| UInt32 GetNodeFlags | ( | Int64 * |
out_size
=
nullptr
|
) | const |
返回 SDKBrowserContentNodeInfo::GetNodeFlags() for the node.
| Bool IsDirectory | ( | void | ) | const |
Checks if the node is a directory or a tree branch.
| Bool IsLink | ( | void | ) | const |
Checks if the node is a link to another node. (Call GetNodeURL() with LinkThrough flag to get the destination URL.)
| Bool IsReadOnly | ( | void | ) | const |
Checks if the node is read-only.
| Bool IsFlushed | ( | void | ) | const |
Checks if the node is going to be flushed. If so do not create new database entries for it.
| SDKBrowserIcon * GetIcon | ( | Int32 |
state
=
0
,
|
| Int32 |
pref_wh
=
0
|
||
| ) | const |
Returns SDKBrowserContentNodeInfo::GetIcon(state, pref_wh) for the node.
| Int32 UpdateDirectory | ( | void | ) |
返回 SDKBrowserContentNodeInfo::UpdateDirectory() for the node.
| Int32 PrivateCall | ( | Int32 | plugin_id , |
| Int32 | node_type , | ||
| Int32 | selector , | ||
| void * | data | ||
| ) |
Returns SDKBrowserContentNodeInfo::PrivateCall(plugin_id, node_type, selector, data) for the node.
| Int32 Rename | ( | Int32 | mode , |
| const String & | name | ||
| ) |
Returns SDKBrowserContentNodeInfo::Rename(mode, name) for the node.
| Int32 NewFolder | ( | Int32 | mode , |
| const String & | name , | ||
| SDKBrowserContentNodeRef * |
folder
=
nullptr
|
||
| ) |
Returns SDKBrowserContentNodeInfo::NewFolder(mode, name, folder) for the node.
| Int32 MoveFrom | ( | SDKBrowserContentNodeRef | new_child , |
| Int32 | mode , | ||
| CopyMoveCallback * | callback , | ||
| void * | private_data , | ||
| BaseThread * |
thread
=
nullptr
|
||
| ) |
Returns SDKBrowserContentNodeInfo::MoveFrom(new_child, mode, callback, private_data, thread) for the node.
| Int32 CopyFrom | ( | SDKBrowserContentNodeRef | new_child , |
| Int32 | mode , | ||
| const String * | rename , | ||
| CopyMoveCallback * | callback , | ||
| void * | private_data , | ||
| BaseThread * |
thread
=
nullptr
|
||
| ) |
Returns SDKBrowserContentNodeInfo::CopyFrom(new_child, mode, rename, callback, private_data, thread) for the node.
| Int32 删除 | ( | Int32 | mode , |
| CopyMoveCallback * | callback , | ||
| void * | private_data , | ||
| BaseThread * |
thread
=
nullptr
|
||
| ) |
Returns SDKBrowserContentNodeInfo::Delete(mode, callback, private_data, thread) for the node.
| BaseObject * GetDefaultObject | ( | void | ) |
Retrieves the object of default nodes. (Wrapper for PrivateCall() .)
| BaseDocument * GetObjectPreset | ( | void | ) |
Retrieves the document with presets for preset nodes. (Wrapper for PrivateCall() .)
| BaseMaterial * GetMaterialPreset | ( | void | ) |
Retrieves the material for preset nodes. (Wrapper for PrivateCall() .)
| BaseTag * GetTagPreset | ( | void | ) |
Retrieves the tag for preset nodes. (Wrapper for PrivateCall() .)
| RenderData * GetRenderDataPreset | ( | void | ) |
Retrieves the render data for preset nodes. (Wrapper for PrivateCall() .)
| BaseShader * GetShaderPreset | ( | void | ) |
Retrieves the shader for preset nodes. (Wrapper for PrivateCall() .)
| BaseVideoPost * GetVideoPostPreset | ( | void | ) |
Retrieves the video post for preset nodes. (Wrapper for PrivateCall() .)
| GvNode * GetXPressoPreset | ( | void | ) |
Retrieves the Xpresso node for preset nodes. (Wrapper for PrivateCall() .)
| Int32 GetPresetSourcePluginID | ( | void | ) |
Gets the ID of the preset source plugin.