X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_InspectionPanel.cpp;h=6d615ac06dbe53dce38181ce38f964017dc631b9;hb=f421ab3932a5e09ae8082215c3eaaa8cc4944e02;hp=8764568f800b05971645ff8d028bbfa821c3a554;hpb=30f6b0845162d7d47719069765fd88dfe310b6a9;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_InspectionPanel.cpp b/src/XGUI/XGUI_InspectionPanel.cpp index 8764568f8..6d615ac06 100644 --- a/src/XGUI/XGUI_InspectionPanel.cpp +++ b/src/XGUI/XGUI_InspectionPanel.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2017 CEA/DEN, EDF R&D +// Copyright (C) 2014-2019 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 @@ -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 -// 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 +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // #include "XGUI_InspectionPanel.h" @@ -25,6 +24,7 @@ #include #include +#include #include @@ -138,8 +138,8 @@ XGUI_InspectionPanel::XGUI_InspectionPanel(QWidget* theParent, XGUI_SelectionMgr 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); @@ -155,9 +155,6 @@ XGUI_InspectionPanel::XGUI_InspectionPanel(QWidget* theParent, XGUI_SelectionMgr mySubShapesTab->setColumnWidth(0, 90); mySubShapesTab->setColumnWidth(1, 70); - //mySubShapesTab->setMaximumWidth(170); - //mySubShapesTab->setMinimumHeight(300); - aSplitter->addWidget(mySubShapesTab); // Type of object @@ -229,6 +226,10 @@ void XGUI_InspectionPanel::onSelectionChanged() if (aSelectedList.count() > 0) { ModuleBase_ViewerPrsPtr aPrs = aSelectedList.first(); + FieldStepPtr aStep = + std::dynamic_pointer_cast(aPrs->object()); + if (aStep) + return; TopoDS_Shape aShape = ModuleBase_Tools::getSelectedShape(aPrs); if (aShape.IsNull()) { ResultPtr aRes = std::dynamic_pointer_cast(aPrs->object());