Improve Top-ii-Vol dialog box layout

And add CEA to copyright
This commit is contained in:
Christophe Bourcier 2022-11-02 16:49:55 +01:00
parent df57f987dd
commit 8606805252
4 changed files with 391 additions and 461 deletions

View File

@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# Copyright (C) 2013-2022 EDF R&D
# Copyright (C) 2013-2022 CEA/DES, EDF R&D
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public

View File

@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# Copyright (C) 2013-2022 EDF R&D
# Copyright (C) 2013-2022 CEA/DES, EDF R&D
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
@ -60,7 +60,6 @@ class TopIIVolMeshPluginDialog(Ui_TopIIVolMeshMainFrame,QWidget):
self.qleTmpDir.setText(os.path.join('/tmp',getpass.getuser(),'top-ii-vol'))
except:
self.qleTmpDir.setText('/tmp')
self.resize(800, 500)
self.outputMesh = ''
def OnQpbHelpClicked(self):

View File

@ -6,22 +6,29 @@
<rect>
<x>0</x>
<y>0</y>
<width>780</width>
<height>411</height>
<width>663</width>
<height>298</height>
</rect>
</property>
<property name="windowTitle">
<string>Tetra Mesh from cloud of xyz points mesh generator</string>
</property>
<widget class="QGroupBox" name="groupBox">
<property name="geometry">
<rect>
<x>10</x>
<y>10</y>
<width>761</width>
<height>101</height>
</rect>
<layout class="QGridLayout" name="gridLayout">
<item row="1" column="0">
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="0">
<widget class="QGroupBox" name="groupBox">
<property name="font">
<font>
<pointsize>10</pointsize>
@ -30,15 +37,18 @@
<property name="title">
<string>Input Mesh</string>
</property>
<widget class="QPushButton" name="qpbMeshFile">
<property name="geometry">
<rect>
<x>10</x>
<y>50</y>
<width>151</width>
<height>31</height>
</rect>
<layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="1">
<widget class="QLineEdit" name="qleMeshFile">
<property name="font">
<font>
<pointsize>10</pointsize>
</font>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QPushButton" name="qpbMeshFile">
<property name="font">
<font>
<pointsize>10</pointsize>
@ -54,378 +64,24 @@
</size>
</property>
</widget>
<widget class="QLineEdit" name="qleMeshFile">
<property name="geometry">
<rect>
<x>170</x>
<y>50</y>
<width>531</width>
<height>31</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>10</pointsize>
</font>
</property>
</item>
</layout>
</widget>
</widget>
<widget class="QGroupBox" name="gbOptions">
<property name="geometry">
<rect>
<x>10</x>
<y>120</y>
<width>761</width>
<height>231</height>
</rect>
</item>
<item row="3" column="0">
<spacer name="verticalSpacer_2">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="title">
<string>Options</string>
</property>
<widget class="QSpinBox" name="qsbXPoints">
<property name="geometry">
<rect>
<x>10</x>
<y>30</y>
<width>62</width>
<height>22</height>
</rect>
</property>
<property name="minimum">
<number>0</number>
</property>
<property name="maximum">
<number>999999999</number>
</property>
<property name="value">
<number>10</number>
</property>
</widget>
<widget class="QLabel" name="qlXpoints">
<property name="geometry">
<rect>
<x>80</x>
<y>30</y>
<width>201</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Number of points in X direction</string>
</property>
</widget>
<widget class="QSpinBox" name="qsbYPoints">
<property name="geometry">
<rect>
<x>10</x>
<y>70</y>
<width>62</width>
<height>22</height>
</rect>
</property>
<property name="minimum">
<number>0</number>
</property>
<property name="maximum">
<number>999999999</number>
</property>
<property name="value">
<number>10</number>
</property>
</widget>
<widget class="QSpinBox" name="qsbZPoints">
<property name="geometry">
<rect>
<x>10</x>
<y>110</y>
<width>62</width>
<height>22</height>
</rect>
</property>
<property name="minimum">
<number>0</number>
</property>
<property name="maximum">
<number>999999999</number>
</property>
<property name="value">
<number>10</number>
</property>
</widget>
<widget class="QLabel" name="qlYpoints">
<property name="geometry">
<rect>
<x>80</x>
<y>70</y>
<width>211</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Number of points in Y direction</string>
</property>
</widget>
<widget class="QLabel" name="qlZpoints">
<property name="geometry">
<rect>
<x>80</x>
<y>110</y>
<width>211</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Number of points in Z direction</string>
</property>
</widget>
<widget class="QSpinBox" name="qsbDepth">
<property name="geometry">
<rect>
<x>10</x>
<y>150</y>
<width>62</width>
<height>22</height>
</rect>
</property>
<property name="minimum">
<number>-999999999</number>
</property>
<property name="maximum">
<number>999999999</number>
</property>
<property name="value">
<number>0</number>
</property>
</widget>
<widget class="QLabel" name="qlDepth">
<property name="geometry">
<rect>
<x>80</x>
<y>150</y>
<width>201</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Depth in Z direction</string>
</property>
</widget>
<widget class="QCheckBox" name="qcbDistributed">
<property name="geometry">
<rect>
<x>630</x>
<y>30</y>
<width>91</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QLabel" name="qlbNbProcs">
<property name="geometry">
<rect>
<x>370</x>
<y>30</y>
<width>151</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>Number of processors</string>
</property>
</widget>
<widget class="QLabel" name="qlDistributed">
<property name="geometry">
<rect>
<x>660</x>
<y>30</y>
<width>101</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>Distributed</string>
</property>
</widget>
<widget class="QLabel" name="qlbXParts">
<property name="geometry">
<rect>
<x>370</x>
<y>70</y>
<width>261</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>Number of partitions in X direction</string>
</property>
</widget>
<widget class="QLabel" name="qlbYParts">
<property name="geometry">
<rect>
<x>370</x>
<y>110</y>
<width>251</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>Number of partitions in Y direction</string>
</property>
</widget>
<widget class="QLabel" name="qlbZParts">
<property name="geometry">
<rect>
<x>370</x>
<y>150</y>
<width>251</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>Number of partitions in Z direction</string>
</property>
</widget>
<widget class="QSpinBox" name="qsbNBprocs">
<property name="geometry">
<rect>
<x>300</x>
<y>30</y>
<width>62</width>
<height>22</height>
</rect>
</property>
<property name="minimum">
<number>0</number>
</property>
<property name="maximum">
<number>999999999</number>
</property>
<property name="value">
<number>1</number>
</property>
</widget>
<widget class="QSpinBox" name="qsbXParts">
<property name="geometry">
<rect>
<x>300</x>
<y>70</y>
<width>62</width>
<height>22</height>
</rect>
</property>
<property name="minimum">
<number>0</number>
</property>
<property name="maximum">
<number>999999999</number>
</property>
<property name="value">
<number>1</number>
</property>
</widget>
<widget class="QSpinBox" name="qsbYParts">
<property name="geometry">
<rect>
<x>300</x>
<y>110</y>
<width>62</width>
<height>22</height>
</rect>
</property>
<property name="minimum">
<number>0</number>
</property>
<property name="maximum">
<number>999999999</number>
</property>
<property name="value">
<number>1</number>
</property>
</widget>
<widget class="QSpinBox" name="qsbZParts">
<property name="geometry">
<rect>
<x>300</x>
<y>150</y>
<width>62</width>
<height>22</height>
</rect>
</property>
<property name="minimum">
<number>0</number>
</property>
<property name="maximum">
<number>999999999</number>
</property>
<property name="value">
<number>1</number>
</property>
</widget>
<widget class="QLineEdit" name="qleTmpDir">
<property name="geometry">
<rect>
<x>10</x>
<y>200</y>
<width>611</width>
<height>23</height>
</rect>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QLabel" name="qlTmpDir">
<property name="geometry">
<rect>
<x>10</x>
<y>180</y>
<width>391</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>Workspace</string>
</property>
</widget>
<widget class="QCheckBox" name="qcbDisplayMesh">
<property name="geometry">
<rect>
<x>630</x>
<y>70</y>
<width>91</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QLabel" name="qlDisplayMesh">
<property name="geometry">
<rect>
<x>660</x>
<y>70</y>
<width>101</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>Display mesh</string>
</property>
</widget>
</widget>
<widget class="QWidget" name="layoutWidget">
<property name="geometry">
<rect>
<x>10</x>
<y>370</y>
<width>761</width>
<height>27</height>
</rect>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item row="4" column="0">
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QPushButton" name="qpbCompute">
@ -467,8 +123,283 @@
</widget>
</item>
</layout>
</item>
<item row="2" column="0">
<widget class="QGroupBox" name="gbOptions">
<property name="title">
<string>Options</string>
</property>
<layout class="QGridLayout" name="gridLayout_3">
<item row="0" column="0">
<widget class="QSpinBox" name="qsbXPoints">
<property name="minimum">
<number>0</number>
</property>
<property name="maximum">
<number>999999999</number>
</property>
<property name="value">
<number>10</number>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLabel" name="qlXpoints">
<property name="text">
<string>Number of points in X direction</string>
</property>
</widget>
</item>
<item row="0" column="2">
<spacer name="horizontalSpacer_3">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="3">
<widget class="QCheckBox" name="qcbDistributed">
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="0" column="4">
<widget class="QLabel" name="qlDistributed">
<property name="text">
<string>Distributed</string>
</property>
</widget>
</item>
<item row="0" column="5">
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="6">
<widget class="QSpinBox" name="qsbNBprocs">
<property name="minimum">
<number>0</number>
</property>
<property name="maximum">
<number>999999999</number>
</property>
<property name="value">
<number>1</number>
</property>
</widget>
</item>
<item row="0" column="7">
<widget class="QLabel" name="qlbNbProcs">
<property name="text">
<string>Number of processors</string>
</property>
</widget>
</item>
<item row="0" column="8">
<spacer name="horizontalSpacer_4">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>45</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="1" column="0">
<widget class="QSpinBox" name="qsbYPoints">
<property name="minimum">
<number>0</number>
</property>
<property name="maximum">
<number>999999999</number>
</property>
<property name="value">
<number>10</number>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QLabel" name="qlYpoints">
<property name="text">
<string>Number of points in Y direction</string>
</property>
</widget>
</item>
<item row="1" column="3">
<widget class="QCheckBox" name="qcbDisplayMesh">
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="1" column="4">
<widget class="QLabel" name="qlDisplayMesh">
<property name="text">
<string>Display mesh</string>
</property>
</widget>
</item>
<item row="1" column="6">
<widget class="QSpinBox" name="qsbXParts">
<property name="minimum">
<number>0</number>
</property>
<property name="maximum">
<number>999999999</number>
</property>
<property name="value">
<number>1</number>
</property>
</widget>
</item>
<item row="1" column="7" colspan="2">
<widget class="QLabel" name="qlbXParts">
<property name="text">
<string>Number of partitions in X direction</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QSpinBox" name="qsbZPoints">
<property name="minimum">
<number>0</number>
</property>
<property name="maximum">
<number>999999999</number>
</property>
<property name="value">
<number>10</number>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QLabel" name="qlZpoints">
<property name="text">
<string>Number of points in Z direction</string>
</property>
</widget>
</item>
<item row="2" column="6">
<widget class="QSpinBox" name="qsbYParts">
<property name="minimum">
<number>0</number>
</property>
<property name="maximum">
<number>999999999</number>
</property>
<property name="value">
<number>1</number>
</property>
</widget>
</item>
<item row="2" column="7" colspan="2">
<widget class="QLabel" name="qlbYParts">
<property name="text">
<string>Number of partitions in Y direction</string>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QSpinBox" name="qsbDepth">
<property name="minimum">
<number>-999999999</number>
</property>
<property name="maximum">
<number>999999999</number>
</property>
<property name="value">
<number>0</number>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QLabel" name="qlDepth">
<property name="text">
<string>Depth in Z direction</string>
</property>
</widget>
</item>
<item row="3" column="6">
<widget class="QSpinBox" name="qsbZParts">
<property name="minimum">
<number>0</number>
</property>
<property name="maximum">
<number>999999999</number>
</property>
<property name="value">
<number>1</number>
</property>
</widget>
</item>
<item row="3" column="7" colspan="2">
<widget class="QLabel" name="qlbZParts">
<property name="text">
<string>Number of partitions in Z direction</string>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QLabel" name="qlTmpDir">
<property name="text">
<string>Workspace</string>
</property>
</widget>
</item>
<item row="5" column="0" colspan="9">
<widget class="QLineEdit" name="qleTmpDir">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<tabstops>
<tabstop>qpbMeshFile</tabstop>
<tabstop>qleMeshFile</tabstop>
<tabstop>qsbXPoints</tabstop>
<tabstop>qsbYPoints</tabstop>
<tabstop>qsbZPoints</tabstop>
<tabstop>qsbDepth</tabstop>
<tabstop>qcbDistributed</tabstop>
<tabstop>qsbNBprocs</tabstop>
<tabstop>qsbXParts</tabstop>
<tabstop>qsbYParts</tabstop>
<tabstop>qsbZParts</tabstop>
<tabstop>qcbDisplayMesh</tabstop>
<tabstop>qleTmpDir</tabstop>
<tabstop>qpbCompute</tabstop>
<tabstop>qpbClose</tabstop>
<tabstop>qpbHelp</tabstop>
</tabstops>
<resources/>
<connections/>
</ui>

View File

@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# Copyright (C) 2013-2022 EDF R&D
# Copyright (C) 2013-2022 CEA/DES, EDF R&D
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public