Package conduit :: Package gtkui :: Module Tree :: Class DataProviderTreeModel
[hide private]

Class DataProviderTreeModel

source code


A treemodel for managing dynamically loaded modules. Manages an internal list of conduit.ModuleManager.ModuleWrapper

Instance Methods [hide private]
 
__init__(self)
TreeModel constructor
source code
 
_is_category_heading(self, rowref) source code
 
_get_category_index_by_name(self, category_name) source code
 
_get_category_by_name(self, category_name) source code
 
_rebuild_path_mappings(self) source code
 
_on_dataprovider_available(self, loader, dataprovider) source code
 
_on_dataprovider_unavailable(self, unloader, dataprovider) source code
 
add_dataproviders(self, dpw=[])
Adds all enabled dataproviders to the model
source code
 
add_dataprovider(self, dpw, signal=True)
Adds a dataprovider to the model.
source code
 
remove_dataprovider(self, dpw, signal=True)
Removes the dataprovider from the treemodel.
source code
 
on_get_flags(self)
on_get_flags(
source code
 
on_get_n_columns(self)
on_get_n_columns(
source code
 
on_get_column_type(self, n)
on_get_column_type(
source code
 
on_get_iter(self, path, debug=False)
on_get_iter(
source code
 
on_get_path(self, rowref)
on_get_path(
source code
 
on_get_value(self, rowref, column)
on_get_value(
source code
 
on_iter_next(self, rowref)
on_iter_next(
source code
 
on_iter_children(self, rowref)
on_iter_children(
source code
 
on_iter_has_child(self, rowref)
on_iter_has_child(
source code
 
on_iter_n_children(self, rowref)
on_iter_n_children(
source code
 
on_iter_nth_child(self, rowref, n)
on_iter_nth_child(
source code
 
on_iter_parent(self, rowref)
on_iter_parent(
source code
Instance Variables [hide private]
conduit.ModuleManager.ModuleWrapper[] modules
The array of modules under this treeviews control.
Method Details [hide private]

__init__(self)
(Constructor)

source code 

TreeModel constructor

Ignores modules which are not enabled

add_dataprovider(self, dpw, signal=True)

source code 
Adds a dataprovider to the model. Creating a category for it if it does not exist
Parameters:
  • dpw - The dataproviderwrapper to add
  • signal (bool) - Whether the associated treeview should be signaled to update the GUI. Set to False for the first time the model is built (in the constructor)

remove_dataprovider(self, dpw, signal=True)

source code 
Removes the dataprovider from the treemodel. Also removes the category that it was in if there is no remaining dataproviders in that category