Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update viewer on delete an item
[modules/shaper.git]
/
src
/
XGUI
/
XGUI_InspectionPanel.cpp
diff --git
a/src/XGUI/XGUI_InspectionPanel.cpp
b/src/XGUI/XGUI_InspectionPanel.cpp
index 8764568f800b05971645ff8d028bbfa821c3a554..6d615ac06dbe53dce38181ce38f964017dc631b9 100644
(file)
--- a/
src/XGUI/XGUI_InspectionPanel.cpp
+++ b/
src/XGUI/XGUI_InspectionPanel.cpp
@@
-1,4
+1,4
@@
-// Copyright (C) 2014-201
7
CEA/DEN, EDF R&D
+// Copyright (C) 2014-201
9
CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
@@
-12,10
+12,9
@@
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA
//
//
-// See http://www.salome-platform.org/ or
-// email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
#include "XGUI_InspectionPanel.h"
//
#include "XGUI_InspectionPanel.h"
@@
-25,6
+24,7
@@
#include <ModuleBase_ViewerPrs.h>
#include <ModuleBase_Tools.h>
#include <ModuleBase_ViewerPrs.h>
#include <ModuleBase_Tools.h>
+#include <ModelAPI_ResultField.h>
#include <ModelAPI_Result.h>
#include <ModelAPI_Result.h>
@@
-138,8
+138,8
@@
XGUI_InspectionPanel::XGUI_InspectionPanel(QWidget* theParent, XGUI_SelectionMgr
mySubShapesTab->setHorizontalHeaderLabels(aTitles);
QStringList aSubShapes;
mySubShapesTab->setHorizontalHeaderLabels(aTitles);
QStringList aSubShapes;
- aSubShapes <<
"SHAPE" << "COMPOUND" << "COMPSOLID"
<<
-
"SOLID" << "SHELL" << "FACE" << "WIRE" << "EDGE" << "VERTEX"
;
+ aSubShapes <<
tr("SHAPE") << tr("COMPOUND") << tr("COMPSOLID")
<<
+
tr("SOLID") << tr("SHELL") << tr("FACE") << tr("WIRE") << tr("EDGE") << tr("VERTEX")
;
int i = 0;
foreach(QString aType, aSubShapes) {
QTableWidgetItem* aItem = new QTableWidgetItem(aType);
int i = 0;
foreach(QString aType, aSubShapes) {
QTableWidgetItem* aItem = new QTableWidgetItem(aType);
@@
-155,9
+155,6
@@
XGUI_InspectionPanel::XGUI_InspectionPanel(QWidget* theParent, XGUI_SelectionMgr
mySubShapesTab->setColumnWidth(0, 90);
mySubShapesTab->setColumnWidth(1, 70);
mySubShapesTab->setColumnWidth(0, 90);
mySubShapesTab->setColumnWidth(1, 70);
- //mySubShapesTab->setMaximumWidth(170);
- //mySubShapesTab->setMinimumHeight(300);
-
aSplitter->addWidget(mySubShapesTab);
// Type of object
aSplitter->addWidget(mySubShapesTab);
// Type of object
@@
-229,6
+226,10
@@
void XGUI_InspectionPanel::onSelectionChanged()
if (aSelectedList.count() > 0) {
ModuleBase_ViewerPrsPtr aPrs = aSelectedList.first();
if (aSelectedList.count() > 0) {
ModuleBase_ViewerPrsPtr aPrs = aSelectedList.first();
+ FieldStepPtr aStep =
+ std::dynamic_pointer_cast<ModelAPI_ResultField::ModelAPI_FieldStep>(aPrs->object());
+ if (aStep)
+ return;
TopoDS_Shape aShape = ModuleBase_Tools::getSelectedShape(aPrs);
if (aShape.IsNull()) {
ResultPtr aRes = std::dynamic_pointer_cast<ModelAPI_Result>(aPrs->object());
TopoDS_Shape aShape = ModuleBase_Tools::getSelectedShape(aPrs);
if (aShape.IsNull()) {
ResultPtr aRes = std::dynamic_pointer_cast<ModelAPI_Result>(aPrs->object());