- int index = 0;
-
- // object
- QLabel* aNameLab = new QLabel( tr( "NAME_LAB" ), this );
- QLabel* aName = createField();
- aName->setObjectName("meshName");
- aName->setMinimumWidth( 150 );
- QLabel* aObjLab = new QLabel( tr( "OBJECT_LAB" ), this );
- QLabel* aObj = createField();
- aObj->setObjectName("meshType");
- aObj->setMinimumWidth( 150 );
- myWidgets[ index++ ] << aNameLab << aName;
- myWidgets[ index++ ] << aObjLab << aObj;
-
- // nodes
- QWidget* aNodesLine = createLine();
- QLabel* aNodesLab = new QLabel( tr( "NODES_LAB" ), this );
- QLabel* aNodes = createField();
- aNodes->setObjectName("nbNodes");
- myWidgets[ index++ ] << aNodesLine;
- myWidgets[ index++ ] << aNodesLab << aNodes;
-
- // elements
- QWidget* aElemLine = createLine();
- QLabel* aElemLab = new QLabel( tr( "ELEMENTS_LAB" ), this );
- QLabel* aElemTotal = new QLabel( tr( "TOTAL_LAB" ), this );
- QLabel* aElemLin = new QLabel( tr( "LINEAR_LAB" ), this );
- QLabel* aElemQuad = new QLabel( tr( "QUADRATIC_LAB" ), this );
- QLabel* aElemBiQuad = new QLabel( tr( "BI_QUADRATIC_LAB" ), this );
- myWidgets[ index++ ] << aElemLine;
- myWidgets[ index++ ] << aElemLab << aElemTotal << aElemLin << aElemQuad << aElemBiQuad;
-
- // ... Number elements
- QWidget* aNbLine = createLine();
- QLabel* aNbTotal = createField();
- aNbTotal->setObjectName("totalNbElems");
- QLabel* aNbLin = createField();
- aNbLin->setObjectName("totalNbLinearElems");
- QLabel* aNbQuad = createField();
- aNbQuad->setObjectName("totalNbQuadraticElems");
- QLabel* aNbBiQuad = createField();
- aNbBiQuad->setObjectName("totalNbBiQuadraticElems");
- myWidgets[ index++ ] << aNbLine;
- myWidgets[ index++ ] << new QLabel( "", this ) << aNbTotal << aNbLin << aNbQuad << aNbBiQuad;
-
- // ... 0D elements
- QWidget* a0DLine = createLine();
- QLabel* a0DLab = new QLabel( tr( "0D_LAB" ), this );
- QLabel* a0DTotal = createField();
- a0DTotal->setObjectName("nb0D");
-
- myWidgets[ index++ ] << a0DLine;
- myWidgets[ index++ ] << a0DLab << a0DTotal;
-
- // ... Ball elements
- QWidget* aBallLine = createLine();
- QLabel* aBallLab = new QLabel( tr( "BALL_LAB" ), this );
- QLabel* aBallTotal = createField();
- aBallTotal->setObjectName("nbBall");
- myWidgets[ index++ ] << aBallLine;
- myWidgets[ index++ ] << aBallLab << aBallTotal;
-
- // ... 1D elements
- QWidget* a1DLine = createLine();
- QLabel* a1DLab = new QLabel( tr( "1D_LAB" ), this );
- QLabel* a1DTotal = createField();
- a1DTotal->setObjectName("nb1D");
- QLabel* a1DLin = createField();
- a1DLin->setObjectName("nbLinear1D");
- QLabel* a1DQuad = createField();
- a1DQuad->setObjectName("nbQuadratic1D");
- myWidgets[ index++ ] << a1DLine;
- myWidgets[ index++ ] << a1DLab << a1DTotal << a1DLin << a1DQuad;
-
- // ... 2D elements
- QWidget* a2DLine = createLine();
- QLabel* a2DLab = new QLabel( tr( "2D_LAB" ), this );
- QLabel* a2DTotal = createField();
- a2DTotal->setObjectName("nb2D");
- QLabel* a2DLin = createField();
- a2DLin->setObjectName("nbLinear2D");
- QLabel* a2DQuad = createField();
- a2DQuad->setObjectName("nbQuadratic2D");
- QLabel* a2DBiQuad = createField();
- a2DBiQuad->setObjectName("nbBiQuadratic2D");
- QLabel* a2DTriLab = new QLabel( tr( "TRIANGLES_LAB" ), this );
- QLabel* a2DTriTotal = createField();
- a2DTriTotal->setObjectName("nbTriangle");
- QLabel* a2DTriLin = createField();
- a2DTriLin->setObjectName("nbLinearTriangle");
- QLabel* a2DTriQuad = createField();
- a2DTriQuad->setObjectName("nbQuadraticTriangle");
- QLabel* a2DTriBiQuad = createField();
- a2DTriBiQuad->setObjectName("nbBiQuadraticTriangle");
- QLabel* a2DQuaLab = new QLabel( tr( "QUADRANGLES_LAB" ), this );
- QLabel* a2DQuaTotal = createField();
- a2DQuaTotal->setObjectName("nbQuadrangle");
- QLabel* a2DQuaLin = createField();
- a2DQuaLin->setObjectName("nbLinearQuadrangle");
- QLabel* a2DQuaQuad = createField();
- a2DQuaQuad->setObjectName("nbQuadraticQuadrangle");
- QLabel* a2DQuaBiQuad = createField();
- a2DQuaBiQuad->setObjectName("nbBiQuadraticQuadrangle");
- QLabel* a2DPolLab = new QLabel( tr( "POLYGONS_LAB" ), this );
- QLabel* a2DPolTotal = createField();
- a2DPolTotal->setObjectName("nbPolygon");
- QLabel* a2DPolLin = createField();
- a2DPolLin->setObjectName("nbLinearPolygon");
- QLabel* a2DPolQuad = createField();
- a2DPolQuad->setObjectName("nbQuadraticPolygon");
- myWidgets[ index++ ] << a2DLine;
- myWidgets[ index++ ] << a2DLab << a2DTotal << a2DLin << a2DQuad << a2DBiQuad;
- myWidgets[ index++ ] << a2DTriLab << a2DTriTotal << a2DTriLin << a2DTriQuad << a2DTriBiQuad;
- myWidgets[ index++ ] << a2DQuaLab << a2DQuaTotal << a2DQuaLin << a2DQuaQuad << a2DQuaBiQuad;
- myWidgets[ index++ ] << a2DPolLab << a2DPolTotal << a2DPolLin << a2DPolQuad;
-
- // ... 3D elements
- QWidget* a3DLine = createLine();
- QLabel* a3DLab = new QLabel( tr( "3D_LAB" ), this );
- QLabel* a3DTotal = createField();
- a3DTotal->setObjectName("nb3D");
- QLabel* a3DLin = createField();
- a3DLin->setObjectName("nbLinear3D");
- QLabel* a3DQuad = createField();
- a3DQuad->setObjectName("nbQuadratic3D");
- QLabel* a3DBiQuad = createField();
- a3DBiQuad->setObjectName("nbBiQuadratic3D");
- QLabel* a3DTetLab = new QLabel( tr( "TETRAHEDRONS_LAB" ), this );
- QLabel* a3DTetTotal = createField();
- a3DTetTotal->setObjectName("nbTetrahedron");
- QLabel* a3DTetLin = createField();
- a3DTetLin->setObjectName("nbLinearTetrahedron");
- QLabel* a3DTetQuad = createField();
- a3DTetQuad->setObjectName("nbQudraticTetrahedron");
- QLabel* a3DHexLab = new QLabel( tr( "HEXAHEDONRS_LAB" ), this );
- QLabel* a3DHexTotal = createField();
- a3DHexTotal->setObjectName("nbHexahedron");
- QLabel* a3DHexLin = createField();
- a3DHexLin->setObjectName("nbLinearHexahedron");
- QLabel* a3DHexQuad = createField();
- a3DHexQuad->setObjectName("nbQuadraticHexahedron");
- QLabel* a3DHexBiQuad = createField();
- a3DHexBiQuad->setObjectName("nbBiQuadraticHexahedron");
- QLabel* a3DPyrLab = new QLabel( tr( "PYRAMIDS_LAB" ), this );
- QLabel* a3DPyrTotal = createField();
- a3DPyrTotal->setObjectName("nbPyramid");
- QLabel* a3DPyrLin = createField();
- a3DPyrLin->setObjectName("nbLinearPyramid");
- QLabel* a3DPyrQuad = createField();
- a3DPyrQuad->setObjectName("nbQuadraticPyramid");
- QLabel* a3DPriLab = new QLabel( tr( "PRISMS_LAB" ), this );
- QLabel* a3DPriTotal = createField();
- a3DPriTotal->setObjectName("nbPrism");
- QLabel* a3DPriLin = createField();
- a3DPriLin->setObjectName("nbLinearPrism");
- QLabel* a3DPriQuad = createField();
- a3DPriQuad->setObjectName("nbQuadraticPrism");
- QLabel* a3DPriBiQuad = createField();
- a3DPriBiQuad->setObjectName("nbBiQuadraticPrism");
- QLabel* a3DHexPriLab = new QLabel( tr( "HEX_PRISMS_LAB" ), this );
- QLabel* a3DHexPriTotal = createField();
- a3DHexPriTotal->setObjectName("nbHexagonalPrism");
- QLabel* a3DPolLab = new QLabel( tr( "POLYHEDRONS_LAB" ), this );
- QLabel* a3DPolTotal = createField();
- a3DPolTotal->setObjectName("nbPolyhedron");
- myWidgets[ index++ ] << a3DLine;
- myWidgets[ index++ ] << a3DLab << a3DTotal << a3DLin << a3DQuad << a3DBiQuad;
- myWidgets[ index++ ] << a3DTetLab << a3DTetTotal << a3DTetLin << a3DTetQuad;
- myWidgets[ index++ ] << a3DHexLab << a3DHexTotal << a3DHexLin << a3DHexQuad << a3DHexBiQuad;
- myWidgets[ index++ ] << a3DPyrLab << a3DPyrTotal << a3DPyrLin << a3DPyrQuad;
- myWidgets[ index++ ] << a3DPriLab << a3DPriTotal << a3DPriLin << a3DPriQuad << a3DPriBiQuad;
- myWidgets[ index++ ] << a3DHexPriLab << a3DHexPriTotal;
- myWidgets[ index++ ] << a3DPolLab << a3DPolTotal;
-
- myLoadBtn = new QPushButton( tr( "BUT_LOAD_MESH" ), this );
- myLoadBtn->setAutoDefault( true );
- connect( myLoadBtn, SIGNAL( clicked() ), this, SLOT( loadMesh() ));
-
- setFontAttributes( aNameLab, Bold );
- setFontAttributes( aObjLab, Bold );
- setFontAttributes( aNodesLab, Bold );
- setFontAttributes( aElemLab, Bold );
- setFontAttributes( aElemTotal, Italic );
- setFontAttributes( aElemLin, Italic );
- setFontAttributes( aElemQuad, Italic );
- setFontAttributes( aElemBiQuad, Italic );
- setFontAttributes( a0DLab, Bold );
- setFontAttributes( aBallLab, Bold );
- setFontAttributes( a1DLab, Bold );
- setFontAttributes( a2DLab, Bold );
- setFontAttributes( a3DLab, Bold );
-
- l->addWidget( aNameLab, 0, 0 );
- l->addWidget( aName, 0, 1, 1, 4 );
- l->addWidget( aObjLab, 1, 0 );
- l->addWidget( aObj, 1, 1, 1, 4 );
- l->addWidget( aNodesLine, 2, 0, 1, 5 );
- l->addWidget( aNodesLab, 3, 0 );
- l->addWidget( aNodes, 3, 1 );
- l->addWidget( aElemLine, 4, 0, 1, 5 );
- l->addWidget( aElemLab, 5, 0 );
- l->addWidget( aElemTotal, 5, 1 );
- l->addWidget( aElemLin, 5, 2 );
- l->addWidget( aElemQuad, 5, 3 );
- l->addWidget( aElemBiQuad, 5, 4 );
- l->addWidget( aNbLine, 6, 1, 1, 4 );
- l->addWidget( aNbTotal, 7, 1 );
- l->addWidget( aNbLin, 7, 2 );
- l->addWidget( aNbQuad, 7, 3 );
- l->addWidget( aNbBiQuad, 7, 4 );
- l->addWidget( a0DLine, 8, 1, 1, 4 );
- l->addWidget( a0DLab, 9, 0 );
- l->addWidget( a0DTotal, 9, 1 );
- l->addWidget( aBallLine, 10, 1, 1, 4 );
- l->addWidget( aBallLab, 11, 0 );
- l->addWidget( aBallTotal, 11, 1 );
- l->addWidget( a1DLine, 12, 1, 1, 4 );
- l->addWidget( a1DLab, 13, 0 );
- l->addWidget( a1DTotal, 13, 1 );
- l->addWidget( a1DLin, 13, 2 );
- l->addWidget( a1DQuad, 13, 3 );
- l->addWidget( a2DLine, 14, 1, 1, 4 );
- l->addWidget( a2DLab, 15, 0 );
- l->addWidget( a2DTotal, 15, 1 );
- l->addWidget( a2DLin, 15, 2 );
- l->addWidget( a2DQuad, 15, 3 );
- l->addWidget( a2DBiQuad, 15, 4 );
- l->addWidget( a2DTriLab, 16, 0 );
- l->addWidget( a2DTriTotal, 16, 1 );
- l->addWidget( a2DTriLin, 16, 2 );
- l->addWidget( a2DTriQuad, 16, 3 );
- l->addWidget( a2DTriBiQuad, 16, 4 );
- l->addWidget( a2DQuaLab, 17, 0 );
- l->addWidget( a2DQuaTotal, 17, 1 );
- l->addWidget( a2DQuaLin, 17, 2 );
- l->addWidget( a2DQuaQuad, 17, 3 );
- l->addWidget( a2DQuaBiQuad, 17, 4 );
- l->addWidget( a2DPolLab, 18, 0 );
- l->addWidget( a2DPolTotal, 18, 1 );
- l->addWidget( a2DPolLin, 18, 2 );
- l->addWidget( a2DPolQuad, 18, 3 );
- l->addWidget( a3DLine, 19, 1, 1, 4 );
- l->addWidget( a3DLab, 20, 0 );
- l->addWidget( a3DTotal, 20, 1 );
- l->addWidget( a3DLin, 20, 2 );
- l->addWidget( a3DQuad, 20, 3 );
- l->addWidget( a3DBiQuad, 20, 4 );
- l->addWidget( a3DTetLab, 21, 0 );
- l->addWidget( a3DTetTotal, 21, 1 );
- l->addWidget( a3DTetLin, 21, 2 );
- l->addWidget( a3DTetQuad, 21, 3 );
- l->addWidget( a3DHexLab, 22, 0 );
- l->addWidget( a3DHexTotal, 22, 1 );
- l->addWidget( a3DHexLin, 22, 2 );
- l->addWidget( a3DHexQuad, 22, 3 );
- l->addWidget( a3DHexBiQuad, 22, 4 );
- l->addWidget( a3DPyrLab, 23, 0 );
- l->addWidget( a3DPyrTotal, 23, 1 );
- l->addWidget( a3DPyrLin, 23, 2 );
- l->addWidget( a3DPyrQuad, 23, 3 );
- l->addWidget( a3DPriLab, 24, 0 );
- l->addWidget( a3DPriTotal, 24, 1 );
- l->addWidget( a3DPriLin, 24, 2 );
- l->addWidget( a3DPriQuad, 24, 3 );
- l->addWidget( a3DPriBiQuad, 24, 4 );
- l->addWidget( a3DHexPriLab, 25, 0 );
- l->addWidget( a3DHexPriTotal, 25, 1 );
- l->addWidget( a3DPolLab, 26, 0 );
- l->addWidget( a3DPolTotal, 26, 1 );
- l->addWidget( myLoadBtn, 28, 1, 1, 4 );
-
- l->setColumnStretch( 0, 0 );
- l->setColumnStretch( 1, 5 );
- l->setColumnStretch( 2, 5 );
- l->setColumnStretch( 3, 5 );
- l->setColumnStretch( 4, 5 );
- l->setRowStretch( 27, 5 );
-
+ // object info
+ // - name
+ addWidget( createLabel( tr( "NAME_LAB" ), this, Bold ), iName, iLabel );
+ addWidget( createField( this, "meshName" ), iName, iSingle, 4 )->setMinimumWidth( 150 );
+ // - type
+ addWidget( createLabel( tr( "OBJECT_LAB" ), this, Bold ), iObject, iLabel );
+ addWidget( createField( this, "meshType" ), iObject, iSingle, 4 )->setMinimumWidth( 150 );
+ // - --- (separator)
+ addWidget( createSeparator( this ), iObjectEnd, iLabel, 5 );
+
+ // node info
+ // - info
+ addWidget( createLabel( tr( "NODES_LAB" ), this, Bold ), iNodes, iLabel );
+ addWidget( createField( this, "nbNodes" ), iNodes, iTotal );
+ // - --- (separator)
+ addWidget( createSeparator( this ), iNodesEnd, iLabel, 5 );
+
+ // element info
+ // - title
+ addWidget( createLabel( tr( "ELEMENTS_LAB" ), this, Bold ), iElementsTitle, iLabel );
+ addWidget( createLabel( tr( "TOTAL_LAB" ), this, Italic ), iElementsTitle, iTotal );
+ addWidget( createLabel( tr( "LINEAR_LAB" ), this, Italic ), iElementsTitle, iLinear );
+ addWidget( createLabel( tr( "QUADRATIC_LAB" ), this, Italic ), iElementsTitle, iQuadratic );
+ addWidget( createLabel( tr( "BI_QUADRATIC_LAB" ), this, Italic ), iElementsTitle, iBiQuadratic );
+ // - --- (separator)
+ addWidget( createSeparator( this ), iElementsTitleEnd, iTotal, 4 );
+ // - summary
+ addWidget( createField( this, "totalNbElems" ), iElementsTotal, iTotal );
+ addWidget( createField( this, "totalNbLinearElems" ), iElementsTotal, iLinear );
+ addWidget( createField( this, "totalNbQuadraticElems" ), iElementsTotal, iQuadratic );
+ addWidget( createField( this, "totalNbBiQuadraticElems" ), iElementsTotal, iBiQuadratic );
+ // - --- (separator)
+ addWidget( createSeparator( this ), iElementsTotalEnd, iTotal, 4 );
+ // - 0D elements info
+ addWidget( createLabel( tr( "0D_LAB" ), this, Bold | Italic ), i0D, iLabel );
+ addWidget( createField( this, "nb0D" ), i0D, iTotal );
+ // - --- (separator)
+ addWidget( createSeparator( this ), i0DEnd, iTotal, 4 );
+ // - balls info
+ addWidget( createLabel( tr( "BALL_LAB" ), this, Bold | Italic ), iBalls, iLabel );
+ addWidget( createField( this, "nbBall" ), iBalls, iTotal );
+ // - --- (separator)
+ addWidget( createSeparator( this ), iBallsEnd, iTotal, 4 );
+ // - 1D elements info
+ addWidget( createLabel( tr( "1D_LAB" ), this, Bold | Italic ), i1D, iLabel );
+ addWidget( createField( this, "nb1D" ), i1D, iTotal );
+ addWidget( createField( this, "nbLinear1D" ), i1D, iLinear );
+ addWidget( createField( this, "nbQuadratic1D" ), i1D, iQuadratic );
+ // - --- (separator)
+ addWidget( createSeparator( this ), i1DEnd, iTotal, 4 );
+ // - 2D elements info
+ // --+ summary
+ addWidget( createLabel( tr( "2D_LAB" ), this, Bold | Italic ), i2D, iLabel );
+ addWidget( createField( this, "nb2D" ), i2D, iTotal );
+ addWidget( createField( this, "nbLinear2D" ), i2D, iLinear );
+ addWidget( createField( this, "nbQuadratic2D" ), i2D, iQuadratic );
+ addWidget( createField( this, "nbBiQuadratic2D" ), i2D, iBiQuadratic );
+ // --+ triangles
+ addWidget( createLabel( tr( "TRIANGLES_LAB" ), this, Italic ), i2DTriangles, iLabel );
+ addWidget( createField( this, Italic, "nbTriangle" ), i2DTriangles, iTotal );
+ addWidget( createField( this, Italic, "nbLinearTriangle" ), i2DTriangles, iLinear );
+ addWidget( createField( this, Italic, "nbQuadraticTriangle" ), i2DTriangles, iQuadratic );
+ addWidget( createField( this, Italic, "nbBiQuadraticTriangle" ), i2DTriangles, iBiQuadratic );
+ // --+ quadrangles
+ addWidget( createLabel( tr( "QUADRANGLES_LAB" ), this, Italic ), i2DQuadrangles, iLabel );
+ addWidget( createField( this, Italic, "nbQuadrangle" ), i2DQuadrangles, iTotal );
+ addWidget( createField( this, Italic, "nbLinearQuadrangle" ), i2DQuadrangles, iLinear );
+ addWidget( createField( this, Italic, "nbQuadraticQuadrangle" ), i2DQuadrangles, iQuadratic );
+ addWidget( createField( this, Italic, "nbBiQuadraticQuadrangle" ), i2DQuadrangles, iBiQuadratic );
+ // --+ polygons
+ addWidget( createLabel( tr( "POLYGONS_LAB" ), this, Italic ), i2DPolygons, iLabel );
+ addWidget( createField( this, Italic, "nbPolygon" ), i2DPolygons, iTotal );
+ addWidget( createField( this, Italic, "nbLinearPolygon" ), i2DPolygons, iLinear );
+ addWidget( createField( this, Italic, "nbQuadraticPolygon" ), i2DPolygons, iQuadratic );
+ // - --- (separator)
+ addWidget( createSeparator( this ), i2DEnd, iTotal, 4 );
+ // - 3D elements info
+ // --+ summary
+ addWidget( createLabel( tr( "3D_LAB" ), this, Bold | Italic ), i3D, iLabel );
+ addWidget( createField( this, "nb3D" ), i3D, iTotal );
+ addWidget( createField( this, "nbLinear3D" ), i3D, iLinear );
+ addWidget( createField( this, "nbQuadratic3D" ), i3D, iQuadratic );
+ addWidget( createField( this, "nbBiQuadratic3D" ), i3D, iBiQuadratic );
+ // --+ tetras
+ addWidget( createLabel( tr( "TETRAHEDRONS_LAB" ), this, Italic ), i3DTetrahedrons, iLabel );
+ addWidget( createField( this, Italic, "nbTetrahedron" ), i3DTetrahedrons, iTotal );
+ addWidget( createField( this, Italic, "nbLinearTetrahedron" ), i3DTetrahedrons, iLinear );
+ addWidget( createField( this, Italic, "nbQudraticTetrahedron" ), i3DTetrahedrons, iQuadratic );
+ // --+ hexas
+ addWidget( createLabel( tr( "HEXAHEDONRS_LAB" ), this, Italic ), i3DHexahedrons, iLabel );
+ addWidget( createField( this, Italic, "nbHexahedron" ), i3DHexahedrons, iTotal );
+ addWidget( createField( this, Italic, "nbLinearHexahedron" ), i3DHexahedrons, iLinear );
+ addWidget( createField( this, Italic, "nbQuadraticHexahedron" ), i3DHexahedrons, iQuadratic );
+ addWidget( createField( this, Italic, "nbBiQuadraticHexahedron" ), i3DHexahedrons, iBiQuadratic );
+ // --+ pyramids
+ addWidget( createLabel( tr( "PYRAMIDS_LAB" ), this, Italic ), i3DPyramids, iLabel );
+ addWidget( createField( this, Italic, "nbPyramid" ), i3DPyramids, iTotal );
+ addWidget( createField( this, Italic, "nbLinearPyramid" ), i3DPyramids, iLinear );
+ addWidget( createField( this, Italic, "nbQuadraticPyramid" ), i3DPyramids, iQuadratic );
+ // --+ prisms
+ addWidget( createLabel( tr( "PRISMS_LAB" ), this, Italic ), i3DPrisms, iLabel );
+ addWidget( createField( this, Italic, "nbPrism" ), i3DPrisms, iTotal );
+ addWidget( createField( this, Italic, "nbLinearPrism" ), i3DPrisms, iLinear );
+ addWidget( createField( this, Italic, "nbQuadraticPrism" ), i3DPrisms, iQuadratic );
+ addWidget( createField( this, Italic, "nbBiQuadraticPrism" ), i3DPrisms, iBiQuadratic );
+ // --+ hexagonal prisms
+ addWidget( createLabel( tr( "HEX_PRISMS_LAB" ), this, Italic ), i3DHexaPrisms, iLabel );
+ addWidget( createField( this, Italic, "nbHexagonalPrism" ), i3DHexaPrisms, iTotal );
+ // --+ polyhedrons
+ addWidget( createLabel( tr( "POLYHEDRONS_LAB" ), this, Italic ), i3DPolyhedrons, iLabel );
+ addWidget( createField( this, Italic, "nbPolyhedron" ), i3DPolyhedrons, iTotal );
+
+ // load button
+ QPushButton* loadBtn = new QPushButton( tr( "BUT_LOAD_MESH" ), this );
+ loadBtn->setAutoDefault( true );
+ connect( loadBtn, SIGNAL( clicked() ), this, SLOT( loadMesh() ) );
+ addWidget( loadBtn, iEnd, iSingle, 4 );
+
+ // additional layout set-up
+ l->setColumnStretch( iLabel, 0 );
+ l->setColumnStretch( iTotal, 5 );
+ l->setColumnStretch( iLinear, 5 );
+ l->setColumnStretch( iQuadratic, 5 );
+ l->setColumnStretch( iBiQuadratic, 5 );
+ l->setRowStretch( iElementsEnd, 5 );
+
+ // set initial values