From f12ecb67472aa2453d3b1b3fb68e4eb9521aee77 Mon Sep 17 00:00:00 2001 From: hbui <hong-phuc.bui@htwsaar.de> Date: Sun, 21 Jul 2024 13:41:27 +0200 Subject: [PATCH] gui ok --- num-int/src/numint/mainwindow.ui | 201 +++++++++++++++++++++++++++++++++++++------------- 1 files changed, 148 insertions(+), 53 deletions(-) diff --git a/num-int/src/numint/mainwindow.ui b/num-int/src/numint/mainwindow.ui index 974c4a5..2909f6d 100644 --- a/num-int/src/numint/mainwindow.ui +++ b/num-int/src/numint/mainwindow.ui @@ -18,65 +18,55 @@ <item> <layout class="QVBoxLayout" name="verticalLayout"> <item> - <layout class="QHBoxLayout" name="horizontalLayout"> - <item> - <widget class="QLabel" name="label_3"> - <property name="text"> - <string>Funktion</string> - </property> - </widget> - </item> - <item> - <widget class="QComboBox" name="functions"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <item> + <widget class="QGroupBox" name="functionInfo"> + <property name="title"> + <string>Angabe der Funktion</string> + </property> + <layout class="QHBoxLayout" name="horizontalLayout"> + <item> + <widget class="QLabel" name="label_start"> <property name="text"> - <string>sin</string> + <string>Funktion f(x) = </string> </property> - </item> - <item> + </widget> + </item> + <item> + <widget class="QLineEdit" name="function"> <property name="text"> - <string>cos</string> + <string>x ** 2</string> </property> - </item> - <item> + </widget> + </item> + <item> + <widget class="QLabel" name="label_fn"> <property name="text"> - <string>x^2</string> + <string>start</string> </property> - </item> - <item> + </widget> + </item> + <item> + <widget class="QLineEdit" name="startValue"> <property name="text"> - <string>x^3</string> + <string>0</string> </property> - </item> - </widget> - </item> - <item> - <widget class="QLabel" name="label"> - <property name="text"> - <string>start</string> - </property> - </widget> - </item> - <item> - <widget class="QLineEdit" name="startValue"/> - </item> - <item> - <widget class="QLabel" name="label_2"> - <property name="text"> - <string>end</string> - </property> - </widget> - </item> - <item> - <widget class="QLineEdit" name="endValue"/> - </item> - </layout> + </widget> + </item> + <item> + <widget class="QLabel" name="label_end"> + <property name="text"> + <string>end</string> + </property> + </widget> + </item> + <item> + <widget class="QLineEdit" name="endValue"> + <property name="text"> + <string>4</string> + </property> + </widget> + </item> + </layout> + </widget> </item> <item> <layout class="QHBoxLayout" name="horizontalLayout_2"> @@ -94,7 +84,7 @@ </spacer> </item> <item> - <widget class="QPushButton" name="pushButton"> + <widget class="QPushButton" name="plotBtn"> <property name="text"> <string>Ok</string> </property> @@ -102,10 +92,115 @@ </item> </layout> </item> + <item> + <widget class="QPlainTextEdit" name="plainTextEdit"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Minimum"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="font"> + <font> + <family>Noto Mono</family> + </font> + </property> + <property name="readOnly"> + <bool>true</bool> + </property> + <property name="plainText"> + <string>Die Funktion f(x) kann eine belibige Kombination von arithmetischen Operationen und Python mathematische Funktion in Modul math sein. Einige Beispiele sind: + +x ** 2 +x ** 3 +tan(radians(x))</string> + </property> + </widget> + </item> </layout> </item> <item> - <widget class="QGroupBox" name="groupBox"> + <widget class="QGroupBox" name="breakRule"> + <property name="title"> + <string>Abbuchkriterium</string> + </property> + <layout class="QVBoxLayout" name="verticalLayout_3"> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_5"> + <item> + <widget class="QLabel" name="label_4"> + <property name="text"> + <string>Maximum Differenz ziwschen Link- und Recht-Summe</string> + </property> + </widget> + </item> + <item> + <spacer name="horizontalSpacer_2"> + <property name="orientation"> + <enum>Qt::Orientation::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QLineEdit" name="espilon"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + </widget> + </item> + </layout> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_3"> + <item> + <widget class="QLabel" name="label_5"> + <property name="text"> + <string>Anzahl der Sektionen</string> + </property> + </widget> + </item> + <item> + <spacer name="horizontalSpacer_3"> + <property name="orientation"> + <enum>Qt::Orientation::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QLineEdit" name="section"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>8</string> + </property> + </widget> + </item> + </layout> + </item> + </layout> + </widget> + </item> + <item> + <widget class="QGroupBox" name="plotBox"> <property name="enabled"> <bool>true</bool> </property> -- Gitblit v1.10.0-SNAPSHOT