hbui
2024-07-24 a9f3557648135eca0766a51baddf7d39a22a6e01
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
# -*- coding: utf-8 -*-
 
################################################################################
## Form generated from reading UI file 'mainwindow.ui'
##
## Created by: Qt User Interface Compiler version 6.7.2
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################
 
from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,
    QMetaObject, QObject, QPoint, QRect,
    QSize, QTime, QUrl, Qt)
from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
    QFont, QFontDatabase, QGradient, QIcon,
    QImage, QKeySequence, QLinearGradient, QPainter,
    QPalette, QPixmap, QRadialGradient, QTransform)
from PySide6.QtWidgets import (QApplication, QFormLayout, QGroupBox, QHBoxLayout,
    QLabel, QLineEdit, QMainWindow, QMenuBar,
    QPlainTextEdit, QPushButton, QSizePolicy, QSpacerItem,
    QStatusBar, QVBoxLayout, QWidget)
 
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        if not MainWindow.objectName():
            MainWindow.setObjectName(u"MainWindow")
        MainWindow.resize(1411, 889)
        self.centralwidget = QWidget(MainWindow)
        self.centralwidget.setObjectName(u"centralwidget")
        self.horizontalLayout_2 = QHBoxLayout(self.centralwidget)
        self.horizontalLayout_2.setObjectName(u"horizontalLayout_2")
        self.verticalLayout = QVBoxLayout()
        self.verticalLayout.setObjectName(u"verticalLayout")
        self.helpingText = QPlainTextEdit(self.centralwidget)
        self.helpingText.setObjectName(u"helpingText")
        sizePolicy = QSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.helpingText.sizePolicy().hasHeightForWidth())
        self.helpingText.setSizePolicy(sizePolicy)
        font = QFont()
        font.setFamilies([u"Noto Mono"])
        self.helpingText.setFont(font)
        self.helpingText.setReadOnly(True)
 
        self.verticalLayout.addWidget(self.helpingText)
 
        self.functionInfo = QGroupBox(self.centralwidget)
        self.functionInfo.setObjectName(u"functionInfo")
        self.formLayout_3 = QFormLayout(self.functionInfo)
        self.formLayout_3.setObjectName(u"formLayout_3")
        self.label_start = QLabel(self.functionInfo)
        self.label_start.setObjectName(u"label_start")
 
        self.formLayout_3.setWidget(0, QFormLayout.LabelRole, self.label_start)
 
        self.function = QLineEdit(self.functionInfo)
        self.function.setObjectName(u"function")
 
        self.formLayout_3.setWidget(0, QFormLayout.FieldRole, self.function)
 
        self.label_fn = QLabel(self.functionInfo)
        self.label_fn.setObjectName(u"label_fn")
 
        self.formLayout_3.setWidget(1, QFormLayout.LabelRole, self.label_fn)
 
        self.startValue = QLineEdit(self.functionInfo)
        self.startValue.setObjectName(u"startValue")
 
        self.formLayout_3.setWidget(1, QFormLayout.FieldRole, self.startValue)
 
        self.label_end = QLabel(self.functionInfo)
        self.label_end.setObjectName(u"label_end")
 
        self.formLayout_3.setWidget(2, QFormLayout.LabelRole, self.label_end)
 
        self.endValue = QLineEdit(self.functionInfo)
        self.endValue.setObjectName(u"endValue")
 
        self.formLayout_3.setWidget(2, QFormLayout.FieldRole, self.endValue)
 
 
        self.verticalLayout.addWidget(self.functionInfo)
 
        self.breakRule = QGroupBox(self.centralwidget)
        self.breakRule.setObjectName(u"breakRule")
        self.formLayout_2 = QFormLayout(self.breakRule)
        self.formLayout_2.setObjectName(u"formLayout_2")
        self.label_4 = QLabel(self.breakRule)
        self.label_4.setObjectName(u"label_4")
 
        self.formLayout_2.setWidget(0, QFormLayout.LabelRole, self.label_4)
 
        self.espilon = QLineEdit(self.breakRule)
        self.espilon.setObjectName(u"espilon")
        sizePolicy1 = QSizePolicy(QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Fixed)
        sizePolicy1.setHorizontalStretch(0)
        sizePolicy1.setVerticalStretch(0)
        sizePolicy1.setHeightForWidth(self.espilon.sizePolicy().hasHeightForWidth())
        self.espilon.setSizePolicy(sizePolicy1)
 
        self.formLayout_2.setWidget(0, QFormLayout.FieldRole, self.espilon)
 
        self.label_5 = QLabel(self.breakRule)
        self.label_5.setObjectName(u"label_5")
 
        self.formLayout_2.setWidget(1, QFormLayout.LabelRole, self.label_5)
 
        self.section = QLineEdit(self.breakRule)
        self.section.setObjectName(u"section")
        sizePolicy1.setHeightForWidth(self.section.sizePolicy().hasHeightForWidth())
        self.section.setSizePolicy(sizePolicy1)
 
        self.formLayout_2.setWidget(1, QFormLayout.FieldRole, self.section)
 
 
        self.verticalLayout.addWidget(self.breakRule)
 
        self.plotBtn = QPushButton(self.centralwidget)
        self.plotBtn.setObjectName(u"plotBtn")
 
        self.verticalLayout.addWidget(self.plotBtn)
 
        self.verticalSpacer = QSpacerItem(20, 40, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding)
 
        self.verticalLayout.addItem(self.verticalSpacer)
 
        self.riemannSumGruppe = QGroupBox(self.centralwidget)
        self.riemannSumGruppe.setObjectName(u"riemannSumGruppe")
        self.formLayout = QFormLayout(self.riemannSumGruppe)
        self.formLayout.setObjectName(u"formLayout")
        self.label = QLabel(self.riemannSumGruppe)
        self.label.setObjectName(u"label")
 
        self.formLayout.setWidget(0, QFormLayout.LabelRole, self.label)
 
        self.leftSum = QLineEdit(self.riemannSumGruppe)
        self.leftSum.setObjectName(u"leftSum")
        sizePolicy1.setHeightForWidth(self.leftSum.sizePolicy().hasHeightForWidth())
        self.leftSum.setSizePolicy(sizePolicy1)
        self.leftSum.setReadOnly(True)
 
        self.formLayout.setWidget(0, QFormLayout.FieldRole, self.leftSum)
 
        self.label_2 = QLabel(self.riemannSumGruppe)
        self.label_2.setObjectName(u"label_2")
 
        self.formLayout.setWidget(1, QFormLayout.LabelRole, self.label_2)
 
        self.rightSum = QLineEdit(self.riemannSumGruppe)
        self.rightSum.setObjectName(u"rightSum")
        sizePolicy1.setHeightForWidth(self.rightSum.sizePolicy().hasHeightForWidth())
        self.rightSum.setSizePolicy(sizePolicy1)
        self.rightSum.setReadOnly(True)
 
        self.formLayout.setWidget(1, QFormLayout.FieldRole, self.rightSum)
 
        self.label_3 = QLabel(self.riemannSumGruppe)
        self.label_3.setObjectName(u"label_3")
 
        self.formLayout.setWidget(2, QFormLayout.LabelRole, self.label_3)
 
        self.numOfSections = QLineEdit(self.riemannSumGruppe)
        self.numOfSections.setObjectName(u"numOfSections")
 
        self.formLayout.setWidget(2, QFormLayout.FieldRole, self.numOfSections)
 
 
        self.verticalLayout.addWidget(self.riemannSumGruppe)
 
 
        self.horizontalLayout_2.addLayout(self.verticalLayout)
 
        self.plotBox = QGroupBox(self.centralwidget)
        self.plotBox.setObjectName(u"plotBox")
        self.plotBox.setEnabled(True)
        sizePolicy2 = QSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Expanding)
        sizePolicy2.setHorizontalStretch(0)
        sizePolicy2.setVerticalStretch(0)
        sizePolicy2.setHeightForWidth(self.plotBox.sizePolicy().hasHeightForWidth())
        self.plotBox.setSizePolicy(sizePolicy2)
 
        self.horizontalLayout_2.addWidget(self.plotBox)
 
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QMenuBar(MainWindow)
        self.menubar.setObjectName(u"menubar")
        self.menubar.setGeometry(QRect(0, 0, 1411, 22))
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QStatusBar(MainWindow)
        self.statusbar.setObjectName(u"statusbar")
        MainWindow.setStatusBar(self.statusbar)
 
        self.retranslateUi(MainWindow)
 
        QMetaObject.connectSlotsByName(MainWindow)
    # setupUi
 
    def retranslateUi(self, MainWindow):
        MainWindow.setWindowTitle(QCoreApplication.translate("MainWindow", u"Riemann Sum", None))
        self.helpingText.setPlainText(QCoreApplication.translate("MainWindow", u"Die Funktion f(x) kann eine beliebige Kombination von arithmetischen Operationen und Python mathematische Funktion in Modul math sein. Einige Beispiele sind:\n"
"\n"
"x ** 2                               0    4\n"
"x ** 3                               0    4\n"
"tan(radians(x))                      0    45\n"
"sin(x)**3 + cos(x)**3                0    2*pi\n"
"", None))
        self.functionInfo.setTitle(QCoreApplication.translate("MainWindow", u"Angabe der Funktion", None))
        self.label_start.setText(QCoreApplication.translate("MainWindow", u"Funktion f(x) = ", None))
        self.function.setText(QCoreApplication.translate("MainWindow", u"x ** 2", None))
        self.label_fn.setText(QCoreApplication.translate("MainWindow", u"start", None))
        self.startValue.setText(QCoreApplication.translate("MainWindow", u"0", None))
        self.label_end.setText(QCoreApplication.translate("MainWindow", u"end", None))
        self.endValue.setText(QCoreApplication.translate("MainWindow", u"4", None))
        self.breakRule.setTitle(QCoreApplication.translate("MainWindow", u"Abbuchkriterium", None))
        self.label_4.setText(QCoreApplication.translate("MainWindow", u"Epsilon", None))
        self.label_5.setText(QCoreApplication.translate("MainWindow", u"Anzahl der Sektionen", None))
        self.section.setText(QCoreApplication.translate("MainWindow", u"8", None))
        self.plotBtn.setText(QCoreApplication.translate("MainWindow", u"Ok", None))
        self.riemannSumGruppe.setTitle(QCoreApplication.translate("MainWindow", u"Riemann Summe", None))
        self.label.setText(QCoreApplication.translate("MainWindow", u"linke Summe", None))
        self.label_2.setText(QCoreApplication.translate("MainWindow", u"rechte Summe", None))
        self.label_3.setText(QCoreApplication.translate("MainWindow", u"Anzahl der Iterationen", None))
        self.plotBox.setTitle(QCoreApplication.translate("MainWindow", u"Plot", None))
    # retranslateUi