Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TreeGuiManager Class Reference

#include <TreeGuiManager.hxx>

Inheritance diagram for TreeGuiManager:
Inheritance graph

Public Slots

virtual void processItemList (QStringList itemNameIdList, int actionId)
 
- Public Slots inherited from TreeObserver
virtual void processItemList (QStringList itemNameIdList, int actionId)
 

Public Member Functions

 TreeGuiManager (SalomeApp_Application *salomeApp, const char *title="Data Model")
 
void tabifyDockWidgets (bool tabify)
 
void showDockWidgets (bool isVisible)
 
SalomeApp_ApplicationgetSalomeApplication ()
 
TreeModelgetDataTreeModel ()
 
TreeViewgetDataTreeView ()
 
DockWidgetsgetDockWidgets ()
 
void setDataModel (DataModel *dataModel)
 
DataModelgetDataModel ()
 
- Public Member Functions inherited from TreeObserver
 TreeObserver ()
 
void observe (TreeView *treeView)
 

Private Attributes

SalomeApp_Application_salomeApp
 
DockWidgets_dockWidgets
 
TreeView_dataTreeView
 
TreeModel_dataTreeModel
 
DataModel_dataModel
 

Constructor & Destructor Documentation

TreeGuiManager::TreeGuiManager ( SalomeApp_Application salomeApp,
const char *  title = "Data Model" 
)

The construction of the gui manager setups a graphic framework that consists in a set of dock widgets implanted in the SALOME GUI and embedding a tree view rendering a data model (collection of data objects) in a hierarchic graphical organisation.

The data model is a straith list of data objects while the view is a tree representation of this collection where folders corresponds to specific properties of the objects.

This represention is for the needs of navigation in a huge amount of data and to ease the selection and processing of items.

References _dataTreeModel, _dataTreeView, _dockWidgets, _salomeApp, TreeObserver::observe(), and DockWidgets::setDataView().

Member Function Documentation

DataModel * TreeGuiManager::getDataModel ( )

References _dataModel.

TreeModel * TreeGuiManager::getDataTreeModel ( )

This returns the data tree model defined in this TreeGuiManager. The data tree model is a tree representation of the data model associated to this TreeGuiManager.

References _dataTreeModel.

TreeView * TreeGuiManager::getDataTreeView ( )

This returns the data tree view defined in this TreeGuiManager. The data tree view can be request to customize the popup menu associated to the tree representation.

References _dataTreeView.

DockWidgets * TreeGuiManager::getDockWidgets ( )

This returns the dock widgets manager

References _dockWidgets.

SalomeApp_Application * TreeGuiManager::getSalomeApplication ( )

This returns the SALOME application (SalomeApp_Application instance) associated to this TreeGuiManager.

References _salomeApp.

void TreeGuiManager::processItemList ( QStringList  itemNameIdList,
int  actionId 
)
virtualslot

This function processes the edit signals received from the TreeView. This is a default implementation that only prints the reception of the signal and some information about the dataObject associated to the item whose id is specified. In practice, the data model could be requested here to retrieve the data object to be edited from the nameId. TO BE IMPLEMENTED IN A DOMAIN SPECIFIC VERSION OF THIS CLASS

References _dataModel, DataModel::getDataObject(), LOG, QS2S, and DataObject::toString().

void TreeGuiManager::setDataModel ( DataModel dataModel)

This function specifies the data model to be used by the TreeGuiManager.

References _dataModel.

void TreeGuiManager::showDockWidgets ( bool  isVisible)

This function switch on/off the dock widgets managed by this gui manager.

References _dockWidgets, and DockWidgets::show().

void TreeGuiManager::tabifyDockWidgets ( bool  tabify)

This function set a layout of the different dock widgets in one single tabbed widget.

References _dockWidgets, and DockWidgets::tabify().

Member Data Documentation

DataModel* TreeGuiManager::_dataModel
private
TreeModel* TreeGuiManager::_dataTreeModel
private
TreeView* TreeGuiManager::_dataTreeView
private
DockWidgets* TreeGuiManager::_dockWidgets
private
SalomeApp_Application* TreeGuiManager::_salomeApp
private

The documentation for this class was generated from the following files: