1 // SMESH SMESHGUI : GUI for SMESH component
3 // Copyright (C) 2003 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.
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.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
24 // File : SMESHGUI_StandardMeshInfosDlg.cxx
25 // Author : Michael ZORIN
29 #include <SMESHGUI_StandardMeshInfosDlg.h>
31 #include <SMESH_Type.h>
34 #include <qgroupbox.h>
35 #include <qtextbrowser.h>
37 //=================================================================================
39 * SMESHGUI_StandardMeshInfosDlg::SMESHGUI_StandardMeshInfosDlg
43 //=================================================================================
44 SMESHGUI_StandardMeshInfosDlg::SMESHGUI_StandardMeshInfosDlg()
45 : SMESHGUI_Dialog( 0, false, false, OK )
47 setCaption(tr("SMESH_STANDARD_MESHINFO_TITLE" ));
52 QVBoxLayout* main = new QVBoxLayout( mainFrame(), 0, 5 );
55 QGroupBox* MeshGroup = new QGroupBox( mainFrame(), "myMeshGroup");
56 MeshGroup->setTitle(tr("SMESH_MESH"));
57 MeshGroup->setColumnLayout(3, Qt::Horizontal);
58 MeshGroup->layout()->setSpacing(0);
59 MeshGroup->layout()->setMargin(5);
61 createObject( tr("SMESH_NAME" ), MeshGroup, 0 );
62 setNameIndication( 0, OneName );
63 setObjectType( 0, prefix( "SMESH" ) + MESH, -1 );
65 main->addWidget( MeshGroup );
67 // information group box
68 QGroupBox* InfoGroup = new QGroupBox( mainFrame(), "myInfoGroup");
69 InfoGroup->setTitle(tr("SMESH_INFORMATION"));
70 InfoGroup->setColumnLayout(1, Qt::Vertical);
71 InfoGroup->layout()->setSpacing(0);
72 InfoGroup->layout()->setMargin(5);
74 // information text browser
75 myInfo = new QTextBrowser( InfoGroup, "myInfo");
77 main->addWidget( InfoGroup );
81 //=================================================================================
83 * SMESHGUI_StandardMeshInfosDlg::~SMESHGUI_StandardMeshInfosDlg
87 //=================================================================================
88 SMESHGUI_StandardMeshInfosDlg::~SMESHGUI_StandardMeshInfosDlg()
92 //=================================================================================
94 * SMESHGUI_StandardMeshInfosDlg::setInfo
96 * Set text to text browser
98 //=================================================================================
99 void SMESHGUI_StandardMeshInfosDlg::setInfo( const QString& text )
101 myInfo->setText( text );