Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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)
 
QDockWidgetgetDockWidget ()
 

Private Attributes

SalomeApp_Application_salomeApp
 
QDockWidget_dwDataPanel
 
QTreeView_tvDataView
 

Constructor & Destructor Documentation

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

QDockWidget * DockWidgets::getDockWidget ( )

This function returns dock widget

References _dwDataPanel.

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.

void DockWidgets::setPropertiesView ( QTreeView propertyView)
void DockWidgets::show ( bool  isVisible)

This function controls the visibility of the dock widgets.

References _dwDataPanel.

Member Data Documentation

QDockWidget* DockWidgets::_dwDataPanel
private
SalomeApp_Application* DockWidgets::_salomeApp
private
QTreeView* DockWidgets::_tvDataView
private

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