gda.tree

Module for [Tree] class

Types 4

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
Tree self() nothrowReturns `this`, for use in `with` statements.
TreeGidBuilder builder() static nothrowGet builder for [gda.tree.Tree] Returns: New builder object
bool isList() @property nothrowGet `isList` property. Returns: Tells if the GdaTree is a list or a tree.
glib.types.Quark errorQuark() static nothrow
void addManager(gda.tree_manager.TreeManager manager) nothrowSets manager as a top #GdaTreeManager object, which will be responsible for creating top level nodes in tree.
void clean() nothrowRemoves any node in tree
void dump(gda.tree_node.TreeNode node = null, void * stream = null) nothrowDumps the contents of tree to stream, using a hierarchical view.
gda.tree_node.TreeNode getNode(string treePath, bool useNames) nothrowLocates a #GdaTreeNode using the tree_path path.
gda.tree_manager.TreeManager getNodeManager(gda.tree_node.TreeNode node) nothrowGet the #GdaTreeManager which created node in tree
string getNodePath(gda.tree_node.TreeNode node) nothrowGet the path associated to node in tree.
gda.tree_node.TreeNode[] getNodesInPath(string treePath, bool useNames) nothrowThe returned list is a list of all the #GdaTreeNode nodes <emphasis>below</emphasis> the node at the specified path.
void setAttribute(string attribute, gobject.value.Value value, glib.types.DestroyNotify destroy) nothrowSets an attribute to tree, which will be accessible to any node in it.
bool updateAll()Requests that tree be populated with nodes. If an error occurs, then tree's contents is left unchanged, and otherwise tree's previous contents is completely replaced by the new one. Returns: TRUE i...
bool updateChildren(gda.tree_node.TreeNode node = null)Update the children of node in tree (not recursively, to update recursively, use [gda.tree.Tree.updatePart]). If node is null then the top level nodes are updated.
bool updatePart(gda.tree_node.TreeNode node)Requests that tree be populated with nodes, starting from node
gulong connectNodeChanged(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gda.tree_node.TreeNode))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gda.tree.Tree))) && Parameters!T.length < 3) nothrowConnect to `NodeChanged` signal.
gulong connectNodeDeleted(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == string))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gda.tree.Tree))) && Parameters!T.length < 3) nothrowConnect to `NodeDeleted` signal.
gulong connectNodeHasChildToggled(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gda.tree_node.TreeNode))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gda.tree.Tree))) && Parameters!T.length < 3) nothrowConnect to `NodeHasChildToggled` signal.
gulong connectNodeInserted(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gda.tree_node.TreeNode))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gda.tree.Tree))) && Parameters!T.length < 3) nothrowConnect to `NodeInserted` signal.
Constructors
this(void * ptr, Flag!"Take" take)
this()Creates a new #GdaTree object Returns: a new #GdaTree object

Fluent builder implementation template for gda.tree.Tree

Fluent builder for gda.tree.Tree

Methods
Tree build() nothrowCreate object from builder. Returns: New object
Constructors
this(GError * err)
this(Code code, string msg)