|
vdk 2.4.0
|
This class wraps gtkctree widget. More...
#include <vdkctree.h>
Public Member Functions | |
| __rwproperty (VDKCustomTree, int) Spacing | |
| __rwproperty (VDKCustomTree, VDKTreeNode) SelectedNode | |
| __rproperty (VDKCustomTree, int) SelectedColumn | |
| __rwproperty (VDKCustomTree, VDKTreeNode) UnselectedNode | |
| __rproperty (VDKCustomTree, int) UnselectedColumn | |
| __rwproperty (VDKCustomTree, GtkCTreeLineStyle) LineStyle | |
| __rwproperty (VDKCustomTree, GtkCTreeExpanderStyle) ExpanderStyle | |
| VDKCustomTree (VDKForm *owner, int columns=1, char **titles=NULL, GtkSelectionMode mode=GTK_SELECTION_SINGLE, int tree_column=0) | |
| virtual | ~VDKCustomTree () |
| VDKTreeNode | AddNode (char *text[], GtkCTreeNode *parent, bool expanded=true, bool isLeaf=false, char **pixmap_closed=NULL, char **pixmap_opened=NULL) |
| bool | RemoveNode (VDKTreeNode node) |
| int | RemoveKey (char *key) |
| virtual void | Clear () |
| VDKTreeNode | Selection () |
| VDKTreeNode | Unselection () |
| VDKTreeNodeArray & | Selections () |
| Tuple | operator[] (VDKTreeNode node) |
| VDKTreeNodeList * | Find (char *key) |
| bool | IsLeaf (VDKTreeNode node) |
| char * | Key (VDKTreeNode node) |
| bool | IsExpanded (VDKTreeNode node) |
Public Member Functions inherited from VDKCustom | |
| int | ColumnClicked () |
| GtkSelectionMode | SelectionMode () |
| GtkWidget * | CustomWidget () |
| void | ActiveTitle (int col, bool flag=true) |
| void | ActiveTitles (bool flag=true) |
| void | EnableTitles (bool flag=true) |
| void | Freeze () |
| void | Thaw () |
| int | Size () |
| void | ColumnSize (int col, int size) |
| void | AutoResizeColumn (int col, bool flag) |
| virtual void | SetForeground (VDKRgb, GtkStateType) |
| virtual void | SetFont (VDKFont *) |
Public Member Functions inherited from VDKObject | |
| VDKRgb | GetBackground (GtkStateType state=GTK_STATE_NORMAL) |
| VDKRgb | GetForeground (GtkStateType state=GTK_STATE_NORMAL) |
| VDKObject (VDKForm *owner=NULL) | |
| VDKObject (VDKForm *owner, GtkWidget *widget) | |
| virtual | ~VDKObject () |
| bool | Destroy () |
| virtual int | isA () |
| VDKForm * | Owner () |
| virtual GtkWidget * | Widget () |
| GtkWidget * | ConnectingWidget () |
| GtkWidget * | WrappedWidget () |
| VDKFont * | GetFont () |
| void | SetVisible (bool visible) |
| bool | GetVisible () |
| void | SetCursor (VDKCursorType) |
| VDKCursorType | GetCursor () |
| void | SetSize (int w, int h) |
| void | SetUsize (VDKPoint s) |
| virtual void | SetTip (char *) |
| virtual void | Add (VDKObject *obj, int justify=l_justify, int expand=TRUE, int fill=TRUE, int padding=0) |
| ItemList & | Items () |
| void | Draw (GdkRectangle *area=NULL) |
| virtual void | Setup () |
| void | SignalEmit (int signal) |
| void | SignalEmit (char *sig) |
| void | SignalEmitParent (int signal) |
| void | SignalEmitParent (char *sig) |
| void | GrabFocus () |
| VDKObject * | Parent (VDKObject *p=NULL) |
| int | SignalConnect (VDKObject *obj, char *signal, bool(VDKObject::*method)(VDKObject *), bool gtk=true, bool after=false) |
| int | SignalConnect (char *signal, bool(VDKObject::*method)(VDKObject *), bool gtk=true, bool after=false) |
| bool | SignalDisconnect (int connection) |
| int | EventConnect (VDKObject *obj, char *event, bool(VDKObject::*method)(VDKObject *, GdkEvent *), bool after=false) |
| int | EventConnect (char *, bool(VDKObject::*)(VDKObject *, GdkEvent *), bool after=false) |
| bool | EventDisconnect (int connection) |
Additional Inherited Members | |
Public Attributes inherited from VDKCustom | |
| VDKReadWriteValueProp < VDKCustom, GtkPolicyType > | VPolicy |
| VDKReadWriteValueProp < VDKCustom, GtkPolicyType > | HPolicy |
| VDKReadWriteValueProp < VDKCustom, GtkShadowType > | BorderShadow |
| VDKReadWriteValueProp < VDKCustom, int > | RowHeight |
| VDKReadWriteValueProp < VDKCustom, bool > | AutoResize |
| VDKReadWriteValueProp < VDKCustom, VDKRgb > | SelectedForeground |
| VDKReadWriteValueProp < VDKCustom, VDKRgb > | UnselectedBackground |
| VDKReadWriteValueProp < VDKCustom, VDKRgb > | UnselectedForeground |
| VDKObjectArray | Titles |
| VDKReadOnlyValueProp < VDKCustom, int > | SelectedTitle |
Public Attributes inherited from VDKObject | |
| VDKReadWriteValueProp < VDKObject, VDKRgb > | NormalBackground |
| VDKReadWriteValueProp < VDKObject, VDKFont * > | Font |
| SizeObjectProp | Usize |
| VDKReadWriteValueProp < VDKObject, bool > | Enabled |
| VDKReadWriteValueProp < VDKObject, VDKCursorType > | Cursor |
| VDKReadWriteValueProp < VDKObject, bool > | Visible |
Protected Member Functions inherited from VDKCustom | |
| virtual void | SetBackground (VDKRgb color, GtkStateType state=GTK_STATE_NORMAL) |
Protected Attributes inherited from VDKObject | |
| VDKObjectSignal | s_clicked |
| GtkWidget * | widget |
| GtkWidget * | sigwid |
| VDKObject * | parent |
This class wraps gtkctree widget.
| VDKCustomTree::VDKCustomTree | ( | VDKForm * | owner, |
| int | columns = 1, |
||
| char ** | titles = NULL, |
||
| GtkSelectionMode | mode = GTK_SELECTION_SINGLE, |
||
| int | tree_column = 0 |
||
| ) |
Constructor
| columns,number | of columns |
| titles,an | array of title strings |
| mode,selection | mode |
| tree_column,key | column |
|
virtual |
Destructor
| VDKCustomTree::__rproperty | ( | VDKCustomTree | , |
| int | |||
| ) |
Sets/gets selected column, an answer == -1 means no column selected.
| VDKCustomTree::__rproperty | ( | VDKCustomTree | , |
| int | |||
| ) |
Sets/gets unselected column, an answer == -1 means no column unselected.
| VDKCustomTree::__rwproperty | ( | VDKCustomTree | , |
| int | |||
| ) |
Sets/gets spacing distance (default 5)
| VDKCustomTree::__rwproperty | ( | VDKCustomTree | , |
| VDKTreeNode | |||
| ) |
Sets/gets selected node, setting to NULL will select root node. An aswer NULL means no node selected.
| VDKCustomTree::__rwproperty | ( | VDKCustomTree | , |
| VDKTreeNode | |||
| ) |
Sets/gets unselected node, setting to NULL will unselect root node. An aswer NULL means no node unselected.
| VDKCustomTree::__rwproperty | ( | VDKCustomTree | , |
| GtkCTreeLineStyle | |||
| ) |
Sets/gets line style arg. (default GTK_CTREE_LINES_SOLID)
| VDKCustomTree::__rwproperty | ( | VDKCustomTree | , |
| GtkCTreeExpanderStyle | |||
| ) |
Sets/gets expander style (default GTK_CTREE_EXPANDER_SQUARE)
| VDKTreeNode VDKCustomTree::AddNode | ( | char * | text[], |
| GtkCTreeNode * | parent, | ||
| bool | expanded = true, |
||
| bool | isLeaf = false, |
||
| char ** | pixmap_closed = NULL, |
||
| char ** | pixmap_opened = NULL |
||
| ) |
Add a node to <parent> tree.
| text,an | array of strings |
| parent,if | NULL add the node as a new root (same as adding a row to a VDKCustomList) |
| isLeaf,if | is a leaf or not |
| pixmap_closed,pixmap | showed when node is collapsed |
| pixmap_open,pixmap | showed when node is expanded |
|
virtual |
Clear widget
Reimplemented from VDKCustom.
| VDKTreeNodeList * VDKCustomTree::Find | ( | char * | key | ) |
Returns a list of nodes that match <key>. Returned list should be deleted by user or it will leak.
| bool VDKCustomTree::IsExpanded | ( | VDKTreeNode | node | ) |
Returns true if <node> is expanded
| node |
| bool VDKCustomTree::IsLeaf | ( | VDKTreeNode | node | ) |
Returns true if <node> is a leaf
| node |
| char * VDKCustomTree::Key | ( | VDKTreeNode | node | ) |
Returns node key
| node |
| Tuple VDKCustomTree::operator[] | ( | VDKTreeNode | node | ) |
Returns a tuple of <node> node, an array containing all columns texts.
| node |
| int VDKCustomTree::RemoveKey | ( | char * | key | ) |
Removes all nodes with key==<key>, return number of removed nodes
| bool VDKCustomTree::RemoveNode | ( | VDKTreeNode | node | ) |
Removes a node, return true on success
| node,node | to be removed |
|
inline |
Returns selected node
| VDKTreeNodeArray & VDKCustomTree::Selections | ( | ) |
Returns an array of selected nodes (valid on multiple and extended mode)
|
inline |
Returns unselected node
1.8.6