From: akl Date: Wed, 5 Jun 2013 08:17:36 +0000 (+0000) Subject: Fix of 0022226: [CEA 825] "Display" and "Properties" panels separated in Paravis... X-Git-Tag: V7_3_0a1~48 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9f0214f560503eeb568bb7b85bef3c6156474666;p=modules%2Fparavis.git Fix of 0022226: [CEA 825] "Display" and "Properties" panels separated in Paravis and merged in Paraview. --- diff --git a/src/PVGUI/PVGUI_Module_widgets.cxx b/src/PVGUI/PVGUI_Module_widgets.cxx index 7bbeb1b5..58189278 100644 --- a/src/PVGUI/PVGUI_Module_widgets.cxx +++ b/src/PVGUI/PVGUI_Module_widgets.cxx @@ -44,12 +44,9 @@ #include #include -#include #include //#include -#include #include -#include #include #include #include @@ -77,6 +74,7 @@ #include #include #include +#include class ResizeHelper : public pqPVAnimationWidget { @@ -125,43 +123,15 @@ void PVGUI_Module::setupDockWidgets() pipelineBrowserDock->setWidget(browser); myDockWidgets[pipelineBrowserDock] = true; - - - - //Object inspector - QDockWidget* objectInspectorDock = new QDockWidget( tr( "TTL_OBJECT_INSPECTOR" ), desk ); - objectInspectorDock->setObjectName("objectInspectorDock"); - objectInspectorDock->setAllowedAreas( Qt::LeftDockWidgetArea|Qt::NoDockWidgetArea|Qt::RightDockWidgetArea ); - desk->addDockWidget( Qt::LeftDockWidgetArea, objectInspectorDock ); - - pqObjectInspectorWidget* objectInspectorWidget = new pqObjectInspectorWidget(objectInspectorDock); - objectInspectorDock->setObjectName("objectInspectorWidget"); - objectInspectorWidget->setShowOnAccept(true); - objectInspectorDock->setWidget(objectInspectorWidget); - connect( objectInspectorWidget, SIGNAL( helpRequested(const QString&, const QString&) ), this, SLOT( showHelpForProxy(const QString&, const QString&) ) ); - myDockWidgets[objectInspectorDock] = true; - - //Display Dock - QDockWidget* displayDock = new QDockWidget( tr( "TTL_DISPLAY" ), desk ); - displayDock->setObjectName("displayDock"); - QWidget* displayWidgetFrame = new QWidget(displayDock); - displayWidgetFrame->setObjectName("displayWidgetFrame"); - displayDock->setWidget(displayWidgetFrame); - - QScrollArea* displayScrollArea = new QScrollArea(displayWidgetFrame); - displayScrollArea->setObjectName("displayScrollArea"); - displayScrollArea->setWidgetResizable(true); - - QVBoxLayout* verticalLayout = new QVBoxLayout(displayWidgetFrame); - verticalLayout->setSpacing(0); - verticalLayout->setContentsMargins(0, 0, 0, 0); - - pqDisplayProxyEditorWidget* displayWidget = new pqDisplayProxyEditorWidget(displayDock); - displayWidget->setObjectName("displayWidget"); - displayScrollArea->setWidget(displayWidget); - verticalLayout->addWidget(displayScrollArea); - - myDockWidgets[displayDock] = true; + // Properties dock + QDockWidget* propertiesDock = new QDockWidget(tr( "TTL_OBJECT_INSPECTOR" ), desk); + propertiesDock->setObjectName("propertiesDock"); + pqPropertiesPanel* propertiesPanel = new pqPropertiesPanel(); + propertiesPanel->setObjectName("propertiesPanel"); + propertiesDock->setWidget(propertiesPanel); + desk->addDockWidget(Qt::LeftDockWidgetArea, propertiesDock); + connect( propertiesPanel, SIGNAL( helpRequested(const QString&, const QString&) ), this, SLOT( showHelpForProxy(const QString&, const QString&) ) ); + myDockWidgets[propertiesDock] = true; // information dock QDockWidget* informationDock = new QDockWidget(tr( "TTL_INFORMATION" ), desk); @@ -186,12 +156,13 @@ void PVGUI_Module::setupDockWidgets() verticalLayout_2->addWidget(informationScrollArea); informationDock->setWidget(informationWidgetFrame); + desk->addDockWidget(Qt::LeftDockWidgetArea, informationDock); myDockWidgets[informationDock] = true; + // put 'Properties' and 'Information' widgets into tabs desk->setTabPosition(Qt::LeftDockWidgetArea, QTabWidget::North); - desk->tabifyDockWidget(objectInspectorDock, displayDock); - desk->tabifyDockWidget(objectInspectorDock, informationDock); - objectInspectorDock->raise(); + desk->tabifyDockWidget(propertiesDock, informationDock); + propertiesDock->raise(); // Statistic View QDockWidget* statisticsViewDock = new QDockWidget( tr( "TTL_STATISTICS_VIEW" ), desk );