#include <vdktreeview.h>
Inheritance diagram for VDKTreeViewModel:
|
constructor
|
|
destructor |
|
Appends a new blank tree row
|
|
Clears the tree store |
|
Executes a linear search (deep first on childs), returns true if <value> found
|
|
Get data from a cell, data type will be converted into their string representation accordlying with GType.
//signal response method bool TvForm::OnTreeViewSelectRow(VDKObject* sender) { // gets selections treeview->GetSelections(); // disregard multiple selections if(treeview->Selections().size() == 1) { VDKTreeViewModel* model = treeview->Model; // gets iter position from selections list GtkTreeIter iter = treeview->Selections()[0]; char* firstname = model->GetCell(&iter,0); // extract from iter position at column 0 char* lastname = model->GetCell(&iter,1); if(firstname && lastname) // GetCell() returns NULL on failure { printf("\n[%s %s]",firstname,lastname); fflush(stdout); delete[] firstname; delete[] lastname; } } return true; } |
|
Gets and fill a tuple with row data converted into their string representation
|
|
Return underlying GtkTreeStore object |
|
Returns true if iter has a child
|
|
Insert a tuple into model, tuple will be inserted in order.
|
|
Move iterator forward at present level |
|
Prepends a new blank tree row
|
|
Removes the row at iter
|
|
Move iterator to root node
|
|
Sets data into a cell
|
|
Sets data into a row
|