Projekt-Menü erstellt
This commit is contained in:
+63
-6
@@ -6,7 +6,7 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>1484</width>
|
<width>1263</width>
|
||||||
<height>921</height>
|
<height>921</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
@@ -120,7 +120,7 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>574</width>
|
<width>54</width>
|
||||||
<height>847</height>
|
<height>847</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
@@ -276,8 +276,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>493</width>
|
<width>792</width>
|
||||||
<height>409</height>
|
<height>781</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_3">
|
<layout class="QVBoxLayout" name="verticalLayout_3">
|
||||||
@@ -309,13 +309,70 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>1484</width>
|
<width>1263</width>
|
||||||
<height>33</height>
|
<height>33</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</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>
|
||||||
<widget class="QStatusBar" name="statusbar"/>
|
<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>
|
</widget>
|
||||||
<resources/>
|
<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>
|
</ui>
|
||||||
|
|||||||
+48
-16
@@ -11,21 +11,34 @@
|
|||||||
from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,
|
from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,
|
||||||
QMetaObject, QObject, QPoint, QRect,
|
QMetaObject, QObject, QPoint, QRect,
|
||||||
QSize, QTime, QUrl, Qt)
|
QSize, QTime, QUrl, Qt)
|
||||||
from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
|
from PySide6.QtGui import (QAction, QBrush, QColor, QConicalGradient,
|
||||||
QFont, QFontDatabase, QGradient, QIcon,
|
QCursor, QFont, QFontDatabase, QGradient,
|
||||||
QImage, QKeySequence, QLinearGradient, QPainter,
|
QIcon, QImage, QKeySequence, QLinearGradient,
|
||||||
QPalette, QPixmap, QRadialGradient, QTransform)
|
QPainter, QPalette, QPixmap, QRadialGradient,
|
||||||
|
QTransform)
|
||||||
from PySide6.QtWidgets import (QApplication, QFrame, QHBoxLayout, QHeaderView,
|
from PySide6.QtWidgets import (QApplication, QFrame, QHBoxLayout, QHeaderView,
|
||||||
QLabel, QMainWindow, QMenuBar, QPushButton,
|
QLabel, QMainWindow, QMenu, QMenuBar,
|
||||||
QScrollArea, QSizePolicy, QSlider, QSpacerItem,
|
QPushButton, QScrollArea, QSizePolicy, QSlider,
|
||||||
QStatusBar, QTreeWidget, QTreeWidgetItem, QVBoxLayout,
|
QSpacerItem, QStatusBar, QTreeWidget, QTreeWidgetItem,
|
||||||
QWidget)
|
QVBoxLayout, QWidget)
|
||||||
|
|
||||||
class Ui_MainWindow(object):
|
class Ui_MainWindow(object):
|
||||||
def setupUi(self, MainWindow):
|
def setupUi(self, MainWindow):
|
||||||
if not MainWindow.objectName():
|
if not MainWindow.objectName():
|
||||||
MainWindow.setObjectName(u"MainWindow")
|
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 = QWidget(MainWindow)
|
||||||
self.centralwidget.setObjectName(u"centralwidget")
|
self.centralwidget.setObjectName(u"centralwidget")
|
||||||
self.horizontalLayout = QHBoxLayout(self.centralwidget)
|
self.horizontalLayout = QHBoxLayout(self.centralwidget)
|
||||||
@@ -64,16 +77,16 @@ class Ui_MainWindow(object):
|
|||||||
self.pushButton = QPushButton(self.frame_2)
|
self.pushButton = QPushButton(self.frame_2)
|
||||||
self.pushButton.setObjectName(u"pushButton")
|
self.pushButton.setObjectName(u"pushButton")
|
||||||
self.pushButton.setLayoutDirection(Qt.LayoutDirection.LeftToRight)
|
self.pushButton.setLayoutDirection(Qt.LayoutDirection.LeftToRight)
|
||||||
icon = QIcon(QIcon.fromTheme(QIcon.ThemeIcon.MediaPlaybackStart))
|
icon3 = QIcon(QIcon.fromTheme(QIcon.ThemeIcon.MediaPlaybackStart))
|
||||||
self.pushButton.setIcon(icon)
|
self.pushButton.setIcon(icon3)
|
||||||
|
|
||||||
self.horizontalLayout_2.addWidget(self.pushButton)
|
self.horizontalLayout_2.addWidget(self.pushButton)
|
||||||
|
|
||||||
self.pushButton_2 = QPushButton(self.frame_2)
|
self.pushButton_2 = QPushButton(self.frame_2)
|
||||||
self.pushButton_2.setObjectName(u"pushButton_2")
|
self.pushButton_2.setObjectName(u"pushButton_2")
|
||||||
self.pushButton_2.setAutoFillBackground(False)
|
self.pushButton_2.setAutoFillBackground(False)
|
||||||
icon1 = QIcon(QIcon.fromTheme(QIcon.ThemeIcon.MediaSeekForward))
|
icon4 = QIcon(QIcon.fromTheme(QIcon.ThemeIcon.MediaSeekForward))
|
||||||
self.pushButton_2.setIcon(icon1)
|
self.pushButton_2.setIcon(icon4)
|
||||||
|
|
||||||
self.horizontalLayout_2.addWidget(self.pushButton_2)
|
self.horizontalLayout_2.addWidget(self.pushButton_2)
|
||||||
|
|
||||||
@@ -97,7 +110,7 @@ class Ui_MainWindow(object):
|
|||||||
self.scrollArea.setWidgetResizable(True)
|
self.scrollArea.setWidgetResizable(True)
|
||||||
self.scrollAreaWidgetContents = QWidget()
|
self.scrollAreaWidgetContents = QWidget()
|
||||||
self.scrollAreaWidgetContents.setObjectName(u"scrollAreaWidgetContents")
|
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 = QVBoxLayout(self.scrollAreaWidgetContents)
|
||||||
self.verticalLayout_2.setObjectName(u"verticalLayout_2")
|
self.verticalLayout_2.setObjectName(u"verticalLayout_2")
|
||||||
self.label = QLabel(self.scrollAreaWidgetContents)
|
self.label = QLabel(self.scrollAreaWidgetContents)
|
||||||
@@ -182,7 +195,7 @@ class Ui_MainWindow(object):
|
|||||||
self.scrollArea_2.setWidgetResizable(True)
|
self.scrollArea_2.setWidgetResizable(True)
|
||||||
self.scrollAreaWidgetContents_2 = QWidget()
|
self.scrollAreaWidgetContents_2 = QWidget()
|
||||||
self.scrollAreaWidgetContents_2.setObjectName(u"scrollAreaWidgetContents_2")
|
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 = QVBoxLayout(self.scrollAreaWidgetContents_2)
|
||||||
self.verticalLayout_3.setObjectName(u"verticalLayout_3")
|
self.verticalLayout_3.setObjectName(u"verticalLayout_3")
|
||||||
self.label_3 = QLabel(self.scrollAreaWidgetContents_2)
|
self.label_3 = QLabel(self.scrollAreaWidgetContents_2)
|
||||||
@@ -205,19 +218,37 @@ class Ui_MainWindow(object):
|
|||||||
MainWindow.setCentralWidget(self.centralwidget)
|
MainWindow.setCentralWidget(self.centralwidget)
|
||||||
self.menubar = QMenuBar(MainWindow)
|
self.menubar = QMenuBar(MainWindow)
|
||||||
self.menubar.setObjectName(u"menubar")
|
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)
|
MainWindow.setMenuBar(self.menubar)
|
||||||
self.statusbar = QStatusBar(MainWindow)
|
self.statusbar = QStatusBar(MainWindow)
|
||||||
self.statusbar.setObjectName(u"statusbar")
|
self.statusbar.setObjectName(u"statusbar")
|
||||||
MainWindow.setStatusBar(self.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.retranslateUi(MainWindow)
|
||||||
|
self.actionBeenden.triggered.connect(MainWindow.close)
|
||||||
|
|
||||||
QMetaObject.connectSlotsByName(MainWindow)
|
QMetaObject.connectSlotsByName(MainWindow)
|
||||||
# setupUi
|
# setupUi
|
||||||
|
|
||||||
def retranslateUi(self, MainWindow):
|
def retranslateUi(self, MainWindow):
|
||||||
MainWindow.setWindowTitle(QCoreApplication.translate("MainWindow", u"MainWindow", None))
|
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.setText(QCoreApplication.translate("MainWindow", u"nur ge\u00e4nderte generieren", None))
|
||||||
self.pushButton_2.setText(QCoreApplication.translate("MainWindow", u"Alle generieren", None))
|
self.pushButton_2.setText(QCoreApplication.translate("MainWindow", u"Alle generieren", None))
|
||||||
self.label.setText("")
|
self.label.setText("")
|
||||||
@@ -227,5 +258,6 @@ class Ui_MainWindow(object):
|
|||||||
self.label_5.setText(QCoreApplication.translate("MainWindow", u"Zoom", None))
|
self.label_5.setText(QCoreApplication.translate("MainWindow", u"Zoom", None))
|
||||||
self.label_3.setText(QCoreApplication.translate("MainWindow", u"TextLabel", None))
|
self.label_3.setText(QCoreApplication.translate("MainWindow", u"TextLabel", None))
|
||||||
self.label_4.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
|
# retranslateUi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user