//this->createStudyComponent(theStudy);
_workspaceController->showDockWidgets(true);
+ _presentationController->showDockWidgets(true);
//this->setDockLayout(StandardApp_Module::DOCKLAYOUT_LEFT_VLARGE);
// return the activation status
MEDModule::deactivateModule( SUIT_Study* theStudy )
{
_workspaceController->showDockWidgets(false);
+ _presentationController->showDockWidgets(false);
//this->unsetDockLayout();
// hide own menus
#include <SUIT_Session.h>
#include <SUIT_ResourceMgr.h>
#include <QMessageBox>
-#include <QDockWidget>
PresentationController::PresentationController(MEDModule* salomeModule)
{
_widgetPresentationParameters = new WidgetPresentationParameters();
QMainWindow* parent = salomeModule->getApp()->desktop();
- QDockWidget *dockWidget = new QDockWidget(parent);
- dockWidget->setVisible(false);
- dockWidget->setWindowTitle(tr("TITLE_PRESENTATION_PARAMETERS"));
- dockWidget->setObjectName(tr("TITLE_PRESENTATION_PARAMETERS"));
- dockWidget->setFeatures(QDockWidget::AllDockWidgetFeatures);
- dockWidget->setAllowedAreas(Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea);
- dockWidget->setWidget(_widgetPresentationParameters);
- parent->addDockWidget(Qt::LeftDockWidgetArea, dockWidget);
- dockWidget->show();
+ _dockWidget = new QDockWidget(parent);
+ _dockWidget->setVisible(false);
+ _dockWidget->setWindowTitle(tr("TITLE_PRESENTATION_PARAMETERS"));
+ _dockWidget->setObjectName(tr("TITLE_PRESENTATION_PARAMETERS"));
+ _dockWidget->setFeatures(QDockWidget::AllDockWidgetFeatures);
+ _dockWidget->setAllowedAreas(Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea);
+ _dockWidget->setWidget(_widgetPresentationParameters);
+ parent->addDockWidget(Qt::LeftDockWidgetArea, _dockWidget);
+ //_dockWidget->show();
}
PresentationController::~PresentationController()
this->updateTreeViewWithNewPresentation(event->dataId, event->presentationId);
}
}
+
+void
+PresentationController::showDockWidgets(bool isVisible)
+{
+ STDLOG("Switching PresentationController visibility to: " << isVisible);
+ _dockWidget->setVisible(isVisible);
+}
#define PRESENTATION_CONTROLLER_HXX
#include <QtGui>
+#include <QDockWidget>
#include "MEDCALCGUI.hxx"
#include "MEDEventListener_i.hxx"
MEDCALC::MEDPresentationViewMode getSelectedViewMode();
MEDCALC::MEDPresentationColorMap getSelectedColorMap();
+ void showDockWidgets(bool isVisible);
+
signals:
void presentationSignal(const PresentationEvent*);
private:
MEDModule* _salomeModule;
SALOME_AppStudyEditor* _studyEditor; // borrowed to MEDModule
+ QDockWidget *_dockWidget;
WidgetPresentationParameters* _widgetPresentationParameters;
};