nmreval/src/gui_qt/_py/eval_expr_dialog.py

241 lines
14 KiB
Python
Raw Normal View History

2022-03-08 09:27:40 +00:00
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'resources/_ui/eval_expr_dialog.ui'
#
# Created by: PyQt5 UI code generator 5.12.3
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_CalcDialog(object):
def setupUi(self, CalcDialog):
CalcDialog.setObjectName("CalcDialog")
CalcDialog.setWindowModality(QtCore.Qt.WindowModal)
CalcDialog.resize(804, 627)
self.verticalLayout_5 = QtWidgets.QVBoxLayout(CalcDialog)
self.verticalLayout_5.setObjectName("verticalLayout_5")
self.splitter_2 = QtWidgets.QSplitter(CalcDialog)
self.splitter_2.setOrientation(QtCore.Qt.Horizontal)
self.splitter_2.setObjectName("splitter_2")
self.verticalLayoutWidget = QtWidgets.QWidget(self.splitter_2)
self.verticalLayoutWidget.setObjectName("verticalLayoutWidget")
self.verticalLayout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget)
self.verticalLayout.setContentsMargins(0, 0, 0, 0)
self.verticalLayout.setObjectName("verticalLayout")
self.stackedWidget = QtWidgets.QStackedWidget(self.verticalLayoutWidget)
self.stackedWidget.setObjectName("stackedWidget")
self.page = QtWidgets.QWidget()
self.page.setObjectName("page")
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.page)
self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
self.verticalLayout_2.setSpacing(0)
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.label_2 = QtWidgets.QLabel(self.page)
self.label_2.setObjectName("label_2")
self.verticalLayout_2.addWidget(self.label_2)
self.listWidget = QtWidgets.QListWidget(self.page)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.MinimumExpanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.listWidget.sizePolicy().hasHeightForWidth())
self.listWidget.setSizePolicy(sizePolicy)
self.listWidget.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers)
self.listWidget.setSelectionMode(QtWidgets.QAbstractItemView.SingleSelection)
self.listWidget.setObjectName("listWidget")
self.verticalLayout_2.addWidget(self.listWidget)
self.overwrite_checkbox = QtWidgets.QCheckBox(self.page)
self.overwrite_checkbox.setLayoutDirection(QtCore.Qt.LeftToRight)
self.overwrite_checkbox.setObjectName("overwrite_checkbox")
self.verticalLayout_2.addWidget(self.overwrite_checkbox)
self.stackedWidget.addWidget(self.page)
self.page_2 = QtWidgets.QWidget()
self.page_2.setObjectName("page_2")
self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.page_2)
self.verticalLayout_4.setObjectName("verticalLayout_4")
self.groupBox_2 = QtWidgets.QGroupBox(self.page_2)
self.groupBox_2.setObjectName("groupBox_2")
self.formLayout_3 = QtWidgets.QFormLayout(self.groupBox_2)
self.formLayout_3.setContentsMargins(3, 3, 3, 3)
self.formLayout_3.setHorizontalSpacing(3)
self.formLayout_3.setObjectName("formLayout_3")
self.label_3 = QtWidgets.QLabel(self.groupBox_2)
self.label_3.setObjectName("label_3")
self.formLayout_3.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_3)
self.label_lineEdit = QtWidgets.QLineEdit(self.groupBox_2)
self.label_lineEdit.setObjectName("label_lineEdit")
self.formLayout_3.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.label_lineEdit)
self.label_9 = QtWidgets.QLabel(self.groupBox_2)
self.label_9.setObjectName("label_9")
self.formLayout_3.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_9)
self.value_lineEdit = QtWidgets.QLineEdit(self.groupBox_2)
self.value_lineEdit.setObjectName("value_lineEdit")
self.formLayout_3.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.value_lineEdit)
self.label_6 = QtWidgets.QLabel(self.groupBox_2)
self.label_6.setObjectName("label_6")
self.formLayout_3.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.label_6)
self.dtype_comboBox = QtWidgets.QComboBox(self.groupBox_2)
self.dtype_comboBox.setObjectName("dtype_comboBox")
self.dtype_comboBox.addItem("")
self.dtype_comboBox.addItem("")
self.dtype_comboBox.addItem("")
self.dtype_comboBox.addItem("")
self.formLayout_3.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.dtype_comboBox)
self.verticalLayout_4.addWidget(self.groupBox_2)
self.groupBox = QtWidgets.QGroupBox(self.page_2)
self.groupBox.setObjectName("groupBox")
self.formLayout_2 = QtWidgets.QFormLayout(self.groupBox)
self.formLayout_2.setContentsMargins(3, 3, 3, 3)
self.formLayout_2.setSpacing(3)
self.formLayout_2.setObjectName("formLayout_2")
self.label_4 = QtWidgets.QLabel(self.groupBox)
self.label_4.setObjectName("label_4")
self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_4)
self.symcolor_comboBox = ColorListEditor(self.groupBox)
self.symcolor_comboBox.setObjectName("symcolor_comboBox")
self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.symcolor_comboBox)
self.label_5 = QtWidgets.QLabel(self.groupBox)
self.label_5.setObjectName("label_5")
self.formLayout_2.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.label_5)
self.symbol_spinBox = QtWidgets.QSpinBox(self.groupBox)
self.symbol_spinBox.setProperty("value", 10)
self.symbol_spinBox.setObjectName("symbol_spinBox")
self.formLayout_2.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.symbol_spinBox)
self.symbol_comboBox = SymbolStyleEditor(self.groupBox)
self.symbol_comboBox.setObjectName("symbol_comboBox")
self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.symbol_comboBox)
self.label_10 = QtWidgets.QLabel(self.groupBox)
self.label_10.setObjectName("label_10")
self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_10)
self.verticalLayout_4.addWidget(self.groupBox)
self.groupBox_3 = QtWidgets.QGroupBox(self.page_2)
self.groupBox_3.setObjectName("groupBox_3")
self.formLayout = QtWidgets.QFormLayout(self.groupBox_3)
self.formLayout.setContentsMargins(3, 3, 3, 3)
self.formLayout.setSpacing(3)
self.formLayout.setObjectName("formLayout")
self.label_7 = QtWidgets.QLabel(self.groupBox_3)
self.label_7.setObjectName("label_7")
self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_7)
self.linecolor_comboBox = ColorListEditor(self.groupBox_3)
self.linecolor_comboBox.setObjectName("linecolor_comboBox")
self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.linecolor_comboBox)
self.label_8 = QtWidgets.QLabel(self.groupBox_3)
self.label_8.setObjectName("label_8")
self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.label_8)
self.line_doubleSpinBox = QtWidgets.QDoubleSpinBox(self.groupBox_3)
self.line_doubleSpinBox.setProperty("value", 1.0)
self.line_doubleSpinBox.setObjectName("line_doubleSpinBox")
self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.line_doubleSpinBox)
self.linestyle_comboBox = LineStyleEditor(self.groupBox_3)
self.linestyle_comboBox.setObjectName("linestyle_comboBox")
self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.linestyle_comboBox)
self.label_11 = QtWidgets.QLabel(self.groupBox_3)
self.label_11.setObjectName("label_11")
self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_11)
self.verticalLayout_4.addWidget(self.groupBox_3)
spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.verticalLayout_4.addItem(spacerItem)
self.graph_comboBox = QtWidgets.QComboBox(self.page_2)
self.graph_comboBox.setObjectName("graph_comboBox")
self.verticalLayout_4.addWidget(self.graph_comboBox)
self.groupBox.raise_()
self.groupBox_2.raise_()
self.groupBox_3.raise_()
self.graph_comboBox.raise_()
self.stackedWidget.addWidget(self.page_2)
self.page_3 = QtWidgets.QWidget()
self.page_3.setObjectName("page_3")
self.stackedWidget.addWidget(self.page_3)
self.verticalLayout.addWidget(self.stackedWidget)
self.splitter = QtWidgets.QSplitter(self.splitter_2)
self.splitter.setOrientation(QtCore.Qt.Vertical)
self.splitter.setChildrenCollapsible(False)
self.splitter.setObjectName("splitter")
self.verticalLayoutWidget_2 = QtWidgets.QWidget(self.splitter)
self.verticalLayoutWidget_2.setObjectName("verticalLayoutWidget_2")
self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.verticalLayoutWidget_2)
self.verticalLayout_6.setContentsMargins(0, 0, 0, 0)
self.verticalLayout_6.setObjectName("verticalLayout_6")
self.namespace_widget = QNamespaceWidget(self.verticalLayoutWidget_2)
self.namespace_widget.setObjectName("namespace_widget")
self.verticalLayout_6.addWidget(self.namespace_widget)
self.verticalLayoutWidget_3 = QtWidgets.QWidget(self.splitter)
self.verticalLayoutWidget_3.setObjectName("verticalLayoutWidget_3")
self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.verticalLayoutWidget_3)
self.verticalLayout_3.setContentsMargins(0, 0, 0, 0)
self.verticalLayout_3.setObjectName("verticalLayout_3")
self.line_2 = QtWidgets.QFrame(self.verticalLayoutWidget_3)
self.line_2.setFrameShape(QtWidgets.QFrame.HLine)
self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken)
self.line_2.setObjectName("line_2")
self.verticalLayout_3.addWidget(self.line_2)
self.label = QtWidgets.QLabel(self.verticalLayoutWidget_3)
font = QtGui.QFont()
font.setBold(True)
font.setWeight(75)
self.label.setFont(font)
self.label.setObjectName("label")
self.verticalLayout_3.addWidget(self.label)
self.calc_edit = QtWidgets.QPlainTextEdit(self.verticalLayoutWidget_3)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.MinimumExpanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.calc_edit.sizePolicy().hasHeightForWidth())
self.calc_edit.setSizePolicy(sizePolicy)
self.calc_edit.setObjectName("calc_edit")
self.verticalLayout_3.addWidget(self.calc_edit)
self.verticalLayout_5.addWidget(self.splitter_2)
self.buttonBox = QtWidgets.QDialogButtonBox(CalcDialog)
self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Apply|QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
self.buttonBox.setObjectName("buttonBox")
self.verticalLayout_5.addWidget(self.buttonBox)
self.label_3.setBuddy(self.label_lineEdit)
self.label_9.setBuddy(self.value_lineEdit)
self.label_6.setBuddy(self.dtype_comboBox)
self.label_4.setBuddy(self.symcolor_comboBox)
self.label_5.setBuddy(self.symbol_spinBox)
self.label_7.setBuddy(self.linecolor_comboBox)
self.label_8.setBuddy(self.line_doubleSpinBox)
self.retranslateUi(CalcDialog)
self.stackedWidget.setCurrentIndex(2)
QtCore.QMetaObject.connectSlotsByName(CalcDialog)
CalcDialog.setTabOrder(self.calc_edit, self.listWidget)
CalcDialog.setTabOrder(self.listWidget, self.overwrite_checkbox)
CalcDialog.setTabOrder(self.overwrite_checkbox, self.label_lineEdit)
CalcDialog.setTabOrder(self.label_lineEdit, self.value_lineEdit)
CalcDialog.setTabOrder(self.value_lineEdit, self.dtype_comboBox)
CalcDialog.setTabOrder(self.dtype_comboBox, self.symcolor_comboBox)
CalcDialog.setTabOrder(self.symcolor_comboBox, self.symbol_spinBox)
CalcDialog.setTabOrder(self.symbol_spinBox, self.linecolor_comboBox)
CalcDialog.setTabOrder(self.linecolor_comboBox, self.line_doubleSpinBox)
def retranslateUi(self, CalcDialog):
_translate = QtCore.QCoreApplication.translate
CalcDialog.setWindowTitle(_translate("CalcDialog", "Evaluate stuff"))
self.label_2.setText(_translate("CalcDialog", "Select sets for evaluation"))
self.overwrite_checkbox.setText(_translate("CalcDialog", "Overwrite values"))
self.groupBox_2.setTitle(_translate("CalcDialog", "GroupBox"))
self.label_3.setText(_translate("CalcDialog", "Label"))
self.label_9.setText(_translate("CalcDialog", "Value"))
self.label_6.setText(_translate("CalcDialog", "Datatype"))
self.dtype_comboBox.setItemText(0, _translate("CalcDialog", "Points"))
self.dtype_comboBox.setItemText(1, _translate("CalcDialog", "Timesignal"))
self.dtype_comboBox.setItemText(2, _translate("CalcDialog", "Spectrum"))
self.dtype_comboBox.setItemText(3, _translate("CalcDialog", "BDS"))
self.groupBox.setTitle(_translate("CalcDialog", "Symbol"))
self.label_4.setText(_translate("CalcDialog", "Color"))
self.label_5.setText(_translate("CalcDialog", "Size"))
self.label_10.setText(_translate("CalcDialog", "Style"))
self.groupBox_3.setTitle(_translate("CalcDialog", "Line"))
self.label_7.setText(_translate("CalcDialog", "Color"))
self.label_8.setText(_translate("CalcDialog", "Width"))
self.label_11.setText(_translate("CalcDialog", "Style"))
self.label.setText(_translate("CalcDialog", "Expressions are evaluated line by line and change previous values"))
from ..lib.delegates import ColorListEditor, LineStyleEditor, SymbolStyleEditor
from ..lib.namespace import QNamespaceWidget