PaIRS-UniNa 0.2.4__cp311-cp311-macosx_10_9_universal2.whl → 0.2.5__cp311-cp311-macosx_10_9_universal2.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of PaIRS-UniNa might be problematic. Click here for more details.
- PaIRS_UniNa/Changes.txt +23 -0
- PaIRS_UniNa/Custom_Top.py +1 -1
- PaIRS_UniNa/Explorer.py +3059 -3049
- PaIRS_UniNa/FolderLoop.py +371 -371
- PaIRS_UniNa/Input_Tab.py +714 -709
- PaIRS_UniNa/Input_Tab_tools.py +3017 -3009
- PaIRS_UniNa/Output_Tab.py +2 -2
- PaIRS_UniNa/PaIRS.py +17 -17
- PaIRS_UniNa/PaIRS_PIV.py +56 -1
- PaIRS_UniNa/PaIRS_pypacks.py +143 -6
- PaIRS_UniNa/Process_Tab.py +6 -11
- PaIRS_UniNa/Process_Tab_Disp.py +8 -3
- PaIRS_UniNa/Saving_tools.py +277 -277
- PaIRS_UniNa/TabTools.py +56 -17
- PaIRS_UniNa/Vis_Tab.py +237 -78
- PaIRS_UniNa/Whatsnew.py +2 -0
- PaIRS_UniNa/_PaIRS_PIV.so +0 -0
- PaIRS_UniNa/__init__.py +2 -2
- PaIRS_UniNa/gPaIRS.py +3745 -3600
- PaIRS_UniNa/icons/pylog.png +0 -0
- PaIRS_UniNa/icons/python_warning.png +0 -0
- PaIRS_UniNa/icons/queue.png +0 -0
- PaIRS_UniNa/icons/uninitialized.png +0 -0
- PaIRS_UniNa/icons/window.png +0 -0
- PaIRS_UniNa/listLib.py +301 -301
- PaIRS_UniNa/parForMulti.py +433 -433
- PaIRS_UniNa/parForWorkers.py +46 -1
- PaIRS_UniNa/procTools.py +17 -7
- PaIRS_UniNa/rqrdpckgs.txt +8 -0
- PaIRS_UniNa/stereo.py +683 -683
- PaIRS_UniNa/tabSplitter.py +606 -606
- PaIRS_UniNa/ui_Calibration_Tab.py +542 -542
- PaIRS_UniNa/ui_Custom_Top.py +294 -294
- PaIRS_UniNa/ui_Input_Tab.py +1098 -1098
- PaIRS_UniNa/ui_Input_Tab_CalVi.py +1280 -1280
- PaIRS_UniNa/ui_Log_Tab.py +261 -261
- PaIRS_UniNa/ui_Output_Tab.py +2360 -2360
- PaIRS_UniNa/ui_Process_Tab.py +3808 -3808
- PaIRS_UniNa/ui_Process_Tab_CalVi.py +1547 -1547
- PaIRS_UniNa/ui_Process_Tab_Disp.py +1139 -968
- PaIRS_UniNa/ui_Process_Tab_Min.py +435 -435
- PaIRS_UniNa/ui_ResizePopup.py +203 -203
- PaIRS_UniNa/ui_Vis_Tab.py +1626 -1533
- PaIRS_UniNa/ui_Vis_Tab_CalVi.py +1249 -1249
- PaIRS_UniNa/ui_Whatsnew.py +131 -131
- PaIRS_UniNa/ui_gPairs.py +867 -849
- PaIRS_UniNa/ui_infoPaIRS.py +550 -428
- PaIRS_UniNa/whatsnew.txt +5 -4
- {PaIRS_UniNa-0.2.4.dist-info → pairs_unina-0.2.5.dist-info}/METADATA +38 -26
- {PaIRS_UniNa-0.2.4.dist-info → pairs_unina-0.2.5.dist-info}/RECORD +52 -52
- {PaIRS_UniNa-0.2.4.dist-info → pairs_unina-0.2.5.dist-info}/WHEEL +1 -1
- PaIRS_UniNa/icons/order.png +0 -0
- PaIRS_UniNa/icons/order_reverse.png +0 -0
- PaIRS_UniNa/icons/pencil_bw.png +0 -0
- PaIRS_UniNa/icons/run_piv.png +0 -0
- PaIRS_UniNa-0.2.4.dist-info/LICENSE +0 -19
- {PaIRS_UniNa-0.2.4.dist-info → pairs_unina-0.2.5.dist-info}/top_level.txt +0 -0
PaIRS_UniNa/ui_Custom_Top.py
CHANGED
|
@@ -1,296 +1,296 @@
|
|
|
1
1
|
from .addwidgets_ps import icons_path
|
|
2
|
-
# -*- coding: utf-8 -*-
|
|
3
|
-
|
|
4
|
-
################################################################################
|
|
5
|
-
## Form generated from reading UI file 'Custom_Top.ui'
|
|
6
|
-
##
|
|
7
|
-
## Created by: Qt User Interface Compiler version 6.7.0
|
|
8
|
-
##
|
|
9
|
-
## WARNING! All changes made in this file will be lost when recompiling UI file!
|
|
10
|
-
################################################################################
|
|
11
|
-
|
|
12
|
-
from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,
|
|
13
|
-
QMetaObject, QObject, QPoint, QRect,
|
|
14
|
-
QSize, QTime, QUrl, Qt)
|
|
15
|
-
from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
|
|
16
|
-
QFont, QFontDatabase, QGradient, QIcon,
|
|
17
|
-
QImage, QKeySequence, QLinearGradient, QPainter,
|
|
18
|
-
QPalette, QPixmap, QRadialGradient, QTransform)
|
|
19
|
-
from PySide6.QtWidgets import (QAbstractItemView, QApplication, QHBoxLayout, QHeaderView,
|
|
20
|
-
QLabel, QPushButton, QSizePolicy, QSpacerItem,
|
|
21
|
-
QToolButton, QTreeWidgetItem, QVBoxLayout, QWidget)
|
|
22
|
-
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
|
|
4
|
+
################################################################################
|
|
5
|
+
## Form generated from reading UI file 'Custom_Top.ui'
|
|
6
|
+
##
|
|
7
|
+
## Created by: Qt User Interface Compiler version 6.7.0
|
|
8
|
+
##
|
|
9
|
+
## WARNING! All changes made in this file will be lost when recompiling UI file!
|
|
10
|
+
################################################################################
|
|
11
|
+
|
|
12
|
+
from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,
|
|
13
|
+
QMetaObject, QObject, QPoint, QRect,
|
|
14
|
+
QSize, QTime, QUrl, Qt)
|
|
15
|
+
from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
|
|
16
|
+
QFont, QFontDatabase, QGradient, QIcon,
|
|
17
|
+
QImage, QKeySequence, QLinearGradient, QPainter,
|
|
18
|
+
QPalette, QPixmap, QRadialGradient, QTransform)
|
|
19
|
+
from PySide6.QtWidgets import (QAbstractItemView, QApplication, QHBoxLayout, QHeaderView,
|
|
20
|
+
QLabel, QPushButton, QSizePolicy, QSpacerItem,
|
|
21
|
+
QToolButton, QTreeWidgetItem, QVBoxLayout, QWidget)
|
|
22
|
+
|
|
23
23
|
from .addwidgets_ps import myQTreeWidget
|
|
24
|
-
|
|
25
|
-
class Ui_Custom_Top(object):
|
|
26
|
-
def setupUi(self, Custom_Top):
|
|
27
|
-
if not Custom_Top.objectName():
|
|
28
|
-
Custom_Top.setObjectName(u"Custom_Top")
|
|
29
|
-
Custom_Top.resize(480, 480)
|
|
30
|
-
Custom_Top.setMinimumSize(QSize(25, 25))
|
|
31
|
-
icon = QIcon()
|
|
32
|
-
icon.addFile(u""+ icons_path +"process_logo.png", QSize(), QIcon.Normal, QIcon.Off)
|
|
33
|
-
Custom_Top.setWindowIcon(icon)
|
|
34
|
-
self.verticalLayout = QVBoxLayout(Custom_Top)
|
|
35
|
-
self.verticalLayout.setSpacing(3)
|
|
36
|
-
self.verticalLayout.setObjectName(u"verticalLayout")
|
|
37
|
-
self.verticalLayout.setContentsMargins(10, 10, 10, 10)
|
|
38
|
-
self.w_controls = QWidget(Custom_Top)
|
|
39
|
-
self.w_controls.setObjectName(u"w_controls")
|
|
40
|
-
self.w_controls.setMinimumSize(QSize(0, 25))
|
|
41
|
-
self.w_controls.setMaximumSize(QSize(16777215, 25))
|
|
42
|
-
self.horizontalLayout = QHBoxLayout(self.w_controls)
|
|
43
|
-
self.horizontalLayout.setSpacing(5)
|
|
44
|
-
self.horizontalLayout.setObjectName(u"horizontalLayout")
|
|
45
|
-
self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
|
|
46
|
-
self.label_tree = QLabel(self.w_controls)
|
|
47
|
-
self.label_tree.setObjectName(u"label_tree")
|
|
48
|
-
sizePolicy = QSizePolicy(QSizePolicy.Policy.Preferred, QSizePolicy.Policy.Fixed)
|
|
49
|
-
sizePolicy.setHorizontalStretch(0)
|
|
50
|
-
sizePolicy.setVerticalStretch(0)
|
|
51
|
-
sizePolicy.setHeightForWidth(self.label_tree.sizePolicy().hasHeightForWidth())
|
|
52
|
-
self.label_tree.setSizePolicy(sizePolicy)
|
|
53
|
-
self.label_tree.setMinimumSize(QSize(0, 20))
|
|
54
|
-
self.label_tree.setMaximumSize(QSize(150, 20))
|
|
55
|
-
font = QFont()
|
|
56
|
-
font.setPointSize(10)
|
|
57
|
-
font.setBold(False)
|
|
58
|
-
font.setItalic(True)
|
|
59
|
-
self.label_tree.setFont(font)
|
|
60
|
-
self.label_tree.setAlignment(Qt.AlignLeading|Qt.AlignLeft|Qt.AlignVCenter)
|
|
61
|
-
|
|
62
|
-
self.horizontalLayout.addWidget(self.label_tree)
|
|
63
|
-
|
|
64
|
-
self.hs = QSpacerItem(40, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum)
|
|
65
|
-
|
|
66
|
-
self.horizontalLayout.addItem(self.hs)
|
|
67
|
-
|
|
68
|
-
self.button_down = QToolButton(self.w_controls)
|
|
69
|
-
self.button_down.setObjectName(u"button_down")
|
|
70
|
-
self.button_down.setMinimumSize(QSize(25, 25))
|
|
71
|
-
self.button_down.setMaximumSize(QSize(25, 25))
|
|
72
|
-
icon1 = QIcon()
|
|
73
|
-
icon1.addFile(u""+ icons_path +"down.png", QSize(), QIcon.Normal, QIcon.Off)
|
|
74
|
-
self.button_down.setIcon(icon1)
|
|
75
|
-
self.button_down.setIconSize(QSize(18, 18))
|
|
76
|
-
self.button_down.setArrowType(Qt.NoArrow)
|
|
77
|
-
|
|
78
|
-
self.horizontalLayout.addWidget(self.button_down)
|
|
79
|
-
|
|
80
|
-
self.button_up = QToolButton(self.w_controls)
|
|
81
|
-
self.button_up.setObjectName(u"button_up")
|
|
82
|
-
self.button_up.setMinimumSize(QSize(25, 25))
|
|
83
|
-
self.button_up.setMaximumSize(QSize(25, 25))
|
|
84
|
-
icon2 = QIcon()
|
|
85
|
-
icon2.addFile(u""+ icons_path +"up.png", QSize(), QIcon.Normal, QIcon.Off)
|
|
86
|
-
self.button_up.setIcon(icon2)
|
|
87
|
-
self.button_up.setIconSize(QSize(18, 18))
|
|
88
|
-
self.button_up.setArrowType(Qt.NoArrow)
|
|
89
|
-
|
|
90
|
-
self.horizontalLayout.addWidget(self.button_up)
|
|
91
|
-
|
|
92
|
-
self.button_import = QToolButton(self.w_controls)
|
|
93
|
-
self.button_import.setObjectName(u"button_import")
|
|
94
|
-
self.button_import.setMinimumSize(QSize(25, 25))
|
|
95
|
-
self.button_import.setMaximumSize(QSize(25, 25))
|
|
96
|
-
icon3 = QIcon()
|
|
97
|
-
icon3.addFile(u""+ icons_path +"import.png", QSize(), QIcon.Normal, QIcon.Off)
|
|
98
|
-
self.button_import.setIcon(icon3)
|
|
99
|
-
self.button_import.setIconSize(QSize(18, 18))
|
|
100
|
-
|
|
101
|
-
self.horizontalLayout.addWidget(self.button_import)
|
|
102
|
-
|
|
103
|
-
self.button_edit = QToolButton(self.w_controls)
|
|
104
|
-
self.button_edit.setObjectName(u"button_edit")
|
|
105
|
-
self.button_edit.setMinimumSize(QSize(25, 25))
|
|
106
|
-
self.button_edit.setMaximumSize(QSize(25, 25))
|
|
107
|
-
icon4 = QIcon()
|
|
108
|
-
icon4.addFile(u""+ icons_path +"pencil_bw.png", QSize(), QIcon.Normal, QIcon.Off)
|
|
109
|
-
self.button_edit.setIcon(icon4)
|
|
110
|
-
self.button_edit.setIconSize(QSize(18, 18))
|
|
111
|
-
|
|
112
|
-
self.horizontalLayout.addWidget(self.button_edit)
|
|
113
|
-
|
|
114
|
-
self.button_undo = QToolButton(self.w_controls)
|
|
115
|
-
self.button_undo.setObjectName(u"button_undo")
|
|
116
|
-
self.button_undo.setMinimumSize(QSize(25, 25))
|
|
117
|
-
self.button_undo.setMaximumSize(QSize(25, 25))
|
|
118
|
-
icon5 = QIcon()
|
|
119
|
-
icon5.addFile(u""+ icons_path +"undo.png", QSize(), QIcon.Normal, QIcon.Off)
|
|
120
|
-
self.button_undo.setIcon(icon5)
|
|
121
|
-
self.button_undo.setIconSize(QSize(20, 20))
|
|
122
|
-
self.button_undo.setArrowType(Qt.NoArrow)
|
|
123
|
-
|
|
124
|
-
self.horizontalLayout.addWidget(self.button_undo)
|
|
125
|
-
|
|
126
|
-
self.button_restore = QToolButton(self.w_controls)
|
|
127
|
-
self.button_restore.setObjectName(u"button_restore")
|
|
128
|
-
self.button_restore.setMinimumSize(QSize(25, 25))
|
|
129
|
-
self.button_restore.setMaximumSize(QSize(25, 25))
|
|
130
|
-
icon6 = QIcon()
|
|
131
|
-
icon6.addFile(u""+ icons_path +"restore.png", QSize(), QIcon.Normal, QIcon.Off)
|
|
132
|
-
self.button_restore.setIcon(icon6)
|
|
133
|
-
self.button_restore.setIconSize(QSize(20, 20))
|
|
134
|
-
|
|
135
|
-
self.horizontalLayout.addWidget(self.button_restore)
|
|
136
|
-
|
|
137
|
-
self.button_delete = QToolButton(self.w_controls)
|
|
138
|
-
self.button_delete.setObjectName(u"button_delete")
|
|
139
|
-
self.button_delete.setMinimumSize(QSize(25, 25))
|
|
140
|
-
self.button_delete.setMaximumSize(QSize(25, 25))
|
|
141
|
-
icon7 = QIcon()
|
|
142
|
-
icon7.addFile(u""+ icons_path +"delete.png", QSize(), QIcon.Normal, QIcon.Off)
|
|
143
|
-
self.button_delete.setIcon(icon7)
|
|
144
|
-
self.button_delete.setIconSize(QSize(20, 20))
|
|
145
|
-
|
|
146
|
-
self.horizontalLayout.addWidget(self.button_delete)
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
self.verticalLayout.addWidget(self.w_controls)
|
|
150
|
-
|
|
151
|
-
self.tree = myQTreeWidget(Custom_Top)
|
|
152
|
-
__qtreewidgetitem = QTreeWidgetItem(self.tree)
|
|
153
|
-
__qtreewidgetitem.setFlags(Qt.ItemIsSelectable|Qt.ItemIsEditable|Qt.ItemIsDragEnabled|Qt.ItemIsDropEnabled|Qt.ItemIsUserCheckable|Qt.ItemIsEnabled);
|
|
154
|
-
__qtreewidgetitem1 = QTreeWidgetItem(self.tree)
|
|
155
|
-
__qtreewidgetitem1.setFlags(Qt.ItemIsSelectable|Qt.ItemIsEditable|Qt.ItemIsDragEnabled|Qt.ItemIsDropEnabled|Qt.ItemIsUserCheckable|Qt.ItemIsEnabled);
|
|
156
|
-
self.tree.setObjectName(u"tree")
|
|
157
|
-
self.tree.setStyleSheet(u"QTreeView::item:selected {\n"
|
|
158
|
-
" border: 1px solid blue;\n"
|
|
159
|
-
" background-color: rgb(214, 226, 255);\n"
|
|
160
|
-
" color: black\n"
|
|
161
|
-
"}\n"
|
|
162
|
-
"QTreeView::item:!selected:focus{\n"
|
|
163
|
-
" border: none;\n"
|
|
164
|
-
" background-color: rgba(214, 226, 255, 33);\n"
|
|
165
|
-
" color: black\n"
|
|
166
|
-
"}\n"
|
|
167
|
-
"")
|
|
168
|
-
self.tree.setEditTriggers(QAbstractItemView.DoubleClicked|QAbstractItemView.EditKeyPressed)
|
|
169
|
-
self.tree.setDragEnabled(True)
|
|
170
|
-
self.tree.setDragDropMode(QAbstractItemView.InternalMove)
|
|
171
|
-
self.tree.setDefaultDropAction(Qt.MoveAction)
|
|
172
|
-
self.tree.setAlternatingRowColors(True)
|
|
173
|
-
self.tree.setIndentation(10)
|
|
174
|
-
self.tree.setUniformRowHeights(True)
|
|
175
|
-
self.tree.setItemsExpandable(False)
|
|
176
|
-
self.tree.setSortingEnabled(False)
|
|
177
|
-
self.tree.setHeaderHidden(True)
|
|
178
|
-
self.tree.setColumnCount(1)
|
|
179
|
-
|
|
180
|
-
self.verticalLayout.addWidget(self.tree)
|
|
181
|
-
|
|
182
|
-
self.w_buttons = QWidget(Custom_Top)
|
|
183
|
-
self.w_buttons.setObjectName(u"w_buttons")
|
|
184
|
-
self.horizontalLayout_2 = QHBoxLayout(self.w_buttons)
|
|
185
|
-
self.horizontalLayout_2.setObjectName(u"horizontalLayout_2")
|
|
186
|
-
self.hs_2 = QSpacerItem(172, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum)
|
|
187
|
-
|
|
188
|
-
self.horizontalLayout_2.addItem(self.hs_2)
|
|
189
|
-
|
|
190
|
-
self.button_cancel = QPushButton(self.w_buttons)
|
|
191
|
-
self.button_cancel.setObjectName(u"button_cancel")
|
|
192
|
-
|
|
193
|
-
self.horizontalLayout_2.addWidget(self.button_cancel)
|
|
194
|
-
|
|
195
|
-
self.button_done = QPushButton(self.w_buttons)
|
|
196
|
-
self.button_done.setObjectName(u"button_done")
|
|
197
|
-
|
|
198
|
-
self.horizontalLayout_2.addWidget(self.button_done)
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
self.verticalLayout.addWidget(self.w_buttons)
|
|
202
|
-
|
|
203
|
-
QWidget.setTabOrder(self.tree, self.button_down)
|
|
204
|
-
QWidget.setTabOrder(self.button_down, self.button_up)
|
|
205
|
-
QWidget.setTabOrder(self.button_up, self.button_import)
|
|
206
|
-
QWidget.setTabOrder(self.button_import, self.button_edit)
|
|
207
|
-
QWidget.setTabOrder(self.button_edit, self.button_undo)
|
|
208
|
-
QWidget.setTabOrder(self.button_undo, self.button_restore)
|
|
209
|
-
QWidget.setTabOrder(self.button_restore, self.button_delete)
|
|
210
|
-
QWidget.setTabOrder(self.button_delete, self.button_done)
|
|
211
|
-
QWidget.setTabOrder(self.button_done, self.button_cancel)
|
|
212
|
-
|
|
213
|
-
self.retranslateUi(Custom_Top)
|
|
214
|
-
|
|
215
|
-
QMetaObject.connectSlotsByName(Custom_Top)
|
|
216
|
-
# setupUi
|
|
217
|
-
|
|
218
|
-
def retranslateUi(self, Custom_Top):
|
|
219
|
-
Custom_Top.setWindowTitle(QCoreApplication.translate("Custom_Top", u"Custom types of process", None))
|
|
220
|
-
#if QT_CONFIG(tooltip)
|
|
221
|
-
self.label_tree.setToolTip("")
|
|
222
|
-
#endif // QT_CONFIG(tooltip)
|
|
223
|
-
self.label_tree.setText(QCoreApplication.translate("Custom_Top", u"Available processes", None))
|
|
224
|
-
#if QT_CONFIG(tooltip)
|
|
225
|
-
self.button_down.setToolTip(QCoreApplication.translate("Custom_Top", u"Move item down in the list", None))
|
|
226
|
-
#endif // QT_CONFIG(tooltip)
|
|
227
|
-
self.button_down.setText("")
|
|
228
|
-
#if QT_CONFIG(shortcut)
|
|
229
|
-
self.button_down.setShortcut(QCoreApplication.translate("Custom_Top", u"Ctrl+Down", None))
|
|
230
|
-
#endif // QT_CONFIG(shortcut)
|
|
231
|
-
#if QT_CONFIG(tooltip)
|
|
232
|
-
self.button_up.setToolTip(QCoreApplication.translate("Custom_Top", u"Move item up in the list", None))
|
|
233
|
-
#endif // QT_CONFIG(tooltip)
|
|
234
|
-
self.button_up.setText("")
|
|
235
|
-
#if QT_CONFIG(shortcut)
|
|
236
|
-
self.button_up.setShortcut(QCoreApplication.translate("Custom_Top", u"Ctrl+Up", None))
|
|
237
|
-
#endif // QT_CONFIG(shortcut)
|
|
238
|
-
#if QT_CONFIG(tooltip)
|
|
239
|
-
self.button_import.setToolTip(QCoreApplication.translate("Custom_Top", u"Import process file from disk", None))
|
|
240
|
-
#endif // QT_CONFIG(tooltip)
|
|
241
|
-
self.button_import.setText("")
|
|
242
|
-
#if QT_CONFIG(shortcut)
|
|
243
|
-
self.button_import.setShortcut(QCoreApplication.translate("Custom_Top", u"Ctrl+D", None))
|
|
244
|
-
#endif // QT_CONFIG(shortcut)
|
|
245
|
-
#if QT_CONFIG(tooltip)
|
|
246
|
-
self.button_edit.setToolTip(QCoreApplication.translate("Custom_Top", u"Edit item", None))
|
|
247
|
-
#endif // QT_CONFIG(tooltip)
|
|
248
|
-
#if QT_CONFIG(shortcut)
|
|
249
|
-
self.button_edit.setShortcut(QCoreApplication.translate("Custom_Top", u"F2", None))
|
|
250
|
-
#endif // QT_CONFIG(shortcut)
|
|
251
|
-
#if QT_CONFIG(tooltip)
|
|
252
|
-
self.button_undo.setToolTip(QCoreApplication.translate("Custom_Top", u"Discard changes for item", None))
|
|
253
|
-
#endif // QT_CONFIG(tooltip)
|
|
254
|
-
self.button_undo.setText("")
|
|
255
|
-
#if QT_CONFIG(shortcut)
|
|
256
|
-
self.button_undo.setShortcut(QCoreApplication.translate("Custom_Top", u"Ctrl+Z", None))
|
|
257
|
-
#endif // QT_CONFIG(shortcut)
|
|
258
|
-
#if QT_CONFIG(tooltip)
|
|
259
|
-
self.button_restore.setToolTip(QCoreApplication.translate("Custom_Top", u"Restore item", None))
|
|
260
|
-
#endif // QT_CONFIG(tooltip)
|
|
261
|
-
#if QT_CONFIG(shortcut)
|
|
262
|
-
self.button_restore.setShortcut(QCoreApplication.translate("Custom_Top", u"Ctrl+R", None))
|
|
263
|
-
#endif // QT_CONFIG(shortcut)
|
|
264
|
-
#if QT_CONFIG(tooltip)
|
|
265
|
-
self.button_delete.setToolTip(QCoreApplication.translate("Custom_Top", u"Delete item", None))
|
|
266
|
-
#endif // QT_CONFIG(tooltip)
|
|
267
|
-
#if QT_CONFIG(shortcut)
|
|
268
|
-
self.button_delete.setShortcut(QCoreApplication.translate("Custom_Top", u"Backspace", None))
|
|
269
|
-
#endif // QT_CONFIG(shortcut)
|
|
270
|
-
___qtreewidgetitem = self.tree.headerItem()
|
|
271
|
-
___qtreewidgetitem.setText(0, QCoreApplication.translate("Custom_Top", u"Name", None));
|
|
272
|
-
|
|
273
|
-
__sortingEnabled = self.tree.isSortingEnabled()
|
|
274
|
-
self.tree.setSortingEnabled(False)
|
|
275
|
-
___qtreewidgetitem1 = self.tree.topLevelItem(0)
|
|
276
|
-
___qtreewidgetitem1.setText(0, QCoreApplication.translate("Custom_Top", u"Item 2", None));
|
|
277
|
-
___qtreewidgetitem2 = self.tree.topLevelItem(1)
|
|
278
|
-
___qtreewidgetitem2.setText(0, QCoreApplication.translate("Custom_Top", u"Item 1", None));
|
|
279
|
-
self.tree.setSortingEnabled(__sortingEnabled)
|
|
280
|
-
|
|
281
|
-
#if QT_CONFIG(tooltip)
|
|
282
|
-
self.button_cancel.setToolTip(QCoreApplication.translate("Custom_Top", u"Discard changes", None))
|
|
283
|
-
#endif // QT_CONFIG(tooltip)
|
|
284
|
-
self.button_cancel.setText(QCoreApplication.translate("Custom_Top", u"Cancel", None))
|
|
285
|
-
#if QT_CONFIG(shortcut)
|
|
286
|
-
self.button_cancel.setShortcut(QCoreApplication.translate("Custom_Top", u"Esc", None))
|
|
287
|
-
#endif // QT_CONFIG(shortcut)
|
|
288
|
-
#if QT_CONFIG(tooltip)
|
|
289
|
-
self.button_done.setToolTip(QCoreApplication.translate("Custom_Top", u"Save changes", None))
|
|
290
|
-
#endif // QT_CONFIG(tooltip)
|
|
291
|
-
self.button_done.setText(QCoreApplication.translate("Custom_Top", u"Save", None))
|
|
292
|
-
#if QT_CONFIG(shortcut)
|
|
293
|
-
self.button_done.setShortcut(QCoreApplication.translate("Custom_Top", u"Ctrl+S", None))
|
|
294
|
-
#endif // QT_CONFIG(shortcut)
|
|
295
|
-
# retranslateUi
|
|
296
|
-
|
|
24
|
+
|
|
25
|
+
class Ui_Custom_Top(object):
|
|
26
|
+
def setupUi(self, Custom_Top):
|
|
27
|
+
if not Custom_Top.objectName():
|
|
28
|
+
Custom_Top.setObjectName(u"Custom_Top")
|
|
29
|
+
Custom_Top.resize(480, 480)
|
|
30
|
+
Custom_Top.setMinimumSize(QSize(25, 25))
|
|
31
|
+
icon = QIcon()
|
|
32
|
+
icon.addFile(u""+ icons_path +"process_logo.png", QSize(), QIcon.Normal, QIcon.Off)
|
|
33
|
+
Custom_Top.setWindowIcon(icon)
|
|
34
|
+
self.verticalLayout = QVBoxLayout(Custom_Top)
|
|
35
|
+
self.verticalLayout.setSpacing(3)
|
|
36
|
+
self.verticalLayout.setObjectName(u"verticalLayout")
|
|
37
|
+
self.verticalLayout.setContentsMargins(10, 10, 10, 10)
|
|
38
|
+
self.w_controls = QWidget(Custom_Top)
|
|
39
|
+
self.w_controls.setObjectName(u"w_controls")
|
|
40
|
+
self.w_controls.setMinimumSize(QSize(0, 25))
|
|
41
|
+
self.w_controls.setMaximumSize(QSize(16777215, 25))
|
|
42
|
+
self.horizontalLayout = QHBoxLayout(self.w_controls)
|
|
43
|
+
self.horizontalLayout.setSpacing(5)
|
|
44
|
+
self.horizontalLayout.setObjectName(u"horizontalLayout")
|
|
45
|
+
self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
|
|
46
|
+
self.label_tree = QLabel(self.w_controls)
|
|
47
|
+
self.label_tree.setObjectName(u"label_tree")
|
|
48
|
+
sizePolicy = QSizePolicy(QSizePolicy.Policy.Preferred, QSizePolicy.Policy.Fixed)
|
|
49
|
+
sizePolicy.setHorizontalStretch(0)
|
|
50
|
+
sizePolicy.setVerticalStretch(0)
|
|
51
|
+
sizePolicy.setHeightForWidth(self.label_tree.sizePolicy().hasHeightForWidth())
|
|
52
|
+
self.label_tree.setSizePolicy(sizePolicy)
|
|
53
|
+
self.label_tree.setMinimumSize(QSize(0, 20))
|
|
54
|
+
self.label_tree.setMaximumSize(QSize(150, 20))
|
|
55
|
+
font = QFont()
|
|
56
|
+
font.setPointSize(10)
|
|
57
|
+
font.setBold(False)
|
|
58
|
+
font.setItalic(True)
|
|
59
|
+
self.label_tree.setFont(font)
|
|
60
|
+
self.label_tree.setAlignment(Qt.AlignLeading|Qt.AlignLeft|Qt.AlignVCenter)
|
|
61
|
+
|
|
62
|
+
self.horizontalLayout.addWidget(self.label_tree)
|
|
63
|
+
|
|
64
|
+
self.hs = QSpacerItem(40, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum)
|
|
65
|
+
|
|
66
|
+
self.horizontalLayout.addItem(self.hs)
|
|
67
|
+
|
|
68
|
+
self.button_down = QToolButton(self.w_controls)
|
|
69
|
+
self.button_down.setObjectName(u"button_down")
|
|
70
|
+
self.button_down.setMinimumSize(QSize(25, 25))
|
|
71
|
+
self.button_down.setMaximumSize(QSize(25, 25))
|
|
72
|
+
icon1 = QIcon()
|
|
73
|
+
icon1.addFile(u""+ icons_path +"down.png", QSize(), QIcon.Normal, QIcon.Off)
|
|
74
|
+
self.button_down.setIcon(icon1)
|
|
75
|
+
self.button_down.setIconSize(QSize(18, 18))
|
|
76
|
+
self.button_down.setArrowType(Qt.NoArrow)
|
|
77
|
+
|
|
78
|
+
self.horizontalLayout.addWidget(self.button_down)
|
|
79
|
+
|
|
80
|
+
self.button_up = QToolButton(self.w_controls)
|
|
81
|
+
self.button_up.setObjectName(u"button_up")
|
|
82
|
+
self.button_up.setMinimumSize(QSize(25, 25))
|
|
83
|
+
self.button_up.setMaximumSize(QSize(25, 25))
|
|
84
|
+
icon2 = QIcon()
|
|
85
|
+
icon2.addFile(u""+ icons_path +"up.png", QSize(), QIcon.Normal, QIcon.Off)
|
|
86
|
+
self.button_up.setIcon(icon2)
|
|
87
|
+
self.button_up.setIconSize(QSize(18, 18))
|
|
88
|
+
self.button_up.setArrowType(Qt.NoArrow)
|
|
89
|
+
|
|
90
|
+
self.horizontalLayout.addWidget(self.button_up)
|
|
91
|
+
|
|
92
|
+
self.button_import = QToolButton(self.w_controls)
|
|
93
|
+
self.button_import.setObjectName(u"button_import")
|
|
94
|
+
self.button_import.setMinimumSize(QSize(25, 25))
|
|
95
|
+
self.button_import.setMaximumSize(QSize(25, 25))
|
|
96
|
+
icon3 = QIcon()
|
|
97
|
+
icon3.addFile(u""+ icons_path +"import.png", QSize(), QIcon.Normal, QIcon.Off)
|
|
98
|
+
self.button_import.setIcon(icon3)
|
|
99
|
+
self.button_import.setIconSize(QSize(18, 18))
|
|
100
|
+
|
|
101
|
+
self.horizontalLayout.addWidget(self.button_import)
|
|
102
|
+
|
|
103
|
+
self.button_edit = QToolButton(self.w_controls)
|
|
104
|
+
self.button_edit.setObjectName(u"button_edit")
|
|
105
|
+
self.button_edit.setMinimumSize(QSize(25, 25))
|
|
106
|
+
self.button_edit.setMaximumSize(QSize(25, 25))
|
|
107
|
+
icon4 = QIcon()
|
|
108
|
+
icon4.addFile(u""+ icons_path +"pencil_bw.png", QSize(), QIcon.Normal, QIcon.Off)
|
|
109
|
+
self.button_edit.setIcon(icon4)
|
|
110
|
+
self.button_edit.setIconSize(QSize(18, 18))
|
|
111
|
+
|
|
112
|
+
self.horizontalLayout.addWidget(self.button_edit)
|
|
113
|
+
|
|
114
|
+
self.button_undo = QToolButton(self.w_controls)
|
|
115
|
+
self.button_undo.setObjectName(u"button_undo")
|
|
116
|
+
self.button_undo.setMinimumSize(QSize(25, 25))
|
|
117
|
+
self.button_undo.setMaximumSize(QSize(25, 25))
|
|
118
|
+
icon5 = QIcon()
|
|
119
|
+
icon5.addFile(u""+ icons_path +"undo.png", QSize(), QIcon.Normal, QIcon.Off)
|
|
120
|
+
self.button_undo.setIcon(icon5)
|
|
121
|
+
self.button_undo.setIconSize(QSize(20, 20))
|
|
122
|
+
self.button_undo.setArrowType(Qt.NoArrow)
|
|
123
|
+
|
|
124
|
+
self.horizontalLayout.addWidget(self.button_undo)
|
|
125
|
+
|
|
126
|
+
self.button_restore = QToolButton(self.w_controls)
|
|
127
|
+
self.button_restore.setObjectName(u"button_restore")
|
|
128
|
+
self.button_restore.setMinimumSize(QSize(25, 25))
|
|
129
|
+
self.button_restore.setMaximumSize(QSize(25, 25))
|
|
130
|
+
icon6 = QIcon()
|
|
131
|
+
icon6.addFile(u""+ icons_path +"restore.png", QSize(), QIcon.Normal, QIcon.Off)
|
|
132
|
+
self.button_restore.setIcon(icon6)
|
|
133
|
+
self.button_restore.setIconSize(QSize(20, 20))
|
|
134
|
+
|
|
135
|
+
self.horizontalLayout.addWidget(self.button_restore)
|
|
136
|
+
|
|
137
|
+
self.button_delete = QToolButton(self.w_controls)
|
|
138
|
+
self.button_delete.setObjectName(u"button_delete")
|
|
139
|
+
self.button_delete.setMinimumSize(QSize(25, 25))
|
|
140
|
+
self.button_delete.setMaximumSize(QSize(25, 25))
|
|
141
|
+
icon7 = QIcon()
|
|
142
|
+
icon7.addFile(u""+ icons_path +"delete.png", QSize(), QIcon.Normal, QIcon.Off)
|
|
143
|
+
self.button_delete.setIcon(icon7)
|
|
144
|
+
self.button_delete.setIconSize(QSize(20, 20))
|
|
145
|
+
|
|
146
|
+
self.horizontalLayout.addWidget(self.button_delete)
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
self.verticalLayout.addWidget(self.w_controls)
|
|
150
|
+
|
|
151
|
+
self.tree = myQTreeWidget(Custom_Top)
|
|
152
|
+
__qtreewidgetitem = QTreeWidgetItem(self.tree)
|
|
153
|
+
__qtreewidgetitem.setFlags(Qt.ItemIsSelectable|Qt.ItemIsEditable|Qt.ItemIsDragEnabled|Qt.ItemIsDropEnabled|Qt.ItemIsUserCheckable|Qt.ItemIsEnabled);
|
|
154
|
+
__qtreewidgetitem1 = QTreeWidgetItem(self.tree)
|
|
155
|
+
__qtreewidgetitem1.setFlags(Qt.ItemIsSelectable|Qt.ItemIsEditable|Qt.ItemIsDragEnabled|Qt.ItemIsDropEnabled|Qt.ItemIsUserCheckable|Qt.ItemIsEnabled);
|
|
156
|
+
self.tree.setObjectName(u"tree")
|
|
157
|
+
self.tree.setStyleSheet(u"QTreeView::item:selected {\n"
|
|
158
|
+
" border: 1px solid blue;\n"
|
|
159
|
+
" background-color: rgb(214, 226, 255);\n"
|
|
160
|
+
" color: black\n"
|
|
161
|
+
"}\n"
|
|
162
|
+
"QTreeView::item:!selected:focus{\n"
|
|
163
|
+
" border: none;\n"
|
|
164
|
+
" background-color: rgba(214, 226, 255, 33);\n"
|
|
165
|
+
" color: black\n"
|
|
166
|
+
"}\n"
|
|
167
|
+
"")
|
|
168
|
+
self.tree.setEditTriggers(QAbstractItemView.DoubleClicked|QAbstractItemView.EditKeyPressed)
|
|
169
|
+
self.tree.setDragEnabled(True)
|
|
170
|
+
self.tree.setDragDropMode(QAbstractItemView.InternalMove)
|
|
171
|
+
self.tree.setDefaultDropAction(Qt.MoveAction)
|
|
172
|
+
self.tree.setAlternatingRowColors(True)
|
|
173
|
+
self.tree.setIndentation(10)
|
|
174
|
+
self.tree.setUniformRowHeights(True)
|
|
175
|
+
self.tree.setItemsExpandable(False)
|
|
176
|
+
self.tree.setSortingEnabled(False)
|
|
177
|
+
self.tree.setHeaderHidden(True)
|
|
178
|
+
self.tree.setColumnCount(1)
|
|
179
|
+
|
|
180
|
+
self.verticalLayout.addWidget(self.tree)
|
|
181
|
+
|
|
182
|
+
self.w_buttons = QWidget(Custom_Top)
|
|
183
|
+
self.w_buttons.setObjectName(u"w_buttons")
|
|
184
|
+
self.horizontalLayout_2 = QHBoxLayout(self.w_buttons)
|
|
185
|
+
self.horizontalLayout_2.setObjectName(u"horizontalLayout_2")
|
|
186
|
+
self.hs_2 = QSpacerItem(172, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum)
|
|
187
|
+
|
|
188
|
+
self.horizontalLayout_2.addItem(self.hs_2)
|
|
189
|
+
|
|
190
|
+
self.button_cancel = QPushButton(self.w_buttons)
|
|
191
|
+
self.button_cancel.setObjectName(u"button_cancel")
|
|
192
|
+
|
|
193
|
+
self.horizontalLayout_2.addWidget(self.button_cancel)
|
|
194
|
+
|
|
195
|
+
self.button_done = QPushButton(self.w_buttons)
|
|
196
|
+
self.button_done.setObjectName(u"button_done")
|
|
197
|
+
|
|
198
|
+
self.horizontalLayout_2.addWidget(self.button_done)
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
self.verticalLayout.addWidget(self.w_buttons)
|
|
202
|
+
|
|
203
|
+
QWidget.setTabOrder(self.tree, self.button_down)
|
|
204
|
+
QWidget.setTabOrder(self.button_down, self.button_up)
|
|
205
|
+
QWidget.setTabOrder(self.button_up, self.button_import)
|
|
206
|
+
QWidget.setTabOrder(self.button_import, self.button_edit)
|
|
207
|
+
QWidget.setTabOrder(self.button_edit, self.button_undo)
|
|
208
|
+
QWidget.setTabOrder(self.button_undo, self.button_restore)
|
|
209
|
+
QWidget.setTabOrder(self.button_restore, self.button_delete)
|
|
210
|
+
QWidget.setTabOrder(self.button_delete, self.button_done)
|
|
211
|
+
QWidget.setTabOrder(self.button_done, self.button_cancel)
|
|
212
|
+
|
|
213
|
+
self.retranslateUi(Custom_Top)
|
|
214
|
+
|
|
215
|
+
QMetaObject.connectSlotsByName(Custom_Top)
|
|
216
|
+
# setupUi
|
|
217
|
+
|
|
218
|
+
def retranslateUi(self, Custom_Top):
|
|
219
|
+
Custom_Top.setWindowTitle(QCoreApplication.translate("Custom_Top", u"Custom types of process", None))
|
|
220
|
+
#if QT_CONFIG(tooltip)
|
|
221
|
+
self.label_tree.setToolTip("")
|
|
222
|
+
#endif // QT_CONFIG(tooltip)
|
|
223
|
+
self.label_tree.setText(QCoreApplication.translate("Custom_Top", u"Available processes", None))
|
|
224
|
+
#if QT_CONFIG(tooltip)
|
|
225
|
+
self.button_down.setToolTip(QCoreApplication.translate("Custom_Top", u"Move item down in the list", None))
|
|
226
|
+
#endif // QT_CONFIG(tooltip)
|
|
227
|
+
self.button_down.setText("")
|
|
228
|
+
#if QT_CONFIG(shortcut)
|
|
229
|
+
self.button_down.setShortcut(QCoreApplication.translate("Custom_Top", u"Ctrl+Down", None))
|
|
230
|
+
#endif // QT_CONFIG(shortcut)
|
|
231
|
+
#if QT_CONFIG(tooltip)
|
|
232
|
+
self.button_up.setToolTip(QCoreApplication.translate("Custom_Top", u"Move item up in the list", None))
|
|
233
|
+
#endif // QT_CONFIG(tooltip)
|
|
234
|
+
self.button_up.setText("")
|
|
235
|
+
#if QT_CONFIG(shortcut)
|
|
236
|
+
self.button_up.setShortcut(QCoreApplication.translate("Custom_Top", u"Ctrl+Up", None))
|
|
237
|
+
#endif // QT_CONFIG(shortcut)
|
|
238
|
+
#if QT_CONFIG(tooltip)
|
|
239
|
+
self.button_import.setToolTip(QCoreApplication.translate("Custom_Top", u"Import process file from disk", None))
|
|
240
|
+
#endif // QT_CONFIG(tooltip)
|
|
241
|
+
self.button_import.setText("")
|
|
242
|
+
#if QT_CONFIG(shortcut)
|
|
243
|
+
self.button_import.setShortcut(QCoreApplication.translate("Custom_Top", u"Ctrl+D", None))
|
|
244
|
+
#endif // QT_CONFIG(shortcut)
|
|
245
|
+
#if QT_CONFIG(tooltip)
|
|
246
|
+
self.button_edit.setToolTip(QCoreApplication.translate("Custom_Top", u"Edit item", None))
|
|
247
|
+
#endif // QT_CONFIG(tooltip)
|
|
248
|
+
#if QT_CONFIG(shortcut)
|
|
249
|
+
self.button_edit.setShortcut(QCoreApplication.translate("Custom_Top", u"F2", None))
|
|
250
|
+
#endif // QT_CONFIG(shortcut)
|
|
251
|
+
#if QT_CONFIG(tooltip)
|
|
252
|
+
self.button_undo.setToolTip(QCoreApplication.translate("Custom_Top", u"Discard changes for item", None))
|
|
253
|
+
#endif // QT_CONFIG(tooltip)
|
|
254
|
+
self.button_undo.setText("")
|
|
255
|
+
#if QT_CONFIG(shortcut)
|
|
256
|
+
self.button_undo.setShortcut(QCoreApplication.translate("Custom_Top", u"Ctrl+Z", None))
|
|
257
|
+
#endif // QT_CONFIG(shortcut)
|
|
258
|
+
#if QT_CONFIG(tooltip)
|
|
259
|
+
self.button_restore.setToolTip(QCoreApplication.translate("Custom_Top", u"Restore item", None))
|
|
260
|
+
#endif // QT_CONFIG(tooltip)
|
|
261
|
+
#if QT_CONFIG(shortcut)
|
|
262
|
+
self.button_restore.setShortcut(QCoreApplication.translate("Custom_Top", u"Ctrl+R", None))
|
|
263
|
+
#endif // QT_CONFIG(shortcut)
|
|
264
|
+
#if QT_CONFIG(tooltip)
|
|
265
|
+
self.button_delete.setToolTip(QCoreApplication.translate("Custom_Top", u"Delete item", None))
|
|
266
|
+
#endif // QT_CONFIG(tooltip)
|
|
267
|
+
#if QT_CONFIG(shortcut)
|
|
268
|
+
self.button_delete.setShortcut(QCoreApplication.translate("Custom_Top", u"Backspace", None))
|
|
269
|
+
#endif // QT_CONFIG(shortcut)
|
|
270
|
+
___qtreewidgetitem = self.tree.headerItem()
|
|
271
|
+
___qtreewidgetitem.setText(0, QCoreApplication.translate("Custom_Top", u"Name", None));
|
|
272
|
+
|
|
273
|
+
__sortingEnabled = self.tree.isSortingEnabled()
|
|
274
|
+
self.tree.setSortingEnabled(False)
|
|
275
|
+
___qtreewidgetitem1 = self.tree.topLevelItem(0)
|
|
276
|
+
___qtreewidgetitem1.setText(0, QCoreApplication.translate("Custom_Top", u"Item 2", None));
|
|
277
|
+
___qtreewidgetitem2 = self.tree.topLevelItem(1)
|
|
278
|
+
___qtreewidgetitem2.setText(0, QCoreApplication.translate("Custom_Top", u"Item 1", None));
|
|
279
|
+
self.tree.setSortingEnabled(__sortingEnabled)
|
|
280
|
+
|
|
281
|
+
#if QT_CONFIG(tooltip)
|
|
282
|
+
self.button_cancel.setToolTip(QCoreApplication.translate("Custom_Top", u"Discard changes", None))
|
|
283
|
+
#endif // QT_CONFIG(tooltip)
|
|
284
|
+
self.button_cancel.setText(QCoreApplication.translate("Custom_Top", u"Cancel", None))
|
|
285
|
+
#if QT_CONFIG(shortcut)
|
|
286
|
+
self.button_cancel.setShortcut(QCoreApplication.translate("Custom_Top", u"Esc", None))
|
|
287
|
+
#endif // QT_CONFIG(shortcut)
|
|
288
|
+
#if QT_CONFIG(tooltip)
|
|
289
|
+
self.button_done.setToolTip(QCoreApplication.translate("Custom_Top", u"Save changes", None))
|
|
290
|
+
#endif // QT_CONFIG(tooltip)
|
|
291
|
+
self.button_done.setText(QCoreApplication.translate("Custom_Top", u"Save", None))
|
|
292
|
+
#if QT_CONFIG(shortcut)
|
|
293
|
+
self.button_done.setShortcut(QCoreApplication.translate("Custom_Top", u"Ctrl+S", None))
|
|
294
|
+
#endif // QT_CONFIG(shortcut)
|
|
295
|
+
# retranslateUi
|
|
296
|
+
|