1 // Copyright (C) 2007-2023 CEA, EDF, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License, or (at your option) any later version.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 // SMESH SMESHGUI : GUI for SMESH component
24 // File : SMESHGUI_CreateDualMeshDlg.cxx
25 // Author : Yoann AUDOUIN (EDF)
28 #include "SMESHGUI_CreateDualMeshDlg.h"
30 #include "SMESHGUI_CreateDualMeshOp.h"
35 #include <QRadioButton>
36 #include <QButtonGroup>
39 #include <QHBoxLayout>
40 #include <QGridLayout>
47 SMESHGUI_CreateDualMeshDlg::SMESHGUI_CreateDualMeshDlg()
48 : SMESHGUI_Dialog( 0, false, true )
50 setWindowTitle( tr( "CAPTION" ) );
52 // Create top controls
55 setObjectPixmap( "SMESH", tr( "ICON_SELECT" ) );
56 createObject( tr( "MESH" ), mainFrame(), 0 );
58 myMeshNameLabel = new QLabel(QString(tr("DUAL_MESH_NAME")), mainFrame());
59 myMeshName = new QLineEdit(mainFrame());
61 myProjShape = new QCheckBox(QString(tr("PROJ_SHAPE")), mainFrame());
62 myProjShape->toggle();
64 myWarning = new QLabel(QString("<b>%1</b>").arg(tr("NON_TETRA_MESH_WARNING")), mainFrame());
67 QGridLayout* aLay = new QGridLayout( mainFrame() );
69 aLay->setSpacing( 5 );
71 aLay->addWidget( objectWg( 0, Label ), 0, 0 );
72 aLay->addWidget( objectWg( 0, Btn ), 0, 1 );
73 aLay->addWidget( objectWg( 0, Control ), 0, 2 );
74 aLay->addWidget( myWarning, 3, 0, 1, 3 );
75 aLay->addWidget( myMeshNameLabel, 1, 0 );
76 aLay->addWidget( myMeshName, 1, 2 );
77 aLay->addWidget( myProjShape, 2, 0 );
81 SMESHGUI_CreateDualMeshDlg::~SMESHGUI_CreateDualMeshDlg()
85 void SMESHGUI_CreateDualMeshDlg::ShowWarning(bool toShow)
93 bool SMESHGUI_CreateDualMeshDlg::isWarningShown()
95 return myWarning->isVisible();