Projekt-Menü erstellt

This commit is contained in:
2025-05-27 20:10:19 +02:00
parent c2826695c7
commit 0892337e68
2 changed files with 111 additions and 22 deletions
+63 -6
View File
@@ -6,7 +6,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>1484</width>
<width>1263</width>
<height>921</height>
</rect>
</property>
@@ -120,7 +120,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>574</width>
<width>54</width>
<height>847</height>
</rect>
</property>
@@ -276,8 +276,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>493</width>
<height>409</height>
<width>792</width>
<height>781</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_3">
@@ -309,13 +309,70 @@
<rect>
<x>0</x>
<y>0</y>
<width>1484</width>
<width>1263</width>
<height>33</height>
</rect>
</property>
<widget class="QMenu" name="menuProjekt">
<property name="title">
<string>Projekt</string>
</property>
<addaction name="actionNeu"/>
<addaction name="action_ffnen"/>
<addaction name="separator"/>
<addaction name="actionBeenden"/>
</widget>
<addaction name="menuProjekt"/>
</widget>
<widget class="QStatusBar" name="statusbar"/>
<action name="actionNeu">
<property name="icon">
<iconset theme="folder-new"/>
</property>
<property name="text">
<string>Neu ...</string>
</property>
<property name="shortcut">
<string>Ctrl+N</string>
</property>
</action>
<action name="action_ffnen">
<property name="icon">
<iconset theme="folder-open"/>
</property>
<property name="text">
<string>Öffnen ...</string>
</property>
<property name="shortcut">
<string>Ctrl+O</string>
</property>
</action>
<action name="actionBeenden">
<property name="icon">
<iconset theme="QIcon::ThemeIcon::ApplicationExit"/>
</property>
<property name="text">
<string>Beenden</string>
</property>
</action>
</widget>
<resources/>
<connections/>
<connections>
<connection>
<sender>actionBeenden</sender>
<signal>triggered()</signal>
<receiver>MainWindow</receiver>
<slot>close()</slot>
<hints>
<hint type="sourcelabel">
<x>-1</x>
<y>-1</y>
</hint>
<hint type="destinationlabel">
<x>741</x>
<y>460</y>
</hint>
</hints>
</connection>
</connections>
</ui>
+48 -16
View File
@@ -11,21 +11,34 @@
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.QtGui import (QAction, QBrush, QColor, QConicalGradient,
QCursor, QFont, QFontDatabase, QGradient,
QIcon, QImage, QKeySequence, QLinearGradient,
QPainter, QPalette, QPixmap, QRadialGradient,
QTransform)
from PySide6.QtWidgets import (QApplication, QFrame, QHBoxLayout, QHeaderView,
QLabel, QMainWindow, QMenuBar, QPushButton,
QScrollArea, QSizePolicy, QSlider, QSpacerItem,
QStatusBar, QTreeWidget, QTreeWidgetItem, QVBoxLayout,
QWidget)
QLabel, QMainWindow, QMenu, QMenuBar,
QPushButton, QScrollArea, QSizePolicy, QSlider,
QSpacerItem, QStatusBar, QTreeWidget, QTreeWidgetItem,
QVBoxLayout, QWidget)
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
if not MainWindow.objectName():
MainWindow.setObjectName(u"MainWindow")
MainWindow.resize(1484, 921)
MainWindow.resize(1263, 921)
self.actionNeu = QAction(MainWindow)
self.actionNeu.setObjectName(u"actionNeu")
icon = QIcon(QIcon.fromTheme(u"folder-new"))
self.actionNeu.setIcon(icon)
self.action_ffnen = QAction(MainWindow)
self.action_ffnen.setObjectName(u"action_ffnen")
icon1 = QIcon(QIcon.fromTheme(u"folder-open"))
self.action_ffnen.setIcon(icon1)
self.actionBeenden = QAction(MainWindow)
self.actionBeenden.setObjectName(u"actionBeenden")
icon2 = QIcon(QIcon.fromTheme(QIcon.ThemeIcon.ApplicationExit))
self.actionBeenden.setIcon(icon2)
self.centralwidget = QWidget(MainWindow)
self.centralwidget.setObjectName(u"centralwidget")
self.horizontalLayout = QHBoxLayout(self.centralwidget)
@@ -64,16 +77,16 @@ class Ui_MainWindow(object):
self.pushButton = QPushButton(self.frame_2)
self.pushButton.setObjectName(u"pushButton")
self.pushButton.setLayoutDirection(Qt.LayoutDirection.LeftToRight)
icon = QIcon(QIcon.fromTheme(QIcon.ThemeIcon.MediaPlaybackStart))
self.pushButton.setIcon(icon)
icon3 = QIcon(QIcon.fromTheme(QIcon.ThemeIcon.MediaPlaybackStart))
self.pushButton.setIcon(icon3)
self.horizontalLayout_2.addWidget(self.pushButton)
self.pushButton_2 = QPushButton(self.frame_2)
self.pushButton_2.setObjectName(u"pushButton_2")
self.pushButton_2.setAutoFillBackground(False)
icon1 = QIcon(QIcon.fromTheme(QIcon.ThemeIcon.MediaSeekForward))
self.pushButton_2.setIcon(icon1)
icon4 = QIcon(QIcon.fromTheme(QIcon.ThemeIcon.MediaSeekForward))
self.pushButton_2.setIcon(icon4)
self.horizontalLayout_2.addWidget(self.pushButton_2)
@@ -97,7 +110,7 @@ class Ui_MainWindow(object):
self.scrollArea.setWidgetResizable(True)
self.scrollAreaWidgetContents = QWidget()
self.scrollAreaWidgetContents.setObjectName(u"scrollAreaWidgetContents")
self.scrollAreaWidgetContents.setGeometry(QRect(0, 0, 574, 847))
self.scrollAreaWidgetContents.setGeometry(QRect(0, 0, 54, 847))
self.verticalLayout_2 = QVBoxLayout(self.scrollAreaWidgetContents)
self.verticalLayout_2.setObjectName(u"verticalLayout_2")
self.label = QLabel(self.scrollAreaWidgetContents)
@@ -182,7 +195,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, 493, 409))
self.scrollAreaWidgetContents_2.setGeometry(QRect(0, 0, 792, 781))
self.verticalLayout_3 = QVBoxLayout(self.scrollAreaWidgetContents_2)
self.verticalLayout_3.setObjectName(u"verticalLayout_3")
self.label_3 = QLabel(self.scrollAreaWidgetContents_2)
@@ -205,19 +218,37 @@ class Ui_MainWindow(object):
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QMenuBar(MainWindow)
self.menubar.setObjectName(u"menubar")
self.menubar.setGeometry(QRect(0, 0, 1484, 33))
self.menubar.setGeometry(QRect(0, 0, 1263, 33))
self.menuProjekt = QMenu(self.menubar)
self.menuProjekt.setObjectName(u"menuProjekt")
MainWindow.setMenuBar(self.menubar)
self.statusbar = QStatusBar(MainWindow)
self.statusbar.setObjectName(u"statusbar")
MainWindow.setStatusBar(self.statusbar)
self.menubar.addAction(self.menuProjekt.menuAction())
self.menuProjekt.addAction(self.actionNeu)
self.menuProjekt.addAction(self.action_ffnen)
self.menuProjekt.addSeparator()
self.menuProjekt.addAction(self.actionBeenden)
self.retranslateUi(MainWindow)
self.actionBeenden.triggered.connect(MainWindow.close)
QMetaObject.connectSlotsByName(MainWindow)
# setupUi
def retranslateUi(self, MainWindow):
MainWindow.setWindowTitle(QCoreApplication.translate("MainWindow", u"MainWindow", None))
self.actionNeu.setText(QCoreApplication.translate("MainWindow", u"Neu ...", None))
#if QT_CONFIG(shortcut)
self.actionNeu.setShortcut(QCoreApplication.translate("MainWindow", u"Ctrl+N", None))
#endif // QT_CONFIG(shortcut)
self.action_ffnen.setText(QCoreApplication.translate("MainWindow", u"\u00d6ffnen ...", None))
#if QT_CONFIG(shortcut)
self.action_ffnen.setShortcut(QCoreApplication.translate("MainWindow", u"Ctrl+O", None))
#endif // QT_CONFIG(shortcut)
self.actionBeenden.setText(QCoreApplication.translate("MainWindow", u"Beenden", None))
self.pushButton.setText(QCoreApplication.translate("MainWindow", u"nur ge\u00e4nderte generieren", None))
self.pushButton_2.setText(QCoreApplication.translate("MainWindow", u"Alle generieren", None))
self.label.setText("")
@@ -227,5 +258,6 @@ class Ui_MainWindow(object):
self.label_5.setText(QCoreApplication.translate("MainWindow", u"Zoom", None))
self.label_3.setText(QCoreApplication.translate("MainWindow", u"TextLabel", None))
self.label_4.setText(QCoreApplication.translate("MainWindow", u"TextLabel", None))
self.menuProjekt.setTitle(QCoreApplication.translate("MainWindow", u"Projekt", None))
# retranslateUi