X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FStdMeshersGUI%2FStdMeshersGUI_NbSegmentsCreator.h;h=548be1bc8717ab25004d74623bd26783f9aa6c9c;hp=7002e032e4da7b5ce37f80abc42feee81e4cc758;hb=HEAD;hpb=79b1ac2b6df9117f16f11d444b1f165d477a1813 diff --git a/src/StdMeshersGUI/StdMeshersGUI_NbSegmentsCreator.h b/src/StdMeshersGUI/StdMeshersGUI_NbSegmentsCreator.h index 7002e032e..d873fdae1 100644 --- a/src/StdMeshersGUI/StdMeshersGUI_NbSegmentsCreator.h +++ b/src/StdMeshersGUI/StdMeshersGUI_NbSegmentsCreator.h @@ -1,12 +1,14 @@ -// Copyright (C) 2005 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, +// Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE +// +// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Software Foundation; either -// version 2.1 of the License. +// version 2.1 of the License, or (at your option) any later version. // -// This library is distributed in the hope that it will be useful +// This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. @@ -18,25 +20,35 @@ // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // -#ifndef NB_SEGMENTS_CREATOR_HEADER -#define NB_SEGMENTS_CREATOR_HEADER +// File : StdMeshersGUI_NbSegmentsCreator.h +// Author : Open CASCADE S.A.S. +// +#ifndef STDMESHERSGUI_NBSEGMENTSCREATOR_H +#define STDMESHERSGUI_NBSEGMENTSCREATOR_H +// SMESH includes #include "SMESH_StdMeshersGUI.hxx" #include "StdMeshersGUI_StdHypothesisCreator.h" +// IDL includes #include #include CORBA_SERVER_HEADER(SMESH_Mesh) -class QtxIntSpinBox; +class SalomeApp_IntSpinBox; class QtxComboBox; class SMESHGUI_SpinBox; class StdMeshersGUI_DistrTableFrame; -class StdMeshersGUI_DistrPreview; +#ifndef DISABLE_PLOT2DVIEWER + class StdMeshersGUI_DistrPreview; +#endif class QLineEdit; class QButtonGroup; +class QGroupBox; class QGridLayout; class QRadioButton; +class StdMeshersGUI_SubShapeSelectorWdg; +class StdMeshersGUI_PropagationHelperWdg; typedef struct { @@ -44,6 +56,7 @@ typedef struct double myScale; SMESH::double_array myTable; QString myName, myExpr; + QString myNbSegVarName, myScaleVarName; } NbSegmentsHypothesisData; @@ -55,7 +68,7 @@ public: StdMeshersGUI_NbSegmentsCreator(); virtual ~StdMeshersGUI_NbSegmentsCreator(); - virtual bool checkParams() const; + virtual bool checkParams( QString& ) const; protected: virtual QFrame* buildFrame(); @@ -71,17 +84,24 @@ private: bool storeParamsToHypo( const NbSegmentsHypothesisData& ) const; private: - QtxIntSpinBox* myNbSeg; + SalomeApp_IntSpinBox* myNbSeg; QtxComboBox* myDistr; SMESHGUI_SpinBox* myScale; StdMeshersGUI_DistrTableFrame* myTable; +#ifndef DISABLE_PLOT2DVIEWER StdMeshersGUI_DistrPreview* myPreview; +#endif QLineEdit *myName, *myExpr; + QGroupBox* myConvBox; QButtonGroup* myConv; - QLabel *myLScale, *myLTable, *myLExpr, *myLConv, *myInfo; + QLabel *myLScale, *myLTable, *myLExpr, *myInfo; QGridLayout* myGroupLayout; int myTableRow, myPreviewRow; - QRadioButton* myCutNeg; + //QRadioButton* myCutNeg; + QGroupBox* myReversedEdgesBox; + + StdMeshersGUI_SubShapeSelectorWdg* myDirectionWidget; + StdMeshersGUI_PropagationHelperWdg* myReversedEdgesHelper; }; -#endif +#endif // STDMESHERSGUI_NBSEGMENTSCREATOR_H