+++ /dev/null
-#!/usr/bin/env python
-# -*- coding: iso-8859-1 -*-
-"""
-Exemple de couplage HOMARD-Salome
-Copyright EDF-R&D 1996, 2010
-"""
-__revision__ = "V1.0"
-#
-import salome
-salome.salome_init()
-import HOMARD
-#
-homard = salome.lcc.FindOrLoadComponent("FactoryServer", "HOMARD")
-study_main = salome.myStudyManager.NewStudy("HOMARD")
-homard.SetCurrentStudy(salome.myStudy)
-#
-repcas = "/tmp"
-#
-# Creation of the zones
-# =====================
-# Box "Zone_0"
-Zone_0 = homard.CreateZone('Zone_0', 2)
-Zone_0.SetBox(-0.1, 1.1, -0.1, 1.1, 0.9, 1.1)
-
-# Sphere "Zone_1"
-Zone_1 = homard.CreateZone('Zone_1', 4)
-Zone_1.SetSphere(0., 0., 0., 1.05)
-#
-# Hypothesis "Hypo_0"
-# ===================
-Hypo_0 = homard.CreateHypothesis('Hypo_0')
-Hypo_0.SetAdapRefinUnRef(0, 1, 0)
-homard.AssociateHypoZone('Zone_1', 'Hypo_0')
-homard.AssociateHypoZone('Zone_0', 'Hypo_0')
-#
-# Case "Case_0"
-# =============
-Case_0 = homard.CreateCase('Case_0', 'MZERO', repcas+'/tutorial_2.00.med')
-Case_0.SetDirName(repcas)
-#
-# Iteration "Iter_0"
-# ==================
-Iter_0 = homard.CreateIteration('Iter_0', Case_0.GetIter0Name())
-Iter_0.SetMeshName('MUN')
-Iter_0.SetMeshFile(repcas+'/maill.01.med')
-homard.AssociateIterHypo('Iter_0', 'Hypo_0')
-codret = homard.Compute('Iter_0', 1)
-
-if salome.sg.hasDesktop():
- salome.sg.updateObjBrowser(1)
else
executable = std::string(execchar);
_HOMARD_Exec = dir + "/" + executable ;
+ MESSAGE("Dans HomardDriver::HomardDriver, _HOMARD_Exec ="<<_HOMARD_Exec);
//
_siter = siter ;
_siterp1 = siterp1 ;
////=============================================================================
void HomardDriver::TexteInit( const std::string DirCompute, const std::string DirComputePa, const std::string MessFile )
{
-
+ MESSAGE("Dans HomardDriver::TexteInit, MessFile ="<<MessFile);
+//
_Texte = "Action homa\n" ;
_Texte += "CCAssoci med\n" ;
_Texte += "ModeHOMA 1\n" ;
////=============================================================================
void HomardDriver::TexteMaillage( const std::string NomMesh, const std::string MeshFile, int apres )
{
+ MESSAGE("Dans HomardDriver::TexteMaillage, NomMesh ="<<NomMesh<<", MeshFile ="<<MeshFile);
std::string saux ;
saux = "P1" ;
if ( apres < 1 ) { saux = "__" ; }
////=============================================================================
void HomardDriver::TexteConfRaffDera( int ConfType, int TypeAdap, int TypeRaff, int TypeDera )
{
-// std::cerr << "Dans HomardDriver::TexteConfRaffDera, ConfType ="<<ConfType << std::endl;
-// std::cerr << "Dans HomardDriver::TexteConfRaffDera, TypeAdap ="<<TypeAdap << std::endl;
-// std::cerr << "Dans HomardDriver::TexteConfRaffDera, TypeRaff ="<<TypeRaff << std::endl;
-// std::cerr << "Dans HomardDriver::TexteConfRaffDera, TypeDera ="<<TypeDera << std::endl;
+ MESSAGE("Dans HomardDriver::TexteConfRaffDera, ConfType ="<<ConfType);
+ MESSAGE("Dans HomardDriver::TexteConfRaffDera, TypeAdap ="<<TypeAdap<<", TypeRaff ="<<TypeRaff<<", TypeDera ="<<TypeDera);
//
// Type de conformite
//
}
_Texte += "# Type de raffinement/deraffinement\n" + saux + "\n" ;
//
-// std::cerr << "A la fin de TexteConfRaffDera _Texte ="<<_Texte << std::endl;
+// MESSAGE("A la fin de HomardDriver::TexteConfRaffDera, _Texte ="<<_Texte);
}
////=============================================================================
void HomardDriver::TexteCompo( int NumeComp, const std::string NompCompo)
{
-// std::cerr << "Dans TexteCompo de HomardDriver NompCompo = "<<NompCompo << std::endl;
+ MESSAGE("Dans HomardDriver::TexteCompo, NumeComp = "<<NumeComp<<", NompCompo = "<<NompCompo);
_Texte +="CCCoChaI \"" + NompCompo + "\"\n" ;
}
////=============================================================================
void HomardDriver::TexteZone( int NumeZone, int ZoneType, double x0, double x1, double x2, double x3, double x4, double x5 )
{
-// std::cerr << "Dans TexteZone de HomardDriver NumeZone = "<<NumeZone << std::endl;
-// std::cerr << "Dans TexteZone de HomardDriver ZoneType = "<<ZoneType << std::endl;
-// std::cerr << "Dans TexteZone de HomardDriver coor = "<< x0<<","<<x1<< ","<< x2<< ","<< x3<<","<<x4<<","<<x5 <<std::endl;
+ MESSAGE("Dans HomardDriver::TexteZone, NumeZone = "<<NumeZone<<", ZoneType = "<<ZoneType);
+ MESSAGE("Dans HomardDriver::TexteZone, coor = "<< x0<<","<<x1<< ","<< x2<< ","<< x3<<","<<x4<<","<<x5);
//
std::string saux, saux2 ;
//
//
_Texte += saux + "#\n" ;
//
-// std::cerr << "A la fin de TexteZone _Texte ="<<_Texte << std::endl;
+// MESSAGE("A la fin de HomardDriver::TexteZone, _Texte ="<<_Texte);
}
////=============================================================================
void HomardDriver::TexteField( const std::string FieldName, const std::string FieldFile, int TimeStep, int Rank,
int TypeThR, double ThreshR, int TypeThC, double ThreshC, int UsCmpI )
{
- MESSAGE("TexteField, FieldName = "<<FieldName<<", FieldFile = "<<FieldFile);
- MESSAGE("TexteField, TimeStep = "<<TimeStep<<", Rank = "<<Rank);
+ MESSAGE("Dans HomardDriver::TexteField, FieldName = "<<FieldName<<", FieldFile = "<<FieldFile);
+ MESSAGE("Dans HomardDriver::TexteField, TimeStep = "<<TimeStep<<", Rank = "<<Rank);
std::string saux, saux2 ;
//
_Texte += "CCIndica " + FieldFile + "\n" ;
_Texte += "CCNoChaI \"" + FieldName + "\"\n" ;
-// std::cerr << "HomardDriver::TexteField TimeStep" << TimeStep<<std::endl;
-// std::cerr << "HomardDriver::TexteField Rank" << Rank<<std::endl;
// Cas ou on prend le dernier pas de temps
if ( TimeStep == -2 )
{ _Texte += "CCNumPTI Last\n" ; }
////=============================================================================
void HomardDriver::TexteGroup( const std::string GroupName )
{
-// std::cerr << "Dans HomardDriver::TexteGroup NomGroupe ="<<NomGroupe << std::endl;
+ MESSAGE("Dans HomardDriver::TexteGroup, GroupName = "<<GroupName);
//
_Texte += "CCGroAda " + GroupName + "\n" ;
//
////=============================================================================
void HomardDriver::TexteBoundaryOption( int BoundaryOption )
{
-// std::cerr << "Dans HomardDriver::TexteBoundaryOption, BoundaryOption ="<<BoundaryOption << std::endl;
+ MESSAGE("Dans HomardDriver::TexteBoundaryOption, BoundaryOption = "<<BoundaryOption);
//
// Type de suivi de frontiere
//
std::string saux = saux1.str() ;
_Texte += "SuivFron " + saux + "\n" ;
//
-// std::cerr << "A la fin de TexteBoundaryOption _Texte ="<<_Texte << std::endl;
}
////=============================================================================
void HomardDriver::TexteBoundaryDi( const std::string MeshName, const std::string MeshFile, const std::string GroupName )
{
- MESSAGE("Dans TexteBoundaryDi de HomardDriver MeshName = "<<MeshName);
- MESSAGE("Dans TexteBoundaryDi de HomardDriver MeshFile = "<<MeshFile);
- MESSAGE("Dans TexteBoundaryDi de HomardDriver GroupName = "<<GroupName);
+ MESSAGE("Dans HomardDriver::TexteBoundaryDi, MeshName = "<<MeshName);
+ MESSAGE("Dans HomardDriver::TexteBoundaryDi, MeshFile = "<<MeshFile);
+ MESSAGE("Dans HomardDriver::TexteBoundaryDi, GroupName = "<<GroupName);
//
_Texte += "CCNoMFro " + MeshName + "\n" ;
_Texte += "CCFronti " + MeshFile + "\n" ;
if ( GroupName.size() > 0 ) _Texte += "CCGroFro " + GroupName + "\n" ;
//
-// std::cerr << "A la fin de TexteBoundaryOption _Texte ="<<_Texte << std::endl;
}
////=============================================================================
void HomardDriver::TexteBoundaryAn( int NumeBoundary, int BoundaryType, const std::string Group, double x0, double x1, double x2, double x3, double x4, double x5, double x6 )
{
- MESSAGE("Dans TexteBoundaryAn de HomardDriver NumeBoundary = "<<NumeBoundary);
- MESSAGE("Dans TexteBoundaryAn de HomardDriver BoundaryType = "<<BoundaryType);
- MESSAGE("Dans TexteBoundaryAn de HomardDriver coor = "<< x0<<","<<x1<< ","<< x2<< ","<< x3<<","<<x4<<","<<x5<<","<<x6);
+ MESSAGE("Dans HomardDriver::TexteBoundaryAn, NumeBoundary = "<<NumeBoundary);
+ MESSAGE("Dans HomardDriver::TexteBoundaryAn, BoundaryType = "<<BoundaryType);
+ MESSAGE("Dans HomardDriver::TexteBoundaryAn, coor = "<< x0<<","<<x1<< ","<< x2<< ","<< x3<<","<<x4<<","<<x5<<","<<x6);
//
std::string saux, saux2 ;
//
//
_Texte += saux + "#\n" ;
//
-// std::cerr << "A la fin de TexteBoundaryAn _Texte ="<<_Texte << std::endl;
}
////=============================================================================
void HomardDriver::TexteFieldInterp( int TypeFieldInterp, const std::string FieldFile, const std::string MeshFile, int TimeStep, int Rank )
{
- MESSAGE("TexteFieldInterp, TypeFieldInterp = "<<TypeFieldInterp);
- MESSAGE("TexteFieldInterp, FieldFile = "<<FieldFile<<", MeshFile = "<<MeshFile);
- MESSAGE("TexteFieldInterp, TimeStep = "<<TimeStep<<", Rank = "<<Rank);
+ MESSAGE("Dans HomardDriver::TexteFieldInterp, TypeFieldInterp = "<<TypeFieldInterp);
+ MESSAGE("Dans HomardDriver::TexteFieldInterp, FieldFile = "<<FieldFile<<", MeshFile = "<<MeshFile);
+ MESSAGE("Dans HomardDriver::TexteFieldInterp, TimeStep = "<<TimeStep<<", Rank = "<<Rank);
//
// Type d'interpolation
//
////=============================================================================
void HomardDriver::TexteFieldInterpName( int NumeChamp, const std::string FieldName)
{
- MESSAGE("TexteFieldInterpName, NumeChamp = "<<NumeChamp<<", FieldName = "<<FieldName);
+ MESSAGE("Dans HomardDriver::TexteFieldInterpName, NumeChamp = "<<NumeChamp<<", FieldName = "<<FieldName);
std::stringstream saux1 ;
saux1 << NumeChamp+1 ;
std::string saux = saux1.str() ;
/********************************************************************************
** Form generated from reading ui file 'CreateBoundaryAn.ui'
**
-** Created: Wed Jan 19 15:34:59 2011
+** Created: Thu Feb 24 09:10:36 2011
** by: Qt User Interface Compiler version 4.2.1
**
** WARNING! All changes made in this file will be lost when recompiling ui file!
void retranslateUi(QDialog *CreateBoundaryAn)
{
- CreateBoundaryAn->setWindowTitle(QApplication::translate("CreateBoundaryAn", "Create Analytical Boundary", 0, QApplication::UnicodeUTF8));
+ CreateBoundaryAn->setWindowTitle(QApplication::translate("CreateBoundaryAn", "Create an analytical boundary", 0, QApplication::UnicodeUTF8));
gBCylindre->setTitle(QApplication::translate("CreateBoundaryAn", "Coordinates of the cylindre", 0, QApplication::UnicodeUTF8));
TLXcent->setText(QApplication::translate("CreateBoundaryAn", "X centre", 0, QApplication::UnicodeUTF8));
TLradius->setText(QApplication::translate("CreateBoundaryAn", "Radius", 0, QApplication::UnicodeUTF8));
TLYaxis->setText(QApplication::translate("CreateBoundaryAn", "Y axis", 0, QApplication::UnicodeUTF8));
TLZaxis->setText(QApplication::translate("CreateBoundaryAn", "Z axis", 0, QApplication::UnicodeUTF8));
GBButtons->setTitle(QString());
- buttonOk->setText(QApplication::translate("CreateBoundaryAn", "&Ok", 0, QApplication::UnicodeUTF8));
- buttonApply->setText(QApplication::translate("CreateBoundaryAn", "&Apply", 0, QApplication::UnicodeUTF8));
- buttonCancel->setText(QApplication::translate("CreateBoundaryAn", "&Cancel", 0, QApplication::UnicodeUTF8));
- buttonHelp->setText(QApplication::translate("CreateBoundaryAn", "&Help", 0, QApplication::UnicodeUTF8));
+ buttonOk->setText(QApplication::translate("CreateBoundaryAn", "OK", 0, QApplication::UnicodeUTF8));
+ buttonApply->setText(QApplication::translate("CreateBoundaryAn", "Apply", 0, QApplication::UnicodeUTF8));
+ buttonCancel->setText(QApplication::translate("CreateBoundaryAn", "Cancel", 0, QApplication::UnicodeUTF8));
+ buttonHelp->setText(QApplication::translate("CreateBoundaryAn", "Help", 0, QApplication::UnicodeUTF8));
gBSphere->setTitle(QApplication::translate("CreateBoundaryAn", "Coordinates of the sphere", 0, QApplication::UnicodeUTF8));
TLRayon->setText(QApplication::translate("CreateBoundaryAn", "Radius", 0, QApplication::UnicodeUTF8));
TLZcentre->setText(QApplication::translate("CreateBoundaryAn", "Z centre", 0, QApplication::UnicodeUTF8));
</rect>
</property>
<property name="windowTitle" >
- <string>Create Analytical Boundary</string>
+ <string>Create an analytical boundary</string>
</property>
<property name="autoFillBackground" >
<bool>true</bool>
<item>
<widget class="QPushButton" name="buttonOk" >
<property name="text" >
- <string>&Ok</string>
+ <string>OK</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="buttonApply" >
<property name="text" >
- <string>&Apply</string>
+ <string>Apply</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="buttonCancel" >
<property name="text" >
- <string>&Cancel</string>
+ <string>Cancel</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="buttonHelp" >
<property name="text" >
- <string>&Help</string>
+ <string>Help</string>
</property>
</widget>
</item>
/********************************************************************************
** Form generated from reading ui file 'CreateBoundaryDi.ui'
**
-** Created: Thu Nov 18 15:18:52 2010
-** by: Qt User Interface Compiler version 4.4.3
+** Created: Thu Feb 24 09:10:36 2011
+** by: Qt User Interface Compiler version 4.2.1
**
** WARNING! All changes made in this file will be lost when recompiling ui file!
********************************************************************************/
#include <QtGui/QLineEdit>
#include <QtGui/QPushButton>
-QT_BEGIN_NAMESPACE
-
class Ui_CreateBoundaryDi
{
public:
QLineEdit *LEFileName;
QCheckBox *CBGroupe;
QGroupBox *GBButtons;
- QGridLayout *gridLayout_5;
+ QGridLayout *gridLayout1;
QPushButton *buttonOk;
QPushButton *buttonApply;
QPushButton *buttonCancel;
void setupUi(QDialog *CreateBoundaryDi)
{
- if (CreateBoundaryDi->objectName().isEmpty())
- CreateBoundaryDi->setObjectName(QString::fromUtf8("CreateBoundaryDi"));
- CreateBoundaryDi->resize(566, 169);
- QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
+ CreateBoundaryDi->setObjectName(QString::fromUtf8("CreateBoundaryDi"));
+ QSizePolicy sizePolicy(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0));
sizePolicy.setHorizontalStretch(0);
sizePolicy.setVerticalStretch(0);
sizePolicy.setHeightForWidth(CreateBoundaryDi->sizePolicy().hasHeightForWidth());
CreateBoundaryDi->setSizePolicy(sizePolicy);
- CreateBoundaryDi->setAutoFillBackground(false);
+ CreateBoundaryDi->setAutoFillBackground(true);
CreateBoundaryDi->setSizeGripEnabled(true);
gridLayout = new QGridLayout(CreateBoundaryDi);
+ gridLayout->setSpacing(6);
+ gridLayout->setMargin(9);
gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
Name = new QLabel(CreateBoundaryDi);
Name->setObjectName(QString::fromUtf8("Name"));
GBButtons = new QGroupBox(CreateBoundaryDi);
GBButtons->setObjectName(QString::fromUtf8("GBButtons"));
- gridLayout_5 = new QGridLayout(GBButtons);
- gridLayout_5->setObjectName(QString::fromUtf8("gridLayout_5"));
+ gridLayout1 = new QGridLayout(GBButtons);
+ gridLayout1->setSpacing(6);
+ gridLayout1->setMargin(9);
+ gridLayout1->setObjectName(QString::fromUtf8("gridLayout1"));
buttonOk = new QPushButton(GBButtons);
buttonOk->setObjectName(QString::fromUtf8("buttonOk"));
- gridLayout_5->addWidget(buttonOk, 0, 0, 1, 1);
+ gridLayout1->addWidget(buttonOk, 0, 0, 1, 1);
buttonApply = new QPushButton(GBButtons);
buttonApply->setObjectName(QString::fromUtf8("buttonApply"));
- gridLayout_5->addWidget(buttonApply, 0, 1, 1, 1);
+ gridLayout1->addWidget(buttonApply, 0, 1, 1, 1);
buttonCancel = new QPushButton(GBButtons);
buttonCancel->setObjectName(QString::fromUtf8("buttonCancel"));
- gridLayout_5->addWidget(buttonCancel, 0, 2, 1, 1);
+ gridLayout1->addWidget(buttonCancel, 0, 2, 1, 1);
buttonHelp = new QPushButton(GBButtons);
buttonHelp->setObjectName(QString::fromUtf8("buttonHelp"));
- gridLayout_5->addWidget(buttonHelp, 0, 3, 1, 1);
+ gridLayout1->addWidget(buttonHelp, 0, 3, 1, 1);
gridLayout->addWidget(GBButtons, 3, 0, 1, 3);
retranslateUi(CreateBoundaryDi);
+ QSize size(566, 169);
+ size = size.expandedTo(CreateBoundaryDi->minimumSizeHint());
+ CreateBoundaryDi->resize(size);
+
+
QMetaObject::connectSlotsByName(CreateBoundaryDi);
} // setupUi
void retranslateUi(QDialog *CreateBoundaryDi)
{
- CreateBoundaryDi->setWindowTitle(QApplication::translate("CreateBoundaryDi", "Create Discrete Boundary", 0, QApplication::UnicodeUTF8));
+ CreateBoundaryDi->setWindowTitle(QApplication::translate("CreateBoundaryDi", "Create a discrete boundary", 0, QApplication::UnicodeUTF8));
Name->setText(QApplication::translate("CreateBoundaryDi", "Name", 0, QApplication::UnicodeUTF8));
Mesh->setText(QApplication::translate("CreateBoundaryDi", "Mesh", 0, QApplication::UnicodeUTF8));
PushFichier->setText(QString());
CBGroupe->setText(QApplication::translate("CreateBoundaryDi", "Filtering with groups", 0, QApplication::UnicodeUTF8));
GBButtons->setTitle(QString());
- buttonOk->setText(QApplication::translate("CreateBoundaryDi", "&Ok", 0, QApplication::UnicodeUTF8));
- buttonApply->setText(QApplication::translate("CreateBoundaryDi", "&Apply", 0, QApplication::UnicodeUTF8));
- buttonCancel->setText(QApplication::translate("CreateBoundaryDi", "&Cancel", 0, QApplication::UnicodeUTF8));
- buttonHelp->setText(QApplication::translate("CreateBoundaryDi", "&Help", 0, QApplication::UnicodeUTF8));
+ buttonOk->setText(QApplication::translate("CreateBoundaryDi", "OK", 0, QApplication::UnicodeUTF8));
+ buttonApply->setText(QApplication::translate("CreateBoundaryDi", "Apply", 0, QApplication::UnicodeUTF8));
+ buttonCancel->setText(QApplication::translate("CreateBoundaryDi", "Cancel", 0, QApplication::UnicodeUTF8));
+ buttonHelp->setText(QApplication::translate("CreateBoundaryDi", "Help", 0, QApplication::UnicodeUTF8));
Q_UNUSED(CreateBoundaryDi);
} // retranslateUi
class CreateBoundaryDi: public Ui_CreateBoundaryDi {};
} // namespace Ui
-QT_END_NAMESPACE
-
#endif // CREATEBOUNDARYDI_H
</rect>
</property>
<property name="sizePolicy" >
- <sizepolicy vsizetype="Expanding" hsizetype="Expanding" >
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="windowTitle" >
- <string>Create Discrete Boundary</string>
+ <string>Create a discrete boundary</string>
</property>
<property name="autoFillBackground" >
- <bool>false</bool>
+ <bool>true</bool>
</property>
<property name="sizeGripEnabled" >
<bool>true</bool>
</property>
- <layout class="QGridLayout" name="gridLayout" >
+ <layout class="QGridLayout" >
+ <property name="margin" >
+ <number>9</number>
+ </property>
+ <property name="spacing" >
+ <number>6</number>
+ </property>
<item row="0" column="0" >
<widget class="QLabel" name="Name" >
<property name="text" >
<property name="title" >
<string/>
</property>
- <layout class="QGridLayout" name="gridLayout_5" >
+ <layout class="QGridLayout" >
+ <property name="margin" >
+ <number>9</number>
+ </property>
+ <property name="spacing" >
+ <number>6</number>
+ </property>
<item row="0" column="0" >
<widget class="QPushButton" name="buttonOk" >
<property name="text" >
- <string>&Ok</string>
+ <string>OK</string>
</property>
</widget>
</item>
<item row="0" column="1" >
<widget class="QPushButton" name="buttonApply" >
<property name="text" >
- <string>&Apply</string>
+ <string>Apply</string>
</property>
</widget>
</item>
<item row="0" column="2" >
<widget class="QPushButton" name="buttonCancel" >
<property name="text" >
- <string>&Cancel</string>
+ <string>Cancel</string>
</property>
</widget>
</item>
<item row="0" column="3" >
<widget class="QPushButton" name="buttonHelp" >
<property name="text" >
- <string>&Help</string>
+ <string>Help</string>
</property>
</widget>
</item>
/********************************************************************************
** Form generated from reading ui file 'CreateCase.ui'
**
-** Created: Mon Jan 31 13:48:20 2011
+** Created: Tue Mar 15 09:25:40 2011
** by: Qt User Interface Compiler version 4.2.1
**
** WARNING! All changes made in this file will be lost when recompiling ui file!
void retranslateUi(QDialog *CreateCase)
{
- CreateCase->setWindowTitle(QApplication::translate("CreateCase", "Create Case", 0, QApplication::UnicodeUTF8));
+ CreateCase->setWindowTitle(QApplication::translate("CreateCase", "Create a case", 0, QApplication::UnicodeUTF8));
GroupButtons->setTitle(QString());
- buttonOk->setText(QApplication::translate("CreateCase", "&Ok", 0, QApplication::UnicodeUTF8));
- buttonApply->setText(QApplication::translate("CreateCase", "&Apply", 0, QApplication::UnicodeUTF8));
- buttonCancel->setText(QApplication::translate("CreateCase", "&Cancel", 0, QApplication::UnicodeUTF8));
- buttonHelp->setText(QApplication::translate("CreateCase", "&Help", 0, QApplication::UnicodeUTF8));
- GBBoundaryA->setTitle(QApplication::translate("CreateCase", "Analytic Boundary", 0, QApplication::UnicodeUTF8));
+ buttonOk->setText(QApplication::translate("CreateCase", "OK", 0, QApplication::UnicodeUTF8));
+ buttonApply->setText(QApplication::translate("CreateCase", "Apply", 0, QApplication::UnicodeUTF8));
+ buttonCancel->setText(QApplication::translate("CreateCase", "Cancel", 0, QApplication::UnicodeUTF8));
+ buttonHelp->setText(QApplication::translate("CreateCase", "Help", 0, QApplication::UnicodeUTF8));
+ GBBoundaryA->setTitle(QApplication::translate("CreateCase", "Analytical boundary", 0, QApplication::UnicodeUTF8));
PBBoundaryAnNew->setText(QApplication::translate("CreateCase", "New", 0, QApplication::UnicodeUTF8));
PBBoundaryAnHelp->setText(QApplication::translate("CreateCase", "Help", 0, QApplication::UnicodeUTF8));
if (TWBoundary->columnCount() < 1)
PushDir->setText(QString());
Mesh_2->setText(QApplication::translate("CreateCase", "Mesh", 0, QApplication::UnicodeUTF8));
PushFichier->setText(QString());
- GBTypeConf->setTitle(QApplication::translate("CreateCase", "Conformity Type", 0, QApplication::UnicodeUTF8));
+ GBTypeConf->setTitle(QApplication::translate("CreateCase", "Conformity type", 0, QApplication::UnicodeUTF8));
RBConforme->setText(QApplication::translate("CreateCase", "Conformal", 0, QApplication::UnicodeUTF8));
RBNonConforme->setText(QApplication::translate("CreateCase", "Non conformal", 0, QApplication::UnicodeUTF8));
- GBTypeNoConf->setTitle(QApplication::translate("CreateCase", "Non Conformal option", 0, QApplication::UnicodeUTF8));
+ GBTypeNoConf->setTitle(QApplication::translate("CreateCase", "Non conformal option", 0, QApplication::UnicodeUTF8));
RB1NpM->setText(QApplication::translate("CreateCase", "1 hanging node per mesh", 0, QApplication::UnicodeUTF8));
RB1NpA->setText(QApplication::translate("CreateCase", "1 node per edge", 0, QApplication::UnicodeUTF8));
- RBQuelconque->setText(QApplication::translate("CreateCase", "free", 0, QApplication::UnicodeUTF8));
- CBBoundaryD->setText(QApplication::translate("CreateCase", "Discrete Boundary ", 0, QApplication::UnicodeUTF8));
- CBBoundaryA->setText(QApplication::translate("CreateCase", "Analytic Boundary ", 0, QApplication::UnicodeUTF8));
- GBBoundaryD->setTitle(QApplication::translate("CreateCase", "Discrete Boundary", 0, QApplication::UnicodeUTF8));
+ RBQuelconque->setText(QApplication::translate("CreateCase", "Free", 0, QApplication::UnicodeUTF8));
+ CBBoundaryD->setText(QApplication::translate("CreateCase", "Discrete boundary", 0, QApplication::UnicodeUTF8));
+ CBBoundaryA->setText(QApplication::translate("CreateCase", "Analytical boundary", 0, QApplication::UnicodeUTF8));
+ GBBoundaryD->setTitle(QApplication::translate("CreateCase", "Discrete boundary", 0, QApplication::UnicodeUTF8));
PBBoundaryDiHelp->setText(QApplication::translate("CreateCase", "Help", 0, QApplication::UnicodeUTF8));
PBBoundaryDiNew->setText(QApplication::translate("CreateCase", "New", 0, QApplication::UnicodeUTF8));
PBBoundaryDiEdit->setText(QApplication::translate("CreateCase", "Edit", 0, QApplication::UnicodeUTF8));
</sizepolicy>
</property>
<property name="windowTitle" >
- <string>Create Case</string>
+ <string>Create a case</string>
</property>
<property name="autoFillBackground" >
<bool>true</bool>
<item row="0" column="0" >
<widget class="QPushButton" name="buttonOk" >
<property name="text" >
- <string>&Ok</string>
+ <string>OK</string>
</property>
<property name="autoDefault" >
<bool>false</bool>
<item row="0" column="1" >
<widget class="QPushButton" name="buttonApply" >
<property name="text" >
- <string>&Apply</string>
+ <string>Apply</string>
</property>
<property name="autoDefault" >
<bool>false</bool>
<item row="0" column="2" >
<widget class="QPushButton" name="buttonCancel" >
<property name="text" >
- <string>&Cancel</string>
+ <string>Cancel</string>
</property>
<property name="autoDefault" >
<bool>false</bool>
<item row="0" column="3" >
<widget class="QPushButton" name="buttonHelp" >
<property name="text" >
- <string>&Help</string>
+ <string>Help</string>
</property>
<property name="autoDefault" >
<bool>false</bool>
</size>
</property>
<property name="title" >
- <string>Analytic Boundary</string>
+ <string>Analytical boundary</string>
</property>
<widget class="QWidget" name="layoutWidget" >
<property name="geometry" >
<item row="5" column="0" colspan="2" >
<widget class="QGroupBox" name="GBTypeConf" >
<property name="title" >
- <string>Conformity Type</string>
+ <string>Conformity type</string>
</property>
<layout class="QHBoxLayout" >
<property name="margin" >
<item row="7" column="0" colspan="2" >
<widget class="QGroupBox" name="GBTypeNoConf" >
<property name="title" >
- <string>Non Conformal option</string>
+ <string>Non conformal option</string>
</property>
<layout class="QHBoxLayout" >
<property name="margin" >
<item>
<widget class="QRadioButton" name="RBQuelconque" >
<property name="text" >
- <string>free</string>
+ <string>Free</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="CBBoundaryD" >
<property name="text" >
- <string>Discrete Boundary </string>
+ <string>Discrete boundary</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="CBBoundaryA" >
<property name="text" >
- <string>Analytic Boundary </string>
+ <string>Analytical boundary</string>
</property>
</widget>
</item>
</sizepolicy>
</property>
<property name="title" >
- <string>Discrete Boundary</string>
+ <string>Discrete boundary</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
/********************************************************************************
** Form generated from reading ui file 'CreateHypothesis.ui'
**
-** Created: Thu Nov 18 15:21:42 2010
-** by: Qt User Interface Compiler version 4.4.3
+** Created: Tue Mar 15 11:33:40 2011
+** by: Qt User Interface Compiler version 4.2.1
**
** WARNING! All changes made in this file will be lost when recompiling ui file!
********************************************************************************/
#include <QtGui/QTableWidget>
#include <QtGui/QVBoxLayout>
-QT_BEGIN_NAMESPACE
-
class Ui_CreateHypothesis
{
public:
- QGridLayout *gridLayout_10;
+ QGridLayout *gridLayout;
QLabel *Name;
QLineEdit *LEHypothesisName;
QGroupBox *GBTypeAdaptation;
- QHBoxLayout *horizontalLayout;
+ QHBoxLayout *hboxLayout;
QRadioButton *RBUniforme;
QRadioButton *RBChamp;
QRadioButton *RBZone;
QGroupBox *GBUniform;
- QGridLayout *gridLayout_2;
+ QGridLayout *gridLayout1;
QRadioButton *RBUniDera;
QRadioButton *RBUniRaff;
QGroupBox *GBFieldFile;
- QGridLayout *gridLayout_9;
+ QGridLayout *gridLayout2;
QLabel *FieldFile;
QLineEdit *LEFieldFile;
QGroupBox *GBFieldManagement;
- QGridLayout *gridLayout_6;
- QHBoxLayout *horizontalLayout_6;
+ QGridLayout *gridLayout3;
+ QHBoxLayout *hboxLayout1;
QLabel *FieldName;
QComboBox *CBFieldName;
- QSpacerItem *horizontalSpacer_3;
- QHBoxLayout *horizontalLayout_7;
+ QSpacerItem *spacerItem;
+ QHBoxLayout *hboxLayout2;
QTableWidget *TWCMP;
- QSpacerItem *horizontalSpacer_4;
- QVBoxLayout *verticalLayout_3;
- QHBoxLayout *horizontalLayout_3;
+ QSpacerItem *spacerItem1;
+ QVBoxLayout *vboxLayout;
+ QHBoxLayout *hboxLayout3;
QRadioButton *RBL2;
QRadioButton *RBInf;
- QHBoxLayout *horizontalLayout_2;
+ QHBoxLayout *hboxLayout4;
QGroupBox *GBRefinementThresholds;
- QGridLayout *gridLayout;
+ QGridLayout *gridLayout4;
QRadioButton *RBRPE;
QDoubleSpinBox *SpinBox_RPE;
QRadioButton *RBRRel;
QDoubleSpinBox *SpinBox_RAbs;
QRadioButton *RBRNo;
QGroupBox *GBCoarseningThresholds;
- QGridLayout *gridLayout_4;
+ QGridLayout *gridLayout5;
QRadioButton *RBCPE;
QDoubleSpinBox *SpinBox_CPE;
QRadioButton *RBCRel;
QDoubleSpinBox *SpinBox_CAbs;
QRadioButton *RBCNo;
QGroupBox *GBAreaManagement;
- QGridLayout *gridLayout_3;
+ QGridLayout *gridLayout6;
QTableWidget *TWZone;
- QVBoxLayout *verticalLayout_2;
- QVBoxLayout *verticalLayout;
+ QVBoxLayout *vboxLayout1;
+ QVBoxLayout *vboxLayout2;
QPushButton *PBZoneNew;
QPushButton *PBZoneEdit;
QPushButton *PBZoneDelete;
- QSpacerItem *verticalSpacer;
+ QSpacerItem *spacerItem2;
QGroupBox *GBField;
- QGridLayout *gridLayout_8;
- QGridLayout *gridLayout_7;
+ QGridLayout *gridLayout7;
+ QGridLayout *gridLayout8;
QRadioButton *RBFieldNo;
QRadioButton *RBFieldAll;
QRadioButton *RBFieldChosen;
QTableWidget *TWField;
QCheckBox *CBGroupe;
QGroupBox *GBButtons;
- QGridLayout *gridLayout_5;
+ QGridLayout *gridLayout9;
QPushButton *buttonOk;
QPushButton *buttonApply;
QPushButton *buttonCancel;
void setupUi(QDialog *CreateHypothesis)
{
- if (CreateHypothesis->objectName().isEmpty())
- CreateHypothesis->setObjectName(QString::fromUtf8("CreateHypothesis"));
- CreateHypothesis->resize(717, 1005);
- QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
+ CreateHypothesis->setObjectName(QString::fromUtf8("CreateHypothesis"));
+ QSizePolicy sizePolicy(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0));
sizePolicy.setHorizontalStretch(0);
sizePolicy.setVerticalStretch(0);
sizePolicy.setHeightForWidth(CreateHypothesis->sizePolicy().hasHeightForWidth());
CreateHypothesis->setSizePolicy(sizePolicy);
- CreateHypothesis->setAutoFillBackground(false);
+ CreateHypothesis->setAutoFillBackground(true);
CreateHypothesis->setSizeGripEnabled(true);
- gridLayout_10 = new QGridLayout(CreateHypothesis);
- gridLayout_10->setObjectName(QString::fromUtf8("gridLayout_10"));
+ gridLayout = new QGridLayout(CreateHypothesis);
+ gridLayout->setSpacing(6);
+ gridLayout->setMargin(9);
+ gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
Name = new QLabel(CreateHypothesis);
Name->setObjectName(QString::fromUtf8("Name"));
- gridLayout_10->addWidget(Name, 0, 0, 1, 1);
+ gridLayout->addWidget(Name, 0, 0, 1, 1);
LEHypothesisName = new QLineEdit(CreateHypothesis);
LEHypothesisName->setObjectName(QString::fromUtf8("LEHypothesisName"));
LEHypothesisName->setMinimumSize(QSize(382, 31));
LEHypothesisName->setMaxLength(32);
- gridLayout_10->addWidget(LEHypothesisName, 0, 1, 1, 1);
+ gridLayout->addWidget(LEHypothesisName, 0, 1, 1, 1);
GBTypeAdaptation = new QGroupBox(CreateHypothesis);
GBTypeAdaptation->setObjectName(QString::fromUtf8("GBTypeAdaptation"));
- horizontalLayout = new QHBoxLayout(GBTypeAdaptation);
- horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
+ hboxLayout = new QHBoxLayout(GBTypeAdaptation);
+ hboxLayout->setSpacing(6);
+ hboxLayout->setMargin(9);
+ hboxLayout->setObjectName(QString::fromUtf8("hboxLayout"));
RBUniforme = new QRadioButton(GBTypeAdaptation);
RBUniforme->setObjectName(QString::fromUtf8("RBUniforme"));
RBUniforme->setCheckable(true);
- horizontalLayout->addWidget(RBUniforme);
+ hboxLayout->addWidget(RBUniforme);
RBChamp = new QRadioButton(GBTypeAdaptation);
RBChamp->setObjectName(QString::fromUtf8("RBChamp"));
- horizontalLayout->addWidget(RBChamp);
+ hboxLayout->addWidget(RBChamp);
RBZone = new QRadioButton(GBTypeAdaptation);
RBZone->setObjectName(QString::fromUtf8("RBZone"));
- horizontalLayout->addWidget(RBZone);
+ hboxLayout->addWidget(RBZone);
- gridLayout_10->addWidget(GBTypeAdaptation, 1, 0, 1, 2);
+ gridLayout->addWidget(GBTypeAdaptation, 1, 0, 1, 2);
GBUniform = new QGroupBox(CreateHypothesis);
GBUniform->setObjectName(QString::fromUtf8("GBUniform"));
- gridLayout_2 = new QGridLayout(GBUniform);
- gridLayout_2->setObjectName(QString::fromUtf8("gridLayout_2"));
+ gridLayout1 = new QGridLayout(GBUniform);
+ gridLayout1->setSpacing(6);
+ gridLayout1->setMargin(9);
+ gridLayout1->setObjectName(QString::fromUtf8("gridLayout1"));
RBUniDera = new QRadioButton(GBUniform);
RBUniDera->setObjectName(QString::fromUtf8("RBUniDera"));
- gridLayout_2->addWidget(RBUniDera, 0, 1, 1, 1);
+ gridLayout1->addWidget(RBUniDera, 0, 1, 1, 1);
RBUniRaff = new QRadioButton(GBUniform);
RBUniRaff->setObjectName(QString::fromUtf8("RBUniRaff"));
RBUniRaff->setChecked(true);
- gridLayout_2->addWidget(RBUniRaff, 0, 0, 1, 1);
+ gridLayout1->addWidget(RBUniRaff, 0, 0, 1, 1);
- gridLayout_10->addWidget(GBUniform, 2, 0, 1, 2);
+ gridLayout->addWidget(GBUniform, 2, 0, 1, 2);
GBFieldFile = new QGroupBox(CreateHypothesis);
GBFieldFile->setObjectName(QString::fromUtf8("GBFieldFile"));
- gridLayout_9 = new QGridLayout(GBFieldFile);
- gridLayout_9->setObjectName(QString::fromUtf8("gridLayout_9"));
+ gridLayout2 = new QGridLayout(GBFieldFile);
+ gridLayout2->setSpacing(6);
+ gridLayout2->setMargin(9);
+ gridLayout2->setObjectName(QString::fromUtf8("gridLayout2"));
FieldFile = new QLabel(GBFieldFile);
FieldFile->setObjectName(QString::fromUtf8("FieldFile"));
- gridLayout_9->addWidget(FieldFile, 0, 0, 1, 1);
+ gridLayout2->addWidget(FieldFile, 0, 0, 1, 1);
LEFieldFile = new QLineEdit(GBFieldFile);
LEFieldFile->setObjectName(QString::fromUtf8("LEFieldFile"));
LEFieldFile->setMinimumSize(QSize(282, 31));
- gridLayout_9->addWidget(LEFieldFile, 0, 1, 1, 1);
+ gridLayout2->addWidget(LEFieldFile, 0, 1, 1, 1);
- gridLayout_10->addWidget(GBFieldFile, 3, 0, 1, 2);
+ gridLayout->addWidget(GBFieldFile, 3, 0, 1, 2);
GBFieldManagement = new QGroupBox(CreateHypothesis);
GBFieldManagement->setObjectName(QString::fromUtf8("GBFieldManagement"));
- sizePolicy.setHeightForWidth(GBFieldManagement->sizePolicy().hasHeightForWidth());
- GBFieldManagement->setSizePolicy(sizePolicy);
- gridLayout_6 = new QGridLayout(GBFieldManagement);
- gridLayout_6->setObjectName(QString::fromUtf8("gridLayout_6"));
- horizontalLayout_6 = new QHBoxLayout();
- horizontalLayout_6->setObjectName(QString::fromUtf8("horizontalLayout_6"));
+ QSizePolicy sizePolicy1(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0));
+ sizePolicy1.setHorizontalStretch(0);
+ sizePolicy1.setVerticalStretch(0);
+ sizePolicy1.setHeightForWidth(GBFieldManagement->sizePolicy().hasHeightForWidth());
+ GBFieldManagement->setSizePolicy(sizePolicy1);
+ gridLayout3 = new QGridLayout(GBFieldManagement);
+ gridLayout3->setSpacing(6);
+ gridLayout3->setMargin(9);
+ gridLayout3->setObjectName(QString::fromUtf8("gridLayout3"));
+ hboxLayout1 = new QHBoxLayout();
+ hboxLayout1->setSpacing(6);
+ hboxLayout1->setMargin(0);
+ hboxLayout1->setObjectName(QString::fromUtf8("hboxLayout1"));
FieldName = new QLabel(GBFieldManagement);
FieldName->setObjectName(QString::fromUtf8("FieldName"));
- horizontalLayout_6->addWidget(FieldName);
+ hboxLayout1->addWidget(FieldName);
CBFieldName = new QComboBox(GBFieldManagement);
CBFieldName->setObjectName(QString::fromUtf8("CBFieldName"));
- QSizePolicy sizePolicy1(QSizePolicy::Expanding, QSizePolicy::Fixed);
- sizePolicy1.setHorizontalStretch(0);
- sizePolicy1.setVerticalStretch(0);
- sizePolicy1.setHeightForWidth(CBFieldName->sizePolicy().hasHeightForWidth());
- CBFieldName->setSizePolicy(sizePolicy1);
+ QSizePolicy sizePolicy2(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0));
+ sizePolicy2.setHorizontalStretch(0);
+ sizePolicy2.setVerticalStretch(0);
+ sizePolicy2.setHeightForWidth(CBFieldName->sizePolicy().hasHeightForWidth());
+ CBFieldName->setSizePolicy(sizePolicy2);
CBFieldName->setEditable(false);
CBFieldName->setSizeAdjustPolicy(QComboBox::AdjustToContents);
- horizontalLayout_6->addWidget(CBFieldName);
+ hboxLayout1->addWidget(CBFieldName);
- horizontalSpacer_3 = new QSpacerItem(48, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
+ spacerItem = new QSpacerItem(48, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
- horizontalLayout_6->addItem(horizontalSpacer_3);
+ hboxLayout1->addItem(spacerItem);
- gridLayout_6->addLayout(horizontalLayout_6, 0, 0, 1, 1);
+ gridLayout3->addLayout(hboxLayout1, 0, 0, 1, 1);
- horizontalLayout_7 = new QHBoxLayout();
- horizontalLayout_7->setObjectName(QString::fromUtf8("horizontalLayout_7"));
+ hboxLayout2 = new QHBoxLayout();
+ hboxLayout2->setSpacing(6);
+ hboxLayout2->setMargin(0);
+ hboxLayout2->setObjectName(QString::fromUtf8("hboxLayout2"));
TWCMP = new QTableWidget(GBFieldManagement);
- if (TWCMP->columnCount() < 2)
- TWCMP->setColumnCount(2);
- QTableWidgetItem *__colItem = new QTableWidgetItem();
- TWCMP->setHorizontalHeaderItem(0, __colItem);
- QTableWidgetItem *__colItem1 = new QTableWidgetItem();
- TWCMP->setHorizontalHeaderItem(1, __colItem1);
TWCMP->setObjectName(QString::fromUtf8("TWCMP"));
- TWCMP->setEditTriggers(QAbstractItemView::AnyKeyPressed|QAbstractItemView::DoubleClicked|QAbstractItemView::EditKeyPressed|QAbstractItemView::SelectedClicked);
+ TWCMP->setEditTriggers(QAbstractItemView::AnyKeyPressed|QAbstractItemView::DoubleClicked|QAbstractItemView::EditKeyPressed|QAbstractItemView::NoEditTriggers|QAbstractItemView::SelectedClicked);
TWCMP->setShowGrid(true);
TWCMP->setRowCount(0);
TWCMP->setColumnCount(2);
- horizontalLayout_7->addWidget(TWCMP);
+ hboxLayout2->addWidget(TWCMP);
- horizontalSpacer_4 = new QSpacerItem(60, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
+ spacerItem1 = new QSpacerItem(60, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
- horizontalLayout_7->addItem(horizontalSpacer_4);
+ hboxLayout2->addItem(spacerItem1);
- verticalLayout_3 = new QVBoxLayout();
- verticalLayout_3->setObjectName(QString::fromUtf8("verticalLayout_3"));
- horizontalLayout_3 = new QHBoxLayout();
- horizontalLayout_3->setObjectName(QString::fromUtf8("horizontalLayout_3"));
+ vboxLayout = new QVBoxLayout();
+ vboxLayout->setSpacing(6);
+ vboxLayout->setMargin(0);
+ vboxLayout->setObjectName(QString::fromUtf8("vboxLayout"));
+ hboxLayout3 = new QHBoxLayout();
+ hboxLayout3->setSpacing(6);
+ hboxLayout3->setMargin(0);
+ hboxLayout3->setObjectName(QString::fromUtf8("hboxLayout3"));
RBL2 = new QRadioButton(GBFieldManagement);
RBL2->setObjectName(QString::fromUtf8("RBL2"));
RBL2->setChecked(true);
- horizontalLayout_3->addWidget(RBL2);
+ hboxLayout3->addWidget(RBL2);
RBInf = new QRadioButton(GBFieldManagement);
RBInf->setObjectName(QString::fromUtf8("RBInf"));
RBInf->setChecked(false);
- horizontalLayout_3->addWidget(RBInf);
+ hboxLayout3->addWidget(RBInf);
- verticalLayout_3->addLayout(horizontalLayout_3);
+ vboxLayout->addLayout(hboxLayout3);
- horizontalLayout_7->addLayout(verticalLayout_3);
+ hboxLayout2->addLayout(vboxLayout);
- gridLayout_6->addLayout(horizontalLayout_7, 1, 0, 1, 1);
+ gridLayout3->addLayout(hboxLayout2, 1, 0, 1, 1);
- horizontalLayout_2 = new QHBoxLayout();
- horizontalLayout_2->setObjectName(QString::fromUtf8("horizontalLayout_2"));
+ hboxLayout4 = new QHBoxLayout();
+ hboxLayout4->setSpacing(6);
+ hboxLayout4->setMargin(0);
+ hboxLayout4->setObjectName(QString::fromUtf8("hboxLayout4"));
GBRefinementThresholds = new QGroupBox(GBFieldManagement);
GBRefinementThresholds->setObjectName(QString::fromUtf8("GBRefinementThresholds"));
- sizePolicy.setHeightForWidth(GBRefinementThresholds->sizePolicy().hasHeightForWidth());
- GBRefinementThresholds->setSizePolicy(sizePolicy);
- gridLayout = new QGridLayout(GBRefinementThresholds);
- gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
+ QSizePolicy sizePolicy3(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0));
+ sizePolicy3.setHorizontalStretch(0);
+ sizePolicy3.setVerticalStretch(0);
+ sizePolicy3.setHeightForWidth(GBRefinementThresholds->sizePolicy().hasHeightForWidth());
+ GBRefinementThresholds->setSizePolicy(sizePolicy3);
+ gridLayout4 = new QGridLayout(GBRefinementThresholds);
+ gridLayout4->setSpacing(6);
+ gridLayout4->setMargin(9);
+ gridLayout4->setObjectName(QString::fromUtf8("gridLayout4"));
RBRPE = new QRadioButton(GBRefinementThresholds);
RBRPE->setObjectName(QString::fromUtf8("RBRPE"));
RBRPE->setCheckable(true);
RBRPE->setChecked(true);
- gridLayout->addWidget(RBRPE, 0, 0, 1, 1);
+ gridLayout4->addWidget(RBRPE, 0, 0, 1, 1);
SpinBox_RPE = new QDoubleSpinBox(GBRefinementThresholds);
SpinBox_RPE->setObjectName(QString::fromUtf8("SpinBox_RPE"));
SpinBox_RPE->setSingleStep(0.1);
SpinBox_RPE->setValue(3);
- gridLayout->addWidget(SpinBox_RPE, 0, 1, 1, 1);
+ gridLayout4->addWidget(SpinBox_RPE, 0, 1, 1, 1);
RBRRel = new QRadioButton(GBRefinementThresholds);
RBRRel->setObjectName(QString::fromUtf8("RBRRel"));
- gridLayout->addWidget(RBRRel, 1, 0, 1, 1);
+ gridLayout4->addWidget(RBRRel, 1, 0, 1, 1);
SpinBox_RRel = new QDoubleSpinBox(GBRefinementThresholds);
SpinBox_RRel->setObjectName(QString::fromUtf8("SpinBox_RRel"));
SpinBox_RRel->setMaximum(100);
SpinBox_RRel->setSingleStep(0.1);
- gridLayout->addWidget(SpinBox_RRel, 1, 1, 1, 1);
+ gridLayout4->addWidget(SpinBox_RRel, 1, 1, 1, 1);
RBRAbs = new QRadioButton(GBRefinementThresholds);
RBRAbs->setObjectName(QString::fromUtf8("RBRAbs"));
- gridLayout->addWidget(RBRAbs, 2, 0, 1, 1);
+ gridLayout4->addWidget(RBRAbs, 2, 0, 1, 1);
SpinBox_RAbs = new QDoubleSpinBox(GBRefinementThresholds);
SpinBox_RAbs->setObjectName(QString::fromUtf8("SpinBox_RAbs"));
SpinBox_RAbs->setMaximum(100);
SpinBox_RAbs->setSingleStep(0.1);
- gridLayout->addWidget(SpinBox_RAbs, 2, 1, 1, 1);
+ gridLayout4->addWidget(SpinBox_RAbs, 2, 1, 1, 1);
RBRNo = new QRadioButton(GBRefinementThresholds);
RBRNo->setObjectName(QString::fromUtf8("RBRNo"));
- gridLayout->addWidget(RBRNo, 3, 0, 1, 1);
+ gridLayout4->addWidget(RBRNo, 3, 0, 1, 1);
- horizontalLayout_2->addWidget(GBRefinementThresholds);
+ hboxLayout4->addWidget(GBRefinementThresholds);
GBCoarseningThresholds = new QGroupBox(GBFieldManagement);
GBCoarseningThresholds->setObjectName(QString::fromUtf8("GBCoarseningThresholds"));
- gridLayout_4 = new QGridLayout(GBCoarseningThresholds);
- gridLayout_4->setObjectName(QString::fromUtf8("gridLayout_4"));
+ gridLayout5 = new QGridLayout(GBCoarseningThresholds);
+ gridLayout5->setSpacing(6);
+ gridLayout5->setMargin(9);
+ gridLayout5->setObjectName(QString::fromUtf8("gridLayout5"));
RBCPE = new QRadioButton(GBCoarseningThresholds);
RBCPE->setObjectName(QString::fromUtf8("RBCPE"));
RBCPE->setCheckable(true);
RBCPE->setChecked(false);
- gridLayout_4->addWidget(RBCPE, 0, 0, 1, 1);
+ gridLayout5->addWidget(RBCPE, 0, 0, 1, 1);
SpinBox_CPE = new QDoubleSpinBox(GBCoarseningThresholds);
SpinBox_CPE->setObjectName(QString::fromUtf8("SpinBox_CPE"));
SpinBox_CPE->setMaximum(100);
SpinBox_CPE->setSingleStep(0.1);
- gridLayout_4->addWidget(SpinBox_CPE, 0, 1, 1, 1);
+ gridLayout5->addWidget(SpinBox_CPE, 0, 1, 1, 1);
RBCRel = new QRadioButton(GBCoarseningThresholds);
RBCRel->setObjectName(QString::fromUtf8("RBCRel"));
- gridLayout_4->addWidget(RBCRel, 1, 0, 1, 1);
+ gridLayout5->addWidget(RBCRel, 1, 0, 1, 1);
SpinBox_CRel = new QDoubleSpinBox(GBCoarseningThresholds);
SpinBox_CRel->setObjectName(QString::fromUtf8("SpinBox_CRel"));
SpinBox_CRel->setMaximum(100);
SpinBox_CRel->setSingleStep(0.1);
- gridLayout_4->addWidget(SpinBox_CRel, 1, 1, 1, 1);
+ gridLayout5->addWidget(SpinBox_CRel, 1, 1, 1, 1);
RBCAbs = new QRadioButton(GBCoarseningThresholds);
RBCAbs->setObjectName(QString::fromUtf8("RBCAbs"));
- gridLayout_4->addWidget(RBCAbs, 2, 0, 1, 1);
+ gridLayout5->addWidget(RBCAbs, 2, 0, 1, 1);
SpinBox_CAbs = new QDoubleSpinBox(GBCoarseningThresholds);
SpinBox_CAbs->setObjectName(QString::fromUtf8("SpinBox_CAbs"));
SpinBox_CAbs->setMaximum(100);
SpinBox_CAbs->setSingleStep(0.1);
- gridLayout_4->addWidget(SpinBox_CAbs, 2, 1, 1, 1);
+ gridLayout5->addWidget(SpinBox_CAbs, 2, 1, 1, 1);
RBCNo = new QRadioButton(GBCoarseningThresholds);
RBCNo->setObjectName(QString::fromUtf8("RBCNo"));
RBCNo->setChecked(true);
- gridLayout_4->addWidget(RBCNo, 3, 0, 1, 1);
+ gridLayout5->addWidget(RBCNo, 3, 0, 1, 1);
- horizontalLayout_2->addWidget(GBCoarseningThresholds);
+ hboxLayout4->addWidget(GBCoarseningThresholds);
- gridLayout_6->addLayout(horizontalLayout_2, 2, 0, 1, 1);
+ gridLayout3->addLayout(hboxLayout4, 2, 0, 1, 1);
- gridLayout_10->addWidget(GBFieldManagement, 4, 0, 1, 2);
+ gridLayout->addWidget(GBFieldManagement, 4, 0, 1, 2);
GBAreaManagement = new QGroupBox(CreateHypothesis);
GBAreaManagement->setObjectName(QString::fromUtf8("GBAreaManagement"));
- sizePolicy.setHeightForWidth(GBAreaManagement->sizePolicy().hasHeightForWidth());
- GBAreaManagement->setSizePolicy(sizePolicy);
- gridLayout_3 = new QGridLayout(GBAreaManagement);
- gridLayout_3->setObjectName(QString::fromUtf8("gridLayout_3"));
-
-
-
+ QSizePolicy sizePolicy4(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0));
+ sizePolicy4.setHorizontalStretch(0);
+ sizePolicy4.setVerticalStretch(0);
+ sizePolicy4.setHeightForWidth(GBAreaManagement->sizePolicy().hasHeightForWidth());
+ GBAreaManagement->setSizePolicy(sizePolicy4);
+ gridLayout6 = new QGridLayout(GBAreaManagement);
+ gridLayout6->setSpacing(6);
+ gridLayout6->setMargin(9);
+ gridLayout6->setObjectName(QString::fromUtf8("gridLayout6"));
TWZone = new QTableWidget(GBAreaManagement);
- if (TWZone->columnCount() < 2)
- TWZone->setColumnCount(2);
- QTableWidgetItem *__colItem2 = new QTableWidgetItem();
- TWZone->setHorizontalHeaderItem(0, __colItem2);
- QTableWidgetItem *__colItem3 = new QTableWidgetItem();
- TWZone->setHorizontalHeaderItem(1, __colItem3);
TWZone->setObjectName(QString::fromUtf8("TWZone"));
- TWZone->setEditTriggers(QAbstractItemView::AnyKeyPressed|QAbstractItemView::DoubleClicked|QAbstractItemView::EditKeyPressed|QAbstractItemView::SelectedClicked);
+ TWZone->setEditTriggers(QAbstractItemView::AnyKeyPressed|QAbstractItemView::DoubleClicked|QAbstractItemView::EditKeyPressed|QAbstractItemView::NoEditTriggers|QAbstractItemView::SelectedClicked);
TWZone->setShowGrid(true);
TWZone->setRowCount(0);
TWZone->setColumnCount(2);
- gridLayout_3->addWidget(TWZone, 0, 0, 1, 1);
+ gridLayout6->addWidget(TWZone, 0, 0, 1, 1);
- verticalLayout_2 = new QVBoxLayout();
- verticalLayout_2->setObjectName(QString::fromUtf8("verticalLayout_2"));
- verticalLayout = new QVBoxLayout();
- verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
+ vboxLayout1 = new QVBoxLayout();
+ vboxLayout1->setSpacing(6);
+ vboxLayout1->setMargin(0);
+ vboxLayout1->setObjectName(QString::fromUtf8("vboxLayout1"));
+ vboxLayout2 = new QVBoxLayout();
+ vboxLayout2->setSpacing(6);
+ vboxLayout2->setMargin(0);
+ vboxLayout2->setObjectName(QString::fromUtf8("vboxLayout2"));
PBZoneNew = new QPushButton(GBAreaManagement);
PBZoneNew->setObjectName(QString::fromUtf8("PBZoneNew"));
- verticalLayout->addWidget(PBZoneNew);
+ vboxLayout2->addWidget(PBZoneNew);
PBZoneEdit = new QPushButton(GBAreaManagement);
PBZoneEdit->setObjectName(QString::fromUtf8("PBZoneEdit"));
- verticalLayout->addWidget(PBZoneEdit);
+ vboxLayout2->addWidget(PBZoneEdit);
PBZoneDelete = new QPushButton(GBAreaManagement);
PBZoneDelete->setObjectName(QString::fromUtf8("PBZoneDelete"));
- verticalLayout->addWidget(PBZoneDelete);
+ vboxLayout2->addWidget(PBZoneDelete);
- verticalLayout_2->addLayout(verticalLayout);
+ vboxLayout1->addLayout(vboxLayout2);
- verticalSpacer = new QSpacerItem(20, 48, QSizePolicy::Minimum, QSizePolicy::Expanding);
+ spacerItem2 = new QSpacerItem(20, 48, QSizePolicy::Minimum, QSizePolicy::Expanding);
- verticalLayout_2->addItem(verticalSpacer);
+ vboxLayout1->addItem(spacerItem2);
- gridLayout_3->addLayout(verticalLayout_2, 0, 1, 1, 1);
+ gridLayout6->addLayout(vboxLayout1, 0, 1, 1, 1);
- gridLayout_10->addWidget(GBAreaManagement, 5, 0, 1, 2);
+ gridLayout->addWidget(GBAreaManagement, 5, 0, 1, 2);
GBField = new QGroupBox(CreateHypothesis);
GBField->setObjectName(QString::fromUtf8("GBField"));
- gridLayout_8 = new QGridLayout(GBField);
- gridLayout_8->setObjectName(QString::fromUtf8("gridLayout_8"));
- gridLayout_7 = new QGridLayout();
- gridLayout_7->setObjectName(QString::fromUtf8("gridLayout_7"));
+ gridLayout7 = new QGridLayout(GBField);
+ gridLayout7->setSpacing(6);
+ gridLayout7->setMargin(9);
+ gridLayout7->setObjectName(QString::fromUtf8("gridLayout7"));
+ gridLayout8 = new QGridLayout();
+ gridLayout8->setSpacing(6);
+ gridLayout8->setMargin(0);
+ gridLayout8->setObjectName(QString::fromUtf8("gridLayout8"));
RBFieldNo = new QRadioButton(GBField);
RBFieldNo->setObjectName(QString::fromUtf8("RBFieldNo"));
RBFieldNo->setChecked(true);
- gridLayout_7->addWidget(RBFieldNo, 0, 0, 1, 1);
+ gridLayout8->addWidget(RBFieldNo, 0, 0, 1, 1);
RBFieldAll = new QRadioButton(GBField);
RBFieldAll->setObjectName(QString::fromUtf8("RBFieldAll"));
RBFieldAll->setChecked(false);
- gridLayout_7->addWidget(RBFieldAll, 0, 1, 1, 1);
+ gridLayout8->addWidget(RBFieldAll, 0, 1, 1, 1);
RBFieldChosen = new QRadioButton(GBField);
RBFieldChosen->setObjectName(QString::fromUtf8("RBFieldChosen"));
RBFieldChosen->setChecked(false);
- gridLayout_7->addWidget(RBFieldChosen, 0, 2, 1, 1);
+ gridLayout8->addWidget(RBFieldChosen, 0, 2, 1, 1);
- gridLayout_8->addLayout(gridLayout_7, 0, 0, 1, 1);
+ gridLayout7->addLayout(gridLayout8, 0, 0, 1, 1);
TWField = new QTableWidget(GBField);
- if (TWField->columnCount() < 2)
- TWField->setColumnCount(2);
- QTableWidgetItem *__colItem4 = new QTableWidgetItem();
- TWField->setHorizontalHeaderItem(0, __colItem4);
- QTableWidgetItem *__colItem5 = new QTableWidgetItem();
- TWField->setHorizontalHeaderItem(1, __colItem5);
TWField->setObjectName(QString::fromUtf8("TWField"));
- gridLayout_8->addWidget(TWField, 1, 0, 1, 1);
+ gridLayout7->addWidget(TWField, 1, 0, 1, 1);
- gridLayout_10->addWidget(GBField, 6, 0, 1, 2);
+ gridLayout->addWidget(GBField, 6, 0, 1, 2);
CBGroupe = new QCheckBox(CreateHypothesis);
CBGroupe->setObjectName(QString::fromUtf8("CBGroupe"));
- gridLayout_10->addWidget(CBGroupe, 7, 0, 1, 2);
+ gridLayout->addWidget(CBGroupe, 7, 0, 1, 2);
GBButtons = new QGroupBox(CreateHypothesis);
GBButtons->setObjectName(QString::fromUtf8("GBButtons"));
- gridLayout_5 = new QGridLayout(GBButtons);
- gridLayout_5->setObjectName(QString::fromUtf8("gridLayout_5"));
+ gridLayout9 = new QGridLayout(GBButtons);
+ gridLayout9->setSpacing(6);
+ gridLayout9->setMargin(9);
+ gridLayout9->setObjectName(QString::fromUtf8("gridLayout9"));
buttonOk = new QPushButton(GBButtons);
buttonOk->setObjectName(QString::fromUtf8("buttonOk"));
- gridLayout_5->addWidget(buttonOk, 0, 0, 1, 1);
+ gridLayout9->addWidget(buttonOk, 0, 0, 1, 1);
buttonApply = new QPushButton(GBButtons);
buttonApply->setObjectName(QString::fromUtf8("buttonApply"));
- gridLayout_5->addWidget(buttonApply, 0, 1, 1, 1);
+ gridLayout9->addWidget(buttonApply, 0, 1, 1, 1);
buttonCancel = new QPushButton(GBButtons);
buttonCancel->setObjectName(QString::fromUtf8("buttonCancel"));
- gridLayout_5->addWidget(buttonCancel, 0, 2, 1, 1);
+ gridLayout9->addWidget(buttonCancel, 0, 2, 1, 1);
buttonHelp = new QPushButton(GBButtons);
buttonHelp->setObjectName(QString::fromUtf8("buttonHelp"));
- gridLayout_5->addWidget(buttonHelp, 0, 3, 1, 1);
+ gridLayout9->addWidget(buttonHelp, 0, 3, 1, 1);
- gridLayout_10->addWidget(GBButtons, 8, 0, 1, 2);
+ gridLayout->addWidget(GBButtons, 8, 0, 1, 2);
retranslateUi(CreateHypothesis);
+ QSize size(717, 1166);
+ size = size.expandedTo(CreateHypothesis->minimumSizeHint());
+ CreateHypothesis->resize(size);
+
+
QMetaObject::connectSlotsByName(CreateHypothesis);
} // setupUi
void retranslateUi(QDialog *CreateHypothesis)
{
- CreateHypothesis->setWindowTitle(QApplication::translate("CreateHypothesis", "Create Hypothesis", 0, QApplication::UnicodeUTF8));
+ CreateHypothesis->setWindowTitle(QApplication::translate("CreateHypothesis", "Create an hypothesis", 0, QApplication::UnicodeUTF8));
Name->setText(QApplication::translate("CreateHypothesis", "Name", 0, QApplication::UnicodeUTF8));
GBTypeAdaptation->setTitle(QApplication::translate("CreateHypothesis", "Type of adaptation", 0, QApplication::UnicodeUTF8));
RBUniforme->setText(QApplication::translate("CreateHypothesis", "Uniform", 0, QApplication::UnicodeUTF8));
- RBChamp->setText(QApplication::translate("CreateHypothesis", "Following a field", 0, QApplication::UnicodeUTF8));
+ RBChamp->setText(QApplication::translate("CreateHypothesis", "Driven by a field", 0, QApplication::UnicodeUTF8));
RBZone->setText(QApplication::translate("CreateHypothesis", "With geometrical zones", 0, QApplication::UnicodeUTF8));
GBUniform->setTitle(QApplication::translate("CreateHypothesis", "Uniform adaptation", 0, QApplication::UnicodeUTF8));
RBUniDera->setText(QApplication::translate("CreateHypothesis", "Coarsening", 0, QApplication::UnicodeUTF8));
GBFieldFile->setTitle(QString());
FieldFile->setText(QApplication::translate("CreateHypothesis", "File of the fields", 0, QApplication::UnicodeUTF8));
GBFieldManagement->setTitle(QApplication::translate("CreateHypothesis", "Governing field for the adaptation", 0, QApplication::UnicodeUTF8));
- FieldName->setText(QApplication::translate("CreateHypothesis", "Field Name", 0, QApplication::UnicodeUTF8));
- TWCMP->horizontalHeaderItem(0)->setText(QApplication::translate("CreateHypothesis", "Selection", 0, QApplication::UnicodeUTF8));
- TWCMP->horizontalHeaderItem(1)->setText(QApplication::translate("CreateHypothesis", "Component", 0, QApplication::UnicodeUTF8));
+ FieldName->setText(QApplication::translate("CreateHypothesis", "Field name", 0, QApplication::UnicodeUTF8));
+ if (TWCMP->columnCount() < 2)
+ TWCMP->setColumnCount(2);
+
+ QTableWidgetItem *__colItem = new QTableWidgetItem();
+ __colItem->setText(QApplication::translate("CreateHypothesis", "Selection", 0, QApplication::UnicodeUTF8));
+ TWCMP->setHorizontalHeaderItem(0, __colItem);
+
+ QTableWidgetItem *__colItem1 = new QTableWidgetItem();
+ __colItem1->setText(QApplication::translate("CreateHypothesis", "Component", 0, QApplication::UnicodeUTF8));
+ TWCMP->setHorizontalHeaderItem(1, __colItem1);
RBL2->setText(QApplication::translate("CreateHypothesis", "L2 norm", 0, QApplication::UnicodeUTF8));
RBInf->setText(QApplication::translate("CreateHypothesis", "Infinite norm", 0, QApplication::UnicodeUTF8));
- GBRefinementThresholds->setTitle(QApplication::translate("CreateHypothesis", "Refinement thresholds", 0, QApplication::UnicodeUTF8));
+ GBRefinementThresholds->setTitle(QApplication::translate("CreateHypothesis", "Refinement threshold", 0, QApplication::UnicodeUTF8));
RBRPE->setText(QApplication::translate("CreateHypothesis", "Percentage of meshes", 0, QApplication::UnicodeUTF8));
SpinBox_RPE->setSuffix(QApplication::translate("CreateHypothesis", " %", 0, QApplication::UnicodeUTF8));
RBRRel->setText(QApplication::translate("CreateHypothesis", "Relative", 0, QApplication::UnicodeUTF8));
SpinBox_RRel->setSuffix(QApplication::translate("CreateHypothesis", " %", 0, QApplication::UnicodeUTF8));
RBRAbs->setText(QApplication::translate("CreateHypothesis", "Absolute", 0, QApplication::UnicodeUTF8));
RBRNo->setText(QApplication::translate("CreateHypothesis", "No refinement", 0, QApplication::UnicodeUTF8));
- GBCoarseningThresholds->setTitle(QApplication::translate("CreateHypothesis", "Coarsening thresholds", 0, QApplication::UnicodeUTF8));
+ GBCoarseningThresholds->setTitle(QApplication::translate("CreateHypothesis", "Coarsening threshold", 0, QApplication::UnicodeUTF8));
RBCPE->setText(QApplication::translate("CreateHypothesis", "Percentage of meshes", 0, QApplication::UnicodeUTF8));
SpinBox_CPE->setSuffix(QApplication::translate("CreateHypothesis", " %", 0, QApplication::UnicodeUTF8));
RBCRel->setText(QApplication::translate("CreateHypothesis", "Relative", 0, QApplication::UnicodeUTF8));
SpinBox_CRel->setSuffix(QApplication::translate("CreateHypothesis", " %", 0, QApplication::UnicodeUTF8));
RBCAbs->setText(QApplication::translate("CreateHypothesis", "Absolute", 0, QApplication::UnicodeUTF8));
RBCNo->setText(QApplication::translate("CreateHypothesis", "No coarsening", 0, QApplication::UnicodeUTF8));
- GBAreaManagement->setTitle(QApplication::translate("CreateHypothesis", "Area management", 0, QApplication::UnicodeUTF8));
- TWZone->horizontalHeaderItem(0)->setText(QApplication::translate("CreateHypothesis", "Selection", 0, QApplication::UnicodeUTF8));
- TWZone->horizontalHeaderItem(1)->setText(QApplication::translate("CreateHypothesis", "Zone name", 0, QApplication::UnicodeUTF8));
+ GBAreaManagement->setTitle(QApplication::translate("CreateHypothesis", "Zone management", 0, QApplication::UnicodeUTF8));
+ if (TWZone->columnCount() < 2)
+ TWZone->setColumnCount(2);
+
+ QTableWidgetItem *__colItem2 = new QTableWidgetItem();
+ __colItem2->setText(QApplication::translate("CreateHypothesis", "Selection", 0, QApplication::UnicodeUTF8));
+ TWZone->setHorizontalHeaderItem(0, __colItem2);
+
+ QTableWidgetItem *__colItem3 = new QTableWidgetItem();
+ __colItem3->setText(QApplication::translate("CreateHypothesis", "Zone name", 0, QApplication::UnicodeUTF8));
+ TWZone->setHorizontalHeaderItem(1, __colItem3);
PBZoneNew->setText(QApplication::translate("CreateHypothesis", "New", 0, QApplication::UnicodeUTF8));
PBZoneEdit->setText(QApplication::translate("CreateHypothesis", "Edit", 0, QApplication::UnicodeUTF8));
PBZoneDelete->setText(QString());
RBFieldNo->setText(QApplication::translate("CreateHypothesis", "None", 0, QApplication::UnicodeUTF8));
RBFieldAll->setText(QApplication::translate("CreateHypothesis", "All", 0, QApplication::UnicodeUTF8));
RBFieldChosen->setText(QApplication::translate("CreateHypothesis", "Chosen", 0, QApplication::UnicodeUTF8));
- TWField->horizontalHeaderItem(0)->setText(QApplication::translate("CreateHypothesis", "Selection", 0, QApplication::UnicodeUTF8));
- TWField->horizontalHeaderItem(1)->setText(QApplication::translate("CreateHypothesis", "Field Name", 0, QApplication::UnicodeUTF8));
+ if (TWField->columnCount() < 2)
+ TWField->setColumnCount(2);
+
+ QTableWidgetItem *__colItem4 = new QTableWidgetItem();
+ __colItem4->setText(QApplication::translate("CreateHypothesis", "Selection", 0, QApplication::UnicodeUTF8));
+ TWField->setHorizontalHeaderItem(0, __colItem4);
+
+ QTableWidgetItem *__colItem5 = new QTableWidgetItem();
+ __colItem5->setText(QApplication::translate("CreateHypothesis", "Field Name", 0, QApplication::UnicodeUTF8));
+ TWField->setHorizontalHeaderItem(1, __colItem5);
CBGroupe->setText(QApplication::translate("CreateHypothesis", "Filtering with groups", 0, QApplication::UnicodeUTF8));
GBButtons->setTitle(QString());
- buttonOk->setText(QApplication::translate("CreateHypothesis", "&Ok", 0, QApplication::UnicodeUTF8));
- buttonApply->setText(QApplication::translate("CreateHypothesis", "&Apply", 0, QApplication::UnicodeUTF8));
- buttonCancel->setText(QApplication::translate("CreateHypothesis", "&Cancel", 0, QApplication::UnicodeUTF8));
- buttonHelp->setText(QApplication::translate("CreateHypothesis", "&Help", 0, QApplication::UnicodeUTF8));
+ buttonOk->setText(QApplication::translate("CreateHypothesis", "OK", 0, QApplication::UnicodeUTF8));
+ buttonApply->setText(QApplication::translate("CreateHypothesis", "Apply", 0, QApplication::UnicodeUTF8));
+ buttonCancel->setText(QApplication::translate("CreateHypothesis", "Cancel", 0, QApplication::UnicodeUTF8));
+ buttonHelp->setText(QApplication::translate("CreateHypothesis", "Help", 0, QApplication::UnicodeUTF8));
Q_UNUSED(CreateHypothesis);
} // retranslateUi
class CreateHypothesis: public Ui_CreateHypothesis {};
} // namespace Ui
-QT_END_NAMESPACE
-
#endif // CREATEHYPOTHESIS_H
<x>0</x>
<y>0</y>
<width>717</width>
- <height>1005</height>
+ <height>1166</height>
</rect>
</property>
<property name="sizePolicy" >
- <sizepolicy vsizetype="Expanding" hsizetype="Expanding" >
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="windowTitle" >
- <string>Create Hypothesis</string>
+ <string>Create an hypothesis</string>
</property>
<property name="autoFillBackground" >
- <bool>false</bool>
+ <bool>true</bool>
</property>
<property name="sizeGripEnabled" >
<bool>true</bool>
</property>
- <layout class="QGridLayout" name="gridLayout_10" >
+ <layout class="QGridLayout" >
+ <property name="margin" >
+ <number>9</number>
+ </property>
+ <property name="spacing" >
+ <number>6</number>
+ </property>
<item row="0" column="0" >
<widget class="QLabel" name="Name" >
<property name="text" >
<property name="title" >
<string>Type of adaptation</string>
</property>
- <layout class="QHBoxLayout" name="horizontalLayout" >
+ <layout class="QHBoxLayout" >
+ <property name="margin" >
+ <number>9</number>
+ </property>
+ <property name="spacing" >
+ <number>6</number>
+ </property>
<item>
<widget class="QRadioButton" name="RBUniforme" >
<property name="text" >
<item>
<widget class="QRadioButton" name="RBChamp" >
<property name="text" >
- <string>Following a field</string>
+ <string>Driven by a field</string>
</property>
</widget>
</item>
<property name="title" >
<string>Uniform adaptation</string>
</property>
- <layout class="QGridLayout" name="gridLayout_2" >
+ <layout class="QGridLayout" >
+ <property name="margin" >
+ <number>9</number>
+ </property>
+ <property name="spacing" >
+ <number>6</number>
+ </property>
<item row="0" column="1" >
<widget class="QRadioButton" name="RBUniDera" >
<property name="text" >
<property name="title" >
<string/>
</property>
- <layout class="QGridLayout" name="gridLayout_9" >
+ <layout class="QGridLayout" >
+ <property name="margin" >
+ <number>9</number>
+ </property>
+ <property name="spacing" >
+ <number>6</number>
+ </property>
<item row="0" column="0" >
<widget class="QLabel" name="FieldFile" >
<property name="text" >
<item row="4" column="0" colspan="2" >
<widget class="QGroupBox" name="GBFieldManagement" >
<property name="sizePolicy" >
- <sizepolicy vsizetype="Expanding" hsizetype="Expanding" >
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
<property name="title" >
<string>Governing field for the adaptation</string>
</property>
- <layout class="QGridLayout" name="gridLayout_6" >
+ <layout class="QGridLayout" >
+ <property name="margin" >
+ <number>9</number>
+ </property>
+ <property name="spacing" >
+ <number>6</number>
+ </property>
<item row="0" column="0" >
- <layout class="QHBoxLayout" name="horizontalLayout_6" >
+ <layout class="QHBoxLayout" >
+ <property name="margin" >
+ <number>0</number>
+ </property>
+ <property name="spacing" >
+ <number>6</number>
+ </property>
<item>
<widget class="QLabel" name="FieldName" >
<property name="text" >
- <string>Field Name</string>
+ <string>Field name</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="CBFieldName" >
<property name="sizePolicy" >
- <sizepolicy vsizetype="Fixed" hsizetype="Expanding" >
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</widget>
</item>
<item>
- <spacer name="horizontalSpacer_3" >
+ <spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
- <property name="sizeHint" stdset="0" >
+ <property name="sizeHint" >
<size>
<width>48</width>
<height>20</height>
</layout>
</item>
<item row="1" column="0" >
- <layout class="QHBoxLayout" name="horizontalLayout_7" >
+ <layout class="QHBoxLayout" >
+ <property name="margin" >
+ <number>0</number>
+ </property>
+ <property name="spacing" >
+ <number>6</number>
+ </property>
<item>
<widget class="QTableWidget" name="TWCMP" >
<property name="editTriggers" >
- <set>QAbstractItemView::AnyKeyPressed|QAbstractItemView::DoubleClicked|QAbstractItemView::EditKeyPressed|QAbstractItemView::SelectedClicked</set>
+ <set>QAbstractItemView::AnyKeyPressed|QAbstractItemView::DoubleClicked|QAbstractItemView::EditKeyPressed|QAbstractItemView::NoEditTriggers|QAbstractItemView::SelectedClicked</set>
</property>
<property name="showGrid" >
<bool>true</bool>
</widget>
</item>
<item>
- <spacer name="horizontalSpacer_4" >
+ <spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
- <property name="sizeHint" stdset="0" >
+ <property name="sizeHint" >
<size>
<width>60</width>
<height>20</height>
</spacer>
</item>
<item>
- <layout class="QVBoxLayout" name="verticalLayout_3" >
+ <layout class="QVBoxLayout" >
+ <property name="margin" >
+ <number>0</number>
+ </property>
+ <property name="spacing" >
+ <number>6</number>
+ </property>
<item>
- <layout class="QHBoxLayout" name="horizontalLayout_3" >
+ <layout class="QHBoxLayout" >
+ <property name="margin" >
+ <number>0</number>
+ </property>
+ <property name="spacing" >
+ <number>6</number>
+ </property>
<item>
<widget class="QRadioButton" name="RBL2" >
<property name="text" >
</layout>
</item>
<item row="2" column="0" >
- <layout class="QHBoxLayout" name="horizontalLayout_2" >
+ <layout class="QHBoxLayout" >
+ <property name="margin" >
+ <number>0</number>
+ </property>
+ <property name="spacing" >
+ <number>6</number>
+ </property>
<item>
<widget class="QGroupBox" name="GBRefinementThresholds" >
<property name="sizePolicy" >
- <sizepolicy vsizetype="Expanding" hsizetype="Expanding" >
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title" >
- <string>Refinement thresholds</string>
+ <string>Refinement threshold</string>
</property>
- <layout class="QGridLayout" name="gridLayout" >
+ <layout class="QGridLayout" >
+ <property name="margin" >
+ <number>9</number>
+ </property>
+ <property name="spacing" >
+ <number>6</number>
+ </property>
<item row="0" column="0" >
<widget class="QRadioButton" name="RBRPE" >
<property name="text" >
<item>
<widget class="QGroupBox" name="GBCoarseningThresholds" >
<property name="title" >
- <string>Coarsening thresholds</string>
+ <string>Coarsening threshold</string>
</property>
- <layout class="QGridLayout" name="gridLayout_4" >
+ <layout class="QGridLayout" >
+ <property name="margin" >
+ <number>9</number>
+ </property>
+ <property name="spacing" >
+ <number>6</number>
+ </property>
<item row="0" column="0" >
<widget class="QRadioButton" name="RBCPE" >
<property name="text" >
<item row="5" column="0" colspan="2" >
<widget class="QGroupBox" name="GBAreaManagement" >
<property name="sizePolicy" >
- <sizepolicy vsizetype="Expanding" hsizetype="Expanding" >
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title" >
- <string>Area management</string>
+ <string>Zone management</string>
</property>
- <layout class="QGridLayout" name="gridLayout_3" >
+ <layout class="QGridLayout" >
+ <property name="margin" >
+ <number>9</number>
+ </property>
+ <property name="spacing" >
+ <number>6</number>
+ </property>
<item row="0" column="0" >
<widget class="QTableWidget" name="TWZone" >
<property name="editTriggers" >
- <set>QAbstractItemView::AnyKeyPressed|QAbstractItemView::DoubleClicked|QAbstractItemView::EditKeyPressed|QAbstractItemView::SelectedClicked</set>
+ <set>QAbstractItemView::AnyKeyPressed|QAbstractItemView::DoubleClicked|QAbstractItemView::EditKeyPressed|QAbstractItemView::NoEditTriggers|QAbstractItemView::SelectedClicked</set>
</property>
<property name="showGrid" >
<bool>true</bool>
</widget>
</item>
<item row="0" column="1" >
- <layout class="QVBoxLayout" name="verticalLayout_2" >
+ <layout class="QVBoxLayout" >
+ <property name="margin" >
+ <number>0</number>
+ </property>
+ <property name="spacing" >
+ <number>6</number>
+ </property>
<item>
- <layout class="QVBoxLayout" name="verticalLayout" >
+ <layout class="QVBoxLayout" >
+ <property name="margin" >
+ <number>0</number>
+ </property>
+ <property name="spacing" >
+ <number>6</number>
+ </property>
<item>
<widget class="QPushButton" name="PBZoneNew" >
<property name="text" >
</layout>
</item>
<item>
- <spacer name="verticalSpacer" >
+ <spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
- <property name="sizeHint" stdset="0" >
+ <property name="sizeHint" >
<size>
<width>20</width>
<height>48</height>
<property name="title" >
<string>Field Interpolation</string>
</property>
- <layout class="QGridLayout" name="gridLayout_8" >
+ <layout class="QGridLayout" >
+ <property name="margin" >
+ <number>9</number>
+ </property>
+ <property name="spacing" >
+ <number>6</number>
+ </property>
<item row="0" column="0" >
- <layout class="QGridLayout" name="gridLayout_7" >
+ <layout class="QGridLayout" >
+ <property name="margin" >
+ <number>0</number>
+ </property>
+ <property name="spacing" >
+ <number>6</number>
+ </property>
<item row="0" column="0" >
<widget class="QRadioButton" name="RBFieldNo" >
<property name="text" >
<property name="title" >
<string/>
</property>
- <layout class="QGridLayout" name="gridLayout_5" >
+ <layout class="QGridLayout" >
+ <property name="margin" >
+ <number>9</number>
+ </property>
+ <property name="spacing" >
+ <number>6</number>
+ </property>
<item row="0" column="0" >
<widget class="QPushButton" name="buttonOk" >
<property name="text" >
- <string>&Ok</string>
+ <string>OK</string>
</property>
</widget>
</item>
<item row="0" column="1" >
<widget class="QPushButton" name="buttonApply" >
<property name="text" >
- <string>&Apply</string>
+ <string>Apply</string>
</property>
</widget>
</item>
<item row="0" column="2" >
<widget class="QPushButton" name="buttonCancel" >
<property name="text" >
- <string>&Cancel</string>
+ <string>Cancel</string>
</property>
</widget>
</item>
<item row="0" column="3" >
<widget class="QPushButton" name="buttonHelp" >
<property name="text" >
- <string>&Help</string>
+ <string>Help</string>
</property>
</widget>
</item>
/********************************************************************************
** Form generated from reading ui file 'CreateIteration.ui'
**
-** Created: Thu Nov 18 15:59:09 2010
-** by: Qt User Interface Compiler version 4.4.3
+** Created: Tue Mar 15 10:16:06 2011
+** by: Qt User Interface Compiler version 4.2.1
**
** WARNING! All changes made in this file will be lost when recompiling ui file!
********************************************************************************/
#include <QtGui/QSpinBox>
#include <QtGui/QWidget>
-QT_BEGIN_NAMESPACE
-
class Ui_CreateIteration
{
public:
- QGridLayout *gridLayout_2;
+ QGridLayout *gridLayout;
QLabel *Iteration_Name;
QLineEdit *LEIterationName;
QLabel *Iter_Parent;
- QSpacerItem *verticalSpacer;
+ QSpacerItem *spacerItem;
QPushButton *PBIterParent;
QLineEdit *LEIterationParentName;
QLabel *Mesh_n;
- QSpacerItem *verticalSpacer_6;
+ QSpacerItem *spacerItem1;
QLineEdit *LEMeshName_n;
- QSpacerItem *verticalSpacer_1;
+ QSpacerItem *spacerItem2;
QLabel *Mesh_np1;
QLineEdit *LEMeshName_np1;
- QSpacerItem *verticalSpacer_3;
+ QSpacerItem *spacerItem3;
QGroupBox *GBField;
- QGridLayout *gridLayout;
+ QGridLayout *gridLayout1;
QLabel *FieldFile;
QPushButton *PushFieldFile;
QLineEdit *LEFieldFile;
- QSpacerItem *verticalSpacer_7;
+ QSpacerItem *spacerItem4;
QRadioButton *RBNo;
QRadioButton *RBLast;
QRadioButton *RBChosen;
- QSpacerItem *verticalSpacer_4;
+ QSpacerItem *spacerItem5;
QLabel *TimeStep;
QSpinBox *SpinBox_TimeStep;
- QSpacerItem *spacer;
+ QSpacerItem *spacerItem6;
QLabel *Rank;
QSpinBox *SpinBox_Rank;
- QSpacerItem *spacer_3;
- QSpacerItem *verticalSpacer_2;
+ QSpacerItem *spacerItem7;
+ QSpacerItem *spacerItem8;
QGroupBox *Hypothese;
- QGridLayout *gridLayout_3;
+ QGridLayout *gridLayout2;
QComboBox *CBHypothese;
- QSpacerItem *spacer_2;
+ QSpacerItem *spacerItem9;
QPushButton *PBHypoEdit;
QPushButton *PBHypoNew;
- QSpacerItem *verticalSpacer_5;
+ QSpacerItem *spacerItem10;
QGroupBox *GroupButtons;
- QGridLayout *gridLayout_4;
+ QGridLayout *gridLayout3;
QPushButton *buttonOk;
QPushButton *buttonApply;
QPushButton *buttonCancel;
void setupUi(QWidget *CreateIteration)
{
- if (CreateIteration->objectName().isEmpty())
- CreateIteration->setObjectName(QString::fromUtf8("CreateIteration"));
- CreateIteration->resize(587, 598);
- gridLayout_2 = new QGridLayout(CreateIteration);
- gridLayout_2->setObjectName(QString::fromUtf8("gridLayout_2"));
+ CreateIteration->setObjectName(QString::fromUtf8("CreateIteration"));
+ gridLayout = new QGridLayout(CreateIteration);
+ gridLayout->setSpacing(6);
+ gridLayout->setMargin(9);
+ gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
Iteration_Name = new QLabel(CreateIteration);
Iteration_Name->setObjectName(QString::fromUtf8("Iteration_Name"));
- gridLayout_2->addWidget(Iteration_Name, 0, 0, 1, 2);
+ gridLayout->addWidget(Iteration_Name, 0, 0, 1, 2);
LEIterationName = new QLineEdit(CreateIteration);
LEIterationName->setObjectName(QString::fromUtf8("LEIterationName"));
LEIterationName->setMinimumSize(QSize(290, 21));
LEIterationName->setMaxLength(200);
- gridLayout_2->addWidget(LEIterationName, 0, 2, 1, 2);
+ gridLayout->addWidget(LEIterationName, 0, 2, 1, 2);
Iter_Parent = new QLabel(CreateIteration);
Iter_Parent->setObjectName(QString::fromUtf8("Iter_Parent"));
- gridLayout_2->addWidget(Iter_Parent, 1, 0, 1, 1);
+ gridLayout->addWidget(Iter_Parent, 1, 0, 1, 1);
- verticalSpacer = new QSpacerItem(20, 24, QSizePolicy::Minimum, QSizePolicy::Expanding);
+ spacerItem = new QSpacerItem(20, 24, QSizePolicy::Minimum, QSizePolicy::Expanding);
- gridLayout_2->addItem(verticalSpacer, 1, 1, 1, 1);
+ gridLayout->addItem(spacerItem, 1, 1, 1, 1);
PBIterParent = new QPushButton(CreateIteration);
PBIterParent->setObjectName(QString::fromUtf8("PBIterParent"));
PBIterParent->setEnabled(true);
PBIterParent->setMaximumSize(QSize(50, 27));
- gridLayout_2->addWidget(PBIterParent, 1, 2, 1, 1);
+ gridLayout->addWidget(PBIterParent, 1, 2, 1, 1);
LEIterationParentName = new QLineEdit(CreateIteration);
LEIterationParentName->setObjectName(QString::fromUtf8("LEIterationParentName"));
LEIterationParentName->setMaxLength(200);
LEIterationParentName->setReadOnly(true);
- gridLayout_2->addWidget(LEIterationParentName, 1, 3, 1, 1);
+ gridLayout->addWidget(LEIterationParentName, 1, 3, 1, 1);
Mesh_n = new QLabel(CreateIteration);
Mesh_n->setObjectName(QString::fromUtf8("Mesh_n"));
- gridLayout_2->addWidget(Mesh_n, 2, 0, 1, 1);
+ gridLayout->addWidget(Mesh_n, 2, 0, 1, 1);
- verticalSpacer_6 = new QSpacerItem(20, 21, QSizePolicy::Minimum, QSizePolicy::Expanding);
+ spacerItem1 = new QSpacerItem(20, 21, QSizePolicy::Minimum, QSizePolicy::Expanding);
- gridLayout_2->addItem(verticalSpacer_6, 2, 1, 1, 1);
+ gridLayout->addItem(spacerItem1, 2, 1, 1, 1);
LEMeshName_n = new QLineEdit(CreateIteration);
LEMeshName_n->setObjectName(QString::fromUtf8("LEMeshName_n"));
LEMeshName_n->setMaxLength(32);
LEMeshName_n->setReadOnly(true);
- gridLayout_2->addWidget(LEMeshName_n, 2, 2, 1, 2);
+ gridLayout->addWidget(LEMeshName_n, 2, 2, 1, 2);
- verticalSpacer_1 = new QSpacerItem(20, 22, QSizePolicy::Minimum, QSizePolicy::Expanding);
+ spacerItem2 = new QSpacerItem(20, 22, QSizePolicy::Minimum, QSizePolicy::Expanding);
- gridLayout_2->addItem(verticalSpacer_1, 3, 1, 1, 1);
+ gridLayout->addItem(spacerItem2, 3, 1, 1, 1);
Mesh_np1 = new QLabel(CreateIteration);
Mesh_np1->setObjectName(QString::fromUtf8("Mesh_np1"));
- gridLayout_2->addWidget(Mesh_np1, 4, 0, 1, 2);
+ gridLayout->addWidget(Mesh_np1, 4, 0, 1, 2);
LEMeshName_np1 = new QLineEdit(CreateIteration);
LEMeshName_np1->setObjectName(QString::fromUtf8("LEMeshName_np1"));
LEMeshName_np1->setMinimumSize(QSize(290, 21));
LEMeshName_np1->setMaxLength(32);
- gridLayout_2->addWidget(LEMeshName_np1, 4, 2, 1, 2);
+ gridLayout->addWidget(LEMeshName_np1, 4, 2, 1, 2);
- verticalSpacer_3 = new QSpacerItem(20, 21, QSizePolicy::Minimum, QSizePolicy::Expanding);
+ spacerItem3 = new QSpacerItem(20, 21, QSizePolicy::Minimum, QSizePolicy::Expanding);
- gridLayout_2->addItem(verticalSpacer_3, 5, 1, 1, 1);
+ gridLayout->addItem(spacerItem3, 5, 1, 1, 1);
GBField = new QGroupBox(CreateIteration);
GBField->setObjectName(QString::fromUtf8("GBField"));
- gridLayout = new QGridLayout(GBField);
- gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
+ gridLayout1 = new QGridLayout(GBField);
+ gridLayout1->setSpacing(6);
+ gridLayout1->setMargin(9);
+ gridLayout1->setObjectName(QString::fromUtf8("gridLayout1"));
FieldFile = new QLabel(GBField);
FieldFile->setObjectName(QString::fromUtf8("FieldFile"));
- gridLayout->addWidget(FieldFile, 0, 0, 1, 1);
+ gridLayout1->addWidget(FieldFile, 0, 0, 1, 1);
PushFieldFile = new QPushButton(GBField);
PushFieldFile->setObjectName(QString::fromUtf8("PushFieldFile"));
- gridLayout->addWidget(PushFieldFile, 0, 1, 1, 1);
+ gridLayout1->addWidget(PushFieldFile, 0, 1, 1, 1);
LEFieldFile = new QLineEdit(GBField);
LEFieldFile->setObjectName(QString::fromUtf8("LEFieldFile"));
LEFieldFile->setMinimumSize(QSize(282, 21));
- gridLayout->addWidget(LEFieldFile, 0, 2, 1, 6);
+ gridLayout1->addWidget(LEFieldFile, 0, 2, 1, 6);
- verticalSpacer_7 = new QSpacerItem(138, 18, QSizePolicy::Minimum, QSizePolicy::Expanding);
+ spacerItem4 = new QSpacerItem(138, 18, QSizePolicy::Minimum, QSizePolicy::Expanding);
- gridLayout->addItem(verticalSpacer_7, 1, 3, 1, 4);
+ gridLayout1->addItem(spacerItem4, 1, 3, 1, 4);
RBNo = new QRadioButton(GBField);
RBNo->setObjectName(QString::fromUtf8("RBNo"));
RBNo->setCheckable(true);
RBNo->setChecked(true);
- gridLayout->addWidget(RBNo, 2, 0, 1, 3);
+ gridLayout1->addWidget(RBNo, 2, 0, 1, 3);
RBLast = new QRadioButton(GBField);
RBLast->setObjectName(QString::fromUtf8("RBLast"));
- gridLayout->addWidget(RBLast, 2, 3, 1, 3);
+ gridLayout1->addWidget(RBLast, 2, 3, 1, 3);
RBChosen = new QRadioButton(GBField);
RBChosen->setObjectName(QString::fromUtf8("RBChosen"));
- gridLayout->addWidget(RBChosen, 2, 7, 1, 1);
+ gridLayout1->addWidget(RBChosen, 2, 7, 1, 1);
- verticalSpacer_4 = new QSpacerItem(138, 28, QSizePolicy::Minimum, QSizePolicy::Expanding);
+ spacerItem5 = new QSpacerItem(138, 28, QSizePolicy::Minimum, QSizePolicy::Expanding);
- gridLayout->addItem(verticalSpacer_4, 3, 0, 1, 4);
+ gridLayout1->addItem(spacerItem5, 3, 0, 1, 4);
TimeStep = new QLabel(GBField);
TimeStep->setObjectName(QString::fromUtf8("TimeStep"));
- gridLayout->addWidget(TimeStep, 4, 0, 1, 1);
+ gridLayout1->addWidget(TimeStep, 4, 0, 1, 1);
SpinBox_TimeStep = new QSpinBox(GBField);
SpinBox_TimeStep->setObjectName(QString::fromUtf8("SpinBox_TimeStep"));
- SpinBox_TimeStep->setMinimum(-2);
SpinBox_TimeStep->setMaximum(100000);
+ SpinBox_TimeStep->setMinimum(-2);
SpinBox_TimeStep->setValue(-1);
- gridLayout->addWidget(SpinBox_TimeStep, 4, 1, 1, 1);
+ gridLayout1->addWidget(SpinBox_TimeStep, 4, 1, 1, 1);
- spacer = new QSpacerItem(40, 13, QSizePolicy::Fixed, QSizePolicy::Minimum);
+ spacerItem6 = new QSpacerItem(40, 13, QSizePolicy::Fixed, QSizePolicy::Minimum);
- gridLayout->addItem(spacer, 4, 2, 1, 2);
+ gridLayout1->addItem(spacerItem6, 4, 2, 1, 2);
Rank = new QLabel(GBField);
Rank->setObjectName(QString::fromUtf8("Rank"));
- gridLayout->addWidget(Rank, 4, 4, 1, 1);
+ gridLayout1->addWidget(Rank, 4, 4, 1, 1);
SpinBox_Rank = new QSpinBox(GBField);
SpinBox_Rank->setObjectName(QString::fromUtf8("SpinBox_Rank"));
- SpinBox_Rank->setMinimum(-1);
SpinBox_Rank->setMaximum(1010000);
+ SpinBox_Rank->setMinimum(-1);
SpinBox_Rank->setValue(1);
- gridLayout->addWidget(SpinBox_Rank, 4, 5, 1, 1);
+ gridLayout1->addWidget(SpinBox_Rank, 4, 5, 1, 1);
- spacer_3 = new QSpacerItem(255, 13, QSizePolicy::Expanding, QSizePolicy::Minimum);
+ spacerItem7 = new QSpacerItem(255, 13, QSizePolicy::Expanding, QSizePolicy::Minimum);
- gridLayout->addItem(spacer_3, 4, 6, 1, 2);
+ gridLayout1->addItem(spacerItem7, 4, 6, 1, 2);
- gridLayout_2->addWidget(GBField, 6, 0, 1, 4);
+ gridLayout->addWidget(GBField, 6, 0, 1, 4);
- verticalSpacer_2 = new QSpacerItem(20, 22, QSizePolicy::Minimum, QSizePolicy::Expanding);
+ spacerItem8 = new QSpacerItem(20, 22, QSizePolicy::Minimum, QSizePolicy::Expanding);
- gridLayout_2->addItem(verticalSpacer_2, 7, 1, 1, 1);
+ gridLayout->addItem(spacerItem8, 7, 1, 1, 1);
Hypothese = new QGroupBox(CreateIteration);
Hypothese->setObjectName(QString::fromUtf8("Hypothese"));
- gridLayout_3 = new QGridLayout(Hypothese);
- gridLayout_3->setObjectName(QString::fromUtf8("gridLayout_3"));
+ gridLayout2 = new QGridLayout(Hypothese);
+ gridLayout2->setSpacing(6);
+ gridLayout2->setMargin(9);
+ gridLayout2->setObjectName(QString::fromUtf8("gridLayout2"));
CBHypothese = new QComboBox(Hypothese);
CBHypothese->setObjectName(QString::fromUtf8("CBHypothese"));
CBHypothese->setSizeAdjustPolicy(QComboBox::AdjustToContents);
- gridLayout_3->addWidget(CBHypothese, 0, 0, 1, 1);
+ gridLayout2->addWidget(CBHypothese, 0, 0, 1, 1);
- spacer_2 = new QSpacerItem(40, 13, QSizePolicy::Fixed, QSizePolicy::Minimum);
+ spacerItem9 = new QSpacerItem(40, 13, QSizePolicy::Fixed, QSizePolicy::Minimum);
- gridLayout_3->addItem(spacer_2, 0, 1, 1, 1);
+ gridLayout2->addItem(spacerItem9, 0, 1, 1, 1);
PBHypoEdit = new QPushButton(Hypothese);
PBHypoEdit->setObjectName(QString::fromUtf8("PBHypoEdit"));
- gridLayout_3->addWidget(PBHypoEdit, 0, 2, 1, 1);
+ gridLayout2->addWidget(PBHypoEdit, 0, 2, 1, 1);
PBHypoNew = new QPushButton(Hypothese);
PBHypoNew->setObjectName(QString::fromUtf8("PBHypoNew"));
- gridLayout_3->addWidget(PBHypoNew, 0, 3, 1, 1);
+ gridLayout2->addWidget(PBHypoNew, 0, 3, 1, 1);
- gridLayout_2->addWidget(Hypothese, 8, 0, 1, 4);
+ gridLayout->addWidget(Hypothese, 8, 0, 1, 4);
- verticalSpacer_5 = new QSpacerItem(20, 21, QSizePolicy::Minimum, QSizePolicy::Expanding);
+ spacerItem10 = new QSpacerItem(20, 21, QSizePolicy::Minimum, QSizePolicy::Expanding);
- gridLayout_2->addItem(verticalSpacer_5, 9, 0, 1, 2);
+ gridLayout->addItem(spacerItem10, 9, 0, 1, 2);
GroupButtons = new QGroupBox(CreateIteration);
GroupButtons->setObjectName(QString::fromUtf8("GroupButtons"));
- gridLayout_4 = new QGridLayout(GroupButtons);
- gridLayout_4->setObjectName(QString::fromUtf8("gridLayout_4"));
+ gridLayout3 = new QGridLayout(GroupButtons);
+ gridLayout3->setSpacing(6);
+ gridLayout3->setMargin(9);
+ gridLayout3->setObjectName(QString::fromUtf8("gridLayout3"));
buttonOk = new QPushButton(GroupButtons);
buttonOk->setObjectName(QString::fromUtf8("buttonOk"));
buttonOk->setAutoDefault(false);
buttonOk->setDefault(false);
- gridLayout_4->addWidget(buttonOk, 0, 0, 1, 1);
+ gridLayout3->addWidget(buttonOk, 0, 0, 1, 1);
buttonApply = new QPushButton(GroupButtons);
buttonApply->setObjectName(QString::fromUtf8("buttonApply"));
- gridLayout_4->addWidget(buttonApply, 0, 1, 1, 1);
+ gridLayout3->addWidget(buttonApply, 0, 1, 1, 1);
buttonCancel = new QPushButton(GroupButtons);
buttonCancel->setObjectName(QString::fromUtf8("buttonCancel"));
- gridLayout_4->addWidget(buttonCancel, 0, 2, 1, 1);
+ gridLayout3->addWidget(buttonCancel, 0, 2, 1, 1);
buttonHelp = new QPushButton(GroupButtons);
buttonHelp->setObjectName(QString::fromUtf8("buttonHelp"));
- gridLayout_4->addWidget(buttonHelp, 0, 3, 1, 1);
+ gridLayout3->addWidget(buttonHelp, 0, 3, 1, 1);
- gridLayout_2->addWidget(GroupButtons, 10, 0, 1, 4);
+ gridLayout->addWidget(GroupButtons, 10, 0, 1, 4);
retranslateUi(CreateIteration);
+ QSize size(587, 598);
+ size = size.expandedTo(CreateIteration->minimumSizeHint());
+ CreateIteration->resize(size);
+
+
CBHypothese->setCurrentIndex(-1);
void retranslateUi(QWidget *CreateIteration)
{
- CreateIteration->setWindowTitle(QApplication::translate("CreateIteration", "Create_Iteration", 0, QApplication::UnicodeUTF8));
+ CreateIteration->setWindowTitle(QApplication::translate("CreateIteration", "Create an iteration", 0, QApplication::UnicodeUTF8));
Iteration_Name->setText(QApplication::translate("CreateIteration", "Iteration Name", 0, QApplication::UnicodeUTF8));
Iter_Parent->setText(QApplication::translate("CreateIteration", "Previous iteration", 0, QApplication::UnicodeUTF8));
PBIterParent->setText(QString());
Mesh_n->setText(QApplication::translate("CreateIteration", "Mesh n", 0, QApplication::UnicodeUTF8));
Mesh_np1->setText(QApplication::translate("CreateIteration", "Mesh n+1", 0, QApplication::UnicodeUTF8));
GBField->setTitle(QApplication::translate("CreateIteration", "Field information", 0, QApplication::UnicodeUTF8));
- FieldFile->setText(QApplication::translate("CreateIteration", "Field File", 0, QApplication::UnicodeUTF8));
+ FieldFile->setText(QApplication::translate("CreateIteration", "Field file", 0, QApplication::UnicodeUTF8));
PushFieldFile->setText(QString());
- RBNo->setText(QApplication::translate("CreateIteration", "No Time Step", 0, QApplication::UnicodeUTF8));
- RBLast->setText(QApplication::translate("CreateIteration", "Last Time Step", 0, QApplication::UnicodeUTF8));
+ RBNo->setText(QApplication::translate("CreateIteration", "No time step", 0, QApplication::UnicodeUTF8));
+ RBLast->setText(QApplication::translate("CreateIteration", "Last time step", 0, QApplication::UnicodeUTF8));
RBChosen->setText(QApplication::translate("CreateIteration", "Chosen time step", 0, QApplication::UnicodeUTF8));
- TimeStep->setText(QApplication::translate("CreateIteration", "Time Step", 0, QApplication::UnicodeUTF8));
+ TimeStep->setText(QApplication::translate("CreateIteration", "Time step", 0, QApplication::UnicodeUTF8));
Rank->setText(QApplication::translate("CreateIteration", "Rank", 0, QApplication::UnicodeUTF8));
Hypothese->setTitle(QApplication::translate("CreateIteration", "Hypothesis", 0, QApplication::UnicodeUTF8));
PBHypoEdit->setText(QApplication::translate("CreateIteration", "Edit", 0, QApplication::UnicodeUTF8));
PBHypoNew->setText(QApplication::translate("CreateIteration", "New", 0, QApplication::UnicodeUTF8));
GroupButtons->setTitle(QString());
- buttonOk->setText(QApplication::translate("CreateIteration", "&Ok", 0, QApplication::UnicodeUTF8));
- buttonApply->setText(QApplication::translate("CreateIteration", "&Apply", 0, QApplication::UnicodeUTF8));
- buttonCancel->setText(QApplication::translate("CreateIteration", "&Cancel", 0, QApplication::UnicodeUTF8));
- buttonHelp->setText(QApplication::translate("CreateIteration", "&Help", 0, QApplication::UnicodeUTF8));
+ buttonOk->setText(QApplication::translate("CreateIteration", "OK", 0, QApplication::UnicodeUTF8));
+ buttonApply->setText(QApplication::translate("CreateIteration", "Apply", 0, QApplication::UnicodeUTF8));
+ buttonCancel->setText(QApplication::translate("CreateIteration", "Cancel", 0, QApplication::UnicodeUTF8));
+ buttonHelp->setText(QApplication::translate("CreateIteration", "Help", 0, QApplication::UnicodeUTF8));
Q_UNUSED(CreateIteration);
} // retranslateUi
class CreateIteration: public Ui_CreateIteration {};
} // namespace Ui
-QT_END_NAMESPACE
-
#endif // CREATEITERATION_H
</rect>
</property>
<property name="windowTitle" >
- <string>Create_Iteration</string>
+ <string>Create an iteration</string>
</property>
- <layout class="QGridLayout" name="gridLayout_2" >
+ <layout class="QGridLayout" >
+ <property name="margin" >
+ <number>9</number>
+ </property>
+ <property name="spacing" >
+ <number>6</number>
+ </property>
<item row="0" column="0" colspan="2" >
<widget class="QLabel" name="Iteration_Name" >
<property name="text" >
</widget>
</item>
<item row="1" column="1" >
- <spacer name="verticalSpacer" >
+ <spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
- <property name="sizeHint" stdset="0" >
+ <property name="sizeHint" >
<size>
<width>20</width>
<height>24</height>
</widget>
</item>
<item row="2" column="1" >
- <spacer name="verticalSpacer_6" >
+ <spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
- <property name="sizeHint" stdset="0" >
+ <property name="sizeHint" >
<size>
<width>20</width>
<height>21</height>
</widget>
</item>
<item row="3" column="1" >
- <spacer name="verticalSpacer_1" >
+ <spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
- <property name="sizeHint" stdset="0" >
+ <property name="sizeHint" >
<size>
<width>20</width>
<height>22</height>
</widget>
</item>
<item row="5" column="1" >
- <spacer name="verticalSpacer_3" >
+ <spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
- <property name="sizeHint" stdset="0" >
+ <property name="sizeHint" >
<size>
<width>20</width>
<height>21</height>
<property name="title" >
<string>Field information</string>
</property>
- <layout class="QGridLayout" name="gridLayout" >
+ <layout class="QGridLayout" >
+ <property name="margin" >
+ <number>9</number>
+ </property>
+ <property name="spacing" >
+ <number>6</number>
+ </property>
<item row="0" column="0" >
<widget class="QLabel" name="FieldFile" >
<property name="text" >
- <string>Field File</string>
+ <string>Field file</string>
</property>
</widget>
</item>
</widget>
</item>
<item row="1" column="3" colspan="4" >
- <spacer name="verticalSpacer_7" >
+ <spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
- <property name="sizeHint" stdset="0" >
+ <property name="sizeHint" >
<size>
<width>138</width>
<height>18</height>
<item row="2" column="0" colspan="3" >
<widget class="QRadioButton" name="RBNo" >
<property name="text" >
- <string>No Time Step</string>
+ <string>No time step</string>
</property>
<property name="checkable" >
<bool>true</bool>
<item row="2" column="3" colspan="3" >
<widget class="QRadioButton" name="RBLast" >
<property name="text" >
- <string>Last Time Step</string>
+ <string>Last time step</string>
</property>
</widget>
</item>
</widget>
</item>
<item row="3" column="0" colspan="4" >
- <spacer name="verticalSpacer_4" >
+ <spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
- <property name="sizeHint" stdset="0" >
+ <property name="sizeHint" >
<size>
<width>138</width>
<height>28</height>
<item row="4" column="0" >
<widget class="QLabel" name="TimeStep" >
<property name="text" >
- <string>Time Step</string>
+ <string>Time step</string>
</property>
</widget>
</item>
<item row="4" column="1" >
<widget class="QSpinBox" name="SpinBox_TimeStep" >
- <property name="minimum" >
- <number>-2</number>
- </property>
<property name="maximum" >
<number>100000</number>
</property>
+ <property name="minimum" >
+ <number>-2</number>
+ </property>
<property name="value" >
<number>-1</number>
</property>
</widget>
</item>
<item row="4" column="2" colspan="2" >
- <spacer name="spacer" >
+ <spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType" >
<enum>QSizePolicy::Fixed</enum>
</property>
- <property name="sizeHint" stdset="0" >
+ <property name="sizeHint" >
<size>
<width>40</width>
<height>13</height>
</item>
<item row="4" column="5" >
<widget class="QSpinBox" name="SpinBox_Rank" >
- <property name="minimum" >
- <number>-1</number>
- </property>
<property name="maximum" >
<number>1010000</number>
</property>
+ <property name="minimum" >
+ <number>-1</number>
+ </property>
<property name="value" >
<number>1</number>
</property>
</widget>
</item>
<item row="4" column="6" colspan="2" >
- <spacer name="spacer_3" >
+ <spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType" >
<enum>QSizePolicy::Expanding</enum>
</property>
- <property name="sizeHint" stdset="0" >
+ <property name="sizeHint" >
<size>
<width>255</width>
<height>13</height>
</widget>
</item>
<item row="7" column="1" >
- <spacer name="verticalSpacer_2" >
+ <spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
- <property name="sizeHint" stdset="0" >
+ <property name="sizeHint" >
<size>
<width>20</width>
<height>22</height>
<property name="title" >
<string>Hypothesis</string>
</property>
- <layout class="QGridLayout" name="gridLayout_3" >
+ <layout class="QGridLayout" >
+ <property name="margin" >
+ <number>9</number>
+ </property>
+ <property name="spacing" >
+ <number>6</number>
+ </property>
<item row="0" column="0" >
<widget class="QComboBox" name="CBHypothese" >
<property name="currentIndex" >
</widget>
</item>
<item row="0" column="1" >
- <spacer name="spacer_2" >
+ <spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType" >
<enum>QSizePolicy::Fixed</enum>
</property>
- <property name="sizeHint" stdset="0" >
+ <property name="sizeHint" >
<size>
<width>40</width>
<height>13</height>
</widget>
</item>
<item row="9" column="0" colspan="2" >
- <spacer name="verticalSpacer_5" >
+ <spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
- <property name="sizeHint" stdset="0" >
+ <property name="sizeHint" >
<size>
<width>20</width>
<height>21</height>
<property name="title" >
<string/>
</property>
- <layout class="QGridLayout" name="gridLayout_4" >
+ <layout class="QGridLayout" >
+ <property name="margin" >
+ <number>9</number>
+ </property>
+ <property name="spacing" >
+ <number>6</number>
+ </property>
<item row="0" column="0" >
<widget class="QPushButton" name="buttonOk" >
<property name="text" >
- <string>&Ok</string>
+ <string>OK</string>
</property>
<property name="autoDefault" >
<bool>false</bool>
<item row="0" column="1" >
<widget class="QPushButton" name="buttonApply" >
<property name="text" >
- <string>&Apply</string>
+ <string>Apply</string>
</property>
</widget>
</item>
<item row="0" column="2" >
<widget class="QPushButton" name="buttonCancel" >
<property name="text" >
- <string>&Cancel</string>
+ <string>Cancel</string>
</property>
</widget>
</item>
<item row="0" column="3" >
<widget class="QPushButton" name="buttonHelp" >
<property name="text" >
- <string>&Help</string>
+ <string>Help</string>
</property>
</widget>
</item>
/********************************************************************************
** Form generated from reading ui file 'CreateListGroup.ui'
**
-** Created: Thu Nov 18 16:31:34 2010
-** by: Qt User Interface Compiler version 4.5.2
+** Created: Thu Feb 24 09:10:36 2011
+** by: Qt User Interface Compiler version 4.2.1
**
** WARNING! All changes made in this file will be lost when recompiling ui file!
********************************************************************************/
#include <QtGui/QDialog>
#include <QtGui/QGridLayout>
#include <QtGui/QGroupBox>
-#include <QtGui/QHeaderView>
#include <QtGui/QPushButton>
#include <QtGui/QTableWidget>
-QT_BEGIN_NAMESPACE
-
class Ui_CreateListGroup
{
public:
QGridLayout *gridLayout;
QGroupBox *GBOptions;
- QGridLayout *gridLayout_7;
+ QGridLayout *gridLayout1;
QTableWidget *TWGroupe;
QGroupBox *GBButtons;
- QGridLayout *gridLayout_5;
+ QGridLayout *gridLayout2;
QPushButton *buttonOk;
QPushButton *buttonApply;
QPushButton *buttonCancel;
void setupUi(QDialog *CreateListGroup)
{
- if (CreateListGroup->objectName().isEmpty())
- CreateListGroup->setObjectName(QString::fromUtf8("CreateListGroup"));
- CreateListGroup->resize(717, 600);
- QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
- sizePolicy.setHorizontalStretch(0);
- sizePolicy.setVerticalStretch(0);
- sizePolicy.setHeightForWidth(CreateListGroup->sizePolicy().hasHeightForWidth());
- CreateListGroup->setSizePolicy(sizePolicy);
- CreateListGroup->setAutoFillBackground(false);
- CreateListGroup->setSizeGripEnabled(true);
- gridLayout = new QGridLayout(CreateListGroup);
- gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
- GBOptions = new QGroupBox(CreateListGroup);
- GBOptions->setObjectName(QString::fromUtf8("GBOptions"));
- gridLayout_7 = new QGridLayout(GBOptions);
- gridLayout_7->setObjectName(QString::fromUtf8("gridLayout_7"));
- TWGroupe = new QTableWidget(GBOptions);
- if (TWGroupe->columnCount() < 2)
- TWGroupe->setColumnCount(2);
- QTableWidgetItem *__qtablewidgetitem = new QTableWidgetItem();
- TWGroupe->setHorizontalHeaderItem(0, __qtablewidgetitem);
- QTableWidgetItem *__qtablewidgetitem1 = new QTableWidgetItem();
- TWGroupe->setHorizontalHeaderItem(1, __qtablewidgetitem1);
- TWGroupe->setObjectName(QString::fromUtf8("TWGroupe"));
- TWGroupe->setShowGrid(true);
- TWGroupe->setRowCount(0);
- TWGroupe->setColumnCount(2);
+ CreateListGroup->setObjectName(QString::fromUtf8("CreateListGroup"));
+ QSizePolicy sizePolicy(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0));
+ sizePolicy.setHorizontalStretch(0);
+ sizePolicy.setVerticalStretch(0);
+ sizePolicy.setHeightForWidth(CreateListGroup->sizePolicy().hasHeightForWidth());
+ CreateListGroup->setSizePolicy(sizePolicy);
+ CreateListGroup->setAutoFillBackground(true);
+ CreateListGroup->setSizeGripEnabled(true);
+ gridLayout = new QGridLayout(CreateListGroup);
+ gridLayout->setSpacing(6);
+ gridLayout->setMargin(9);
+ gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
+ GBOptions = new QGroupBox(CreateListGroup);
+ GBOptions->setObjectName(QString::fromUtf8("GBOptions"));
+ gridLayout1 = new QGridLayout(GBOptions);
+ gridLayout1->setSpacing(6);
+ gridLayout1->setMargin(9);
+ gridLayout1->setObjectName(QString::fromUtf8("gridLayout1"));
+ TWGroupe = new QTableWidget(GBOptions);
+ TWGroupe->setObjectName(QString::fromUtf8("TWGroupe"));
+ TWGroupe->setShowGrid(true);
+ TWGroupe->setRowCount(0);
+ TWGroupe->setColumnCount(2);
+
+ gridLayout1->addWidget(TWGroupe, 0, 0, 1, 1);
+
- gridLayout_7->addWidget(TWGroupe, 0, 0, 1, 1);
+ gridLayout->addWidget(GBOptions, 0, 0, 1, 1);
+ GBButtons = new QGroupBox(CreateListGroup);
+ GBButtons->setObjectName(QString::fromUtf8("GBButtons"));
+ gridLayout2 = new QGridLayout(GBButtons);
+ gridLayout2->setSpacing(6);
+ gridLayout2->setMargin(9);
+ gridLayout2->setObjectName(QString::fromUtf8("gridLayout2"));
+ buttonOk = new QPushButton(GBButtons);
+ buttonOk->setObjectName(QString::fromUtf8("buttonOk"));
- gridLayout->addWidget(GBOptions, 0, 0, 1, 1);
+ gridLayout2->addWidget(buttonOk, 0, 0, 1, 1);
- GBButtons = new QGroupBox(CreateListGroup);
- GBButtons->setObjectName(QString::fromUtf8("GBButtons"));
- gridLayout_5 = new QGridLayout(GBButtons);
- gridLayout_5->setObjectName(QString::fromUtf8("gridLayout_5"));
- buttonOk = new QPushButton(GBButtons);
- buttonOk->setObjectName(QString::fromUtf8("buttonOk"));
+ buttonApply = new QPushButton(GBButtons);
+ buttonApply->setObjectName(QString::fromUtf8("buttonApply"));
- gridLayout_5->addWidget(buttonOk, 0, 0, 1, 1);
+ gridLayout2->addWidget(buttonApply, 0, 1, 1, 1);
- buttonApply = new QPushButton(GBButtons);
- buttonApply->setObjectName(QString::fromUtf8("buttonApply"));
+ buttonCancel = new QPushButton(GBButtons);
+ buttonCancel->setObjectName(QString::fromUtf8("buttonCancel"));
- gridLayout_5->addWidget(buttonApply, 0, 1, 1, 1);
+ gridLayout2->addWidget(buttonCancel, 0, 2, 1, 1);
- buttonCancel = new QPushButton(GBButtons);
- buttonCancel->setObjectName(QString::fromUtf8("buttonCancel"));
+ buttonHelp = new QPushButton(GBButtons);
+ buttonHelp->setObjectName(QString::fromUtf8("buttonHelp"));
- gridLayout_5->addWidget(buttonCancel, 0, 2, 1, 1);
+ gridLayout2->addWidget(buttonHelp, 0, 3, 1, 1);
- buttonHelp = new QPushButton(GBButtons);
- buttonHelp->setObjectName(QString::fromUtf8("buttonHelp"));
- gridLayout_5->addWidget(buttonHelp, 0, 3, 1, 1);
+ gridLayout->addWidget(GBButtons, 1, 0, 1, 1);
- gridLayout->addWidget(GBButtons, 1, 0, 1, 1);
+ retranslateUi(CreateListGroup);
+ QSize size(717, 600);
+ size = size.expandedTo(CreateListGroup->minimumSizeHint());
+ CreateListGroup->resize(size);
- retranslateUi(CreateListGroup);
- QMetaObject::connectSlotsByName(CreateListGroup);
+ QMetaObject::connectSlotsByName(CreateListGroup);
} // setupUi
void retranslateUi(QDialog *CreateListGroup)
{
- CreateListGroup->setWindowTitle(QApplication::translate("CreateListGroup", "Create Hypothesis - Group selection", 0, QApplication::UnicodeUTF8));
- GBOptions->setTitle(QApplication::translate("CreateListGroup", "Selected groups", 0, QApplication::UnicodeUTF8));
- QTableWidgetItem *___qtablewidgetitem = TWGroupe->horizontalHeaderItem(0);
- ___qtablewidgetitem->setText(QApplication::translate("CreateListGroup", "Selection", 0, QApplication::UnicodeUTF8));
- QTableWidgetItem *___qtablewidgetitem1 = TWGroupe->horizontalHeaderItem(1);
- ___qtablewidgetitem1->setText(QApplication::translate("CreateListGroup", "Group", 0, QApplication::UnicodeUTF8));
- GBButtons->setTitle(QString());
- buttonOk->setText(QApplication::translate("CreateListGroup", "&Ok", 0, QApplication::UnicodeUTF8));
- buttonApply->setText(QApplication::translate("CreateListGroup", "&Apply", 0, QApplication::UnicodeUTF8));
- buttonCancel->setText(QApplication::translate("CreateListGroup", "&Cancel", 0, QApplication::UnicodeUTF8));
- buttonHelp->setText(QApplication::translate("CreateListGroup", "&Help", 0, QApplication::UnicodeUTF8));
- Q_UNUSED(CreateListGroup);
+ CreateListGroup->setWindowTitle(QApplication::translate("CreateListGroup", "Selection of groups", 0, QApplication::UnicodeUTF8));
+ GBOptions->setTitle(QApplication::translate("CreateListGroup", "Selected groups", 0, QApplication::UnicodeUTF8));
+ if (TWGroupe->columnCount() < 2)
+ TWGroupe->setColumnCount(2);
+
+ QTableWidgetItem *__colItem = new QTableWidgetItem();
+ __colItem->setText(QApplication::translate("CreateListGroup", "Selection", 0, QApplication::UnicodeUTF8));
+ TWGroupe->setHorizontalHeaderItem(0, __colItem);
+
+ QTableWidgetItem *__colItem1 = new QTableWidgetItem();
+ __colItem1->setText(QApplication::translate("CreateListGroup", "Group", 0, QApplication::UnicodeUTF8));
+ TWGroupe->setHorizontalHeaderItem(1, __colItem1);
+ GBButtons->setTitle(QString());
+ buttonOk->setText(QApplication::translate("CreateListGroup", "OK", 0, QApplication::UnicodeUTF8));
+ buttonApply->setText(QApplication::translate("CreateListGroup", "Apply", 0, QApplication::UnicodeUTF8));
+ buttonCancel->setText(QApplication::translate("CreateListGroup", "Cancel", 0, QApplication::UnicodeUTF8));
+ buttonHelp->setText(QApplication::translate("CreateListGroup", "Help", 0, QApplication::UnicodeUTF8));
+ Q_UNUSED(CreateListGroup);
} // retranslateUi
};
class CreateListGroup: public Ui_CreateListGroup {};
} // namespace Ui
-QT_END_NAMESPACE
-
#endif // CREATELISTGROUP_H
</rect>
</property>
<property name="sizePolicy" >
- <sizepolicy vsizetype="Expanding" hsizetype="Expanding" >
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="windowTitle" >
- <string>Create Hypothesis - Group selection</string>
+ <string>Selection of groups</string>
</property>
<property name="autoFillBackground" >
- <bool>false</bool>
+ <bool>true</bool>
</property>
<property name="sizeGripEnabled" >
<bool>true</bool>
</property>
- <layout class="QGridLayout" name="gridLayout" >
+ <layout class="QGridLayout" >
+ <property name="margin" >
+ <number>9</number>
+ </property>
+ <property name="spacing" >
+ <number>6</number>
+ </property>
<item row="0" column="0" >
<widget class="QGroupBox" name="GBOptions" >
<property name="title" >
<string>Selected groups</string>
</property>
- <layout class="QGridLayout" name="gridLayout_7" >
+ <layout class="QGridLayout" >
+ <property name="margin" >
+ <number>9</number>
+ </property>
+ <property name="spacing" >
+ <number>6</number>
+ </property>
<item row="0" column="0" >
<widget class="QTableWidget" name="TWGroupe" >
<property name="showGrid" >
<property name="title" >
<string/>
</property>
- <layout class="QGridLayout" name="gridLayout_5" >
+ <layout class="QGridLayout" >
+ <property name="margin" >
+ <number>9</number>
+ </property>
+ <property name="spacing" >
+ <number>6</number>
+ </property>
<item row="0" column="0" >
<widget class="QPushButton" name="buttonOk" >
<property name="text" >
- <string>&Ok</string>
+ <string>OK</string>
</property>
</widget>
</item>
<item row="0" column="1" >
<widget class="QPushButton" name="buttonApply" >
<property name="text" >
- <string>&Apply</string>
+ <string>Apply</string>
</property>
</widget>
</item>
<item row="0" column="2" >
<widget class="QPushButton" name="buttonCancel" >
<property name="text" >
- <string>&Cancel</string>
+ <string>Cancel</string>
</property>
</widget>
</item>
<item row="0" column="3" >
<widget class="QPushButton" name="buttonHelp" >
<property name="text" >
- <string>&Help</string>
+ <string>Help</string>
</property>
</widget>
</item>
/********************************************************************************
** Form generated from reading ui file 'CreateZone.ui'
**
-** Created: Mon Sep 27 14:45:47 2010
-** by: Qt User Interface Compiler version 4.5.2
+** Created: Thu Feb 24 09:10:36 2011
+** by: Qt User Interface Compiler version 4.2.1
**
** WARNING! All changes made in this file will be lost when recompiling ui file!
********************************************************************************/
#include <QtGui/QGridLayout>
#include <QtGui/QGroupBox>
#include <QtGui/QHBoxLayout>
-#include <QtGui/QHeaderView>
#include <QtGui/QLabel>
#include <QtGui/QLineEdit>
#include <QtGui/QPushButton>
#include <QtGui/QRadioButton>
-QT_BEGIN_NAMESPACE
-
class Ui_CreateZone
{
public:
- QGridLayout *gridLayout_3;
+ QGridLayout *gridLayout;
QLabel *Name;
QLineEdit *LEZoneName;
QGroupBox *TypeZone;
- QHBoxLayout *horizontalLayout;
+ QHBoxLayout *hboxLayout;
QRadioButton *RBBox;
QRadioButton *RBSphere;
QGroupBox *gBBox;
- QGridLayout *gridLayout;
+ QGridLayout *gridLayout1;
QLabel *TLXmini;
QDoubleSpinBox *SpinBox_Xmini;
QLabel *TLYmini;
QDoubleSpinBox *SpinBox_Xmaxi;
QDoubleSpinBox *SpinBox_Ymaxi;
QGroupBox *gBSphere;
- QGridLayout *gridLayout_2;
+ QGridLayout *gridLayout2;
QLabel *TLXcentre;
QDoubleSpinBox *SpinBox_Xcentre;
QLabel *TLYcentre;
QLabel *TLZcentre;
QDoubleSpinBox *SpinBox_Zcentre;
QGroupBox *GBButtons;
- QHBoxLayout *hboxLayout;
+ QHBoxLayout *hboxLayout1;
QPushButton *buttonOk;
QPushButton *buttonApply;
QPushButton *buttonCancel;
void setupUi(QDialog *CreateZone)
{
- if (CreateZone->objectName().isEmpty())
- CreateZone->setObjectName(QString::fromUtf8("CreateZone"));
- CreateZone->resize(415, 472);
- CreateZone->setAutoFillBackground(false);
- CreateZone->setSizeGripEnabled(true);
- gridLayout_3 = new QGridLayout(CreateZone);
- gridLayout_3->setObjectName(QString::fromUtf8("gridLayout_3"));
- Name = new QLabel(CreateZone);
- Name->setObjectName(QString::fromUtf8("Name"));
-
- gridLayout_3->addWidget(Name, 0, 0, 1, 1);
-
- LEZoneName = new QLineEdit(CreateZone);
- LEZoneName->setObjectName(QString::fromUtf8("LEZoneName"));
- LEZoneName->setMaxLength(32);
-
- gridLayout_3->addWidget(LEZoneName, 0, 1, 1, 1);
-
- TypeZone = new QGroupBox(CreateZone);
- TypeZone->setObjectName(QString::fromUtf8("TypeZone"));
- QSizePolicy sizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
- sizePolicy.setHorizontalStretch(0);
- sizePolicy.setVerticalStretch(0);
- sizePolicy.setHeightForWidth(TypeZone->sizePolicy().hasHeightForWidth());
- TypeZone->setSizePolicy(sizePolicy);
- TypeZone->setMinimumSize(QSize(340, 0));
- horizontalLayout = new QHBoxLayout(TypeZone);
- horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
- RBBox = new QRadioButton(TypeZone);
- RBBox->setObjectName(QString::fromUtf8("RBBox"));
- QIcon icon;
- icon.addFile(QString::fromUtf8("../../resources/zone_boxdxyz.png"), QSize(), QIcon::Normal, QIcon::Off);
- RBBox->setIcon(icon);
- RBBox->setCheckable(true);
- RBBox->setChecked(true);
-
- horizontalLayout->addWidget(RBBox);
-
- RBSphere = new QRadioButton(TypeZone);
- RBSphere->setObjectName(QString::fromUtf8("RBSphere"));
- QIcon icon1;
- icon1.addFile(QString::fromUtf8("../../resources/zone_spherepoint.png"), QSize(), QIcon::Normal, QIcon::Off);
- RBSphere->setIcon(icon1);
-
- horizontalLayout->addWidget(RBSphere);
-
-
- gridLayout_3->addWidget(TypeZone, 1, 0, 1, 2);
-
- gBBox = new QGroupBox(CreateZone);
- gBBox->setObjectName(QString::fromUtf8("gBBox"));
- sizePolicy.setHeightForWidth(gBBox->sizePolicy().hasHeightForWidth());
- gBBox->setSizePolicy(sizePolicy);
- gridLayout = new QGridLayout(gBBox);
- gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
- TLXmini = new QLabel(gBBox);
- TLXmini->setObjectName(QString::fromUtf8("TLXmini"));
- sizePolicy.setHeightForWidth(TLXmini->sizePolicy().hasHeightForWidth());
- TLXmini->setSizePolicy(sizePolicy);
- TLXmini->setWordWrap(false);
-
- gridLayout->addWidget(TLXmini, 0, 0, 1, 1);
-
- SpinBox_Xmini = new QDoubleSpinBox(gBBox);
- SpinBox_Xmini->setObjectName(QString::fromUtf8("SpinBox_Xmini"));
- SpinBox_Xmini->setDecimals(5);
- SpinBox_Xmini->setMinimum(-1e+09);
- SpinBox_Xmini->setMaximum(1e+09);
- SpinBox_Xmini->setValue(0);
-
- gridLayout->addWidget(SpinBox_Xmini, 0, 1, 1, 1);
-
- TLYmini = new QLabel(gBBox);
- TLYmini->setObjectName(QString::fromUtf8("TLYmini"));
- sizePolicy.setHeightForWidth(TLYmini->sizePolicy().hasHeightForWidth());
- TLYmini->setSizePolicy(sizePolicy);
- TLYmini->setWordWrap(false);
-
- gridLayout->addWidget(TLYmini, 1, 0, 1, 1);
-
- SpinBox_Ymini = new QDoubleSpinBox(gBBox);
- SpinBox_Ymini->setObjectName(QString::fromUtf8("SpinBox_Ymini"));
- SpinBox_Ymini->setDecimals(5);
- SpinBox_Ymini->setMinimum(-1e+09);
- SpinBox_Ymini->setMaximum(1e+09);
- SpinBox_Ymini->setValue(0);
-
- gridLayout->addWidget(SpinBox_Ymini, 1, 1, 1, 1);
-
- TLZmini = new QLabel(gBBox);
- TLZmini->setObjectName(QString::fromUtf8("TLZmini"));
- sizePolicy.setHeightForWidth(TLZmini->sizePolicy().hasHeightForWidth());
- TLZmini->setSizePolicy(sizePolicy);
- TLZmini->setWordWrap(false);
-
- gridLayout->addWidget(TLZmini, 2, 0, 1, 1);
-
- SpinBox_Zmini = new QDoubleSpinBox(gBBox);
- SpinBox_Zmini->setObjectName(QString::fromUtf8("SpinBox_Zmini"));
- SpinBox_Zmini->setDecimals(5);
- SpinBox_Zmini->setMinimum(-1e+09);
- SpinBox_Zmini->setMaximum(1e+09);
- SpinBox_Zmini->setValue(0);
-
- gridLayout->addWidget(SpinBox_Zmini, 2, 1, 1, 1);
-
- TLXmaxi = new QLabel(gBBox);
- TLXmaxi->setObjectName(QString::fromUtf8("TLXmaxi"));
- sizePolicy.setHeightForWidth(TLXmaxi->sizePolicy().hasHeightForWidth());
- TLXmaxi->setSizePolicy(sizePolicy);
- TLXmaxi->setWordWrap(false);
-
- gridLayout->addWidget(TLXmaxi, 0, 2, 1, 1);
-
- TLZmaxi = new QLabel(gBBox);
- TLZmaxi->setObjectName(QString::fromUtf8("TLZmaxi"));
- sizePolicy.setHeightForWidth(TLZmaxi->sizePolicy().hasHeightForWidth());
- TLZmaxi->setSizePolicy(sizePolicy);
- TLZmaxi->setWordWrap(false);
-
- gridLayout->addWidget(TLZmaxi, 2, 2, 1, 1);
-
- SpinBox_Zmaxi = new QDoubleSpinBox(gBBox);
- SpinBox_Zmaxi->setObjectName(QString::fromUtf8("SpinBox_Zmaxi"));
- SpinBox_Zmaxi->setDecimals(5);
- SpinBox_Zmaxi->setMinimum(-1e+09);
- SpinBox_Zmaxi->setMaximum(1e+09);
- SpinBox_Zmaxi->setValue(0);
-
- gridLayout->addWidget(SpinBox_Zmaxi, 2, 3, 1, 1);
-
- TLYmaxi = new QLabel(gBBox);
- TLYmaxi->setObjectName(QString::fromUtf8("TLYmaxi"));
- sizePolicy.setHeightForWidth(TLYmaxi->sizePolicy().hasHeightForWidth());
- TLYmaxi->setSizePolicy(sizePolicy);
- TLYmaxi->setWordWrap(false);
-
- gridLayout->addWidget(TLYmaxi, 1, 2, 1, 1);
-
- SpinBox_Xmaxi = new QDoubleSpinBox(gBBox);
- SpinBox_Xmaxi->setObjectName(QString::fromUtf8("SpinBox_Xmaxi"));
- SpinBox_Xmaxi->setDecimals(5);
- SpinBox_Xmaxi->setMinimum(-1e+09);
- SpinBox_Xmaxi->setMaximum(1e+09);
- SpinBox_Xmaxi->setValue(0);
-
- gridLayout->addWidget(SpinBox_Xmaxi, 0, 3, 1, 1);
-
- SpinBox_Ymaxi = new QDoubleSpinBox(gBBox);
- SpinBox_Ymaxi->setObjectName(QString::fromUtf8("SpinBox_Ymaxi"));
- SpinBox_Ymaxi->setDecimals(5);
- SpinBox_Ymaxi->setMinimum(-1e+09);
- SpinBox_Ymaxi->setMaximum(1e+09);
- SpinBox_Ymaxi->setValue(0);
-
- gridLayout->addWidget(SpinBox_Ymaxi, 1, 3, 1, 1);
-
-
- gridLayout_3->addWidget(gBBox, 2, 0, 1, 2);
-
- gBSphere = new QGroupBox(CreateZone);
- gBSphere->setObjectName(QString::fromUtf8("gBSphere"));
- sizePolicy.setHeightForWidth(gBSphere->sizePolicy().hasHeightForWidth());
- gBSphere->setSizePolicy(sizePolicy);
- gridLayout_2 = new QGridLayout(gBSphere);
- gridLayout_2->setObjectName(QString::fromUtf8("gridLayout_2"));
- TLXcentre = new QLabel(gBSphere);
- TLXcentre->setObjectName(QString::fromUtf8("TLXcentre"));
- sizePolicy.setHeightForWidth(TLXcentre->sizePolicy().hasHeightForWidth());
- TLXcentre->setSizePolicy(sizePolicy);
- TLXcentre->setWordWrap(false);
-
- gridLayout_2->addWidget(TLXcentre, 0, 0, 1, 1);
-
- SpinBox_Xcentre = new QDoubleSpinBox(gBSphere);
- SpinBox_Xcentre->setObjectName(QString::fromUtf8("SpinBox_Xcentre"));
- SpinBox_Xcentre->setDecimals(5);
- SpinBox_Xcentre->setMinimum(-1e+09);
- SpinBox_Xcentre->setMaximum(1e+09);
- SpinBox_Xcentre->setValue(0);
-
- gridLayout_2->addWidget(SpinBox_Xcentre, 0, 1, 1, 1);
-
- TLYcentre = new QLabel(gBSphere);
- TLYcentre->setObjectName(QString::fromUtf8("TLYcentre"));
- sizePolicy.setHeightForWidth(TLYcentre->sizePolicy().hasHeightForWidth());
- TLYcentre->setSizePolicy(sizePolicy);
- TLYcentre->setWordWrap(false);
-
- gridLayout_2->addWidget(TLYcentre, 1, 0, 1, 1);
+ CreateZone->setObjectName(QString::fromUtf8("CreateZone"));
+ CreateZone->setAutoFillBackground(true);
+ CreateZone->setSizeGripEnabled(true);
+ gridLayout = new QGridLayout(CreateZone);
+ gridLayout->setSpacing(6);
+ gridLayout->setMargin(9);
+ gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
+ Name = new QLabel(CreateZone);
+ Name->setObjectName(QString::fromUtf8("Name"));
+
+ gridLayout->addWidget(Name, 0, 0, 1, 1);
+
+ LEZoneName = new QLineEdit(CreateZone);
+ LEZoneName->setObjectName(QString::fromUtf8("LEZoneName"));
+ LEZoneName->setMaxLength(32);
+
+ gridLayout->addWidget(LEZoneName, 0, 1, 1, 1);
+
+ TypeZone = new QGroupBox(CreateZone);
+ TypeZone->setObjectName(QString::fromUtf8("TypeZone"));
+ QSizePolicy sizePolicy(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0));
+ sizePolicy.setHorizontalStretch(0);
+ sizePolicy.setVerticalStretch(0);
+ sizePolicy.setHeightForWidth(TypeZone->sizePolicy().hasHeightForWidth());
+ TypeZone->setSizePolicy(sizePolicy);
+ TypeZone->setMinimumSize(QSize(340, 0));
+ hboxLayout = new QHBoxLayout(TypeZone);
+ hboxLayout->setSpacing(6);
+ hboxLayout->setMargin(9);
+ hboxLayout->setObjectName(QString::fromUtf8("hboxLayout"));
+ RBBox = new QRadioButton(TypeZone);
+ RBBox->setObjectName(QString::fromUtf8("RBBox"));
+ RBBox->setIcon(QIcon(QString::fromUtf8("../../resources/zone_boxdxyz.png")));
+ RBBox->setCheckable(true);
+ RBBox->setChecked(true);
+
+ hboxLayout->addWidget(RBBox);
+
+ RBSphere = new QRadioButton(TypeZone);
+ RBSphere->setObjectName(QString::fromUtf8("RBSphere"));
+ RBSphere->setIcon(QIcon(QString::fromUtf8("../../resources/zone_spherepoint.png")));
+
+ hboxLayout->addWidget(RBSphere);
+
+
+ gridLayout->addWidget(TypeZone, 1, 0, 1, 2);
+
+ gBBox = new QGroupBox(CreateZone);
+ gBBox->setObjectName(QString::fromUtf8("gBBox"));
+ QSizePolicy sizePolicy1(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0));
+ sizePolicy1.setHorizontalStretch(0);
+ sizePolicy1.setVerticalStretch(0);
+ sizePolicy1.setHeightForWidth(gBBox->sizePolicy().hasHeightForWidth());
+ gBBox->setSizePolicy(sizePolicy1);
+ gridLayout1 = new QGridLayout(gBBox);
+ gridLayout1->setSpacing(6);
+ gridLayout1->setMargin(9);
+ gridLayout1->setObjectName(QString::fromUtf8("gridLayout1"));
+ TLXmini = new QLabel(gBBox);
+ TLXmini->setObjectName(QString::fromUtf8("TLXmini"));
+ QSizePolicy sizePolicy2(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0));
+ sizePolicy2.setHorizontalStretch(0);
+ sizePolicy2.setVerticalStretch(0);
+ sizePolicy2.setHeightForWidth(TLXmini->sizePolicy().hasHeightForWidth());
+ TLXmini->setSizePolicy(sizePolicy2);
+ TLXmini->setWordWrap(false);
+
+ gridLayout1->addWidget(TLXmini, 0, 0, 1, 1);
+
+ SpinBox_Xmini = new QDoubleSpinBox(gBBox);
+ SpinBox_Xmini->setObjectName(QString::fromUtf8("SpinBox_Xmini"));
+ SpinBox_Xmini->setDecimals(5);
+ SpinBox_Xmini->setMaximum(1e+09);
+ SpinBox_Xmini->setMinimum(-1e+09);
+ SpinBox_Xmini->setValue(0);
+
+ gridLayout1->addWidget(SpinBox_Xmini, 0, 1, 1, 1);
+
+ TLYmini = new QLabel(gBBox);
+ TLYmini->setObjectName(QString::fromUtf8("TLYmini"));
+ QSizePolicy sizePolicy3(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0));
+ sizePolicy3.setHorizontalStretch(0);
+ sizePolicy3.setVerticalStretch(0);
+ sizePolicy3.setHeightForWidth(TLYmini->sizePolicy().hasHeightForWidth());
+ TLYmini->setSizePolicy(sizePolicy3);
+ TLYmini->setWordWrap(false);
+
+ gridLayout1->addWidget(TLYmini, 1, 0, 1, 1);
+
+ SpinBox_Ymini = new QDoubleSpinBox(gBBox);
+ SpinBox_Ymini->setObjectName(QString::fromUtf8("SpinBox_Ymini"));
+ SpinBox_Ymini->setDecimals(5);
+ SpinBox_Ymini->setMaximum(1e+09);
+ SpinBox_Ymini->setMinimum(-1e+09);
+ SpinBox_Ymini->setValue(0);
+
+ gridLayout1->addWidget(SpinBox_Ymini, 1, 1, 1, 1);
+
+ TLZmini = new QLabel(gBBox);
+ TLZmini->setObjectName(QString::fromUtf8("TLZmini"));
+ QSizePolicy sizePolicy4(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0));
+ sizePolicy4.setHorizontalStretch(0);
+ sizePolicy4.setVerticalStretch(0);
+ sizePolicy4.setHeightForWidth(TLZmini->sizePolicy().hasHeightForWidth());
+ TLZmini->setSizePolicy(sizePolicy4);
+ TLZmini->setWordWrap(false);
+
+ gridLayout1->addWidget(TLZmini, 2, 0, 1, 1);
+
+ SpinBox_Zmini = new QDoubleSpinBox(gBBox);
+ SpinBox_Zmini->setObjectName(QString::fromUtf8("SpinBox_Zmini"));
+ SpinBox_Zmini->setDecimals(5);
+ SpinBox_Zmini->setMaximum(1e+09);
+ SpinBox_Zmini->setMinimum(-1e+09);
+ SpinBox_Zmini->setValue(0);
+
+ gridLayout1->addWidget(SpinBox_Zmini, 2, 1, 1, 1);
+
+ TLXmaxi = new QLabel(gBBox);
+ TLXmaxi->setObjectName(QString::fromUtf8("TLXmaxi"));
+ QSizePolicy sizePolicy5(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0));
+ sizePolicy5.setHorizontalStretch(0);
+ sizePolicy5.setVerticalStretch(0);
+ sizePolicy5.setHeightForWidth(TLXmaxi->sizePolicy().hasHeightForWidth());
+ TLXmaxi->setSizePolicy(sizePolicy5);
+ TLXmaxi->setWordWrap(false);
+
+ gridLayout1->addWidget(TLXmaxi, 0, 2, 1, 1);
+
+ TLZmaxi = new QLabel(gBBox);
+ TLZmaxi->setObjectName(QString::fromUtf8("TLZmaxi"));
+ QSizePolicy sizePolicy6(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0));
+ sizePolicy6.setHorizontalStretch(0);
+ sizePolicy6.setVerticalStretch(0);
+ sizePolicy6.setHeightForWidth(TLZmaxi->sizePolicy().hasHeightForWidth());
+ TLZmaxi->setSizePolicy(sizePolicy6);
+ TLZmaxi->setWordWrap(false);
+
+ gridLayout1->addWidget(TLZmaxi, 2, 2, 1, 1);
+
+ SpinBox_Zmaxi = new QDoubleSpinBox(gBBox);
+ SpinBox_Zmaxi->setObjectName(QString::fromUtf8("SpinBox_Zmaxi"));
+ SpinBox_Zmaxi->setDecimals(5);
+ SpinBox_Zmaxi->setMaximum(1e+09);
+ SpinBox_Zmaxi->setMinimum(-1e+09);
+ SpinBox_Zmaxi->setValue(0);
+
+ gridLayout1->addWidget(SpinBox_Zmaxi, 2, 3, 1, 1);
+
+ TLYmaxi = new QLabel(gBBox);
+ TLYmaxi->setObjectName(QString::fromUtf8("TLYmaxi"));
+ QSizePolicy sizePolicy7(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0));
+ sizePolicy7.setHorizontalStretch(0);
+ sizePolicy7.setVerticalStretch(0);
+ sizePolicy7.setHeightForWidth(TLYmaxi->sizePolicy().hasHeightForWidth());
+ TLYmaxi->setSizePolicy(sizePolicy7);
+ TLYmaxi->setWordWrap(false);
+
+ gridLayout1->addWidget(TLYmaxi, 1, 2, 1, 1);
+
+ SpinBox_Xmaxi = new QDoubleSpinBox(gBBox);
+ SpinBox_Xmaxi->setObjectName(QString::fromUtf8("SpinBox_Xmaxi"));
+ SpinBox_Xmaxi->setDecimals(5);
+ SpinBox_Xmaxi->setMaximum(1e+09);
+ SpinBox_Xmaxi->setMinimum(-1e+09);
+ SpinBox_Xmaxi->setValue(0);
+
+ gridLayout1->addWidget(SpinBox_Xmaxi, 0, 3, 1, 1);
+
+ SpinBox_Ymaxi = new QDoubleSpinBox(gBBox);
+ SpinBox_Ymaxi->setObjectName(QString::fromUtf8("SpinBox_Ymaxi"));
+ SpinBox_Ymaxi->setDecimals(5);
+ SpinBox_Ymaxi->setMaximum(1e+09);
+ SpinBox_Ymaxi->setMinimum(-1e+09);
+ SpinBox_Ymaxi->setValue(0);
+
+ gridLayout1->addWidget(SpinBox_Ymaxi, 1, 3, 1, 1);
+
+
+ gridLayout->addWidget(gBBox, 2, 0, 1, 2);
+
+ gBSphere = new QGroupBox(CreateZone);
+ gBSphere->setObjectName(QString::fromUtf8("gBSphere"));
+ QSizePolicy sizePolicy8(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0));
+ sizePolicy8.setHorizontalStretch(0);
+ sizePolicy8.setVerticalStretch(0);
+ sizePolicy8.setHeightForWidth(gBSphere->sizePolicy().hasHeightForWidth());
+ gBSphere->setSizePolicy(sizePolicy8);
+ gridLayout2 = new QGridLayout(gBSphere);
+ gridLayout2->setSpacing(6);
+ gridLayout2->setMargin(9);
+ gridLayout2->setObjectName(QString::fromUtf8("gridLayout2"));
+ TLXcentre = new QLabel(gBSphere);
+ TLXcentre->setObjectName(QString::fromUtf8("TLXcentre"));
+ QSizePolicy sizePolicy9(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0));
+ sizePolicy9.setHorizontalStretch(0);
+ sizePolicy9.setVerticalStretch(0);
+ sizePolicy9.setHeightForWidth(TLXcentre->sizePolicy().hasHeightForWidth());
+ TLXcentre->setSizePolicy(sizePolicy9);
+ TLXcentre->setWordWrap(false);
+
+ gridLayout2->addWidget(TLXcentre, 0, 0, 1, 1);
+
+ SpinBox_Xcentre = new QDoubleSpinBox(gBSphere);
+ SpinBox_Xcentre->setObjectName(QString::fromUtf8("SpinBox_Xcentre"));
+ SpinBox_Xcentre->setDecimals(5);
+ SpinBox_Xcentre->setMaximum(1e+09);
+ SpinBox_Xcentre->setMinimum(-1e+09);
+ SpinBox_Xcentre->setValue(0);
+
+ gridLayout2->addWidget(SpinBox_Xcentre, 0, 1, 1, 1);
+
+ TLYcentre = new QLabel(gBSphere);
+ TLYcentre->setObjectName(QString::fromUtf8("TLYcentre"));
+ QSizePolicy sizePolicy10(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0));
+ sizePolicy10.setHorizontalStretch(0);
+ sizePolicy10.setVerticalStretch(0);
+ sizePolicy10.setHeightForWidth(TLYcentre->sizePolicy().hasHeightForWidth());
+ TLYcentre->setSizePolicy(sizePolicy10);
+ TLYcentre->setWordWrap(false);
+
+ gridLayout2->addWidget(TLYcentre, 1, 0, 1, 1);
+
+ SpinBox_Ycentre = new QDoubleSpinBox(gBSphere);
+ SpinBox_Ycentre->setObjectName(QString::fromUtf8("SpinBox_Ycentre"));
+ SpinBox_Ycentre->setDecimals(5);
+ SpinBox_Ycentre->setMaximum(1e+09);
+ SpinBox_Ycentre->setMinimum(-1e+09);
+ SpinBox_Ycentre->setValue(0);
+
+ gridLayout2->addWidget(SpinBox_Ycentre, 1, 1, 1, 1);
+
+ TLRayon = new QLabel(gBSphere);
+ TLRayon->setObjectName(QString::fromUtf8("TLRayon"));
+ QSizePolicy sizePolicy11(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0));
+ sizePolicy11.setHorizontalStretch(0);
+ sizePolicy11.setVerticalStretch(0);
+ sizePolicy11.setHeightForWidth(TLRayon->sizePolicy().hasHeightForWidth());
+ TLRayon->setSizePolicy(sizePolicy11);
+ TLRayon->setWordWrap(false);
+
+ gridLayout2->addWidget(TLRayon, 1, 2, 1, 1);
+
+ SpinBox_Rayon = new QDoubleSpinBox(gBSphere);
+ SpinBox_Rayon->setObjectName(QString::fromUtf8("SpinBox_Rayon"));
+ SpinBox_Rayon->setDecimals(5);
+ SpinBox_Rayon->setMaximum(1e+09);
+ SpinBox_Rayon->setMinimum(-1e+09);
+ SpinBox_Rayon->setValue(0);
+
+ gridLayout2->addWidget(SpinBox_Rayon, 1, 3, 1, 1);
+
+ TLZcentre = new QLabel(gBSphere);
+ TLZcentre->setObjectName(QString::fromUtf8("TLZcentre"));
+ QSizePolicy sizePolicy12(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0));
+ sizePolicy12.setHorizontalStretch(0);
+ sizePolicy12.setVerticalStretch(0);
+ sizePolicy12.setHeightForWidth(TLZcentre->sizePolicy().hasHeightForWidth());
+ TLZcentre->setSizePolicy(sizePolicy12);
+ TLZcentre->setWordWrap(false);
+
+ gridLayout2->addWidget(TLZcentre, 2, 0, 1, 1);
+
+ SpinBox_Zcentre = new QDoubleSpinBox(gBSphere);
+ SpinBox_Zcentre->setObjectName(QString::fromUtf8("SpinBox_Zcentre"));
+ SpinBox_Zcentre->setDecimals(5);
+ SpinBox_Zcentre->setMaximum(1e+09);
+ SpinBox_Zcentre->setMinimum(-1e+09);
+ SpinBox_Zcentre->setValue(0);
+
+ gridLayout2->addWidget(SpinBox_Zcentre, 2, 1, 1, 1);
- SpinBox_Ycentre = new QDoubleSpinBox(gBSphere);
- SpinBox_Ycentre->setObjectName(QString::fromUtf8("SpinBox_Ycentre"));
- SpinBox_Ycentre->setDecimals(5);
- SpinBox_Ycentre->setMinimum(-1e+09);
- SpinBox_Ycentre->setMaximum(1e+09);
- SpinBox_Ycentre->setValue(0);
- gridLayout_2->addWidget(SpinBox_Ycentre, 1, 1, 1, 1);
+ gridLayout->addWidget(gBSphere, 3, 0, 1, 2);
- TLRayon = new QLabel(gBSphere);
- TLRayon->setObjectName(QString::fromUtf8("TLRayon"));
- sizePolicy.setHeightForWidth(TLRayon->sizePolicy().hasHeightForWidth());
- TLRayon->setSizePolicy(sizePolicy);
- TLRayon->setWordWrap(false);
+ GBButtons = new QGroupBox(CreateZone);
+ GBButtons->setObjectName(QString::fromUtf8("GBButtons"));
+ QSizePolicy sizePolicy13(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0));
+ sizePolicy13.setHorizontalStretch(0);
+ sizePolicy13.setVerticalStretch(0);
+ sizePolicy13.setHeightForWidth(GBButtons->sizePolicy().hasHeightForWidth());
+ GBButtons->setSizePolicy(sizePolicy13);
+ hboxLayout1 = new QHBoxLayout(GBButtons);
+ hboxLayout1->setSpacing(6);
+ hboxLayout1->setMargin(9);
+ hboxLayout1->setObjectName(QString::fromUtf8("hboxLayout1"));
+ buttonOk = new QPushButton(GBButtons);
+ buttonOk->setObjectName(QString::fromUtf8("buttonOk"));
- gridLayout_2->addWidget(TLRayon, 1, 2, 1, 1);
+ hboxLayout1->addWidget(buttonOk);
- SpinBox_Rayon = new QDoubleSpinBox(gBSphere);
- SpinBox_Rayon->setObjectName(QString::fromUtf8("SpinBox_Rayon"));
- SpinBox_Rayon->setDecimals(5);
- SpinBox_Rayon->setMinimum(-1e+09);
- SpinBox_Rayon->setMaximum(1e+09);
- SpinBox_Rayon->setValue(0);
+ buttonApply = new QPushButton(GBButtons);
+ buttonApply->setObjectName(QString::fromUtf8("buttonApply"));
- gridLayout_2->addWidget(SpinBox_Rayon, 1, 3, 1, 1);
+ hboxLayout1->addWidget(buttonApply);
- TLZcentre = new QLabel(gBSphere);
- TLZcentre->setObjectName(QString::fromUtf8("TLZcentre"));
- sizePolicy.setHeightForWidth(TLZcentre->sizePolicy().hasHeightForWidth());
- TLZcentre->setSizePolicy(sizePolicy);
- TLZcentre->setWordWrap(false);
+ buttonCancel = new QPushButton(GBButtons);
+ buttonCancel->setObjectName(QString::fromUtf8("buttonCancel"));
- gridLayout_2->addWidget(TLZcentre, 2, 0, 1, 1);
+ hboxLayout1->addWidget(buttonCancel);
- SpinBox_Zcentre = new QDoubleSpinBox(gBSphere);
- SpinBox_Zcentre->setObjectName(QString::fromUtf8("SpinBox_Zcentre"));
- SpinBox_Zcentre->setDecimals(5);
- SpinBox_Zcentre->setMinimum(-1e+09);
- SpinBox_Zcentre->setMaximum(1e+09);
- SpinBox_Zcentre->setValue(0);
+ buttonHelp = new QPushButton(GBButtons);
+ buttonHelp->setObjectName(QString::fromUtf8("buttonHelp"));
- gridLayout_2->addWidget(SpinBox_Zcentre, 2, 1, 1, 1);
+ hboxLayout1->addWidget(buttonHelp);
- gridLayout_3->addWidget(gBSphere, 3, 0, 1, 2);
+ gridLayout->addWidget(GBButtons, 4, 0, 1, 2);
- GBButtons = new QGroupBox(CreateZone);
- GBButtons->setObjectName(QString::fromUtf8("GBButtons"));
- sizePolicy.setHeightForWidth(GBButtons->sizePolicy().hasHeightForWidth());
- GBButtons->setSizePolicy(sizePolicy);
- hboxLayout = new QHBoxLayout(GBButtons);
-#ifndef Q_OS_MAC
- hboxLayout->setSpacing(6);
-#endif
-#ifndef Q_OS_MAC
- hboxLayout->setMargin(9);
-#endif
- hboxLayout->setObjectName(QString::fromUtf8("hboxLayout"));
- buttonOk = new QPushButton(GBButtons);
- buttonOk->setObjectName(QString::fromUtf8("buttonOk"));
- hboxLayout->addWidget(buttonOk);
+ retranslateUi(CreateZone);
- buttonApply = new QPushButton(GBButtons);
- buttonApply->setObjectName(QString::fromUtf8("buttonApply"));
+ QSize size(454, 472);
+ size = size.expandedTo(CreateZone->minimumSizeHint());
+ CreateZone->resize(size);
- hboxLayout->addWidget(buttonApply);
- buttonCancel = new QPushButton(GBButtons);
- buttonCancel->setObjectName(QString::fromUtf8("buttonCancel"));
-
- hboxLayout->addWidget(buttonCancel);
-
- buttonHelp = new QPushButton(GBButtons);
- buttonHelp->setObjectName(QString::fromUtf8("buttonHelp"));
-
- hboxLayout->addWidget(buttonHelp);
-
-
- gridLayout_3->addWidget(GBButtons, 4, 0, 1, 2);
-
-
- retranslateUi(CreateZone);
-
- QMetaObject::connectSlotsByName(CreateZone);
+ QMetaObject::connectSlotsByName(CreateZone);
} // setupUi
void retranslateUi(QDialog *CreateZone)
{
- CreateZone->setWindowTitle(QApplication::translate("CreateZone", "Create Zone", 0, QApplication::UnicodeUTF8));
- Name->setText(QApplication::translate("CreateZone", "Name", 0, QApplication::UnicodeUTF8));
- TypeZone->setTitle(QApplication::translate("CreateZone", "Type of zone", 0, QApplication::UnicodeUTF8));
- RBBox->setText(QString());
- RBSphere->setText(QString());
- gBBox->setTitle(QApplication::translate("CreateZone", "Coordinates", 0, QApplication::UnicodeUTF8));
- TLXmini->setText(QApplication::translate("CreateZone", "X mini", 0, QApplication::UnicodeUTF8));
- TLYmini->setText(QApplication::translate("CreateZone", "Y mini", 0, QApplication::UnicodeUTF8));
- TLZmini->setText(QApplication::translate("CreateZone", "Z mini", 0, QApplication::UnicodeUTF8));
- TLXmaxi->setText(QApplication::translate("CreateZone", "X maxi", 0, QApplication::UnicodeUTF8));
- TLZmaxi->setText(QApplication::translate("CreateZone", "Z maxi", 0, QApplication::UnicodeUTF8));
- TLYmaxi->setText(QApplication::translate("CreateZone", "Y maxi", 0, QApplication::UnicodeUTF8));
- gBSphere->setTitle(QApplication::translate("CreateZone", "Coordinates", 0, QApplication::UnicodeUTF8));
- TLXcentre->setText(QApplication::translate("CreateZone", "X centre", 0, QApplication::UnicodeUTF8));
- TLYcentre->setText(QApplication::translate("CreateZone", "Y centre", 0, QApplication::UnicodeUTF8));
- TLRayon->setText(QApplication::translate("CreateZone", "Radius", 0, QApplication::UnicodeUTF8));
- TLZcentre->setText(QApplication::translate("CreateZone", "Z centre", 0, QApplication::UnicodeUTF8));
- GBButtons->setTitle(QString());
- buttonOk->setText(QApplication::translate("CreateZone", "&Ok", 0, QApplication::UnicodeUTF8));
- buttonApply->setText(QApplication::translate("CreateZone", "&Apply", 0, QApplication::UnicodeUTF8));
- buttonCancel->setText(QApplication::translate("CreateZone", "&Cancel", 0, QApplication::UnicodeUTF8));
- buttonHelp->setText(QApplication::translate("CreateZone", "&Help", 0, QApplication::UnicodeUTF8));
- Q_UNUSED(CreateZone);
+ CreateZone->setWindowTitle(QApplication::translate("CreateZone", "Create a zone", 0, QApplication::UnicodeUTF8));
+ Name->setText(QApplication::translate("CreateZone", "Name", 0, QApplication::UnicodeUTF8));
+ TypeZone->setTitle(QApplication::translate("CreateZone", "Type of zone", 0, QApplication::UnicodeUTF8));
+ RBBox->setText(QString());
+ RBSphere->setText(QString());
+ gBBox->setTitle(QApplication::translate("CreateZone", "Coordinates", 0, QApplication::UnicodeUTF8));
+ TLXmini->setText(QApplication::translate("CreateZone", "X mini", 0, QApplication::UnicodeUTF8));
+ TLYmini->setText(QApplication::translate("CreateZone", "Y mini", 0, QApplication::UnicodeUTF8));
+ TLZmini->setText(QApplication::translate("CreateZone", "Z mini", 0, QApplication::UnicodeUTF8));
+ TLXmaxi->setText(QApplication::translate("CreateZone", "X maxi", 0, QApplication::UnicodeUTF8));
+ TLZmaxi->setText(QApplication::translate("CreateZone", "Z maxi", 0, QApplication::UnicodeUTF8));
+ TLYmaxi->setText(QApplication::translate("CreateZone", "Y maxi", 0, QApplication::UnicodeUTF8));
+ gBSphere->setTitle(QApplication::translate("CreateZone", "Coordinates", 0, QApplication::UnicodeUTF8));
+ TLXcentre->setText(QApplication::translate("CreateZone", "X centre", 0, QApplication::UnicodeUTF8));
+ TLYcentre->setText(QApplication::translate("CreateZone", "Y centre", 0, QApplication::UnicodeUTF8));
+ TLRayon->setText(QApplication::translate("CreateZone", "Radius", 0, QApplication::UnicodeUTF8));
+ TLZcentre->setText(QApplication::translate("CreateZone", "Z centre", 0, QApplication::UnicodeUTF8));
+ GBButtons->setTitle(QString());
+ buttonOk->setText(QApplication::translate("CreateZone", "OK", 0, QApplication::UnicodeUTF8));
+ buttonApply->setText(QApplication::translate("CreateZone", "Apply", 0, QApplication::UnicodeUTF8));
+ buttonCancel->setText(QApplication::translate("CreateZone", "Cancel", 0, QApplication::UnicodeUTF8));
+ buttonHelp->setText(QApplication::translate("CreateZone", "Help", 0, QApplication::UnicodeUTF8));
+ Q_UNUSED(CreateZone);
} // retranslateUi
};
class CreateZone: public Ui_CreateZone {};
} // namespace Ui
-QT_END_NAMESPACE
-
#endif // CREATEZONE_H
-<?xml version="1.0" encoding="UTF-8"?>
-<ui version="4.0">
+<ui version="4.0" >
<class>CreateZone</class>
- <widget class="QDialog" name="CreateZone">
- <property name="geometry">
+ <widget class="QDialog" name="CreateZone" >
+ <property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
- <width>415</width>
+ <width>454</width>
<height>472</height>
</rect>
</property>
- <property name="windowTitle">
- <string>Create Zone</string>
+ <property name="windowTitle" >
+ <string>Create a zone</string>
</property>
- <property name="autoFillBackground">
- <bool>false</bool>
+ <property name="autoFillBackground" >
+ <bool>true</bool>
</property>
- <property name="sizeGripEnabled">
+ <property name="sizeGripEnabled" >
<bool>true</bool>
</property>
- <layout class="QGridLayout" name="gridLayout_3">
- <item row="0" column="0">
- <widget class="QLabel" name="Name">
- <property name="text">
+ <layout class="QGridLayout" >
+ <property name="margin" >
+ <number>9</number>
+ </property>
+ <property name="spacing" >
+ <number>6</number>
+ </property>
+ <item row="0" column="0" >
+ <widget class="QLabel" name="Name" >
+ <property name="text" >
<string>Name</string>
</property>
</widget>
</item>
- <item row="0" column="1">
- <widget class="QLineEdit" name="LEZoneName">
- <property name="maxLength">
+ <item row="0" column="1" >
+ <widget class="QLineEdit" name="LEZoneName" >
+ <property name="maxLength" >
<number>32</number>
</property>
</widget>
</item>
- <item row="1" column="0" colspan="2">
- <widget class="QGroupBox" name="TypeZone">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
+ <item row="1" column="0" colspan="2" >
+ <widget class="QGroupBox" name="TypeZone" >
+ <property name="sizePolicy" >
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="minimumSize">
+ <property name="minimumSize" >
<size>
<width>340</width>
<height>0</height>
</size>
</property>
- <property name="title">
+ <property name="title" >
<string>Type of zone</string>
</property>
- <layout class="QHBoxLayout" name="horizontalLayout">
+ <layout class="QHBoxLayout" >
+ <property name="margin" >
+ <number>9</number>
+ </property>
+ <property name="spacing" >
+ <number>6</number>
+ </property>
<item>
- <widget class="QRadioButton" name="RBBox">
- <property name="text">
+ <widget class="QRadioButton" name="RBBox" >
+ <property name="text" >
<string/>
</property>
- <property name="icon">
- <iconset>
- <normaloff>../../resources/zone_boxdxyz.png</normaloff>../../resources/zone_boxdxyz.png</iconset>
+ <property name="icon" >
+ <iconset>../../resources/zone_boxdxyz.png</iconset>
</property>
- <property name="checkable">
+ <property name="checkable" >
<bool>true</bool>
</property>
- <property name="checked">
+ <property name="checked" >
<bool>true</bool>
</property>
</widget>
</item>
<item>
- <widget class="QRadioButton" name="RBSphere">
- <property name="text">
+ <widget class="QRadioButton" name="RBSphere" >
+ <property name="text" >
<string/>
</property>
- <property name="icon">
- <iconset>
- <normaloff>../../resources/zone_spherepoint.png</normaloff>../../resources/zone_spherepoint.png</iconset>
+ <property name="icon" >
+ <iconset>../../resources/zone_spherepoint.png</iconset>
</property>
</widget>
</item>
</layout>
</widget>
</item>
- <item row="2" column="0" colspan="2">
- <widget class="QGroupBox" name="gBBox">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
+ <item row="2" column="0" colspan="2" >
+ <widget class="QGroupBox" name="gBBox" >
+ <property name="sizePolicy" >
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="title">
+ <property name="title" >
<string>Coordinates</string>
</property>
- <layout class="QGridLayout" name="gridLayout">
- <item row="0" column="0">
- <widget class="QLabel" name="TLXmini">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
+ <layout class="QGridLayout" >
+ <property name="margin" >
+ <number>9</number>
+ </property>
+ <property name="spacing" >
+ <number>6</number>
+ </property>
+ <item row="0" column="0" >
+ <widget class="QLabel" name="TLXmini" >
+ <property name="sizePolicy" >
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="text">
+ <property name="text" >
<string>X mini</string>
</property>
- <property name="wordWrap">
+ <property name="wordWrap" >
<bool>false</bool>
</property>
</widget>
</item>
- <item row="0" column="1">
- <widget class="QDoubleSpinBox" name="SpinBox_Xmini">
- <property name="decimals">
+ <item row="0" column="1" >
+ <widget class="QDoubleSpinBox" name="SpinBox_Xmini" >
+ <property name="decimals" >
<number>5</number>
</property>
- <property name="minimum">
- <double>-999999999.000000000000000</double>
- </property>
- <property name="maximum">
+ <property name="maximum" >
<double>999999999.000000000000000</double>
</property>
- <property name="value">
+ <property name="minimum" >
+ <double>-999999999.000000000000000</double>
+ </property>
+ <property name="value" >
<double>0.000000000000000</double>
</property>
</widget>
</item>
- <item row="1" column="0">
- <widget class="QLabel" name="TLYmini">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
+ <item row="1" column="0" >
+ <widget class="QLabel" name="TLYmini" >
+ <property name="sizePolicy" >
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="text">
+ <property name="text" >
<string>Y mini</string>
</property>
- <property name="wordWrap">
+ <property name="wordWrap" >
<bool>false</bool>
</property>
</widget>
</item>
- <item row="1" column="1">
- <widget class="QDoubleSpinBox" name="SpinBox_Ymini">
- <property name="decimals">
+ <item row="1" column="1" >
+ <widget class="QDoubleSpinBox" name="SpinBox_Ymini" >
+ <property name="decimals" >
<number>5</number>
</property>
- <property name="minimum">
- <double>-999999999.000000000000000</double>
- </property>
- <property name="maximum">
+ <property name="maximum" >
<double>999999999.000000000000000</double>
</property>
- <property name="value">
+ <property name="minimum" >
+ <double>-999999999.000000000000000</double>
+ </property>
+ <property name="value" >
<double>0.000000000000000</double>
</property>
</widget>
</item>
- <item row="2" column="0">
- <widget class="QLabel" name="TLZmini">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
+ <item row="2" column="0" >
+ <widget class="QLabel" name="TLZmini" >
+ <property name="sizePolicy" >
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="text">
+ <property name="text" >
<string>Z mini</string>
</property>
- <property name="wordWrap">
+ <property name="wordWrap" >
<bool>false</bool>
</property>
</widget>
</item>
- <item row="2" column="1">
- <widget class="QDoubleSpinBox" name="SpinBox_Zmini">
- <property name="decimals">
+ <item row="2" column="1" >
+ <widget class="QDoubleSpinBox" name="SpinBox_Zmini" >
+ <property name="decimals" >
<number>5</number>
</property>
- <property name="minimum">
- <double>-999999999.000000000000000</double>
- </property>
- <property name="maximum">
+ <property name="maximum" >
<double>999999999.000000000000000</double>
</property>
- <property name="value">
+ <property name="minimum" >
+ <double>-999999999.000000000000000</double>
+ </property>
+ <property name="value" >
<double>0.000000000000000</double>
</property>
</widget>
</item>
- <item row="0" column="2">
- <widget class="QLabel" name="TLXmaxi">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
+ <item row="0" column="2" >
+ <widget class="QLabel" name="TLXmaxi" >
+ <property name="sizePolicy" >
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="text">
+ <property name="text" >
<string>X maxi</string>
</property>
- <property name="wordWrap">
+ <property name="wordWrap" >
<bool>false</bool>
</property>
</widget>
</item>
- <item row="2" column="2">
- <widget class="QLabel" name="TLZmaxi">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
+ <item row="2" column="2" >
+ <widget class="QLabel" name="TLZmaxi" >
+ <property name="sizePolicy" >
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="text">
+ <property name="text" >
<string>Z maxi</string>
</property>
- <property name="wordWrap">
+ <property name="wordWrap" >
<bool>false</bool>
</property>
</widget>
</item>
- <item row="2" column="3">
- <widget class="QDoubleSpinBox" name="SpinBox_Zmaxi">
- <property name="decimals">
+ <item row="2" column="3" >
+ <widget class="QDoubleSpinBox" name="SpinBox_Zmaxi" >
+ <property name="decimals" >
<number>5</number>
</property>
- <property name="minimum">
- <double>-999999999.000000000000000</double>
- </property>
- <property name="maximum">
+ <property name="maximum" >
<double>999999999.000000000000000</double>
</property>
- <property name="value">
+ <property name="minimum" >
+ <double>-999999999.000000000000000</double>
+ </property>
+ <property name="value" >
<double>0.000000000000000</double>
</property>
</widget>
</item>
- <item row="1" column="2">
- <widget class="QLabel" name="TLYmaxi">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
+ <item row="1" column="2" >
+ <widget class="QLabel" name="TLYmaxi" >
+ <property name="sizePolicy" >
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="text">
+ <property name="text" >
<string>Y maxi</string>
</property>
- <property name="wordWrap">
+ <property name="wordWrap" >
<bool>false</bool>
</property>
</widget>
</item>
- <item row="0" column="3">
- <widget class="QDoubleSpinBox" name="SpinBox_Xmaxi">
- <property name="decimals">
+ <item row="0" column="3" >
+ <widget class="QDoubleSpinBox" name="SpinBox_Xmaxi" >
+ <property name="decimals" >
<number>5</number>
</property>
- <property name="minimum">
- <double>-999999999.000000000000000</double>
- </property>
- <property name="maximum">
+ <property name="maximum" >
<double>999999999.000000000000000</double>
</property>
- <property name="value">
+ <property name="minimum" >
+ <double>-999999999.000000000000000</double>
+ </property>
+ <property name="value" >
<double>0.000000000000000</double>
</property>
</widget>
</item>
- <item row="1" column="3">
- <widget class="QDoubleSpinBox" name="SpinBox_Ymaxi">
- <property name="decimals">
+ <item row="1" column="3" >
+ <widget class="QDoubleSpinBox" name="SpinBox_Ymaxi" >
+ <property name="decimals" >
<number>5</number>
</property>
- <property name="minimum">
- <double>-999999999.000000000000000</double>
- </property>
- <property name="maximum">
+ <property name="maximum" >
<double>999999999.000000000000000</double>
</property>
- <property name="value">
+ <property name="minimum" >
+ <double>-999999999.000000000000000</double>
+ </property>
+ <property name="value" >
<double>0.000000000000000</double>
</property>
</widget>
</layout>
</widget>
</item>
- <item row="3" column="0" colspan="2">
- <widget class="QGroupBox" name="gBSphere">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
+ <item row="3" column="0" colspan="2" >
+ <widget class="QGroupBox" name="gBSphere" >
+ <property name="sizePolicy" >
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="title">
+ <property name="title" >
<string>Coordinates</string>
</property>
- <layout class="QGridLayout" name="gridLayout_2">
- <item row="0" column="0">
- <widget class="QLabel" name="TLXcentre">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
+ <layout class="QGridLayout" >
+ <property name="margin" >
+ <number>9</number>
+ </property>
+ <property name="spacing" >
+ <number>6</number>
+ </property>
+ <item row="0" column="0" >
+ <widget class="QLabel" name="TLXcentre" >
+ <property name="sizePolicy" >
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="text">
+ <property name="text" >
<string>X centre</string>
</property>
- <property name="wordWrap">
+ <property name="wordWrap" >
<bool>false</bool>
</property>
</widget>
</item>
- <item row="0" column="1">
- <widget class="QDoubleSpinBox" name="SpinBox_Xcentre">
- <property name="decimals">
+ <item row="0" column="1" >
+ <widget class="QDoubleSpinBox" name="SpinBox_Xcentre" >
+ <property name="decimals" >
<number>5</number>
</property>
- <property name="minimum">
- <double>-999999999.000000000000000</double>
- </property>
- <property name="maximum">
+ <property name="maximum" >
<double>999999999.000000000000000</double>
</property>
- <property name="value">
+ <property name="minimum" >
+ <double>-999999999.000000000000000</double>
+ </property>
+ <property name="value" >
<double>0.000000000000000</double>
</property>
</widget>
</item>
- <item row="1" column="0">
- <widget class="QLabel" name="TLYcentre">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
+ <item row="1" column="0" >
+ <widget class="QLabel" name="TLYcentre" >
+ <property name="sizePolicy" >
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="text">
+ <property name="text" >
<string>Y centre</string>
</property>
- <property name="wordWrap">
+ <property name="wordWrap" >
<bool>false</bool>
</property>
</widget>
</item>
- <item row="1" column="1">
- <widget class="QDoubleSpinBox" name="SpinBox_Ycentre">
- <property name="decimals">
+ <item row="1" column="1" >
+ <widget class="QDoubleSpinBox" name="SpinBox_Ycentre" >
+ <property name="decimals" >
<number>5</number>
</property>
- <property name="minimum">
- <double>-999999999.000000000000000</double>
- </property>
- <property name="maximum">
+ <property name="maximum" >
<double>999999999.000000000000000</double>
</property>
- <property name="value">
+ <property name="minimum" >
+ <double>-999999999.000000000000000</double>
+ </property>
+ <property name="value" >
<double>0.000000000000000</double>
</property>
</widget>
</item>
- <item row="1" column="2">
- <widget class="QLabel" name="TLRayon">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
+ <item row="1" column="2" >
+ <widget class="QLabel" name="TLRayon" >
+ <property name="sizePolicy" >
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="text">
+ <property name="text" >
<string>Radius</string>
</property>
- <property name="wordWrap">
+ <property name="wordWrap" >
<bool>false</bool>
</property>
</widget>
</item>
- <item row="1" column="3">
- <widget class="QDoubleSpinBox" name="SpinBox_Rayon">
- <property name="decimals">
+ <item row="1" column="3" >
+ <widget class="QDoubleSpinBox" name="SpinBox_Rayon" >
+ <property name="decimals" >
<number>5</number>
</property>
- <property name="minimum">
- <double>-999999999.000000000000000</double>
- </property>
- <property name="maximum">
+ <property name="maximum" >
<double>999999999.000000000000000</double>
</property>
- <property name="value">
+ <property name="minimum" >
+ <double>-999999999.000000000000000</double>
+ </property>
+ <property name="value" >
<double>0.000000000000000</double>
</property>
</widget>
</item>
- <item row="2" column="0">
- <widget class="QLabel" name="TLZcentre">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
+ <item row="2" column="0" >
+ <widget class="QLabel" name="TLZcentre" >
+ <property name="sizePolicy" >
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="text">
+ <property name="text" >
<string>Z centre</string>
</property>
- <property name="wordWrap">
+ <property name="wordWrap" >
<bool>false</bool>
</property>
</widget>
</item>
- <item row="2" column="1">
- <widget class="QDoubleSpinBox" name="SpinBox_Zcentre">
- <property name="decimals">
+ <item row="2" column="1" >
+ <widget class="QDoubleSpinBox" name="SpinBox_Zcentre" >
+ <property name="decimals" >
<number>5</number>
</property>
- <property name="minimum">
- <double>-999999999.000000000000000</double>
- </property>
- <property name="maximum">
+ <property name="maximum" >
<double>999999999.000000000000000</double>
</property>
- <property name="value">
+ <property name="minimum" >
+ <double>-999999999.000000000000000</double>
+ </property>
+ <property name="value" >
<double>0.000000000000000</double>
</property>
</widget>
</layout>
</widget>
</item>
- <item row="4" column="0" colspan="2">
- <widget class="QGroupBox" name="GBButtons">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
+ <item row="4" column="0" colspan="2" >
+ <widget class="QGroupBox" name="GBButtons" >
+ <property name="sizePolicy" >
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="title">
+ <property name="title" >
<string/>
</property>
- <layout class="QHBoxLayout">
- <property name="spacing">
- <number>6</number>
- </property>
- <property name="margin">
+ <layout class="QHBoxLayout" >
+ <property name="margin" >
<number>9</number>
</property>
+ <property name="spacing" >
+ <number>6</number>
+ </property>
<item>
- <widget class="QPushButton" name="buttonOk">
- <property name="text">
- <string>&Ok</string>
+ <widget class="QPushButton" name="buttonOk" >
+ <property name="text" >
+ <string>OK</string>
</property>
</widget>
</item>
<item>
- <widget class="QPushButton" name="buttonApply">
- <property name="text">
- <string>&Apply</string>
+ <widget class="QPushButton" name="buttonApply" >
+ <property name="text" >
+ <string>Apply</string>
</property>
</widget>
</item>
<item>
- <widget class="QPushButton" name="buttonCancel">
- <property name="text">
- <string>&Cancel</string>
+ <widget class="QPushButton" name="buttonCancel" >
+ <property name="text" >
+ <string>Cancel</string>
</property>
</widget>
</item>
<item>
- <widget class="QPushButton" name="buttonHelp">
- <property name="text">
- <string>&Help</string>
+ <widget class="QPushButton" name="buttonHelp" >
+ <property name="text" >
+ <string>Help</string>
</property>
</widget>
</item>
/********************************************************************************
** Form generated from reading ui file 'EditFile.ui'
**
-** Created: Tue Feb 1 14:56:22 2011
+** Created: Tue Mar 15 10:38:58 2011
** by: Qt User Interface Compiler version 4.2.1
**
** WARNING! All changes made in this file will be lost when recompiling ui file!
retranslateUi(EditFile);
- QSize size(548, 901);
+ QSize size(675, 901);
size = size.expandedTo(EditFile->minimumSizeHint());
EditFile->resize(size);
void retranslateUi(QWidget *EditFile)
{
- EditFile->setWindowTitle(QApplication::translate("EditFile", "Edit File", 0, QApplication::UnicodeUTF8));
+ EditFile->setWindowTitle(QApplication::translate("EditFile", "Edit a file", 0, QApplication::UnicodeUTF8));
GroupButtons->setTitle(QString());
- buttonPrint->setText(QApplication::translate("EditFile", "&Print", 0, QApplication::UnicodeUTF8));
- buttonQuit->setText(QApplication::translate("EditFile", "&Quit", 0, QApplication::UnicodeUTF8));
+ buttonPrint->setText(QApplication::translate("EditFile", "Print", 0, QApplication::UnicodeUTF8));
+ buttonQuit->setText(QApplication::translate("EditFile", "Quit", 0, QApplication::UnicodeUTF8));
Q_UNUSED(EditFile);
} // retranslateUi
<rect>
<x>0</x>
<y>0</y>
- <width>548</width>
+ <width>675</width>
<height>901</height>
</rect>
</property>
<property name="windowTitle" >
- <string>Edit File</string>
+ <string>Edit a file</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<item row="0" column="1" >
<widget class="QPushButton" name="buttonPrint" >
<property name="text" >
- <string>&Print</string>
+ <string>Print</string>
</property>
</widget>
</item>
<item row="0" column="0" >
<widget class="QPushButton" name="buttonQuit" >
<property name="text" >
- <string>&Quit</string>
+ <string>Quit</string>
</property>
<property name="autoDefault" >
<bool>true</bool>
//================================================
void HOMARDGUI::createHOMARDAction( const int id, const QString& po_id, const QString& icon_id, const int key, const bool toggle )
{
+ MESSAGE("HOMARDGUI::createHOMARDAction");
QIcon icon;
QWidget* parent = application()->desktop();
SUIT_ResourceMgr* resMgr = application()->resourceMgr();
if ( icon_id.length() )
pix = resMgr->loadPixmap( "HOMARD", tr( icon_id .toLatin1().data()) );
else
- pix = resMgr->loadPixmap( "HOMARD", tr( QString( "ICO_%1" ).arg( po_id ).toLatin1().data() ), false );
+ pix = resMgr->loadPixmap( "HOMARD", tr( QString( "ICO_%1" ).arg( po_id ).toLatin1().data()), false );
if ( !pix.isNull() )
icon = QIcon( pix );
- QString tooltip = tr( QString( "TOP_%1" ).arg( po_id ).toLatin1().data() ),
- menu = tr( QString( "MEN_%1" ).arg( po_id ).toLatin1().data() ),
- status_bar = tr( QString( "STB_%1" ).arg( po_id ).toLatin1().data() );
+ QString tooltip = tr(QString( "HOM_TOP_%1" ).arg( po_id ).toLatin1().data()),
+ menu = tr(QString( "HOM_MEN_%1" ).arg( po_id ).toLatin1().data()),
+ status_bar = tr(QString( "HOM_STB_%1" ).arg( po_id ).toLatin1().data());
createAction( id, tooltip, icon, menu, status_bar, key, parent, toggle, this, SLOT( OnGUIEvent() ) );
}
// Verifier l'avant dernier nombre passe en parametre
//================================================
void HOMARDGUI::createMenus(){
+ MESSAGE("HOMARDGUI::createMenus")
int HOMARD_Id = createMenu( tr( "HOMARD" ), -1, 5, 10 );
createMenu( 1101, HOMARD_Id, -1 ); //Create_Case
createMenu( 1102, HOMARD_Id, -1 ); //Create_Iteration
{
case 1101: // Creation d un Cas
{
+ MESSAGE("etape 1101")
MESSAGE("command " << theCommandID << " activated");
- MonCreateCase *aDlg = new MonCreateCase( parent, TRUE,
+ MonCreateCase *aDlg = new MonCreateCase( parent, TRUE,
HOMARD::HOMARD_Gen::_duplicate(homardGen) ) ;
aDlg->show();
break;
MESSAGE("command " << theCommandID << " activated");
QString IterParentName=HOMARD_QT_COMMUN::SelectionArbreEtude(QString("IterationHomard"), 0);
MESSAGE("IterParentName " << IterParentName.toStdString().c_str() << " choisi dans arbre");
- MonCreateIteration *IterDlg = new MonCreateIteration( parent, true,
+ MonCreateIteration *IterDlg = new MonCreateIteration( parent, true,
HOMARD::HOMARD_Gen::_duplicate(homardGen), IterParentName ) ;
IterDlg->show();
break;
}
catch( SALOME::SALOME_Exception& S_ex )
{
- QMessageBox::information( 0, "Error",
- QString(CORBA::string_dup(S_ex.details.text)),
- QMessageBox::Ok + QMessageBox::Default );
+ QMessageBox::critical( 0, QObject::tr("HOM_ERROR"),
+ QString(CORBA::string_dup(S_ex.details.text)) );
getApp()->updateObjectBrowser();
return false;
}
void HOMARDGUI::setOrb()
//=============================================================================
{
- try
+ try
{
ORB_INIT &init = *SINGLETON_<ORB_INIT>::Instance();
ASSERT(SINGLETON_<ORB_INIT>::IsAlreadyExisting());
_orb = init( 0 , 0 );
- }
- catch (...)
+ }
+ catch (...)
{
INFOS("internal error : orb not found");
_orb = 0;
_PTR(SObject) obj;
SALOME_ListIO lst;
getApp()->selectionMgr()->selectedObjects( lst );
- if ( lst.Extent() == 1 )
+ if ( lst.Extent() == 1 )
{
Handle(SALOME_InteractiveObject) io = lst.First();
SalomeApp_Study* appStudy = dynamic_cast<SalomeApp_Study*>( application()->activeStudy() );
void HOMARDGUI::contextMenuPopup( const QString& client, QMenu* menu, QString& title )
//=============================================================================
{
- MESSAGE("Debut de contextMenuPopup");
+ MESSAGE("Debut de HOMARDGUI::contextMenuPopup");
_PTR(SObject) obj = chercheMonObjet();
if ( obj )
{
if ( HOMARD_UTILS::isBoundaryAn(obj) )
{
QPixmap pix = resMgr->loadPixmap( "HOMARD", "whatis.png" );
- menu->addAction(QIcon(pix), "Edit boundary", this,SLOT(EditBoDi()));
+ menu->addAction(QIcon(pix), tr(QString("HOM_MEN_EDIT_BOUNDARY").toLatin1().data()), this,SLOT(EditBoDi()));
}
else if ( HOMARD_UTILS::isBoundaryDi(obj) )
{
QPixmap pix = resMgr->loadPixmap( "HOMARD", "whatis.png" );
- menu->addAction(QIcon(pix), "Edit boundary", this,SLOT(EditBoDi()));
+ menu->addAction(QIcon(pix), tr(QString("HOM_MEN_EDIT_BOUNDARY").toLatin1().data()), this,SLOT(EditBoDi()));
}
else if ( HOMARD_UTILS::isZone(obj) )
{
QPixmap pix = resMgr->loadPixmap( "HOMARD", "whatis.png" );
- menu->addAction(QIcon(pix), "Edit zone", this,SLOT(EditZone()));
+ menu->addAction(QIcon(pix), tr(QString("HOM_MEN_EDIT_ZONE").toLatin1().data()), this,SLOT(EditZone()));
}
else if ( HOMARD_UTILS::isHypo(obj) )
{
QPixmap pix = resMgr->loadPixmap( "HOMARD", "whatis.png" );
- menu->addAction(QIcon(pix), "Edit hypothesis", this,SLOT(EditHypo()));
+ menu->addAction(QIcon(pix), tr(QString("HOM_MEN_EDIT_HYPO").toLatin1().data()), this,SLOT(EditHypo()));
}
else if ( HOMARD_UTILS::isIter(obj) )
{
QPixmap pix = resMgr->loadPixmap( "HOMARD", "iter_next.png" );
- menu->addAction(QIcon(pix), "Next iteration", this,SLOT(NextIter()));
+ menu->addAction(QIcon(pix), tr(QString("HOM_MEN_NEW_ITERATION").toLatin1().data()), this,SLOT(NextIter()));
QPixmap pix1 = resMgr->loadPixmap( "HOMARD", "whatis.png" );
- menu->addAction(QIcon(pix1), "Edit iteration", this,SLOT(EditIter()));
+ menu->addAction(QIcon(pix1), tr(QString("HOM_MEN_EDIT_ITERATION").toLatin1().data()), this,SLOT(EditIter()));
QPixmap pix2 = resMgr->loadPixmap( "HOMARD", "mesh_compute.png" );
- menu->addAction(QIcon(pix2), "Compute", this,SLOT(LanceCalcul()));
+ menu->addAction(QIcon(pix2), tr(QString("HOM_MEN_COMPUTE").toLatin1().data()), this,SLOT(LanceCalcul()));
}
else if ( HOMARD_UTILS::isCase(obj) )
{
QPixmap pix = resMgr->loadPixmap( "HOMARD", "whatis.png" );
- menu->addAction(QIcon(pix), "Edit case", this,SLOT(EditCase()));
+ menu->addAction(QIcon(pix), tr(QString("HOM_MEN_EDIT_CASE").toLatin1().data()), this,SLOT(EditCase()));
}
else if ( HOMARD_UTILS::isFileMess(obj) or HOMARD_UTILS::isFileSummary(obj) )
{
QPixmap pix = resMgr->loadPixmap( "HOMARD", "texte.png" );
- menu->addAction(QIcon(pix), "Show file", this,SLOT(EditAsciiFile()));
+ menu->addAction(QIcon(pix), tr(QString("HOM_MEN_EDIT_MESS_FILE").toLatin1().data()), this,SLOT(EditAsciiFile()));
}
}
}
this->OnGUIEvent(1120);
}
-void HOMARDGUI::EditIter()
+void HOMARDGUI::EditIter()
{
- this->OnGUIEvent(1121);
+ this->OnGUIEvent(1121);
}
void HOMARDGUI::EditHypo()
+++ /dev/null
-# This is a Qt message file in .po format. Each msgid starts with
-# a scope. This scope should *NOT* be translated - eg. "Foo::Bar"
-# would be translated to "Pub", not "Foo::Pub".
-msgid ""
-msgstr ""
-"Project-Id-Version: PROJECT VERSION\n"
-"POT-Creation-Date: 2002-05-28 10:57:43 AM CEST\n"
-"PO-Revision-Date: YYYY-MM-DD\n"
-"Last-Translator: FULLNAME <EMAIL@ADDRESS>\n"
-"Content-Type: text/plain; charset=iso-8859-1\n"
-
+++ /dev/null
-# This is a Qt message file in .po format. Each msgid starts with
-# a scope. This scope should *NOT* be translated - eg. translating
-# from French to English, "Foo::Bar" would be translated to "Pub",
-# not "Foo::Pub".
-msgid ""
-msgstr ""
-"Project-Id-Version: PROJECT VERSION\n"
-"POT-Creation-Date: 2003-11-19 03:10:19 PM CET\n"
-"PO-Revision-Date: YYYY-MM-DD\n"
-"Last-Translator: FULLNAME <EMAIL@ADDRESS>\n"
-"Content-Type: text/plain; charset=iso-8859-1\n"
-
-#: HOMARDGUI.cxx:76
-msgid "HOMARDGUI::BUT_OK"
-msgstr "OK"
-
-#: HOMARDGUI.cxx:76
-msgid "HOMARDGUI::INF_HOMARD_BANNER"
-msgstr "HOMARD Information"
-
-#: HOMARDGUI.cxx:76
-msgid "HOMARDGUI::INF_HOMARD_MENU"
-msgstr "This is just a test"
-
-#: HOMARDGUI.cxx:57
-msgid "HOMARDGUI::QUE_HOMARD_LABEL"
-msgstr "Name Import"
-
-#: HOMARDGUI.cxx:57
-msgid "HOMARDGUI::QUE_HOMARD_NAME"
-msgstr "Please, Enter your name"
-
-msgid "PREF_GROUP_GENERAL"
-msgstr "General"
-
-msgid "PREF_TAB_SETTINGS"
-msgstr "Settings"
-
-msgid "PREF_TEST"
-msgstr "Pascale"
-
-
-#-------------------------------------------------------------------------
-# MEN
-#-------------------------------------------------------------------------
-
-msgid "MEN_HOMARD"
-msgstr "HOMARD"
-
-msgid "ROOT_INFO"
-msgstr "Informations"
-
-#----------- Menu bar ----------#
-#------ MEN -----#
-msgid "MEN_EDIT"
-msgstr "Edition d un fichier de commande Homard par Eficas"
-
-msgid "MEN_INFO"
-msgstr "Information Maillage (interactif)"
-
-msgid "MEN_ADAPT_GESTION"
-msgstr "Adaptation : gestion d une iteration"
-
-msgid "MEN_ADAPT_CREATION"
-msgstr "Adaptation : creation du cas"
-
-msgid "MEN_UNIFORME"
-msgstr "Raffiment Uniforme"
-
-msgid "MEN_POURLESNULS"
-msgstr "Homard Pour Les Nuls"
-
-msgid "SSM_AVANCE"
-msgstr "Utilisation Avancee"
-
-#----------- Menu bar ----------#
-#------ MEN -----#
-msgid "MEN_EDIT"
-msgstr "Edition d un fichier de commande Homard par Eficas"
-
-msgid "MEN_INFO"
-msgstr "Information Maillage (interactif)"
-
-msgid "MEN_ADAPT_GESTION"
-msgstr "Adaptation : gestion d une iteration"
-
-msgid "MEN_ADAPT_CREATION"
-msgstr "Adaptation : creation du cas"
-
-
-#------ STB -----#
-msgid "STB_EDIT"
-msgstr "Lance Eficas pour editer le fichier de commande Homard"
-
-msgid "STB_INFO"
-msgstr "Information Homard (interactif)"
-
-msgid "STB_ADAPT_GESTION"
-msgstr "Adaptation Homard"
-
-msgid "STB_ADAPT_CREATION"
-msgstr "Creation d un cas Homard"
-
-
-#-------Popup Menu ----------------#
-msgid "MEN_FILE_EDIT"
-msgstr "Edition"
-msgid "TOP_FILE_EDIT"
-msgstr "Edition"
-msgid "MEN_FILE_EDIT"
-msgstr "Edition"
+<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
-<!--
- Copyright (C) 2007-2008 CEA/DEN, EDF R&D, 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.
-
- 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.
-
- 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
-
- See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
-
--->
-<TS version="1.1" >
- <context>
- <name>@default</name>
- <message>
- <source>MEN_HOMARD</source>
- <translation>HOMARD</translation>
- </message>
- <message>
- <source>MEN_NEW_CASE</source>
- <translation>New case</translation>
- </message>
- <message>
- <source>MEN_NEW_ITERATION</source>
- <translation>Next iteration</translation>
- </message>
- <message>
- <source>MEN_COMPUTE</source>
- <translation>Compute</translation>
- </message>
- <message>
- <source>MEN_EDIT_CASE</source>
- <translation>Edit case</translation>
- </message>
- <message>
- <source>MEN_EDIT_ITERATION</source>
- <translation>Edit iteration</translation>
- </message>
- <message>
- <source>MEN_EDIT_HYPO</source>
- <translation>Edit hypothesis</translation>
- </message>
- <message>
- <source>MEN_EDIT_ZONE</source>
- <translation>Edit zone</translation>
- </message>
- <message>
- <source>MEN_EDIT_BOUNDARY</source>
- <translation>Edit boundary</translation>
- </message>
- <message>
- <source>MEN_EDIT_MESS_FILE</source>
- <translation>Show file</translation>
- </message>
- </context>
+<TS version="2.0" language="en_GB">
+<context>
+ <name>@default</name>
+ <message>
+ <source>HOM_MEN_HOMARD</source>
+ <translation>HOMARD</translation>
+ </message>
+ <message>
+ <source>HOM_MEN_NEW_CASE</source>
+ <translation>New case</translation>
+ </message>
+ <message>
+ <source>HOM_MEN_NEW_ITERATION</source>
+ <translation>Next iteration</translation>
+ </message>
+ <message>
+ <source>HOM_MEN_COMPUTE</source>
+ <translation>Compute</translation>
+ </message>
+ <message>
+ <source>HOM_MEN_EDIT_CASE</source>
+ <translation>Edit the case</translation>
+ </message>
+ <message>
+ <source>HOM_MEN_EDIT_ITERATION</source>
+ <translation>Edit the iteration</translation>
+ </message>
+ <message>
+ <source>HOM_MEN_EDIT_HYPO</source>
+ <translation>Edit the hypothesis</translation>
+ </message>
+ <message>
+ <source>HOM_MEN_EDIT_ZONE</source>
+ <translation>Edit the zone</translation>
+ </message>
+ <message>
+ <source>HOM_MEN_EDIT_BOUNDARY</source>
+ <translation>Edit the boundary</translation>
+ </message>
+ <message>
+ <source>HOM_MEN_EDIT_MESS_FILE</source>
+ <translation>Show the file</translation>
+ </message>
+ <message>
+ <source>HOM_TOP_HOMARD</source>
+ <translation>HOMARD</translation>
+ </message>
+ <message>
+ <source>HOM_TOP_NEW_CASE</source>
+ <translation>New case</translation>
+ </message>
+ <message>
+ <source>HOM_TOP_NEW_ITERATION</source>
+ <translation>Next iteration</translation>
+ </message>
+ <message>
+ <source>HOM_TOP_COMPUTE</source>
+ <translation>Compute</translation>
+ </message>
+ <message>
+ <source>HOM_TOP_EDIT_CASE</source>
+ <translation>Edit the case</translation>
+ </message>
+ <message>
+ <source>HOM_TOP_EDIT_ITERATION</source>
+ <translation>Edit the iteration</translation>
+ </message>
+ <message>
+ <source>HOM_TOP_EDIT_HYPO</source>
+ <translation>Edit the hypothesis</translation>
+ </message>
+ <message>
+ <source>HOM_TOP_EDIT_ZONE</source>
+ <translation>Edit the zone</translation>
+ </message>
+ <message>
+ <source>HOM_TOP_EDIT_BOUNDARY</source>
+ <translation>Edit the boundary</translation>
+ </message>
+ <message>
+ <source>HOM_TOP_EDIT_MESS_FILE</source>
+ <translation>Show the file</translation>
+ </message>
+ <message>
+ <source>HOM_STB_HOMARD</source>
+ <translation>HOMARD</translation>
+ </message>
+ <message>
+ <source>HOM_STB_NEW_CASE</source>
+ <translation>New case</translation>
+ </message>
+ <message>
+ <source>HOM_STB_NEW_ITERATION</source>
+ <translation>Next iteration</translation>
+ </message>
+ <message>
+ <source>HOM_STB_COMPUTE</source>
+ <translation>Compute</translation>
+ </message>
+ <message>
+ <source>HOM_STB_EDIT_CASE</source>
+ <translation>Edit the case</translation>
+ </message>
+ <message>
+ <source>HOM_STB_EDIT_ITERATION</source>
+ <translation>Edit the iteration</translation>
+ </message>
+ <message>
+ <source>HOM_STB_EDIT_HYPO</source>
+ <translation>Edit the hypothesis</translation>
+ </message>
+ <message>
+ <source>HOM_STB_EDIT_ZONE</source>
+ <translation>Edit the zone</translation>
+ </message>
+ <message>
+ <source>HOM_STB_EDIT_BOUNDARY</source>
+ <translation>Edit the boundary</translation>
+ </message>
+ <message>
+ <source>HOM_STB_EDIT_MESS_FILE</source>
+ <translation>Show the file</translation>
+ </message>
+ <message>
+ <source>HOM_WARNING</source>
+ <translation>Warning</translation>
+ </message>
+ <message>
+ <source>HOM_ERROR</source>
+ <translation>Error</translation>
+ </message>
+ <message>
+ <source>HOM_INACTIVE_BUTTON</source>
+ <translation>Inactive button</translation>
+ </message>
+ <message>
+ <source>HOM_SELECT_OBJECT_1</source>
+ <translation>Select an object.</translation>
+ </message>
+ <message>
+ <source>HOM_SELECT_OBJECT_2</source>
+ <translation>Select only one object.</translation>
+ </message>
+ <message>
+ <source>HOM_SELECT_OBJECT_3</source>
+ <translation>Select an object with type %1.</translation>
+ </message>
+ <message>
+ <source>HOM_SELECT_FILE_1</source>
+ <translation>Select a file.</translation>
+ </message>
+ <message>
+ <source>HOM_SELECT_FILE_2</source>
+ <translation>Select only one file.</translation>
+ </message>
+ <message>
+ <source>HOM_MED_FILE_1</source>
+ <translation>This MED file cannot be read.</translation>
+ </message>
+ <message>
+ <source>HOM_MED_FILE_2</source>
+ <translation>No mesh in this MED file.</translation>
+ </message>
+ <message>
+ <source>HOM_MED_FILE_3</source>
+ <translation>More than one mesh in this MED file.</translation>
+ </message>
+ <message>
+ <source>HOM_MED_FILE_4</source>
+ <translation>The mesh in this MED file cannot be read.</translation>
+ </message>
+ <message>
+ <source>HOM_MED_FILE_5</source>
+ <translation>No field in this MED file.</translation>
+ </message>
+ <message>
+ <source>HOM_MED_FILE_6</source>
+ <translation>The field(s) in this MED file cannot be read.</translation>
+ </message>
+ <message>
+ <source>HOM_SELECT_STUDY</source>
+ <translation>Select a study object with associated MED file \n or select a MED file.</translation>
+ </message>
+ <message>
+ <source>HOM_CASE_NAME</source>
+ <translation>The case must be named.</translation>
+ </message>
+ <message>
+ <source>HOM_CASE_DIRECTORY_1</source>
+ <translation>A directory for the case must be selected.</translation>
+ </message>
+ <message>
+ <source>HOM_CASE_DIRECTORY_2</source>
+ <translation>This directory is already used.</translation>
+ </message>
+ <message>
+ <source>HOM_CASE_DIRECTORY_3</source>
+ <translation>A valid directory for the case must be selected.</translation>
+ </message>
+ <message>
+ <source>HOM_CASE_MESH</source>
+ <translation>The file of the initial mesh must be selected.</translation>
+ </message>
+ <message>
+ <source>HOM_CASE_GROUP</source>
+ <translation>The group "%1" cannot be given for more than 1 boundary.</translation>
+ </message>
+ <message>
+ <source>HOM_CASE_EDIT_WINDOW_TITLE</source>
+ <translation>Edition of a case</translation>
+ </message>
+ <message>
+ <source>HOM_ITER_NAME</source>
+ <translation>The iteration must be named.</translation>
+ </message>
+ <message>
+ <source>HOM_ITER_STARTING_POINT</source>
+ <translation>The previous iteration must be given.</translation>
+ </message>
+ <message>
+ <source>HOM_ITER_MESH</source>
+ <translation>Give a name for the final mesh.</translation>
+ </message>
+ <message>
+ <source>HOM_ITER_HYPO</source>
+ <translation>An hypothesis must be selected.</translation>
+ </message>
+ <message>
+ <source>HOM_ITER_FIELD_FILE</source>
+ <translation>With this hypothesis, a file for the field must be given.</translation>
+ </message>
+ <message>
+ <source>HOM_ITER_STARTING_POINT_0</source>
+ <translation>Mesh</translation>
+ </message>
+ <message>
+ <source>HOM_ITER_STARTING_POINT_1</source>
+ <translation>First iteration of the case</translation>
+ </message>
+ <message>
+ <source>HOM_ITER_EDIT_WINDOW_TITLE</source>
+ <translation>Edition of an iteration</translation>
+ </message>
+ <message>
+ <source>HOM_HYPO_NAME</source>
+ <translation>The hypothesis must be named.</translation>
+ </message>
+ <message>
+ <source>HOM_HYPO_FIELD_FILE</source>
+ <translation>A file for the field must be given.</translation>
+ </message>
+ <message>
+ <source>HOM_HYPO_ZONE_1</source>
+ <translation>A zone must be selected.</translation>
+ </message>
+ <message>
+ <source>HOM_HYPO_ZONE_2</source>
+ <translation>At least, one zone must be selected.</translation>
+ </message>
+ <message>
+ <source>HOM_HYPO_NORM_L2</source>
+ <translation>L2 norm</translation>
+ </message>
+ <message>
+ <source>HOM_HYPO_NORM_INF</source>
+ <translation>Infinite norm</translation>
+ </message>
+ <message>
+ <source>HOM_HYPO_NORM_ABS</source>
+ <translation>Absolute</translation>
+ </message>
+ <message>
+ <source>HOM_HYPO_NORM_REL</source>
+ <translation>Relative</translation>
+ </message>
+ <message>
+ <source>HOM_HYPO_COMP</source>
+ <translation>At least, one component must be selected.</translation>
+ </message>
+ <message>
+ <source>HOM_HYPO_EDIT_WINDOW_TITLE</source>
+ <translation>Edition of an hypothesis</translation>
+ </message>
+ <message>
+ <source>HOM_ZONE_NAME</source>
+ <translation>The zone must be named.</translation>
+ </message>
+ <message>
+ <source>HOM_ZONE_LIMIT</source>
+ <translation>%1 maxi must be greater than %1 mini.</translation>
+ </message>
+ <message>
+ <source>HOM_ZONE_EDIT_WINDOW_TITLE</source>
+ <translation>Edition of a zone</translation>
+ </message>
+ <message>
+ <source>HOM_BOUN_NAME</source>
+ <translation>The boundary must be named.</translation>
+ </message>
+ <message>
+ <source>HOM_BOUN_MESH</source>
+ <translation>The file for the mesh of the boundary must be selected.</translation>
+ </message>
+ <message>
+ <source>HOM_BOUN_CASE</source>
+ <translation>The meshfile of the case is unknown.</translation>
+ </message>
+ <message>
+ <source>HOM_BOUN_A_EDIT_WINDOW_TITLE</source>
+ <translation>Edition of an analytical boundary</translation>
+ </message>
+ <message>
+ <source>HOM_BOUN_D_EDIT_WINDOW_TITLE</source>
+ <translation>Edition of a discrete boundary</translation>
+ </message>
+</context>
</TS>
+++ /dev/null
-# This is a Qt message file in .po format. Each msgid starts with
-# a scope. This scope should *NOT* be translated - eg. translating
-# from French to English, "Foo::Bar" would be translated to "Pub",
-# not "Foo::Pub".
-msgid ""
-msgstr ""
-"Project-Id-Version: PROJECT VERSION\n"
-"POT-Creation-Date: 2003-11-19 03:10:25 PM CET\n"
-"PO-Revision-Date: YYYY-MM-DD\n"
-"Last-Translator: FULLNAME <EMAIL@ADDRESS>\n"
-"Content-Type: text/plain; charset=iso-8859-1\n"
-
-#: HOMARDGUI.cxx:76
-msgid "HOMARDGUI::BUT_OK"
-msgstr "OK"
-
-#: HOMARDGUI.cxx:76
-msgid "HOMARDGUI::INF_HOMARD_BANNER"
-msgstr "Information HOMARD"
-
-#: HOMARDGUI.cxx:76
-msgid "HOMARDGUI::INF_HOMARD_MENU"
-msgstr "Ceci est un simple test"
-
-#: HOMARDGUI.cxx:57
-msgid "HOMARDGUI::QUE_HOMARD_LABEL"
-msgstr "Import Prénom"
-
-#: HOMARDGUI.cxx:57
-msgid "HOMARDGUI::QUE_HOMARD_NAME"
-msgstr "Entrez votre prénom, s'il vous plait"
+<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
-<!--
- Copyright (C) 2007-2008 CEA/DEN, EDF R&D, 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.
-
- 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.
-
- 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
-
- See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
-
--->
-<TS version="1.1" >
- <context>
- <name>@default</name>
- <message>
- <source>MEN_HOMARD</source>
- <translation>HOMARD</translation>
- </message>
- <message>
- <source>MEN_NEW_CASE</source>
- <translation>New case</translation>
- </message>
- <message>
- <source>MEN_NEW_ITERATION</source>
- <translation>New iteration</translation>
- </message>
- <message>
- <source>MEN_COMPUTE</source>
- <translation>Compute</translation>
- </message>
- <message>
- <source>MEN_EDIT_CASE</source>
- <translation>Edit case</translation>
- </message>
- <message>
- <source>MEN_EDIT_ITERATION</source>
- <translation>Edit iteration</translation>
- </message>
- <message>
- <source>MEN_EDIT_HYPO</source>
- <translation>Edit hypothesis</translation>
- </message>
- <message>
- <source>MEN_EDIT_ZONE</source>
- <translation>Edit zone</translation>
- </message>
- <message>
- <source>MEN_EDIT_BOUNDARY</source>
- <translation>Edit boundary</translation>
- </message>
- </context>
+<TS version="2.0" language="fr_FR">
+<context>
+ <name>@default</name>
+ <message>
+ <source>HOM_MEN_HOMARD</source>
+ <translation>HOMARD</translation>
+ </message>
+ <message>
+ <source>HOM_MEN_NEW_CASE</source>
+ <translation>Nouveau cas</translation>
+ </message>
+ <message>
+ <source>HOM_MEN_NEW_ITERATION</source>
+ <translation>Nouvelle itération</translation>
+ </message>
+ <message>
+ <source>HOM_MEN_COMPUTE</source>
+ <translation>Calculer</translation>
+ </message>
+ <message>
+ <source>HOM_MEN_EDIT_CASE</source>
+ <translation>Editer le cas</translation>
+ </message>
+ <message>
+ <source>HOM_MEN_EDIT_ITERATION</source>
+ <translation>Editer l'itération</translation>
+ </message>
+ <message>
+ <source>HOM_MEN_EDIT_HYPO</source>
+ <translation>Editer l'hypothèse</translation>
+ </message>
+ <message>
+ <source>HOM_MEN_EDIT_ZONE</source>
+ <translation>Editer la zone</translation>
+ </message>
+ <message>
+ <source>HOM_MEN_EDIT_BOUNDARY</source>
+ <translation>Editer la frontière</translation>
+ </message>
+ <message>
+ <source>HOM_MEN_EDIT_MESS_FILE</source>
+ <translation>Afficher le fichier</translation>
+ </message>
+ <message>
+ <source>HOM_TOP_HOMARD</source>
+ <translation>HOMARD</translation>
+ </message>
+ <message>
+ <source>HOM_TOP_NEW_CASE</source>
+ <translation>Nouveau cas</translation>
+ </message>
+ <message>
+ <source>HOM_TOP_NEW_ITERATION</source>
+ <translation>Nouvelle itération</translation>
+ </message>
+ <message>
+ <source>HOM_TOP_COMPUTE</source>
+ <translation>Calculer</translation>
+ </message>
+ <message>
+ <source>HOM_TOP_EDIT_CASE</source>
+ <translation>Editer le cas</translation>
+ </message>
+ <message>
+ <source>HOM_TOP_EDIT_ITERATION</source>
+ <translation>Editer l'itération</translation>
+ </message>
+ <message>
+ <source>HOM_TOP_EDIT_HYPO</source>
+ <translation>Editer l'hypothèse</translation>
+ </message>
+ <message>
+ <source>HOM_TOP_EDIT_ZONE</source>
+ <translation>Editer la zone</translation>
+ </message>
+ <message>
+ <source>HOM_TOP_EDIT_BOUNDARY</source>
+ <translation>Editer la frontière</translation>
+ </message>
+ <message>
+ <source>HOM_TOP_EDIT_MESS_FILE</source>
+ <translation>Afficher le fichier</translation>
+ </message>
+ <message>
+ <source>HOM_STB_HOMARD</source>
+ <translation>HOMARD</translation>
+ </message>
+ <message>
+ <source>HOM_STB_NEW_CASE</source>
+ <translation>Nouveau cas</translation>
+ </message>
+ <message>
+ <source>HOM_STB_NEW_ITERATION</source>
+ <translation>Nouvelle itération</translation>
+ </message>
+ <message>
+ <source>HOM_STB_COMPUTE</source>
+ <translation>Calculer</translation>
+ </message>
+ <message>
+ <source>HOM_STB_EDIT_CASE</source>
+ <translation>Editer le cas</translation>
+ </message>
+ <message>
+ <source>HOM_STB_EDIT_ITERATION</source>
+ <translation>Editer l'itération</translation>
+ </message>
+ <message>
+ <source>HOM_STB_EDIT_HYPO</source>
+ <translation>Editer l'hypothèse</translation>
+ </message>
+ <message>
+ <source>HOM_STB_EDIT_ZONE</source>
+ <translation>Editer la zone</translation>
+ </message>
+ <message>
+ <source>HOM_STB_EDIT_BOUNDARY</source>
+ <translation>Editer la frontière</translation>
+ </message>
+ <message>
+ <source>HOM_STB_EDIT_MESS_FILE</source>
+ <translation>Afficher le fichier</translation>
+ </message>
+ <message>
+ <source>HOM_WARNING</source>
+ <translation>Avertissement</translation>
+ </message>
+ <message>
+ <source>HOM_ERROR</source>
+ <translation>Erreur</translation>
+ </message>
+ <message>
+ <source>HOM_INACTIVE_BUTTON</source>
+ <translation>Bouton inactif</translation>
+ </message>
+ <message>
+ <source>OK</source>
+ <translation>Appliquer et fermer</translation>
+ </message>
+ <message>
+ <source>Apply</source>
+ <translation>Appliquer</translation>
+ </message>
+ <message>
+ <source>Cancel</source>
+ <translation>Annuler</translation>
+ </message>
+ <message>
+ <source>Help</source>
+ <translation>Aide</translation>
+ </message>
+ <message>
+ <source>New</source>
+ <translation>Nouveau</translation>
+ </message>
+ <message>
+ <source>Edit</source>
+ <translation>Editer</translation>
+ </message>
+ <message>
+ <source>Quit</source>
+ <translation>Quitter</translation>
+ </message>
+ <message>
+ <source>Name</source>
+ <translation>Nom</translation>
+ </message>
+ <message>
+ <source>Directory</source>
+ <translation>Répertoire</translation>
+ </message>
+ <message>
+ <source>Mesh</source>
+ <translation>Maillage</translation>
+ </message>
+ <message>
+ <source>Selection</source>
+ <translation>Sélection</translation>
+ </message>
+ <message>
+ <source>None</source>
+ <translation>Aucun</translation>
+ </message>
+ <message>
+ <source>All</source>
+ <translation>Tout</translation>
+ </message>
+ <message>
+ <source>HOM_SELECT_OBJECT_1</source>
+ <translation>Selectionner un objet.</translation>
+ </message>
+ <message>
+ <source>HOM_SELECT_OBJECT_2</source>
+ <translation>Selectionner un seul objet.</translation>
+ </message>
+ <message>
+ <source>HOM_SELECT_OBJECT_3</source>
+ <translation>Selectionner un objet de type %1.</translation>
+ </message>
+ <message>
+ <source>HOM_SELECT_FILE_1</source>
+ <translation>Selectionner un fichier.</translation>
+ </message>
+ <message>
+ <source>HOM_SELECT_FILE_2</source>
+ <translation>Selectionner un seul fichier.</translation>
+ </message>
+ <message>
+ <source>HOM_MED_FILE_1</source>
+ <translation>Ce fichier MED est illisible.</translation>
+ </message>
+ <message>
+ <source>HOM_MED_FILE_2</source>
+ <translation>Ce fichier MED ne contient aucun maillage.</translation>
+ </message>
+ <message>
+ <source>HOM_MED_FILE_3</source>
+ <translation>Ce fichier MED contient plus d'un maillage.</translation>
+ </message>
+ <message>
+ <source>HOM_MED_FILE_4</source>
+ <translation>Impossible de lire le maillage de ce fichier MED.</translation>
+ </message>
+ <message>
+ <source>HOM_MED_FILE_5</source>
+ <translation>Ce fichier MED ne contient aucun champ.</translation>
+ </message>
+ <message>
+ <source>HOM_MED_FILE_6</source>
+ <translation>Impossible de lire le(s) champ(s) de ce fichier MED.</translation>
+ </message>
+ <message>
+ <source>HOM_SELECT_STUDY</source>
+ <translation>Selectionner une étude avec un fichier MED associé\n ou sélectionner un fichier MED.</translation>
+ </message>
+ <message>
+ <source>Create a case</source>
+ <translation>Création d'un cas</translation>
+ </message>
+ <message>
+ <source>HOM_CASE_NAME</source>
+ <translation>Il faut donner un nom au cas.</translation>
+ </message>
+ <message>
+ <source>HOM_CASE_DIRECTORY_1</source>
+ <translation>Il faut choisir un répertoire de travail pour le cas.</translation>
+ </message>
+ <message>
+ <source>HOM_CASE_DIRECTORY_2</source>
+ <translation>Ce répertoire est déjà utilisé.</translation>
+ </message>
+ <message>
+ <source>HOM_CASE_DIRECTORY_3</source>
+ <translation>Un répertoire valide doit être choisi.</translation>
+ </message>
+ <message>
+ <source>HOM_CASE_MESH</source>
+ <translation>Il faut choisir le maillage initial.</translation>
+ </message>
+ <message>
+ <source>HOM_CASE_GROUP</source>
+ <translation>Le groupe "%1" ne peut pas être attribué à plus d'une frontière.</translation>
+ </message>
+ <message>
+ <source>HOM_CASE_EDIT_WINDOW_TITLE</source>
+ <translation>Edition d'un cas</translation>
+ </message>
+ <message>
+ <source>HOM_ITER_NAME</source>
+ <translation>Il faut donner un nom à l'itération.</translation>
+ </message>
+ <message>
+ <source>HOM_ITER_STARTING_POINT</source>
+ <translation>Il faut désigner l'itération précédente.</translation>
+ </message>
+ <message>
+ <source>HOM_ITER_MESH</source>
+ <translation>Donner le nom du maillage final.</translation>
+ </message>
+ <message>
+ <source>HOM_ITER_HYPO</source>
+ <translation>Choisir une hypothèse.</translation>
+ </message>
+ <message>
+ <source>HOM_ITER_FIELD_FILE</source>
+ <translation>Avec cette hypothese, il faut fournir le fichier du champ.</translation>
+ </message>
+ <message>
+ <source>HOM_ITER_STARTING_POINT_0</source>
+ <translation>Maillage</translation>
+ </message>
+ <message>
+ <source>HOM_ITER_STARTING_POINT_1</source>
+ <translation>Itération initiale du cas</translation>
+ </message>
+ <message>
+ <source>HOM_ITER_EDIT_WINDOW_TITLE</source>
+ <translation>Edition d'une itération</translation>
+ </message>
+ <message>
+ <source>Discrete boundary</source>
+ <translation>Frontière discrète</translation>
+ </message>
+ <message>
+ <source>Analytical boundary</source>
+ <translation>Frontière analytique</translation>
+ </message>
+ <message>
+ <source>Conformity type</source>
+ <translation>Type de conformité</translation>
+ </message>
+ <message>
+ <source>Conformal</source>
+ <translation>Conforme</translation>
+ </message>
+ <message>
+ <source>Non conformal</source>
+ <translation>Non conforme</translation>
+ </message>
+ <message>
+ <source>Non conformal option</source>
+ <translation>Option de non conformité</translation>
+ </message>
+ <message>
+ <source>Free</source>
+ <translation>Libre</translation>
+ </message>
+ <message>
+ <source>1 hanging node per mesh</source>
+ <translation>1 noeud pendant par maille</translation>
+ </message>
+ <message>
+ <source>1 node per edge</source>
+ <translation>1 noeud pendant par arête</translation>
+ </message>
+ <message>
+ <source>Create an iteration</source>
+ <translation>Création d'une itération</translation>
+ </message>
+ <message>
+ <source>Iteration Name</source>
+ <translation>Nom de l'itération</translation>
+ </message>
+ <message>
+ <source>Previous iteration</source>
+ <translation>Itération précédente</translation>
+ </message>
+ <message>
+ <source>Mesh n</source>
+ <translation>Maillage n</translation>
+ </message>
+ <message>
+ <source>Mesh n+1</source>
+ <translation>Maillage n+1</translation>
+ </message>
+ <message>
+ <source>Field information</source>
+ <translation>Information sur les champs</translation>
+ </message>
+ <message>
+ <source>Field file</source>
+ <translation>Fichier des champs</translation>
+ </message>
+ <message>
+ <source>No time step</source>
+ <translation>Sans pas de temps</translation>
+ </message>
+ <message>
+ <source>Last time step</source>
+ <translation>Dernier pas de temps</translation>
+ </message>
+ <message>
+ <source>Chosen time step</source>
+ <translation>Pas de temps choisi</translation>
+ </message>
+ <message>
+ <source>Time step</source>
+ <translation>Pas de temps</translation>
+ </message>
+ <message>
+ <source>Rank</source>
+ <translation>Numéro d'ordre</translation>
+ </message>
+ <message>
+ <source>Hypothesis</source>
+ <translation>Hypothèse</translation>
+ </message>
+ <message>
+ <source>Create an hypothesis</source>
+ <translation>Création d'une hypothèse</translation>
+ </message>
+ <message>
+ <source>HOM_HYPO_NAME</source>
+ <translation>Il faut donner un nom à l'hypothèse.</translation>
+ </message>
+ <message>
+ <source>HOM_HYPO_FIELD_FILE</source>
+ <translation>Il faut fournir le fichier du champ.</translation>
+ </message>
+ <message>
+ <source>HOM_HYPO_ZONE_1</source>
+ <translation>Choisir une zone.</translation>
+ </message>
+ <message>
+ <source>HOM_HYPO_ZONE_2</source>
+ <translation>Il faut choisir au moins une zone.</translation>
+ </message>
+ <message>
+ <source>HOM_HYPO_COMP</source>
+ <translation>Il faut choisir au moins une composante.</translation>
+ </message>
+ <message>
+ <source>HOM_HYPO_NORM_L2</source>
+ <translation>Norme L2</translation>
+ </message>
+ <message>
+ <source>HOM_HYPO_NORM_INF</source>
+ <translation>Norme infinie</translation>
+ </message>
+ <message>
+ <source>HOM_HYPO_NORM_ABS</source>
+ <translation>Absolu</translation>
+ </message>
+ <message>
+ <source>HOM_HYPO_NORM_REL</source>
+ <translation>Relatif</translation>
+ </message>
+ <message>
+ <source>HOM_HYPO_EDIT_WINDOW_TITLE</source>
+ <translation>Edition d'une hypothèse</translation>
+ </message>
+ <message>
+ <source>Type of adaptation</source>
+ <translation>Type d'adaptation</translation>
+ </message>
+ <message>
+ <source>Uniform</source>
+ <translation>Uniforme</translation>
+ </message>
+ <message>
+ <source>Driven by a field</source>
+ <translation>Pilotage par un champ</translation>
+ </message>
+ <message>
+ <source>With geometrical zones</source>
+ <translation>Selon des zones géométriques</translation>
+ </message>
+ <message>
+ <source>Uniform adaptation</source>
+ <translation>Adaptation uniforme</translation>
+ </message>
+ <message>
+ <source>Coarsening</source>
+ <translation>Déraffinement</translation>
+ </message>
+ <message>
+ <source>Refinement</source>
+ <translation>Raffinement</translation>
+ </message>
+ <message>
+ <source>File of the fields</source>
+ <translation>Fichier des champs</translation>
+ </message>
+ <message>
+ <source>Governing field for the adaptation</source>
+ <translation>Champ pilotant l'adaptation</translation>
+ </message>
+ <message>
+ <source>Field name</source>
+ <translation>Nom du champ</translation>
+ </message>
+ <message>
+ <source>Component</source>
+ <translation>Composante</translation>
+ </message>
+ <message>
+ <source>Refinement threshold</source>
+ <translation>Seuil de raffinement</translation>
+ </message>
+ <message>
+ <source>Coarsening threshold</source>
+ <translation>Seuil de déraffinement</translation>
+ </message>
+ <message>
+ <source>Percentage of meshes</source>
+ <translation>Pourcentage de mailles</translation>
+ </message>
+ <message>
+ <source>No refinement</source>
+ <translation>Sans raffinement</translation>
+ </message>
+ <message>
+ <source>No coarsening</source>
+ <translation>Sans déraffinement</translation>
+ </message>
+ <message>
+ <source>Zone management</source>
+ <translation>Gestion des zones</translation>
+ </message>
+ <message>
+ <source>Zone name</source>
+ <translation>Nom de la zone</translation>
+ </message>
+ <message>
+ <source>Field Interpolation</source>
+ <translation>Interpolation des champs</translation>
+ </message>
+ <message>
+ <source>Chosen</source>
+ <translation>Choisi</translation>
+ </message>
+ <message>
+ <source>Create a zone</source>
+ <translation>Création d'une zone</translation>
+ </message>
+ <message>
+ <source>HOM_ZONE_NAME</source>
+ <translation>Il faut donner un nom à la zone.</translation>
+ </message>
+ <message>
+ <source>HOM_ZONE_LIMIT</source>
+ <translation>%1 maxi doit être plus grand que %1 mini.</translation>
+ </message>
+ <message>
+ <source>HOM_ZONE_EDIT_WINDOW_TITLE</source>
+ <translation>Edition d'une zone</translation>
+ </message>
+ <message>
+ <source>Type of zone</source>
+ <translation>Type de la zone</translation>
+ </message>
+ <message>
+ <source>Coordinates</source>
+ <translation>Coordonnées</translation>
+ </message>
+ <message>
+ <source>Create an analytical boundary</source>
+ <translation>Création d'une frontière analytique</translation>
+ </message>
+ <message>
+ <source>Create a discrete boundary</source>
+ <translation>Création d'une frontière discrète</translation>
+ </message>
+ <message>
+ <source>Type of boundary</source>
+ <translation>Type de la frontière</translation>
+ </message>
+ <message>
+ <source>Coordinates of the cylindre</source>
+ <translation>Coordonnées du cylindre</translation>
+ </message>
+ <message>
+ <source>Coordinates of the sphere</source>
+ <translation>Coordonnées de la sphère</translation>
+ </message>
+ <message>
+ <source>Radius</source>
+ <translation>Rayon</translation>
+ </message>
+ <message>
+ <source>X axis</source>
+ <translation>X axe</translation>
+ </message>
+ <message>
+ <source>Y axis</source>
+ <translation>Y axe</translation>
+ </message>
+ <message>
+ <source>Z axis</source>
+ <translation>Z axe</translation>
+ </message>
+ <message>
+ <source>HOM_BOUN_NAME</source>
+ <translation>Il faut donner un nom à la frontière.</translation>
+ </message>
+ <message>
+ <source>HOM_BOUN_MESH</source>
+ <translation>Il faut choisir le maillage qui contient la frontière.</translation>
+ </message>
+ <message>
+ <source>HOM_BOUN_CASE</source>
+ <translation>Le fichier du maillage du cas est inconnu.</translation>
+ </message>
+ <message>
+ <source>HOM_BOUN_A_EDIT_WINDOW_TITLE</source>
+ <translation>Edition d'une frontière analytique</translation>
+ </message>
+ <message>
+ <source>HOM_BOUN_D_EDIT_WINDOW_TITLE</source>
+ <translation>Edition d'une frontière discrète</translation>
+ </message>
+ <message>
+ <source>Filtering with groups</source>
+ <translation>Filtrage par les groupes</translation>
+ </message>
+ <message>
+ <source>Selection of groups</source>
+ <translation>Choix des groupes</translation>
+ </message>
+ <message>
+ <source>Selected groups</source>
+ <translation>Groupes choisis</translation>
+ </message>
+ <message>
+ <source>Group</source>
+ <translation>Groupe</translation>
+ </message>
+ <message>
+ <source>Edit a file</source>
+ <translation>Affichage d'un fichier</translation>
+ </message>
+ <message>
+ <source>Print</source>
+ <translation>Imprimer</translation>
+ </message>
+</context>
</TS>
#include "SalomeApp_Tools.h"
using namespace std;
-extern "C"
+extern "C"
{
#include <med.h>
}
// Si grave = 0, ce n'est pas grave de ne rien trouver et pas de message
// Si grave = 1, ce n'est pas grave de ne rien trouver mais on emet un message
{
- int nbSel = HOMARD_UTILS::IObjectCount() ;
- if ( nbSel == 0 )
- {
- if ( grave == 1 )
- {
- QMessageBox::information( 0, "Bad selection",
- QString("Select an object."),
- QMessageBox::Ok + QMessageBox::Default );
- }
- return QString("");
- }
- if ( nbSel > 1 )
- {
- QMessageBox::information( 0, "Bad selection",
- QString("Select one object only."),
- QMessageBox::Ok + QMessageBox::Default );
- return QString("");
+ int nbSel = HOMARD_UTILS::IObjectCount() ;
+ if ( nbSel == 0 )
+ {
+ if ( grave == 1 )
+ {
+ QMessageBox::warning( 0, QObject::tr("HOM_WARNING"),
+ QObject::tr("HOM_SELECT_OBJECT_1") );
}
-
- Handle(SALOME_InteractiveObject) aIO = HOMARD_UTILS::firstIObject();
- if ( aIO->hasEntry() )
+ return QString("");
+ }
+ if ( nbSel > 1 )
+ {
+ QMessageBox::critical( 0, QObject::tr("HOM_ERROR"),
+ QObject::tr("HOM_SELECT_OBJECT_2") );
+ return QString("");
+ }
+//
+ Handle(SALOME_InteractiveObject) aIO = HOMARD_UTILS::firstIObject();
+ if ( aIO->hasEntry() )
+ {
+ _PTR(Study) aStudy = HOMARD_UTILS::GetActiveStudyDocument();
+ _PTR(SObject) aSO ( aStudy->FindObjectID( aIO->getEntry() ) );
+ _PTR(GenericAttribute) anAttr;
+ if (aSO->FindAttribute(anAttr, "AttributeComment") )
{
- _PTR(Study) aStudy = HOMARD_UTILS::GetActiveStudyDocument();
- _PTR(SObject) aSO ( aStudy->FindObjectID( aIO->getEntry() ) );
- _PTR(GenericAttribute) anAttr;
- if (aSO->FindAttribute(anAttr, "AttributeComment") )
+ _PTR(AttributeComment) attributComment = anAttr;
+ QString aComment= QString(attributComment->Value().data());
+ int iteration = aComment.lastIndexOf(commentaire);
+ if ( iteration !=0 )
+ {
+ QMessageBox::critical( 0, QObject::tr("HOM_ERROR"),
+ QObject::tr("HOM_SELECT_OBJECT_3").arg(commentaire) );
+ return QString("");
+ }
+ if (aSO->FindAttribute(anAttr, "AttributeName") )
{
- _PTR(AttributeComment) attributComment = anAttr;
- QString aComment= QString(attributComment->Value().data());
- int iteration = aComment.lastIndexOf(commentaire);
- if ( iteration !=0 )
- {
- QString message=QString("Select an object : ");
- message += commentaire;
- QMessageBox::information( 0, "Bad selection", message,
- QMessageBox::Ok + QMessageBox::Default );
- return QString("");
- }
- if (aSO->FindAttribute(anAttr, "AttributeName") )
- {
- _PTR(AttributeName) attributName = anAttr;
- QString aName= QString(attributName->Value().data());
- return aName;
- }
+ _PTR(AttributeName) attributName = anAttr;
+ QString aName= QString(attributName->Value().data());
+ return aName;
}
}
- return QString("");
+ }
+//
+ return QString("");
}
// =======================================================================
QString HOMARD_QT_COMMUN::SelectionCasEtude()
// =======================================================================
{
- QString aName = QString("");
- int nbSel = HOMARD_UTILS::IObjectCount() ;
- if ((nbSel > 1) or ( nbSel == 0 ))
- {
- QMessageBox::information( 0, "Bad selection",
- QString("Select one object only"),
- QMessageBox::Ok + QMessageBox::Default );
- return QString("");
+ QString aName = QString("");
+ int nbSel = HOMARD_UTILS::IObjectCount() ;
+ if ( nbSel == 0 )
+ {
+ QMessageBox::critical( 0, QObject::tr("HOM_ERROR"),
+ QObject::tr("HOM_SELECT_OBJECT_1") );
+ return QString("");
+ }
+ if ( nbSel > 1 )
+ {
+ QMessageBox::critical( 0, QObject::tr("HOM_ERROR"),
+ QObject::tr("HOM_SELECT_OBJECT_2") );
+ return QString("");
+ }
+ Handle(SALOME_InteractiveObject) aIO = HOMARD_UTILS::firstIObject();
+ if ( aIO->hasEntry() )
+ {
+ _PTR(Study) aStudy = HOMARD_UTILS::GetActiveStudyDocument();
+ _PTR(SObject) aSO ( aStudy->FindObjectID( aIO->getEntry() ) );
+ _PTR(SObject) aSObjCas = aSO->GetFather();
+ _PTR(GenericAttribute) anAttr;
+ if (aSObjCas->FindAttribute(anAttr, "AttributeName") )
+ {
+ _PTR(AttributeName) attributName = anAttr;
+ aName= QString(attributName->Value().data());
+ }
+ return aName;
}
- Handle(SALOME_InteractiveObject) aIO = HOMARD_UTILS::firstIObject();
- if ( aIO->hasEntry() )
- {
- _PTR(Study) aStudy = HOMARD_UTILS::GetActiveStudyDocument();
- _PTR(SObject) aSO ( aStudy->FindObjectID( aIO->getEntry() ) );
- _PTR(SObject) aSObjCas = aSO->GetFather();
- _PTR(GenericAttribute) anAttr;
- if (aSObjCas->FindAttribute(anAttr, "AttributeName") )
- {
- _PTR(AttributeName) attributName = anAttr;
- aName= QString(attributName->Value().data());
- }
- return aName;
- }
- return QString("");
+ return QString("");
}
// =======================================================================
QString HOMARD_QT_COMMUN::PushNomFichier(bool avertir)
// =======================================================================
-// Gestion les boutons qui permettent de
+// Gestion les boutons qui permettent de
// 1) retourne le nom d'un fichier par une fenetre de dialogue si aucun
// objet est selectionne dans l arbre d etude
-// 2) retourne le nom du fichier asocie a l objet
+// 2) retourne le nom du fichier asocie a l objet
// selectionne dans l arbre d etude
{
- MESSAGE("HOMARD_QT_COMMUN::PushNomFichier");
- QString aFile=QString::null;
- int nbSel = HOMARD_UTILS::IObjectCount() ;
- if ( nbSel == 0 )
- {
- aFile = QFileDialog::getOpenFileName(0,QString("File Selection"),QString("") ,QString("Med files (*.med);;all (*) ") );
- }
- if (nbSel > 1)
- {
- QMessageBox::information( 0, "Bad selection",
- QString("Select one file only"),
- QMessageBox::Ok + QMessageBox::Default );
- }
- if (nbSel == 1)
- {
- Handle(SALOME_InteractiveObject) aIO = HOMARD_UTILS::firstIObject();
- if ( aIO->hasEntry() )
- {
- _PTR(Study) aStudy = HOMARD_UTILS::GetActiveStudyDocument();
- _PTR(SObject) aSO ( aStudy->FindObjectID( aIO->getEntry() ) );
- _PTR(GenericAttribute) anAttr;
- _PTR(AttributeFileType) aFileType;
- _PTR(AttributeExternalFileDef) aFileName;
- if (aSO) {
- if (aSO->FindAttribute(anAttr, "AttributeFileType") ) {
- aFileType=anAttr;
- QString fileType=QString(aFileType->Value().data());
- if ( fileType==QString("FICHIERMED")) {
- if (aSO->FindAttribute(anAttr,"AttributeExternalFileDef")) {
- aFileName=anAttr;
- aFile= QString(aFileName->Value().data()); } } } } }
-
- if ( aFile==QString::null )
- {
- if (avertir ) {
- QMessageBox::information( 0, "Bad selection",
- QString(" Select a study object with associated MED file \n or a MED file"),
- QMessageBox::Ok + QMessageBox::Default );
+ MESSAGE("HOMARD_QT_COMMUN::PushNomFichier");
+ QString aFile=QString::null;
+ int nbSel = HOMARD_UTILS::IObjectCount() ;
+ if ( nbSel == 0 )
+ {
+ aFile = QFileDialog::getOpenFileName(0,QString("File Selection"),QString("") ,QString("Med files (*.med);;all (*) ") );
+ }
+ if (nbSel > 1)
+ {
+ QMessageBox::critical( 0, QObject::tr("HOM_ERROR"),
+ QObject::tr("HOM_SELECT_FILE_2") );
+ }
+ if (nbSel == 1)
+ {
+ Handle(SALOME_InteractiveObject) aIO = HOMARD_UTILS::firstIObject();
+ if ( aIO->hasEntry() )
+ {
+ _PTR(Study) aStudy = HOMARD_UTILS::GetActiveStudyDocument();
+ _PTR(SObject) aSO ( aStudy->FindObjectID( aIO->getEntry() ) );
+ _PTR(GenericAttribute) anAttr;
+ _PTR(AttributeFileType) aFileType;
+ _PTR(AttributeExternalFileDef) aFileName;
+ if (aSO) {
+ if (aSO->FindAttribute(anAttr, "AttributeFileType") ) {
+ aFileType=anAttr;
+ QString fileType=QString(aFileType->Value().data());
+ if ( fileType==QString("FICHIERMED")) {
+ if (aSO->FindAttribute(anAttr,"AttributeExternalFileDef")) {
+ aFileName=anAttr;
+ aFile= QString(aFileName->Value().data()); }
}
- aFile = QFileDialog::getOpenFileName();
- if (!aFile.isEmpty())
- {
- aFile=aFile;
- }
+ }
}
- }
- return aFile;
+ }
+
+ if ( aFile==QString::null )
+ {
+ if ( avertir ) {
+ QMessageBox::warning( 0, QObject::tr("HOM_WARNING"),
+ QObject::tr("HOM_SELECT_STUDY") );
+ }
+ aFile = QFileDialog::getOpenFileName();
+ if (!aFile.isEmpty())
+ {
+ aFile=aFile;
+ }
+ }
+ }
+ return aFile;
}
// =======================================================================
// renvoie le medId associe au fichier Med apres ouverture
{
- int MedIdt = MEDouvrir(const_cast<char *>(aFile.toStdString().c_str()),MED_LECTURE);
- if (MedIdt <0)
- {
- QMessageBox::information( 0, "Bad selection",
- QString("MED File is unreadable"),
- QMessageBox::Ok + QMessageBox::Default );
- }
- return MedIdt;
+ int MedIdt = MEDouvrir(const_cast<char *>(aFile.toStdString().c_str()),MED_LECTURE);
+ if (MedIdt <0)
+ {
+ QMessageBox::critical( 0, QObject::tr("HOM_ERROR"),
+ QObject::tr("HOM_MED_FILE_1") );
+ }
+ return MedIdt;
}
// ======================================================
QString HOMARD_QT_COMMUN::LireNomMaillage(QString aFile)
// ========================================================
{
-
- int MedIdt = HOMARD_QT_COMMUN::OuvrirFichier(aFile);
- int numberOfMeshes = MEDnMaa(MedIdt) ;
- if (numberOfMeshes != 1 )
- {
- QMessageBox::information( 0, "Bad selection",
- QString("MED File contains more than one mesh"),
- QMessageBox::Ok + QMessageBox::Default );
- }
-
- QString nomMaillage= HOMARD_QT_COMMUN::LireNomMaillage(MedIdt,1);
- MEDfermer(MedIdt);
- return nomMaillage;
+ int MedIdt = HOMARD_QT_COMMUN::OuvrirFichier(aFile);
+ int numberOfMeshes = MEDnMaa(MedIdt) ;
+ if (numberOfMeshes == 0 )
+ {
+ QMessageBox::critical( 0, QObject::tr("HOM_ERROR"),
+ QObject::tr("HOM_MED_FILE_2") );
+ }
+ if (numberOfMeshes > 1 )
+ {
+ QMessageBox::critical( 0, QObject::tr("HOM_ERROR"),
+ QObject::tr("HOM_MED_FILE_3") );
+ }
+
+ QString nomMaillage= HOMARD_QT_COMMUN::LireNomMaillage(MedIdt,1);
+ MEDfermer(MedIdt);
+ return nomMaillage;
}
// =======================================================================
QString HOMARD_QT_COMMUN::LireNomMaillage(int MedIdt ,int MeshId)
if ( MEDmaaInfo(MedIdt,MeshId,maa,&mdim,&type,desc) < 0 )
{
- QMessageBox::information( 0, "Bad selection",
- QString("Error : Mesh is unreadable"),
- QMessageBox::Ok + QMessageBox::Default );
+ QMessageBox::critical( 0, QObject::tr("HOM_ERROR"),
+ QObject::tr("HOM_MED_FILE_4") );
}
else
{
- NomMaillage=QString(maa);
+ NomMaillage=QString(maa);
}
return NomMaillage;
}
SCRUTE(aFile.toStdString());
int MedIdt = HOMARD_QT_COMMUN::OuvrirFichier(aFile);
if ( MedIdt < 0 ) { return ListeChamp; }
-
+
// Le fichier Med est lisible
// Lecture du maillage
med_int ncha = MEDnChamp(MedIdt, 0) ;
if (ncha < 1 )
{
- QMessageBox::information( 0, "Bad selection",
- QString(" Error : Fields are unreadable"),
- QMessageBox::Ok + QMessageBox::Default );
- MEDfermer(MedIdt);
- return ListeChamp;
+ QMessageBox::critical( 0, QObject::tr("HOM_ERROR"),
+ QObject::tr("HOM_MED_FILE_5") );
+ MEDfermer(MedIdt);
+ return ListeChamp;
}
for (int i=0; i< ncha; i++)
{
- if ((ncomp = MEDnChamp(MedIdt,i+1)) < 0)
- {
- QMessageBox::information( 0, "Bad selection",
- QString("Error : field's componants are unreadable"),
- QMessageBox::Ok + QMessageBox::Default );
- MEDfermer(MedIdt);
- return ListeChamp;
- }
-
/* Lecture du type du champ, des noms des composantes et du nom de l'unite*/
- comp = (char*) malloc(ncomp*MED_TAILLE_PNOM+1);
- unit = (char*) malloc(ncomp*MED_TAILLE_PNOM+1);
- if ( MEDchampInfo(MedIdt,i+1,nomcha,&typcha,comp,unit,ncomp) < 0 )
- {
- QMessageBox::information( 0, "Bad selection",
- QString(" Error : Fields are unreadable"),
- QMessageBox::Ok + QMessageBox::Default );
- MEDfermer(MedIdt);
- return ListeChamp;
- }
+ ncomp = MEDnChamp(MedIdt,i+1);
+ comp = (char*) malloc(ncomp*MED_TAILLE_PNOM+1);
+ unit = (char*) malloc(ncomp*MED_TAILLE_PNOM+1);
+ if ( MEDchampInfo(MedIdt,i+1,nomcha,&typcha,comp,unit,ncomp) < 0 )
+ {
+ QMessageBox::critical( 0, QObject::tr("HOM_ERROR"),
+ QObject::tr("HOM_MED_FILE_6") );
+ MEDfermer(MedIdt);
+ return ListeChamp;
+ }
ListeChamp.push_back(QString(nomcha));
free(comp);
int MedIdt = HOMARD_QT_COMMUN::OuvrirFichier(aFile);
if ( MedIdt < 0 ) { return ListeComposants; }
-
+
// Lecture du nombre de champs
med_int ncha = MEDnChamp(MedIdt, 0) ;
if (ncha < 1 )
{
- QMessageBox::information( 0, "Bad selection",
- QString(" Error : Fields are unreadable"),
- QMessageBox::Ok + QMessageBox::Default );
- MEDfermer(MedIdt);
- return ListeComposants;
+ QMessageBox::critical( 0, QObject::tr("HOM_ERROR"),
+ QObject::tr("HOM_MED_FILE_5") );
+ MEDfermer(MedIdt);
+ return ListeComposants;
}
for (int i=0; i< ncha; i++)
{
- if ((ncomp = MEDnChamp(MedIdt,i+1)) < 0)
- {
- QMessageBox::information( 0, "Bad selection",
- QString("Error : field's componants are unreadable"),
- QMessageBox::Ok + QMessageBox::Default );
- MEDfermer(MedIdt);
- return ListeComposants;
- }
-
/* Lecture du type du champ, des noms des composantes et du nom de l'unite*/
+ ncomp = MEDnChamp(MedIdt,i+1);
comp = (char*) malloc(ncomp*MED_TAILLE_PNOM+1);
unit = (char*) malloc(ncomp*MED_TAILLE_PNOM+1);
- if ( MEDchampInfo(MedIdt,i+1,nomcha,&typcha,comp,unit,ncomp) < 0 )
+ if ( MEDchampInfo(MedIdt,i+1,nomcha,&typcha,comp,unit,ncomp) < 0 )
{
- QMessageBox::information( 0, "Bad selection",
- QString(" Error : Fields are unreadable"),
- QMessageBox::Ok + QMessageBox::Default );
- MEDfermer(MedIdt);
+ QMessageBox::critical( 0, QObject::tr("HOM_ERROR"),
+ QObject::tr("HOM_MED_FILE_6") );
+ MEDfermer(MedIdt);
return ListeComposants;
}
if ( QString(nomcha) != aChamp ) {
- free(comp);
+ free(comp);
free (unit);
continue;}
- for (int j = 0; j <ncomp; j++)
- {
+ for (int j = 0; j <ncomp; j++)
+ {
char cible[MED_TAILLE_PNOM +1];
strncpy(cible,comp+j*MED_TAILLE_PNOM,MED_TAILLE_PNOM );
cible[MED_TAILLE_PNOM ]='\0';
MEDfermer(MedIdt);
return ListeComposants;
}
-
-// =======================================================================
-void HOMARD_QT_COMMUN::Recopie(QString aDir, QString aFichier)
-// =======================================================================
-{
- if (chdir(aDir.toLatin1()) != 0)
- {
- if (mkdir(aDir.toLatin1(), S_IRWXU|S_IRGRP|S_IXGRP) != 0)
- {
- QMessageBox::information( 0, "ERROR",
- QString("Unable to create directory."),
- QMessageBox::Ok + QMessageBox::Default );
- return;
- //ASSERT("Pb a la creation de la directory" == 0);
- }
- if (chdir(aDir.toLatin1()) != 0)
- {
- QMessageBox::information( 0, "ERROR",
- QString("Unable to access directory."),
- QMessageBox::Ok + QMessageBox::Default );
- return;
- //ASSERT("Pb pour acceder la directory" == 0);
- }
- }
- QString copie = QString("cp ")+aFichier+QString(" ")+aDir;
- system(copie.toLatin1());
-}
-
-// =======================================================================
-void HOMARD_QT_COMMUN::Creetmp()
-// =======================================================================
-{
- QString aDir=QString("/tmp/Homard/");
- if (chdir(aDir.toLatin1()) != 0)
- {
- if (mkdir(aDir.toLatin1(), S_IRWXU|S_IRGRP|S_IXGRP) != 0)
- {
- QMessageBox::information( 0, "ERROR",
- QString("Unable to create directory /tmp/Homard."),
- QMessageBox::Ok + QMessageBox::Default );
- return;
- }
- if (chdir(aDir.toLatin1()) != 0)
- {
- QMessageBox::information( 0, "ERROR",
- QString("Unable to access directory /tmp/Homard."),
- QMessageBox::Ok + QMessageBox::Default );
- return;
- }
- }
-}
std::list<QString> GetListeChamps(QString aFile);
std::list<QString> GetListeComposants(QString aFile, QString aChamp);
- void Recopie(QString aDir, QString aFichier);
- void Creetmp();
-
QString SelectionArbreEtude(QString commentaire, int grave );
QString SelectionCasEtude();
#
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
-# -* Makefile *-
-# Author :
+# -* Makefile *-
+# Author :
# Modified by : Alexander BORODIN (OCN) - autotools usage
#
-# header files
+# header files
include $(top_srcdir)/adm_local/unix/make_common_starter.am
# resources files
nodist_salomeres_DATA = \
- HOMARD_msg_en.qm
-# HOMARD_msg_fr.qm
-# HOMARD_icons.qm
+ HOMARD_msg_en.qm \
+ HOMARD_msg_fr.qm
std::cerr << LEBoundaryName->text().trimmed().toStdString() << std::endl;
if (LEBoundaryName->text().trimmed()=="")
{
- QMessageBox::information( 0, "Error",
- "The boundary must be named.",
- QMessageBox::Ok + QMessageBox::Default );
+ QMessageBox::critical( 0, QObject::tr("HOM_ERROR"),
+ QObject::tr("HOM_BOUN_NAME") );
return false;
}
CORBA::string_dup(_aBoundaryAnName.toStdString().c_str()), \
CORBA::Long(_BoundaryType) );
_parent->addBoundaryAn(_aBoundaryAnName);
- }
- catch( SALOME::SALOME_Exception& S_ex )
- {
- QMessageBox::information( 0, "Error",
- QString(CORBA::string_dup(S_ex.details.text)),
- QMessageBox::Ok + QMessageBox::Default );
- return false;
- }
+ }
+ catch( SALOME::SALOME_Exception& S_ex )
+ {
+ QMessageBox::critical( 0, QObject::tr("HOM_ERROR"),
+ QString(CORBA::string_dup(S_ex.details.text)) );
+ return false;
+ }
}
// Mise en place des attributs
aBoundaryAn->SetBoundaryType(_BoundaryType);
QString aBoundaryName=LEBoundaryName->text().trimmed();
if (aBoundaryName=="") {
- QMessageBox::information( 0, "Error",
- "The boundary must be named.",
- QMessageBox::Ok + QMessageBox::Default );
+ QMessageBox::critical( 0, QObject::tr("HOM_ERROR"),
+ QObject::tr("HOM_BOUN_NAME") );
return false;
}
QString aMeshFile=LEFileName->text().trimmed();
if (aMeshFile ==QString(""))
{
- QMessageBox::information( 0, "Error",
- QString("The mesh of the boundary must be selected."),
- QMessageBox::Ok + QMessageBox::Default );
+ QMessageBox::critical( 0, QObject::tr("HOM_ERROR"),
+ QObject::tr("HOM_BOUN_MESH") );
return false;
}
QString aMeshName = HOMARD_QT_COMMUN::LireNomMaillage(aMeshFile);
if (aMeshName == "" )
{
- QMessageBox::information( 0, "Error",
- QString("no mesh in mesh file"),
- QMessageBox::Ok + QMessageBox::Default );
+ QMessageBox::critical( 0, QObject::tr("HOM_ERROR"),
+ QObject::tr("HOM_MED_FILE_2") );
return false;
}
}
catch( SALOME::SALOME_Exception& S_ex )
{
- QMessageBox::information( 0, "Error",
- QString(CORBA::string_dup(S_ex.details.text)),
- QMessageBox::Ok + QMessageBox::Default );
+ QMessageBox::critical( 0, QObject::tr("HOM_ERROR"),
+ QString(CORBA::string_dup(S_ex.details.text)) );
return false;
}
}
void MonCreateBoundaryDi::SetFiltrage()
// // ------------------------------------------------------------------------
{
- if (!CBGroupe->isChecked()) return;
- if (_aCaseName.toStdString().c_str() == QString()) {
- QMessageBox::information( 0, "Error",
- "Case MeshFile unknowned.",
- QMessageBox::Ok + QMessageBox::Default );
- return;
- }
+ if (!CBGroupe->isChecked()) return;
+ if (_aCaseName.toStdString().c_str() == QString()) {
+ QMessageBox::critical( 0, QObject::tr("HOM_ERROR"),
+ QObject::tr("HOM_BOUN_CASE") );
+ return;
+ }
- MonCreateListGroup *aDlg = new MonCreateListGroup(NULL,this, TRUE, HOMARD::HOMARD_Gen::_duplicate(_myHomardGen),
- _aCaseName, _listeGroupesBoundary) ;
+ MonCreateListGroup *aDlg = new MonCreateListGroup(NULL,this, TRUE, HOMARD::HOMARD_Gen::_duplicate(_myHomardGen),
+ _aCaseName, _listeGroupesBoundary) ;
aDlg->show();
}
bool MonCreateCase::PushOnApply()
// --------------------------------
{
- MESSAGE("PushOnApply");
+ MESSAGE("MonCreateCase::PushOnApply");
QString aCaseName=LECaseName->text().trimmed();
if ( aCaseName == "" )
{
- QMessageBox::information( 0, "Error",
- QString("The case must be named"),
- QMessageBox::Ok + QMessageBox::Default );
+ QMessageBox::critical( 0, QObject::tr("HOM_ERROR"),
+ QObject::tr("HOM_CASE_NAME") );
return false;
}
QString aDirName=LEDirName->text().trimmed();
if (aDirName == QString(""))
{
- QMessageBox::information( 0, "Error",
- QString("A directory for the case must be selected."),
- QMessageBox::Ok + QMessageBox::Default );
+ QMessageBox::critical( 0, QObject::tr("HOM_ERROR"),
+ QObject::tr("HOM_CASE_DIRECTORY_1") );
return false;
}
if ((aDirName != _aDirName) and (_myHomardGen->VerifieDir( aDirName.toStdString().c_str()) == false))
{
- QMessageBox::information( 0, "Error",
- QString("This directory is already used"),
- QMessageBox::Ok + QMessageBox::Default );
+ QMessageBox::critical( 0, QObject::tr("HOM_ERROR"),
+ QObject::tr("HOM_CASE_DIRECTORY_2") );
return false;
}
if (chdir(aDirName.toStdString().c_str()) != 0)
{
- QMessageBox::information( 0, "Error",
- QString("A valid directory for the case must be selected."),
- QMessageBox::Ok + QMessageBox::Default );
+ QMessageBox::critical( 0, QObject::tr("HOM_ERROR"),
+ QObject::tr("HOM_CASE_DIRECTORY_3") );
return false;
}
QString aFileName=LEFileName->text().trimmed();
if (aFileName ==QString(""))
{
- QMessageBox::information( 0, "Error",
- QString("The initial mesh must be selected."),
- QMessageBox::Ok + QMessageBox::Default );
+ QMessageBox::critical( 0, QObject::tr("HOM_ERROR"),
+ QObject::tr("HOM_CASE_MESH") );
return false;
}
QString aMeshName = HOMARD_QT_COMMUN::LireNomMaillage(aFileName);
if (aMeshName == "" )
{
- QMessageBox::information( 0, "Error",
- QString("no mesh in mesh file"),
- QMessageBox::Ok + QMessageBox::Default );
+ QMessageBox::critical( 0, QObject::tr("HOM_ERROR"),
+ QObject::tr("HOM_MED_FILE_2") );
return false;
}
// MESSAGE("....... "<<ListeGroup[nugr].toStdString().c_str());
if ( NomGroup == ListeGroup[nugr] )
{
- QMessageBox::information( 0, "Error",
- QString("Group "+NomGroup+" cannot be given for more than 1 boundary."),
- QMessageBox::Ok + QMessageBox::Default );
+ QMessageBox::critical( 0, QObject::tr("HOM_ERROR"),
+ QObject::tr("HOM_CASE_GROUP").arg(NomGroup) );
return false;
}
}
}
catch( SALOME::SALOME_Exception& S_ex )
{
- QMessageBox::information( 0, "Error",
- QString(CORBA::string_dup(S_ex.details.text)),
- QMessageBox::Ok + QMessageBox::Default );
+ QMessageBox::critical( 0, QObject::tr("HOM_ERROR"),
+ QString(CORBA::string_dup(S_ex.details.text)) );
try
{
aCase = _myHomardGen->GetCas(_aCaseName.toStdString().c_str());
void MonCreateCase::SetFileName()
// ------------------------------------------------------------------------
{
+ QString fileName0 = LEFileName->text().trimmed();
QString fileName = HOMARD_QT_COMMUN::PushNomFichier();
- if (!(fileName.isEmpty())) LEFileName->setText(fileName);
+ if (fileName.isEmpty()) fileName = fileName0 ;
+ LEFileName->setText(fileName);
}
// ------------------------------------------------------------------------
void MonCreateCase::SetConforme()
void MonCreateCase::SetBoundaryA()
// ------------------------------------------------------------------------
{
- MESSAGE("Debut de SetBoundaryA ");
+ MESSAGE("Debut de MonCreateCase::SetBoundaryA ");
if (CBBoundaryA->isChecked())
{
bool bOK = PushOnApply();
else { GBBoundaryA->setVisible(0); }
adjustSize();
//
- MESSAGE("Fin de SetBoundaryA ");
+// MESSAGE("Fin de MonCreateCase::SetBoundaryA ");
}
// ------------------------------------------------------------------------
void MonCreateCase::addBoundaryAn(QString newBoundary)
// ------------------------------------------------------------------------
{
- MESSAGE("Debut de addBoundaryAn ");
+ MESSAGE("Debut de MonCreateCase::addBoundaryAn ");
// Ajout d'une nouvelle colonne
int nbcol = TWBoundary->columnCount();
MESSAGE("nbcol " << nbcol);
}
TWBoundary->resizeColumnToContents(nbcol-1);
// TWBoundary->resizeRowsToContents();
- MESSAGE("Fin de addBoundaryAn ");
+// MESSAGE("Fin de addBoundaryAn ");
}
// ------------------------------------------------------------------------
void MonCreateCase::PushBoundaryAnNew()
:
QDialog(0), Ui_CreateHypothesis(),
_parent(parent), _aHypothesisName(aHypothesisName),
- _aCaseName(caseName), _aFieldFile(aFieldFile),
+ _aCaseName(caseName), _aFieldFile(aFieldFile),
_aFieldName(""),
_aTypeAdap(-2), _aTypeRaff(1), _aTypeDera(0),
_TypeThR(3), _ThreshR(0),
if (LEHypothesisName->text().trimmed()=="") {
- QMessageBox::information( 0, "Error",
- "The hypothesis must be named.",
- QMessageBox::Ok + QMessageBox::Default );
+ QMessageBox::critical( 0, QObject::tr("HOM_ERROR"),
+ QObject::tr("HOM_HYPO_NAME") );
return false;
}
}
catch( SALOME::SALOME_Exception& S_ex )
{
- QMessageBox::information( 0, "Error",
- QString(CORBA::string_dup(S_ex.details.text)),
- QMessageBox::Ok + QMessageBox::Default );
+ QMessageBox::critical( 0, QObject::tr("HOM_ERROR"),
+ QString(CORBA::string_dup(S_ex.details.text)) );
return false;
}
}
{
HOMARD::listeHypotheses_var MyHypos = _myHomardGen->GetAllHypotheses();
- int num = 0;//
+ int num = 0;//
QString aHypothesisName="";
while (aHypothesisName=="" )
{
{
if (_aFieldFile == QString(""))
{
- QMessageBox::information( 0, "Error",
- QString("Enter FieldFile please "),
- QMessageBox::Ok + QMessageBox::Default );
+ QMessageBox::critical( 0, QObject::tr("HOM_ERROR"),
+ QObject::tr("HOM_HYPO_FIELD_FILE") );
close();
if ( _parent ) { _parent->raise(); _parent->activateWindow(); };
return;
void MonCreateHypothesis::PushZoneNew()
// ------------------------------------------------------------------------
{
- MESSAGE("Debut de PushZoneNew")
+ MESSAGE("Debut de MonCreateHypothesis::PushZoneNew")
MonCreateZone *aDlg = new MonCreateZone(this, TRUE, HOMARD::HOMARD_Gen::_duplicate(_myHomardGen), _aCaseName) ;
aDlg->show();
}
void MonCreateHypothesis::PushZoneEdit()
// ------------------------------------------------------------------------
{
- MESSAGE("Debut de PushZoneEdit")
+ MESSAGE("Debut de MonCreateHypothesis::PushZoneEdit")
int colonne = TWZone->currentColumn();
QTableWidgetItem * monItem = TWZone->currentItem();
- if (colonne !=1 or monItem == NULL)
+ if (colonne !=1 or monItem == NULL)
{
- QMessageBox::information( 0, "Error",
- "Please, Select a Zone",
- QMessageBox::Ok + QMessageBox::Default );
+ QMessageBox::critical( 0, QObject::tr("HOM_ERROR"),
+ QObject::tr("HOM_HYPO_ZONE_1") );
return;
}
QString zoneName = monItem->text().trimmed();
void MonCreateHypothesis::PushZoneDelete()
// ------------------------------------------------------------------------
{
- MESSAGE("Debut de PushZoneDelete")
- QMessageBox::information( 0, "Error",
- "Inactive button.",
- QMessageBox::Ok + QMessageBox::Default );
+ MESSAGE("Debut de MonCreateHypothesis::PushZoneDelete")
+ QMessageBox::warning( 0, QObject::tr("HOM_WARNING"),
+ QObject::tr("HOM_INACTIVE_BUTTON") );
return;
}
// Recuperation de toutes les zones enregistrees dans l'arbre d'etude
{
HOMARD::listeZones_var mesZones = _myHomardGen->GetAllZones();
- int stop=TWZone->rowCount();
- for ( int row=0; row< stop; row++)
+ int nbrow=TWZone->rowCount();
+ for ( int row=0; row< nbrow; row++)
{
TWZone->removeRow(row);
}
TWZone->resizeRowsToContents();
TWZone->clearSelection();
}
-
+
// ------------------------------------------------------------------------
void MonCreateHypothesis::addZone(QString newZone)
// ------------------------------------------------------------------------
// ------------------------------------------------------------------------
// Retourne les composantes retenues
{
- MESSAGE( "Dans GetListCompChecked" );
+ MESSAGE( "Dans MonCreateHypothesis::GetListCompChecked" );
QStringList ListeComposant ;
ListeComposant.clear();
ListeComposant.insert(0, QString(TWCMP->item(row, 1)->text()) ) ;
// Choix du texte des radio-boutons selon 1 ou plusieurs composantes
if ( ListeComposant.count() < 2 )
- { RBL2->setText(QString("Absolute value"));
- RBInf->setText(QString("Relative value"));
+ { RBL2->setText(QObject::tr("HOM_HYPO_NORM_ABS"));
+ RBInf->setText(QObject::tr("HOM_HYPO_NORM_REL"));
}
else
- { RBL2->setText(QString("L2 norm"));
- RBInf->setText(QString("Infinite Norm"));
+ { RBL2->setText(QObject::tr("HOM_HYPO_NORM_L2"));
+ RBInf->setText(QObject::tr("HOM_HYPO_NORM_INF"));
}
return ListeComposant ;
//
void MonCreateHypothesis::SetFieldName()
// -------------------------------------------
{
+ MESSAGE("MonCreateHypothesis::SetFieldName");
_aFieldName=CBFieldName->currentText();
if (QString(_aFieldFile) == QString("") or QString(_aFieldName) == QString("") ) { return; }
- for ( int row=0; row < TWCMP->rowCount() ; row++)
+ int nbrow= TWCMP->rowCount() ;
+ for ( int row=0; row < nbrow ; row++)
{
TWCMP->removeRow(row);
}
- //TWCMP->setRowCount(0);
+ TWCMP->setRowCount(0);
//TWCMP->resizeRowsToContents();
std::list<QString> maListe =HOMARD_QT_COMMUN::GetListeComposants(_aFieldFile, _aFieldName);
TWCMP->clearSelection();
// Choix du texte des radio-boutons selon 1 ou plusieurs composantes
if ( TWCMP->rowCount() == 1 )
- { RBL2->setText(QString("Absolute value"));
- RBInf->setText(QString("Relative value"));
+ { RBL2->setText(QObject::tr("HOM_HYPO_NORM_ABS"));
+ RBInf->setText(QObject::tr("HOM_HYPO_NORM_REL"));
}
else
- { RBL2->setText(QString("L2 norm"));
- RBInf->setText(QString("Infinite Norm"));
+ { RBL2->setText(QObject::tr("HOM_HYPO_NORM_L2"));
+ RBInf->setText(QObject::tr("HOM_HYPO_NORM_INF"));
}
// Par defaut, on propose la valeur absolue / norme L2
SetUCL2();
_aListeZone = GetZonesChecked() ;
if (_aListeZone.count() == 0)
{
- QMessageBox::information( 0, "Error",
- QString("At least, one zone must be given."),
- QMessageBox::Ok + QMessageBox::Default );
+ QMessageBox::critical( 0, QObject::tr("HOM_ERROR"),
+ QObject::tr("HOM_HYPO_ZONE_2") );
return false;
}
return true;
_aListeComposant = GetListCompChecked() ;
if (_aListeComposant.count() == 0)
{
- QMessageBox::information( 0, "Error",
- QString("At least, one composant must be given."),
- QMessageBox::Ok + QMessageBox::Default );
+ QMessageBox::critical( 0, QObject::tr("HOM_ERROR"),
+ QObject::tr("HOM_HYPO_COMP") );
return false;
}
return true;
{
if (_aFieldFile == QString(""))
{
- QMessageBox::information( 0, "Error",
- QString("Enter FieldFile please "),
- QMessageBox::Ok + QMessageBox::Default );
+ QMessageBox::critical( 0, QObject::tr("HOM_ERROR"),
+ QObject::tr("HOM_HYPO_FIELD_FILE") );
close();
if ( _parent ) { _parent->raise(); _parent->activateWindow(); };
return;
{
if (_aFieldFile == QString(""))
{
- QMessageBox::information( 0, "Error",
- QString("Enter FieldFile please "),
- QMessageBox::Ok + QMessageBox::Default );
+ QMessageBox::critical( 0, QObject::tr("HOM_ERROR"),
+ QObject::tr("HOM_HYPO_FIELD_FILE") );
close();
if ( _parent ) { _parent->raise(); _parent->activateWindow(); };
return;
// Initialisation de la table
TWField->clear();
- for ( int row=0; row< TWField->rowCount(); row++)
+ int nbrow=TWField->rowCount();
+ for ( int row=0; row< nbrow; row++)
+ {
TWField->removeRow(row);
-
+ }
TWField->setRowCount(0);
std:: list<QString>::const_iterator it;
int row=0;
// -----------------------------------------------------------------------------------------------------
-MonCreateIteration::MonCreateIteration(QWidget* parent, bool modal,
+MonCreateIteration::MonCreateIteration(QWidget* parent, bool modal,
HOMARD::HOMARD_Gen_var myHomardGen, QString IterParentName ):
// -----------------------------------------------------------------------------------------------------
/* Constructs a MonCreateIteration
SetNewIterationName();
GetHypotheses();
- if (_IterParentName != QString(""))
+ if (_IterParentName != QString(""))
{ SetIterParentName(); }
- else
+ else
{setModal(false); /* permet selection de l iteration dans l arbre d etude */}
SetTSNo();
}
// ------------------------------------------------------------------------
// Appele lorsque l'un des boutons Ok ou Apply est presse
{
- MESSAGE("PushOnApply");
+ MESSAGE("MonCreateIteration::PushOnApply");
//
QString aIterationName = LEIterationName->text().trimmed();
if ( aIterationName == QString (""))
{
- QMessageBox::information( 0, "Error",
- QString(" Nommer l iteration "),
- QMessageBox::Ok + QMessageBox::Default );
+ QMessageBox::critical( 0, QObject::tr("HOM_ERROR"),
+ QObject::tr("HOM_ITER_NAME") );
return false;
}
if ( _IterParentName == QString (""))
{
- QMessageBox::information( 0, "Error",
- QString(" Donner le point de depart "),
- QMessageBox::Ok + QMessageBox::Default );
+ QMessageBox::critical( 0, QObject::tr("HOM_ERROR"),
+ QObject::tr("HOM_ITER_STARTING_POINT") );
return false;
}
QString aMeshName_np1=LEMeshName_np1->text().trimmed();
if (aMeshName_np1 == "" )
{
- QMessageBox::information( 0, "Error",
- QString(" Donner le nom du maillage final."),
- QMessageBox::Ok + QMessageBox::Default );
+ QMessageBox::critical( 0, QObject::tr("HOM_ERROR"),
+ QObject::tr("HOM_ITER_MESH") );
return false;
}
QString monHypoName=CBHypothese->currentText();
if (monHypoName == "" )
{
- QMessageBox::information( 0, "Error",
- QString(" Choisir une hypothese "),
- QMessageBox::Ok + QMessageBox::Default );
+ QMessageBox::critical( 0, QObject::tr("HOM_ERROR"),
+ QObject::tr("HOM_ITER_HYPO") );
return false;
}
HOMARD::HOMARD_Hypothesis_var _myHypothesis = _myHomardGen->GetHypothesis(monHypoName.toStdString().c_str());
int TypeAdap = ListTypes[0];
if ( TypeAdap == 1 and LEFieldFile->text().trimmed() == QString("") )
{
- QMessageBox::information( 0, "Error",
- QString("Avec cette hypothese, il faut fournir le fichier du champ."),
- QMessageBox::Ok + QMessageBox::Default );
+ QMessageBox::critical( 0, QObject::tr("HOM_ERROR"),
+ QObject::tr("HOM_ITER_FIELD_FILE") );
return false;
}
CORBA::string_dup(_IterationName.toStdString().c_str()),
CORBA::string_dup(_IterParentName.toStdString().c_str()));
}
- catch( SALOME::SALOME_Exception& S_ex )
+ catch( SALOME::SALOME_Exception& S_ex )
{
- QMessageBox::information( 0, "Error",
- QString(CORBA::string_dup(S_ex.details.text)),
- QMessageBox::Ok + QMessageBox::Default );
+ QMessageBox::critical( 0, QObject::tr("HOM_ERROR"),
+ QString(CORBA::string_dup(S_ex.details.text)) );
return false;
}
}
void MonCreateIteration::PushOnHelp()
// ------------------------------------------------------------------------
{
- HOMARD_UTILS::PushOnHelp(QString("gui_create_iteration.html"));
+ HOMARD_UTILS::PushOnHelp(QString("gui_create_iteration.html"));
}
// ------------------------------------------------------------------------
LEMeshName_n->setText(MeshName);
LEMeshName_n->setReadOnly(1);
LEMeshName_np1->setText(MeshName);
-
+
LEIterationParentName->setText(_IterParentName);
}
// Recherche d'un nom par defaut qui n'existe pas encore
HOMARD::listeIterations_var myIters=_myHomardGen->GetAllIterations();
- int num = 0;//
+ int num = 0;//
QString aIterationName="";
while (aIterationName=="" )
{
if (CBHypothese->currentText() == QString("")) return;
if (_IterParentName == QString(""))
{
- QMessageBox::information( 0, "Error",
- QString("The previous iteration must be given."),
- QMessageBox::Ok + QMessageBox::Default );
- raise();
- return;
+ QMessageBox::critical( 0, QObject::tr("HOM_ERROR"),
+ QObject::tr("HOM_ITER_STARTING_POINT") );
+ raise();
+ return;
}
QString aFieldFile=LEFieldFile->text().trimmed();
MonEditHypothesis *HypoDlg = new MonEditHypothesis(this,TRUE, HOMARD::HOMARD_Gen::_duplicate(_myHomardGen),CBHypothese->currentText(), _CaseName, aFieldFile) ;
void MonCreateIteration::addHypothese(QString newHypothese)
// ------------------------------------------------------------------------
{
- CBHypothese->insertItem(0,newHypothese);
- CBHypothese->setCurrentIndex(0);
+ CBHypothese->insertItem(0,newHypothese);
+ CBHypothese->setCurrentIndex(0);
}
// ------------------------------------------------------------------------
void MonCreateIteration::PushHypoNew()
// ------------------------------------------------------------------------
{
- if (_IterParentName == QString(""))
- {
- QMessageBox::information( 0, "Error",
- QString("The previous iteration must be given."),
- QMessageBox::Ok + QMessageBox::Default );
- raise();
- return;
- }
- if ( _CaseName == QString(""))
- {
- _CaseName = _myHomardGen->GetCaseName(CORBA::string_dup(_IterParentName.toStdString().c_str()));
- }
- QString aFieldFile=LEFieldFile->text().trimmed();
- MonCreateHypothesis *HypoDlg = new MonCreateHypothesis(this,TRUE,HOMARD::HOMARD_Gen::_duplicate(_myHomardGen),QString(""),_CaseName, aFieldFile) ;
- HypoDlg->show();
+ if (_IterParentName == QString(""))
+ {
+ QMessageBox::critical( 0, QObject::tr("HOM_ERROR"),
+ QObject::tr("HOM_ITER_STARTING_POINT") );
+ raise();
+ return;
+ }
+ if ( _CaseName == QString(""))
+ {
+ _CaseName = _myHomardGen->GetCaseName(CORBA::string_dup(_IterParentName.toStdString().c_str()));
+ }
+ QString aFieldFile=LEFieldFile->text().trimmed();
+ MonCreateHypothesis *HypoDlg = new MonCreateHypothesis(this,TRUE,HOMARD::HOMARD_Gen::_duplicate(_myHomardGen),QString(""),_CaseName, aFieldFile) ;
+ HypoDlg->show();
}
// ------------------------------------------------------------------------
#include <SUIT_ViewManager.h>
// --------------------------------------------------------------------------------------------------------------
-MonCreateListGroup::MonCreateListGroup(MonCreateHypothesis* parentHyp, MonCreateBoundaryDi* parentBound, bool modal,
- HOMARD::HOMARD_Gen_var myHomardGen, QString aCaseName, QStringList listeGroupesHypo) :
+MonCreateListGroup::MonCreateListGroup(MonCreateHypothesis* parentHyp, MonCreateBoundaryDi* parentBound, bool modal,
+ HOMARD::HOMARD_Gen_var myHomardGen, QString aCaseName, QStringList listeGroupesHypo) :
// --------------------------------------------------------------------------------------------------------------
//
QDialog(0), Ui_CreateListGroup(),
InitGroupes();
}
// --------------------------------------------------------------------------------------------------------------
-MonCreateListGroup::MonCreateListGroup(MonCreateHypothesis* parentHyp, MonCreateBoundaryDi* parentBound,
- HOMARD::HOMARD_Gen_var myHomardGen, QString aCaseName, QStringList listeGroupesHypo) :
+MonCreateListGroup::MonCreateListGroup(MonCreateHypothesis* parentHyp, MonCreateBoundaryDi* parentBound,
+ HOMARD::HOMARD_Gen_var myHomardGen, QString aCaseName, QStringList listeGroupesHypo) :
// --------------------------------------------------------------------------------------------------------------
//
QDialog(0), Ui_CreateListGroup(),
void MonCreateListGroup::InitGroupes()
// ------------------------------------------------------------------------
{
- MESSAGE("Debut de InitGroupes ");
+ MESSAGE("Debut de MonCreateListGroup::InitGroupes ");
for ( int row=0; row< TWGroupe->rowCount(); row++)
TWGroupe->removeRow(row);
TWGroupe->setRowCount(0);
TWGroupe->resizeColumnsToContents();
TWGroupe->resizeRowsToContents();
TWGroupe->clearSelection();
- MESSAGE("Fin de InitGroupes ");
+// MESSAGE("Fin de MonCreateListGroup::InitGroupes ");
}
std::cerr << LEZoneName->text().trimmed().toStdString() << std::endl;
if (LEZoneName->text().trimmed()=="")
{
- QMessageBox::information( 0, "Error",
- "The zone must be named.",
- QMessageBox::Ok + QMessageBox::Default );
+ QMessageBox::critical( 0, QObject::tr("HOM_ERROR"),
+ QObject::tr("HOM_ZONE_NAME") );
return false;
}
switch (_ZoneType)
{
- case 2 : // il s agit d une boite
- {
- if ((_ZoneXmin != SpinBox_Xmini->value()) or (_ZoneXmax != SpinBox_Xmaxi->value()) or
- (_ZoneYmin != SpinBox_Ymini->value()) or (_ZoneYmax != SpinBox_Ymaxi->value()) or
- (_ZoneZmin != SpinBox_Zmini->value()) or (_ZoneZmax != SpinBox_Zmaxi->value()) )
- Chgt = true;
- break;
- }
+ case 2 : // il s agit d une boite
+ {
+ if ((_ZoneXmin != SpinBox_Xmini->value()) or (_ZoneXmax != SpinBox_Xmaxi->value()) or
+ (_ZoneYmin != SpinBox_Ymini->value()) or (_ZoneYmax != SpinBox_Ymaxi->value()) or
+ (_ZoneZmin != SpinBox_Zmini->value()) or (_ZoneZmax != SpinBox_Zmaxi->value()) )
+ Chgt = true;
+ break;
+ }
- case 4 : // il s agit d une sphere
- {
- if ((_ZoneXcentre != SpinBox_Xcentre->value()) or (_ZoneYcentre != SpinBox_Ycentre->value())
- or (_ZoneZcentre != SpinBox_Zcentre->value()) or (_ZoneRayon != SpinBox_Rayon->value()))
- Chgt = true;
- break;
- }
+ case 4 : // il s agit d une sphere
+ {
+ if ((_ZoneXcentre != SpinBox_Xcentre->value()) or (_ZoneYcentre != SpinBox_Ycentre->value())
+ or (_ZoneZcentre != SpinBox_Zcentre->value()) or (_ZoneRayon != SpinBox_Rayon->value()))
+ Chgt = true;
+ break;
+ }
}
- _ZoneXmin= SpinBox_Xmini->value(); _ZoneXmax= SpinBox_Xmaxi->value();
- _ZoneYmin= SpinBox_Ymini->value(); _ZoneYmax= SpinBox_Ymaxi->value();
- _ZoneZmin= SpinBox_Zmini->value(); _ZoneZmax= SpinBox_Zmaxi->value();
+ _ZoneXmin= SpinBox_Xmini->value(); _ZoneXmax= SpinBox_Xmaxi->value();
+ _ZoneYmin= SpinBox_Ymini->value(); _ZoneYmax= SpinBox_Ymaxi->value();
+ _ZoneZmin= SpinBox_Zmini->value(); _ZoneZmax= SpinBox_Zmaxi->value();
_ZoneXcentre=SpinBox_Xcentre->value();_ZoneYcentre=SpinBox_Ycentre->value();
_ZoneZcentre=SpinBox_Zcentre->value();_ZoneRayon=SpinBox_Rayon->value();
if( _ZoneType == 2 )
{
if ((_ZoneXmin>= _ZoneXmax) and (_Xincr > 0)) {
- QMessageBox::information( 0, "Error",
- QString("X maxi must be greater than X mini."),
- QMessageBox::Ok + QMessageBox::Default );
+ QMessageBox::critical( 0, QObject::tr("HOM_ERROR"),
+ QObject::tr("HOM_ZONE_LIMIT").arg("X") );
return false; }
if ((_ZoneYmin>= _ZoneYmax) and (_Yincr > 0)) {
- QMessageBox::information( 0, "Error",
- QString("Y maxi must be greater than Y mini."),
- QMessageBox::Ok + QMessageBox::Default );
+ QMessageBox::critical( 0, QObject::tr("HOM_ERROR"),
+ QObject::tr("HOM_ZONE_LIMIT").arg("Y") );
return false; }
if ((_ZoneZmin>= _ZoneZmax) and (_Zincr > 0)) {
- QMessageBox::information( 0, "Error",
- QString("Z maxi must be greater than Z mini."),
- QMessageBox::Ok + QMessageBox::Default );
+ QMessageBox::critical( 0, QObject::tr("HOM_ERROR"),
+ QObject::tr("HOM_ZONE_LIMIT").arg("Z") );
return false; }
}
CORBA::string_dup(_aZoneName.toStdString().c_str()), \
CORBA::Long(_ZoneType) );
_parent->addZone(_aZoneName);
- }
- catch( SALOME::SALOME_Exception& S_ex )
- {
- QMessageBox::information( 0, "Error",
- QString(CORBA::string_dup(S_ex.details.text)),
- QMessageBox::Ok + QMessageBox::Default );
- return false;
- }
+ }
+ catch( SALOME::SALOME_Exception& S_ex )
+ {
+ QMessageBox::critical( 0, QObject::tr("HOM_ERROR"),
+ QString(CORBA::string_dup(S_ex.details.text)) );
+ return false;
+ }
}
// Mise en place des attributs
aZone->SetZoneType(_ZoneType);
HOMARD::listeZones_var MyZones = _myHomardGen->GetAllZones();
int num = 0; QString aZoneName="";
- while (aZoneName=="" )
+ while (aZoneName=="" )
{
aZoneName.setNum(num+1) ;
aZoneName.insert(0, QString("Zone_")) ;
- for ( int i=0; i<MyZones->length(); i++)
+ for ( int i=0; i<MyZones->length(); i++)
{
- if ( aZoneName == QString(MyZones[i]))
+ if ( aZoneName == QString(MyZones[i]))
{
num=num+1;
aZoneName="";
break;
- }
- }
+ }
+ }
}
LEZoneName->clear() ;
LEZoneName->insert(aZoneName);
if ( _Zincr > 0 ) {
SpinBox_Zcentre->setValue(_Zcentre);
}
- SpinBox_Rayon->setValue(_Rayon);
+ SpinBox_Rayon->setValue(_Rayon);
}
MonCreateBoundaryAn(parent, myHomardGen, caseName)
{
MESSAGE("Debut de MonEditBoundaryAn pour " << zoneName.toStdString().c_str());
- setWindowTitle("Edit BoundaryAn");
+ setWindowTitle(QObject::tr("HOM_BOUN_A_EDIT_WINDOW_TITLE"));
_aBoundaryAnName=zoneName;
aBoundaryAn = _myHomardGen->GetBoundary(_aBoundaryAnName.toStdString().c_str());
InitValEdit();
MonCreateBoundaryDi(parent, modal, myHomardGen, caseName, BoundaryName)
{
MESSAGE("Debut de Boundary pour " << BoundaryName.toStdString().c_str());
- setWindowTitle("Edit BoundaryDi");
+ setWindowTitle(QObject::tr("HOM_BOUN_D_EDIT_WINDOW_TITLE"));
try
{
_aBoundary=_myHomardGen->GetBoundary(CORBA::string_dup(_aBoundaryName.toStdString().c_str()));
}
catch( SALOME::SALOME_Exception& S_ex )
{
- QMessageBox::information( 0, "Error",
- QString(CORBA::string_dup(S_ex.details.text)),
- QMessageBox::Ok + QMessageBox::Default );
- return;
+ QMessageBox::critical( 0, QObject::tr("HOM_ERROR"),
+ QString(CORBA::string_dup(S_ex.details.text)) );
+ return;
}
HOMARD::ListGroupType_var maListe = _aBoundary->GetGroups();
void MonEditBoundaryDi::SetFiltrage()
// // ------------------------------------------------------------------------
{
- if (!CBGroupe->isChecked()) return;
- if (_aCaseName.toStdString().c_str() == QString())
- {
- QMessageBox::information( 0, "Error",
- "Case MeshFile unknowned.",
- QMessageBox::Ok + QMessageBox::Default );
- return;
- }
- HOMARD::HOMARD_Cas_var monCas= _myHomardGen->GetCas(_aCaseName.toStdString().c_str());
- HOMARD::ListGroupType_var _listeGroupesCas = monCas->GetGroups();
+ if (!CBGroupe->isChecked()) return;
+ if (_aCaseName.toStdString().c_str() == QString())
+ {
+ QMessageBox::critical( 0, QObject::tr("HOM_ERROR"),
+ QObject::tr("HOM_BOUN_CASE") );
+ return;
+ }
+ HOMARD::HOMARD_Cas_var monCas= _myHomardGen->GetCas(_aCaseName.toStdString().c_str());
+ HOMARD::ListGroupType_var _listeGroupesCas = monCas->GetGroups();
- MonEditListGroup *aDlg = new MonEditListGroup(NULL,this, TRUE, HOMARD::HOMARD_Gen::_duplicate(_myHomardGen),
- _aCaseName, _listeGroupesBoundary) ;
- aDlg->show();
+ MonEditListGroup *aDlg = new MonEditListGroup(NULL,this, TRUE, HOMARD::HOMARD_Gen::_duplicate(_myHomardGen),
+ _aCaseName, _listeGroupesBoundary) ;
+ aDlg->show();
}
#include "MonEditCase.h"
-#include <QMessageBox>
-
#include "SalomeApp_Tools.h"
#include "HOMARDGUI_Utils.h"
#include "HomardQtCommun.h"
MonCreateCase(parent, modal, myHomardGen)
{
MESSAGE("Debut de MonEditCase" << CaseName.toStdString().c_str());
- setWindowTitle("Edit case");
+ setWindowTitle(QObject::tr("HOM_CASE_EDIT_WINDOW_TITLE"));
_aCaseName = CaseName;
aCase = _myHomardGen->GetCas(_aCaseName.toStdString().c_str());
InitValEdit();
void MonEditCase::InitValEdit()
// ------------------------------
{
- MESSAGE("Debut de InitValEdit");
+ MESSAGE("Debut de MonEditCase::InitValEdit");
LECaseName->setText(_aCaseName);
LECaseName->setReadOnly(true);
// ------------------------------------------------------------------------
{
MESSAGE("Debut de MonEditFile::PushOnPrint")
- QMessageBox::information( 0, "Error",
- "Inactive button.",
- QMessageBox::Ok + QMessageBox::Default );
+ QMessageBox::warning( 0, QObject::tr("HOM_WARNING"),
+ QObject::tr("HOM_INACTIVE_BUTTON") );
return;
}
MonCreateHypothesis(parent, modal,myHomardGen, aHypothesisName, caseName, aFieldFile)
{
MESSAGE("Hypothese " << aHypothesisName.toStdString().c_str());
- setWindowTitle("Edit Hypothesis");
+ setWindowTitle(QObject::tr("HOM_HYPO_EDIT_WINDOW_TITLE"));
_aHypothesis = _myHomardGen->GetHypothesis(_aHypothesisName.toStdString().c_str());
if (caseName == QString("") ){ _aCaseName = _aHypothesis->GetCaseCreation();}
InitValEdit();
}
// Le choix de la prise en compte des composantes
if ( TWCMP->rowCount() == 1 )
- { RBL2->setText(QString("Absolute value"));
- RBInf->setText(QString("Relative value"));
+ { RBL2->setText(QObject::tr("HOM_HYPO_NORM_ABS"));
+ RBInf->setText(QObject::tr("HOM_HYPO_NORM_REL"));
}
else
- { RBL2->setText(QString("L2 norm"));
- RBInf->setText(QString("Infinite Norm"));
+ { RBL2->setText(QObject::tr("HOM_HYPO_NORM_L2"));
+ RBInf->setText(QObject::tr("HOM_HYPO_NORM_INF"));
}
if ( _UsCmpI == 0 )
{
_rank(0), _step(0), _IterationName(""), _FieldFile(""),_aTypeAdap()
{
MESSAGE("Debut de MonEditIteration" << IterName.toStdString().c_str());
- setWindowTitle("Edit iteration");
+ setWindowTitle(QObject::tr("HOM_ITER_EDIT_WINDOW_TITLE"));
_IterationName = IterName;
aIter = _myHomardGen->GetIteration(_IterationName.toStdString().c_str());
// Affichage bloque du nom du maillage de l'iteration courante
QString MeshName = aIter->GetMeshName();
- Mesh_n->setText(QString("Mesh name"));
+ Mesh_n->setText(QObject::tr("HOM_ITER_STARTING_POINT_0"));
LEMeshName_n->setText(MeshName);
LEMeshName_n->setReadOnly(1);
// Message general
- Mesh_np1->setText(QString("First iteration of the case."));
+ Mesh_np1->setText(QObject::tr("HOM_ITER_STARTING_POINT_1"));
LEMeshName_np1->setVisible(0);
//
// Invisibilite des hypotheses et des champs
if ( _aTypeAdap == 1)
{
// Pour du raffinement selon un champ, les instants ont-ils change ?
- if ( (_FieldFile != LEFieldFile->text().trimmed()) or
+ if ( (_FieldFile != LEFieldFile->text().trimmed()) or
( _rank != SpinBox_Rank->value()) or
( _step != SpinBox_TimeStep->value()))
{
#include <utilities.h>
//---------------------------------------------------------------------
-MonEditListGroup::MonEditListGroup( MonCreateHypothesis* parentHyp,
- MonCreateBoundaryDi* parentBound,
- bool modal,
- HOMARD::HOMARD_Gen_var myHomardGen,
- QString aCaseName,
+MonEditListGroup::MonEditListGroup( MonCreateHypothesis* parentHyp,
+ MonCreateBoundaryDi* parentBound,
+ bool modal,
+ HOMARD::HOMARD_Gen_var myHomardGen,
+ QString aCaseName,
QStringList listeGroupesHypo):
//---------------------------------------------------------------------
MonCreateListGroup(parentHyp,parentBound,myHomardGen,aCaseName,listeGroupesHypo)
{
MESSAGE("Debut de MonEditListGroup");
- setWindowTitle("Edit ListGroup");
+ setWindowTitle(QObject::tr("HOM_GROU_EDIT_WINDOW_TITLE"));
setModal(true);
InitGroupes();
}
MonCreateZone(parent, myHomardGen, caseName)
{
MESSAGE("Debut de MonEditZone pour " << zoneName.toStdString().c_str());
- setWindowTitle("Edit Zone");
+ setWindowTitle(QObject::tr("HOM_ZONE_EDIT_WINDOW_TITLE"));
_aZoneName=zoneName;
aZone = _myHomardGen->GetZone(_aZoneName.toStdString().c_str());
InitValEdit();
bool MonEditZone::CreateOrUpdateZone()
//----------------------------------------------------
// Pas de Creation de la zone
-// Mise a jour des attributs de la Zone
+// Mise a jour des attributs de la Zone
{
try
HOMARD_UTILS::updateObjBrowser();
}
catch( const SALOME::SALOME_Exception& S_ex ) {
- SalomeApp_Tools::QtCatchCorbaException( S_ex );
+ SalomeApp_Tools::QtCatchCorbaException( S_ex );
return false;
}
return true;
+++ /dev/null
-#include "MonHomardDlg.h"
-#include "HomardConfigFile.hxx"
-#include "HomardQtCommun.h"
-
-#include<QMessageBox>
-
-#include <SalomeApp_Module.h>
-#include <SalomeApp_Application.h>
-#include <SalomeApp_Study.h>
-
-#include "HOMARDGUI_Utils.h"
-
-#include <string>
-#include "utilities.h"
-
-#define MIN_LISTBOX_WIDTH 150
-#define MIN_LISTBOX_HEIGHT 100
-
-int MonHomardDlg::RootInfo = 100;
-
-//--------------------------------------------------------------------------------------------------------------------
-MonHomardDlg::MonHomardDlg( QWidget * parent, bool modal, HOMARD::HOMARD_Gen_ptr myHomardGen):
- QWidget(0),
- Ui_HomardDlg(),
- bHisto(true),bBilan(true), bNomFichier(false), bNomMaillage(false),
- _aFile(QString::null), _aMesh (QString::null)
-//--------------------------------------------------------------------------------------------------------------------
-{
- setupUi(this);
- setModal(true);
- _myHomardGen=HOMARD::HOMARD_Gen::_duplicate(myHomardGen);
-
- _monCas = new HomardConfigFile();
- _monCas->initVal(string("Interpe3"),string("non"));
- _monCas->initVal(string("Qualite5"),string("oui"));
- _monCas->initVal(string("Nb_Enti7"),string("oui"));
- _monCas->initVal(string("Connex11"),string("oui"));
- _monCas->initVal(string("Taille13"),string("oui"));
- _monCas->setBilan(true);
-
- initConnect();
-
-}
-
-//-----------------------------
-MonHomardDlg::~MonHomardDlg()
-//-----------------------------
-{
- // no need to delete child widgets, Qt does it all for us
-}
-
-//-----------------------------
-void MonHomardDlg::initConnect()
-//-----------------------------
-{
- connect( lancement, SIGNAL( pressed() ), this, SLOT( Lancement() ) );
- connect( terminer, SIGNAL( pressed() ), this, SLOT( close() ) );
- connect( ListeMeshName, SIGNAL( activated(int) ), this, SLOT( SetMaillage() ) );
- connect( NomFichier, SIGNAL( returnPressed() ), this, SLOT( SetNomFichier() ) );
- connect( PushFichier, SIGNAL( clicked() ), this, SLOT( PushNomFichier() ) );
- connect( Connexite, SIGNAL( stateChanged(int) ), this, SLOT( SetConnexite() ) );
- connect( Inter, SIGNAL( stateChanged(int) ), this, SLOT( SetInter() ) );
- connect( NbEntites, SIGNAL( stateChanged(int) ), this, SLOT( SetNbEntites() ) );
- connect( Histo, SIGNAL( stateChanged(int) ), this, SLOT( SetHisto() ) );
- connect( Qualite, SIGNAL( stateChanged(int) ), this, SLOT( SetQualite() ) );
- connect( Volumes, SIGNAL( stateChanged(int) ), this, SLOT( SetVolumes() ) );
- connect( Bilan, SIGNAL( stateChanged(int) ), this, SLOT( SetBilans() ) );
-}
-
-//-----------------------------
-void MonHomardDlg::Lancement()
-//-----------------------------
-{
- if( ( bNomFichier==false) || (bNomMaillage ==false))
- {
- QMessageBox::information( 0, "Mauvaise Selection",
- QString(" Selectionner un Fichier et un Maillage SVP "),
- QMessageBox::Ok + QMessageBox::Default );
- return;
- }
-
- bool ok;
- ok=_monCas->initVal(string("ModeHOMA"),string("2"));
- ok=_monCas->initVal(string("ListeStd"),string(_aMesh.toStdString())+string(".info"));
- ok=_monCas->initVal(string("CCAssoci"),string("MED"));
- ok=_monCas->initVal(string("CCSolN__"),string(_aFile.toStdString()));
- ok=_monCas->initVal(string("CCMaiN__"),string(_aFile.toStdString()));
- ok=_monCas->initVal(string("CCNoMN__"),string(_aMesh.toStdString()));
- ok=_monCas->initVal(string("PPBasFic"),string(_aMesh.toStdString()));
- ok=_monCas->initVal(string("EcriFiHO"),string("non"));
-
- ok = _monCas->createFile();
- if ( ok == false)
- {
- QMessageBox::information( 0, "Mauvaise Selection",
- QString("Probleme � la cr�ation du fichier Homard "),
- QMessageBox::Ok + QMessageBox::Default );
- return;
- }
-
- string fileDir=string(_monCas->getMyDir().c_str());
- char * dirchar; char * execchar;
- string dir; string executable;
- string result=string(_aMesh.toStdString())+string(".info");
-
- if ( !(dirchar = getenv("HOMARD_REP_EXE")) )
- { dir=string("/local/logiciels/Homard"); }
- else
- { dir=string(dirchar); }
-
- if ( !(execchar = getenv("HOMARD_EXE")) )
- { executable =string("HOMARD"); }
- else
- { executable =string(execchar); }
-
- string commande = dir+"/"+executable;
- string info = ";more *.info";
- string ou=string("cd ") + string(fileDir);
- string tout=ou +string("; xterm -sb -hold -e \" ") + commande + info + string ("\"");
- system(tout.c_str());
- int MonCasRoot = MonHomardDlg::RootInfo;
- int TagInfo = 0;
- MonHomardDlg::RootInfo = MonHomardDlg::RootInfo+1;
- HOMARD_UTILS::AddNewRoot(MonCasRoot,QString(_aMesh));
-
- if (bBilan == true)
- {
- QStringList Lesfichiers=HOMARD_UTILS::ChercheDansDir(fileDir.c_str(),QString("info"),-1);
- QString FileComment=QString("HomardOuputInfo");
- for ( QStringList::Iterator it = Lesfichiers.begin(); it != Lesfichiers.end(); ++it )
- {
- HOMARD_UTILS::RangeSousTag(MonCasRoot,(*it),TagInfo,FileComment,fileDir.c_str());
- TagInfo ++;
- }
- }
- if (bHisto == true)
- {
- QStringList Lesfichiers=HOMARD_UTILS::ChercheDansDir(fileDir.c_str(),QString("qual"),-1);
- QString FileComment=QString("HomardOuputQual");
- for ( QStringList::Iterator it = Lesfichiers.begin(); it != Lesfichiers.end(); ++it )
- {
- HOMARD_UTILS::RangeSousTag(MonCasRoot,(*it),TagInfo,FileComment,fileDir.c_str());
- TagInfo ++;
- }
- }
- HOMARD_UTILS::updateObjBrowser();
- close();
-
-}
-
-//-----------------------------
-void MonHomardDlg::SetBilans()
-//-----------------------------
-{
- if (Bilan->isChecked())
- {
- _monCas->setBilan(true);
- bBilan=true;
- }
- else
- {
- _monCas->setBilan(false);
- bBilan=false;
- }
-}
-
-//-----------------------------
-void MonHomardDlg::SetConnexite()
-//-----------------------------
-{
- bool ok;
- if (Connexite->isChecked())
- {
- ok=_monCas->initVal(string("Connex11"),string("oui"));
- }
- else
- {
- ok=_monCas->initVal(string("Connex11"),string("non"));
- }
- if ( ok ==false)
- {
- QMessageBox::information( 0, "Mauvaise Selection",
- QString("Mauvaise valeur pour ce mot clef"),
- QMessageBox::Ok + QMessageBox::Default );
- }
-}
-
-//-----------------------------
-void MonHomardDlg::SetInter()
-//-----------------------------
-{
- bool ok;
- if (Inter->isChecked())
- {
- ok=_monCas->initVal(string("Interpe3"),string("oui"));
- }
- else
- {
- ok=_monCas->initVal(string("Interpe3"),string("non"));
- }
- if ( ok ==false)
- {
- QMessageBox::information( 0, "Mauvaise Selection",
- QString("Mauvaise valeur pour ce mot clef"),
- QMessageBox::Ok + QMessageBox::Default );
- }
-}
-
-//-----------------------------
-void MonHomardDlg::SetNbEntites()
-//-----------------------------
-{
- bool ok;
- if (NbEntites->isChecked())
- {
- ok=_monCas->initVal(string("Nb_Enti7"),string("oui"));
- }
- else
- {
- ok=_monCas->initVal(string("Nb_Enti7"),string("non"));
- }
- if ( ok ==false)
- {
- QMessageBox::information( 0, "Mauvaise Selection",
- QString("Mauvaise valeur pour ce mot clef"),
- QMessageBox::Ok + QMessageBox::Default );
- }
-}
-
-//-----------------------------
-void MonHomardDlg::SetHisto()
-//-----------------------------
-{
- if (Histo->isChecked())
- {
- bHisto=true;
- }
- else
- {
- bHisto=false;
- }
-}
-
-//-----------------------------
-void MonHomardDlg::SetQualite()
-//-----------------------------
-{
- bool ok;
- if (Qualite->isChecked())
- {
- ok=_monCas->initVal(string("Qualite5"),string("oui"));
- }
- else
- {
- ok=_monCas->initVal(string("Qualite5"),string("non"));
- }
- if ( ok ==false)
- {
- QMessageBox::information( 0, "Mauvaise Selection",
- QString("Mauvaise valeur pour ce mot clef"),
- QMessageBox::Ok + QMessageBox::Default );
- }
-}
-
-//-----------------------------
-void MonHomardDlg::SetVolumes()
-//-----------------------------
-{
- bool ok;
- if (Volumes->isChecked())
- {
- ok=_monCas->initVal(string("Taille13"),string("oui"));
- }
- else
- {
- ok=_monCas->initVal(string("Taille13"),string("non"));
- }
- if ( ok ==false)
- {
- QMessageBox::information( 0, "Mauvaise Selection",
- QString("Mauvaise valeur pour ce mot clef"),
- QMessageBox::Ok + QMessageBox::Default );
- }
-
-}
-
-//---------------------------------
-void MonHomardDlg::PushNomFichier()
-//---------------------------------
-{
- MESSAGE("Debut de PushNomFichier");
- bNomFichier=false;
- _aFile=HOMARD_QT_COMMUN::PushNomFichier();
- if ( _aFile != QString::null)
- {
- NomFichier->setText(_aFile);
- bNomFichier=true;
- this->SetNomFichier();
- }
-}
-
-//-----------------------------------
-void MonHomardDlg::SetNomFichier()
-//-----------------------------------
-/* Ce slot est appele quand on entre le nom du fichier */
-{
- MESSAGE("Debut de SetNomFichier");
- _aFile=NomFichier->text();
- bNomFichier=true;
- if ( HOMARD_QT_COMMUN::SetListeMaillages(_aFile,ListeMeshName))
- {
- if (ListeMeshName->count() == 1) this->SetMaillage();
- }
- else
- {
- bNomFichier=false;
- _aFile=QString::null;
- NomFichier->setText(_aFile);
- }
-}
-
-
-//-----------------------------------
-void MonHomardDlg::SetMaillage()
-//-----------------------------------
-{
- MESSAGE("Debut de SetMaillage");
- bNomMaillage = true;
- _aMesh=ListeMeshName->currentText();
-}
-
+++ /dev/null
-#ifndef MONHOMARDDLG_H
-#define MONHOMARDDLG_H
-
-#include "utilities.h"
-#include "HomardDlg.h"
-#include <QWidget>
-#include <SALOMEconfig.h>
-#include "SALOME_Selection.h"
-
-#include <SalomeApp_Module.h>
-
-#include CORBA_CLIENT_HEADER(SALOMEDS_Attributes)
-#include CORBA_CLIENT_HEADER(HOMARD_Gen)
-
-
-class HomardConfigFile;
-class MonHomardDlg : public QWidget,public Ui_HomardDlg
-{
- Q_OBJECT
-
-public:
- MonHomardDlg( QWidget* parent, bool modal, HOMARD::HOMARD_Gen_ptr myHomardGen );
- ~MonHomardDlg();
-
- virtual void initConnect();
-
-public slots:
- virtual void SetNomFichier();
- virtual void PushNomFichier();
- virtual void SetMaillage();
- virtual void SetNbEntites();
- virtual void Lancement();
- virtual void SetInter();
- virtual void SetBilans();
- virtual void SetConnexite();
- virtual void SetHisto();
- virtual void SetQualite();
- virtual void SetVolumes();
-
-protected :
- bool bHisto, bBilan;
- bool bNomFichier, bNomMaillage;
-
- HOMARD::HOMARD_Gen_ptr _myHomardGen;
-
- HomardConfigFile* _monCas;
-
- QString _aFile;
- QString _aMesh;
-
-private:
- static int RootInfo;
-};
-
-#endif // MONHOMARDDLG_H