Version: 9.16.0
DockWidgets Class Reference

#include <DockWidgets.hxx>

Public Member Functions

 DockWidgets (SalomeApp_Application *salomeApp, bool tabify=false, const char *title="Data Model")
 
void tabify (bool tabify)
 
void show (bool isVisible)
 
void setDataView (QTreeView *dataView)
 
void setPropertiesView (QTreeView *propertyView)
 
QDockWidget * getDockWidget ()
 

Private Attributes

SalomeApp_Application * _salomeApp
 
QDockWidget * _dwDataPanel
 
QTreeView * _tvDataView
 

Constructor & Destructor Documentation

◆ DockWidgets()

DockWidgets::DockWidgets ( SalomeApp_Application *  salomeApp,
bool  tabify = false,
const char *  title = "Data Model" 
)

This create a gui container to hold widgets dedicated to the XCAD data model. By default, the dock widgets are not visible. Use the show() method to control the visibility (usefull when activating and desactivating the module to show/hide the dock widgets).

This class does not make any hypothesis on what will be embedded in the dock widgets (only that it is QTreeView). The QTreeView is defined elsewhere and is generaly rendering a tree model containing tree items.

References _dwDataPanel, _salomeApp, SUIT_Application::desktop(), and tabify().

Member Function Documentation

◆ getDockWidget()

QDockWidget * DockWidgets::getDockWidget ( )

This function returns dock widget

References _dwDataPanel.

◆ setDataView()

void DockWidgets::setDataView ( QTreeView *  dataView)

This function initializes the central part of the dock widget with a tree view that can hold a hierarchical data model.

References _dwDataPanel, and _tvDataView.

◆ setPropertiesView()

void DockWidgets::setPropertiesView ( QTreeView *  propertyView)

◆ show()

void DockWidgets::show ( bool  isVisible)

This function controls the visibility of the dock widgets.

References _dwDataPanel.

◆ tabify()

Member Data Documentation

◆ _dwDataPanel

QDockWidget* DockWidgets::_dwDataPanel
private

◆ _salomeApp

SalomeApp_Application* DockWidgets::_salomeApp
private

◆ _tvDataView

QTreeView* DockWidgets::_tvDataView
private

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