diff --git a/agents.md b/agents.md index d55c8a1..63c8ae7 100644 --- a/agents.md +++ b/agents.md @@ -1,4 +1,7 @@ -# PySide6-GUI +# Projekt allgemeines + - In diesem Projekt wirt uv Packetmanager verwendet. + +## PySide6-GUI - Beim Erstellen neuer Dialoge sollte stets eine passende UI-Datei erstellt werden. - Der Entwickler soll den neuen Dialog später über die UI-Datei gestalten können. - Die UI-Datei wird in Visual Studio Code durch eine Erweiterung automatisch als .py-Datei generiert. diff --git a/src/ui/MainWinddow.ui b/src/ui/MainWinddow.ui index c426ce9..a9fe07b 100644 --- a/src/ui/MainWinddow.ui +++ b/src/ui/MainWinddow.ui @@ -15,296 +15,81 @@ + + 0 + + + 0 + + + 0 + + + 0 + - - - - 0 - 0 - + + + Qt::Orientation::Horizontal - - QFrame::Shape::StyledPanel - - - QFrame::Shadow::Raised - - - - - - - 0 - 0 - - - - 2 - - - - 1 - - - - - 2 - - - - - - - - QFrame::Shadow::Raised - - - - - - Qt::LayoutDirection::LeftToRight - - - nur geänderte generieren - - - - - - - - - - false - - - Alle generieren - - - - - - - - - - Qt::Orientation::Horizontal - - - - 40 - 20 - - - - - - - - - - - - - - - 0 - 0 - - - - true - - - - - 0 - 0 - 54 - 847 - + + + + 0 + 0 + - + + + 200 + 0 + + + + QFrame::Shape::StyledPanel + + + QFrame::Shadow::Raised + + + + 0 + - - - + + + + 0 + 0 + + + 2 + + + true + + + true + + + + 1 + + + + + 2 + + - - - + + + QFrame::Shadow::Raised - - - - - - Qt::Orientation::Vertical - - - - 20 - 40 - - - - - - - - - - - - QFrame::Shape::NoFrame - - - QFrame::Shadow::Raised - - - - 0 - - - 0 - - - 0 - - - 0 - - - - - QFrame::Shape::StyledPanel - - - QFrame::Shadow::Raised - - - - 0 - - - 0 - - - 0 - - - 0 - - - - - Qt::Orientation::Horizontal - - - - 40 - 20 - - - - - - - - Vorher (Referenz) - - - - - - - -100 - - - 100 - - - Qt::Orientation::Horizontal - - - - - - - Nachher (Neu) - - - - - - - Qt::Orientation::Horizontal - - - - 40 - 20 - - - - - - - - Zoom - - - - - - - 25 - - - 300 - - - 100 - - - Qt::Orientation::Horizontal - - - - - - - Qt::Orientation::Horizontal - - - - 40 - 20 - - - - - - - - - - - true - - - - - 0 - 0 - 794 - 801 - - - + 0 @@ -318,24 +103,279 @@ 0 - + + + Qt::LayoutDirection::LeftToRight + - TextLabel + nur geänderte generieren + + + - + + + false + - TextLabel + Alle generieren + + + + + + + Qt::Orientation::Horizontal + + + + 40 + 20 + + + + - - - + + + + + + + 0 + 0 + + + + true + + + + + 0 + 0 + 54 + 865 + + + + + + + + + + + + + + + + + + + + + Qt::Orientation::Vertical + + + + 20 + 40 + + + + + + + + + + QFrame::Shape::NoFrame + + + QFrame::Shadow::Raised + + + + 0 + + + 0 + + + 0 + + + 0 + + + + + QFrame::Shape::StyledPanel + + + QFrame::Shadow::Raised + + + + 0 + + + 0 + + + 0 + + + 0 + + + + + Qt::Orientation::Horizontal + + + + 40 + 20 + + + + + + + + Vorher (Referenz) + + + + + + + -100 + + + 100 + + + Qt::Orientation::Horizontal + + + + + + + Nachher (Neu) + + + + + + + Qt::Orientation::Horizontal + + + + 40 + 20 + + + + + + + + Zoom + + + + + + + 25 + + + 300 + + + 100 + + + Qt::Orientation::Horizontal + + + + + + + Qt::Orientation::Horizontal + + + + 40 + 20 + + + + + + + + + + + true + + + + + 0 + 0 + 725 + 837 + + + + + 0 + + + 0 + + + 0 + + + 0 + + + + + TextLabel + + + + + + + TextLabel + + + + + + + + + diff --git a/src/ui/MainWinddow_ui.py b/src/ui/MainWinddow_ui.py index d86919e..b17f907 100644 --- a/src/ui/MainWinddow_ui.py +++ b/src/ui/MainWinddow_ui.py @@ -19,8 +19,8 @@ from PySide6.QtGui import (QAction, QBrush, QColor, QConicalGradient, from PySide6.QtWidgets import (QApplication, QFrame, QHBoxLayout, QHeaderView, QLabel, QMainWindow, QMenu, QMenuBar, QPushButton, QScrollArea, QSizePolicy, QSlider, - QSpacerItem, QStatusBar, QTreeWidget, QTreeWidgetItem, - QVBoxLayout, QWidget) + QSpacerItem, QSplitter, QStatusBar, QTreeWidget, + QTreeWidgetItem, QVBoxLayout, QWidget) class Ui_MainWindow(object): def setupUi(self, MainWindow): @@ -50,29 +50,37 @@ class Ui_MainWindow(object): self.centralwidget.setObjectName(u"centralwidget") self.horizontalLayout = QHBoxLayout(self.centralwidget) self.horizontalLayout.setObjectName(u"horizontalLayout") - self.frame = QFrame(self.centralwidget) + self.horizontalLayout.setContentsMargins(0, 0, 0, 0) + self.splitter = QSplitter(self.centralwidget) + self.splitter.setObjectName(u"splitter") + self.splitter.setOrientation(Qt.Orientation.Horizontal) + self.frame = QFrame(self.splitter) self.frame.setObjectName(u"frame") - sizePolicy = QSizePolicy(QSizePolicy.Policy.Maximum, QSizePolicy.Policy.Preferred) + sizePolicy = QSizePolicy(QSizePolicy.Policy.Preferred, QSizePolicy.Policy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.frame.sizePolicy().hasHeightForWidth()) self.frame.setSizePolicy(sizePolicy) + self.frame.setMinimumSize(QSize(200, 0)) self.frame.setFrameShape(QFrame.Shape.StyledPanel) self.frame.setFrameShadow(QFrame.Shadow.Raised) self.verticalLayout = QVBoxLayout(self.frame) self.verticalLayout.setObjectName(u"verticalLayout") + self.verticalLayout.setContentsMargins(-1, -1, -1, 0) self.treeWidget = QTreeWidget(self.frame) __qtreewidgetitem = QTreeWidgetItem() __qtreewidgetitem.setText(1, u"2"); __qtreewidgetitem.setText(0, u"1"); self.treeWidget.setHeaderItem(__qtreewidgetitem) self.treeWidget.setObjectName(u"treeWidget") - sizePolicy1 = QSizePolicy(QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding) + sizePolicy1 = QSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Expanding) sizePolicy1.setHorizontalStretch(0) sizePolicy1.setVerticalStretch(0) sizePolicy1.setHeightForWidth(self.treeWidget.sizePolicy().hasHeightForWidth()) self.treeWidget.setSizePolicy(sizePolicy1) self.treeWidget.setColumnCount(2) + self.treeWidget.header().setHighlightSections(True) + self.treeWidget.header().setStretchLastSection(True) self.verticalLayout.addWidget(self.treeWidget) @@ -81,6 +89,7 @@ class Ui_MainWindow(object): self.frame_2.setFrameShadow(QFrame.Shadow.Raised) self.horizontalLayout_2 = QHBoxLayout(self.frame_2) self.horizontalLayout_2.setObjectName(u"horizontalLayout_2") + self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0) self.pushButton = QPushButton(self.frame_2) self.pushButton.setObjectName(u"pushButton") self.pushButton.setLayoutDirection(Qt.LayoutDirection.LeftToRight) @@ -104,10 +113,8 @@ class Ui_MainWindow(object): self.verticalLayout.addWidget(self.frame_2) - - self.horizontalLayout.addWidget(self.frame) - - self.scrollArea = QScrollArea(self.centralwidget) + self.splitter.addWidget(self.frame) + self.scrollArea = QScrollArea(self.splitter) self.scrollArea.setObjectName(u"scrollArea") sizePolicy2 = QSizePolicy(QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Minimum) sizePolicy2.setHorizontalStretch(0) @@ -117,7 +124,7 @@ class Ui_MainWindow(object): self.scrollArea.setWidgetResizable(True) self.scrollAreaWidgetContents = QWidget() self.scrollAreaWidgetContents.setObjectName(u"scrollAreaWidgetContents") - self.scrollAreaWidgetContents.setGeometry(QRect(0, 0, 54, 847)) + self.scrollAreaWidgetContents.setGeometry(QRect(0, 0, 54, 865)) self.verticalLayout_2 = QVBoxLayout(self.scrollAreaWidgetContents) self.verticalLayout_2.setObjectName(u"verticalLayout_2") self.label = QLabel(self.scrollAreaWidgetContents) @@ -135,10 +142,8 @@ class Ui_MainWindow(object): self.verticalLayout_2.addItem(self.verticalSpacer) self.scrollArea.setWidget(self.scrollAreaWidgetContents) - - self.horizontalLayout.addWidget(self.scrollArea) - - self.frame_3 = QFrame(self.centralwidget) + self.splitter.addWidget(self.scrollArea) + self.frame_3 = QFrame(self.splitter) self.frame_3.setObjectName(u"frame_3") self.frame_3.setFrameShape(QFrame.Shape.NoFrame) self.frame_3.setFrameShadow(QFrame.Shadow.Raised) @@ -204,7 +209,7 @@ class Ui_MainWindow(object): self.scrollArea_2.setWidgetResizable(True) self.scrollAreaWidgetContents_2 = QWidget() self.scrollAreaWidgetContents_2.setObjectName(u"scrollAreaWidgetContents_2") - self.scrollAreaWidgetContents_2.setGeometry(QRect(0, 0, 794, 801)) + self.scrollAreaWidgetContents_2.setGeometry(QRect(0, 0, 725, 837)) self.verticalLayout_3 = QVBoxLayout(self.scrollAreaWidgetContents_2) self.verticalLayout_3.setObjectName(u"verticalLayout_3") self.verticalLayout_3.setContentsMargins(0, 0, 0, 0) @@ -222,8 +227,9 @@ class Ui_MainWindow(object): self.verticalLayout_4.addWidget(self.scrollArea_2) + self.splitter.addWidget(self.frame_3) - self.horizontalLayout.addWidget(self.frame_3) + self.horizontalLayout.addWidget(self.splitter) MainWindow.setCentralWidget(self.centralwidget) self.menubar = QMenuBar(MainWindow)