Name

ListStore —

The database for simple (non-hierarchical) tables.

Synopsis

listStoreNew:: [TMType] -> IO ListStore
listStoreAppend:: ListStoreClass ts => ts -> IO TreeIter
listStoreClear:: ListStoreClass ts => ts -> IO ()
listStoreInsert:: ListStoreClass ts => ts -> Int -> IO TreeIter
listStoreInsertAfter:: ListStoreClass ts => ts -> TreeIter -> IO TreeIter
listStoreInsertBefore:: ListStoreClass ts => ts -> TreeIter -> IO TreeIter
listStorePrepend:: ListStoreClass ts => ts -> IO TreeIter
listStoreRemove:: ListStoreClass ts => ts -> TreeIter -> IO Bool
listStoreSetValue:: ListStoreClass ts => ts -> TreeIter -> Int -> GenericValue -> IO ()

Constructors

listStoreNew

Generate a new entity to store tree information.

listStoreNew:: [TMType]:: IO ListStore
cols

Methods

listStoreAppend

Insert a row at the end of the table .

listStoreAppend:: ts:: IO TreeIter
ts

This is equivalent to listStoreInsert (-1).

listStoreClear

Clear all rows in this table.

listStoreClear:: ts:: IO ()

listStoreInsert

Insert a new row into the list.

listStoreInsert:: ts:: Int:: IO TreeIter
tspos

The pos parameter determines the row number where the row should be inserted. Set this to -1 to insert at the end of the list.

listStoreInsertAfter

Insert a row behind the sibling row.

listStoreInsertAfter:: ts:: TreeIter:: IO TreeIter
tssibling

listStoreInsertBefore

Insert a row in front of the sibling node.

listStoreInsertBefore:: ts:: TreeIter:: IO TreeIter
tssibling

listStorePrepend

Insert a row in front of every other row.

listStorePrepend:: ts:: IO TreeIter
ts

This is equivalent to listStoreInsert 0.

listStoreRemove

Remove a specific node.

listStoreRemove:: ts:: TreeIter:: IO Bool
tsti

The TreeIter will point to the entry following the one which was just removed. The function returns False if the tiTreeIter does not point to a valid element (i.e. the function just removed the bottom entry from the list).

<warning><para>This function returned () in Gtk version 2.0.X</warning><para>

listStoreSetValue

Set the data of a specific node.

listStoreSetValue:: ts:: TreeIter:: Int:: GenericValue:: IO ()
tsticolval

The supplied value must match the type that was set for the column.