-// Copyright (C) 2009-2019 CEA/DEN, EDF R&D
+// Copyright (C) 2009-2024 CEA, EDF
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
_dwAssociation(0),
_dwGroups(0),
_dwMesh(0),
- _dwObjectBrowser(0),
+// _dwObjectBrowser(0),
_dwInputPanel(0),
_patternDataTreeView(0),
// _patternBuilderTreeView(0),
hideActor();
+ if(currentOccGView) {
+ delete currentOccGView;
+ currentOccGView = NULL;
+ }
+
+ if(currentDocGView) {
+ delete currentDocGView;
+ currentDocGView = NULL;
+ }
+
return bOk;
}
SALOMEDS::Study_var HEXABLOCKGUI::getStudyServant()
{
- SALOME_NamingService *aNamingService = SalomeApp_Application::namingService();
+ SALOME_NamingService_Abstract *aNamingService = SalomeApp_Application::namingService();
CORBA::Object_var aSMObject = aNamingService->Resolve("/Study");
SALOMEDS::Study_var aDSStudy = SALOMEDS::Study::_narrow(aSMObject);
return aDSStudy._retn();
void HEXABLOCKGUI::treeContextMenu(const QPoint& aPosition)
{
QModelIndex currentIndex = _patternDataTreeView->currentIndex();
+
+ // if nothing is selected, return
+ if (! currentIndex.isValid())
+ return;
+
QVariant currentAssocVariant;
QString currentAssocEntry;
}
aParent->tabifyDockWidget( _dwPattern, _dwGroups );
aParent->tabifyDockWidget( _dwGroups, _dwMesh );
-
-#if QT_VERSION >= 0x040500
aParent->setTabPosition(Qt::AllDockWidgetAreas, Resource::tabPanelsUp? QTabWidget::North: QTabWidget::South);
-#endif
// popup menu on data tree view
_patternDataTreeView->setContextMenuPolicy(Qt::CustomContextMenu);