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 -*- # -*- 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 # This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public # modify it under the terms of the GNU Lesser General Public

View File

@ -1,5 +1,5 @@
# -*- coding: utf-8 -*- # -*- 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 # This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public # 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')) self.qleTmpDir.setText(os.path.join('/tmp',getpass.getuser(),'top-ii-vol'))
except: except:
self.qleTmpDir.setText('/tmp') self.qleTmpDir.setText('/tmp')
self.resize(800, 500)
self.outputMesh = '' self.outputMesh = ''
def OnQpbHelpClicked(self): def OnQpbHelpClicked(self):

View File

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

View File

@ -1,5 +1,5 @@
# -*- coding: utf-8 -*- # -*- 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 # This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public # modify it under the terms of the GNU Lesser General Public