Project:DUI

Class List Class Hierarchy
Summary: Ctors Methods Mixins

Module dui.TreeStore

Class TreeStore

dui.ObjectG.ObjectG
        dui.TreeModel.TreeModel
                dui.TreeStore.TreeStore

Implemented interfaces:


public class

TreeStore



A tree model that represents a tree structure.

Constructor Summary
protected (GObject* gObject)
          
public (GType types)
          Creates a new TreeStore with the defined types

Methods Summary
GType getType()
          Gets this class type
GtkTreeModel* model()
          Gets the GtkModel - internal use only
TreeIter createIter()
          Creates a new top level Tree iterator.
void setValue(TreeIter iter, int column, Value value)
          
void setValue(TreeIter iter, int column, char value)
          Sets one value into one cells.
void set(TreeIter iter, int columns, void* values)
          Sets an iteractor values.
void set(TreeIter iter, int columns, String values)
          Sets an iteractor values.
void set(TreeIter iter, TreeNode treeNode)
          Sets an iteractor values from a tree node.
bit remove(TreeIter iter)
          
void insert(TreeIter iter, TreeIter parent, gint position)
          insert
void insertBefore(TreeIter iter, TreeIter parent, TreeIter sibling)
          insertBefore
void insertAfter(TreeIter iter, TreeIter parent, TreeIter sibling)
          insertAfter
void prepend(TreeIter iter, TreeIter parent)
          prepend
TreeIter append(TreeIter parentIter)
          Creates a new tree iteractor (effectivly a new row) nested on the passed parent iteractor
bit isAncestor(TreeIter iter, TreeIter descendant)
          isAncestor
gint iterDepth(TreeIter iter)
          iterDepth
void clear()
          removes all entries from the tree
bit iterIsValid(TreeIter iter)
          iterIsValid
void reorder(TreeIter parent, gint newOrder)
          reorder
void swap(TreeIter a, TreeIter b)
          swap
void moveAfter(TreeIter iter, TreeIter position)
          moveAfter
void modeBefore(TreeIter iter, TreeIter position)
          modeBefore


getType

GType getType()
Gets this class type

Returns:
this class type



protected ctor(TreeStore)(GObject* gObject)



public ctor(TreeStore)(GType types)
Creates a new TreeStore with the defined types

Parameters:
types - the types of the column to create

model

GtkTreeModel* model()
Gets the GtkModel - internal use only

createIter

TreeIter createIter()
Creates a new top level Tree iterator.
effectevly this is the way to start to add entries to the model

Returns:
a new top level tree iteractor

setValue

void setValue(TreeIter iter, int column, Value value)

setValue

void setValue(TreeIter iter, int column, char value)
Sets one value into one cells.

Parameters:
iter - the tree iteractor, effectivly the row
column - to column number to set
value - the value

set

void set(TreeIter iter, int columns, void* values)
Sets an iteractor values.
This is the way to add a new row to the tree, the iteractor is either a top level iteractor created from createIter() or a nested iteractor created from append()
@see createIter()
@see append()

Parameters:
iter - the iteractor to set
columns - the numbers of the columns to set
values - the values to set into the cells

set

void set(TreeIter iter, int columns, String values)
Sets an iteractor values.
This is the way to add a new row to the tree, the iteractor is either a top level iteractor created from createIter() or a nested iteractor created from append()
@see createIter()
@see append()

Parameters:
iter - the iteractor to set
columns - the numbers of the columns to set
values - the values to set into the cells

set

void set(TreeIter iter, TreeNode treeNode)
Sets an iteractor values from a tree node.
This is the way to add a new row to the tree, the iteractor is either a top level iteractor created from createIter() or a nested iteractor created from append()
@see createIter()
@see append()

Parameters:
iter - the iteractor to set
treeNode - the tree node

remove

bit remove(TreeIter iter)

insert

void insert(TreeIter iter, TreeIter parent, gint position)
insert

Parameters:
iter -
parent -
position -

insertBefore

void insertBefore(TreeIter iter, TreeIter parent, TreeIter sibling)
insertBefore

Parameters:
iter -
parent -
sibling -

insertAfter

void insertAfter(TreeIter iter, TreeIter parent, TreeIter sibling)
insertAfter

Parameters:
iter -
parent -
sibling -

prepend

void prepend(TreeIter iter, TreeIter parent)
prepend

Parameters:
iter -
parent -

append

TreeIter append(TreeIter parentIter)
Creates a new tree iteractor (effectivly a new row) nested on the passed parent iteractor

Parameters:
parentIter -

Returns:
a new tree iteractor

isAncestor

bit isAncestor(TreeIter iter, TreeIter descendant)
isAncestor

Parameters:
iter -
descendant -

iterDepth

gint iterDepth(TreeIter iter)
iterDepth

Parameters:
iter -

clear

void clear()
removes all entries from the tree

iterIsValid

bit iterIsValid(TreeIter iter)
iterIsValid

Parameters:
iter -

reorder

void reorder(TreeIter parent, gint newOrder)
reorder

Parameters:
parent -
newOrder -

swap

void swap(TreeIter a, TreeIter b)
swap

Parameters:
a -
b -

moveAfter

void moveAfter(TreeIter iter, TreeIter position)
moveAfter

Parameters:
iter -
position -

modeBefore

void modeBefore(TreeIter iter, TreeIter position)
modeBefore

Parameters:
iter -
position -