Class to simplify dealing with GtkTreeView

package OpenSQLManager
subpackage Widgets

 Methods

Create the object

__construct(object $model) 

Parameters

$model

object

Adds a column of data to the model

add_data_col(\GtkTreeViewColumn $col, \GtkCellRenderer $cell, \GtkTreeModel $model, \GtkTreeIter $iter, int $i) : void

Parameters

$col

\GtkTreeViewColumn

$cell

\GtkCellRenderer

$model

\GtkTreeModel

$iter

\GtkTreeIter

$i

int

Get the value of the model for the current selection

get(int $pos) : mixed

Parameters

$pos

int

pos

Returns

mixed

Create a datagrid from the provided data array

render_data(array $data, array $events) : void

Parameters

$data

array

$events

array

Clear datagrid

reset() : void

 Properties

 

GtkTreeStore object

$model : \GtkTreeStore