✨ Added version dialog. See File -> Version.
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
################################################################################
|
||||
## Form generated from reading UI file 'dialog_version.ui'
|
||||
##
|
||||
## Created by: Qt User Interface Compiler version 6.6.1
|
||||
##
|
||||
## WARNING! All changes made in this file will be lost when recompiling UI file!
|
||||
################################################################################
|
||||
|
||||
from PySide6.QtCore import QCoreApplication, QMetaObject, QRect
|
||||
from PySide6.QtWidgets import QLabel
|
||||
|
||||
|
||||
class Ui_DialogVersion:
|
||||
def setupUi(self, DialogVersion):
|
||||
if not DialogVersion.objectName():
|
||||
DialogVersion.setObjectName("DialogVersion")
|
||||
DialogVersion.resize(436, 235)
|
||||
self.l_version = QLabel(DialogVersion)
|
||||
self.l_version.setObjectName("l_version")
|
||||
self.l_version.setGeometry(QRect(190, 100, 61, 16))
|
||||
self.l_url_github = QLabel(DialogVersion)
|
||||
self.l_url_github.setObjectName("l_url_github")
|
||||
self.l_url_github.setGeometry(QRect(160, 200, 251, 20))
|
||||
self.l_url_github.setOpenExternalLinks(True)
|
||||
self.l_name_app = QLabel(DialogVersion)
|
||||
self.l_name_app.setObjectName("l_name_app")
|
||||
self.l_name_app.setGeometry(QRect(110, 30, 231, 16))
|
||||
|
||||
self.retranslateUi(DialogVersion)
|
||||
|
||||
QMetaObject.connectSlotsByName(DialogVersion)
|
||||
|
||||
# setupUi
|
||||
|
||||
def retranslateUi(self, DialogVersion):
|
||||
DialogVersion.setWindowTitle(QCoreApplication.translate("DialogVersion", "Version", None))
|
||||
self.l_version.setText(QCoreApplication.translate("DialogVersion", "v1.2.3", None))
|
||||
self.l_url_github.setText(
|
||||
QCoreApplication.translate(
|
||||
"DialogVersion",
|
||||
'<a href="https://github.com/exislow/tidal-dl-ng/">https://github.com/exislow/tidal-dl-ng/</a>',
|
||||
None,
|
||||
)
|
||||
)
|
||||
self.l_name_app.setText(QCoreApplication.translate("DialogVersion", "TIDAL Downloader Next Generation", None))
|
||||
|
||||
# retranslateUi
|
||||
@@ -0,0 +1,61 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>DialogVersion</class>
|
||||
<widget class="QDialog" name="DialogVersion">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>436</width>
|
||||
<height>235</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Version</string>
|
||||
</property>
|
||||
<widget class="QLabel" name="l_version">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>190</x>
|
||||
<y>100</y>
|
||||
<width>61</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>v1.2.3</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="l_url_github">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>160</x>
|
||||
<y>200</y>
|
||||
<width>251</width>
|
||||
<height>20</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string><a href="https://github.com/exislow/tidal-dl-ng/">https://github.com/exislow/tidal-dl-ng/</a></string>
|
||||
</property>
|
||||
<property name="openExternalLinks">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="l_name_app">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>110</x>
|
||||
<y>30</y>
|
||||
<width>231</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>TIDAL Downloader Next Generation</string>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
||||
+17
-9
@@ -33,20 +33,24 @@ class Ui_MainWindow:
|
||||
if not MainWindow.objectName():
|
||||
MainWindow.setObjectName("MainWindow")
|
||||
MainWindow.resize(900, 700)
|
||||
self.a_options = QAction(MainWindow)
|
||||
self.a_options.setObjectName("a_options")
|
||||
self.a_options.setEnabled(False)
|
||||
self.a_options.setText("Options")
|
||||
self.a_options.setIconText("Options")
|
||||
self.a_preferences = QAction(MainWindow)
|
||||
self.a_preferences.setObjectName("a_preferences")
|
||||
self.a_preferences.setEnabled(False)
|
||||
self.a_preferences.setText("Preferences...")
|
||||
self.a_preferences.setIconText("Preferences...")
|
||||
# if QT_CONFIG(tooltip)
|
||||
self.a_options.setToolTip("Options")
|
||||
self.a_preferences.setToolTip("Preferences...")
|
||||
# endif // QT_CONFIG(tooltip)
|
||||
# if QT_CONFIG(statustip)
|
||||
self.a_options.setStatusTip("")
|
||||
self.a_preferences.setStatusTip("")
|
||||
# endif // QT_CONFIG(statustip)
|
||||
# if QT_CONFIG(whatsthis)
|
||||
self.a_options.setWhatsThis("")
|
||||
self.a_preferences.setWhatsThis("")
|
||||
# endif // QT_CONFIG(whatsthis)
|
||||
self.a_version = QAction(MainWindow)
|
||||
self.a_version.setObjectName("a_version")
|
||||
self.a_exit = QAction(MainWindow)
|
||||
self.a_exit.setObjectName("a_exit")
|
||||
self.w_central = QWidget(MainWindow)
|
||||
self.w_central.setObjectName("w_central")
|
||||
self.w_central.setEnabled(True)
|
||||
@@ -420,7 +424,9 @@ class Ui_MainWindow:
|
||||
MainWindow.setStatusBar(self.statusbar)
|
||||
|
||||
self.menubar.addAction(self.m_file.menuAction())
|
||||
self.m_file.addAction(self.a_options)
|
||||
self.m_file.addAction(self.a_preferences)
|
||||
self.m_file.addAction(self.a_version)
|
||||
self.m_file.addAction(self.a_exit)
|
||||
|
||||
self.retranslateUi(MainWindow)
|
||||
|
||||
@@ -430,6 +436,8 @@ class Ui_MainWindow:
|
||||
|
||||
def retranslateUi(self, MainWindow):
|
||||
MainWindow.setWindowTitle(QCoreApplication.translate("MainWindow", "MainWindow", None))
|
||||
self.a_version.setText(QCoreApplication.translate("MainWindow", "Version", None))
|
||||
self.a_exit.setText(QCoreApplication.translate("MainWindow", "Exit", None))
|
||||
___qtreewidgetitem = self.tr_lists_user.headerItem()
|
||||
___qtreewidgetitem.setText(2, QCoreApplication.translate("MainWindow", "obj", None))
|
||||
|
||||
|
||||
+17
-5
@@ -540,7 +540,9 @@
|
||||
<property name="title">
|
||||
<string>File</string>
|
||||
</property>
|
||||
<addaction name="a_options"/>
|
||||
<addaction name="a_preferences"/>
|
||||
<addaction name="a_version"/>
|
||||
<addaction name="a_exit"/>
|
||||
</widget>
|
||||
<addaction name="m_file"/>
|
||||
</widget>
|
||||
@@ -564,18 +566,18 @@
|
||||
<enum>Qt::LeftToRight</enum>
|
||||
</property>
|
||||
</widget>
|
||||
<action name="a_options">
|
||||
<action name="a_preferences">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string notr="true">Options</string>
|
||||
<string notr="true">Preferences...</string>
|
||||
</property>
|
||||
<property name="iconText">
|
||||
<string notr="true">Options</string>
|
||||
<string notr="true">Preferences...</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string notr="true">Options</string>
|
||||
<string notr="true">Preferences...</string>
|
||||
</property>
|
||||
<property name="statusTip">
|
||||
<string notr="true"/>
|
||||
@@ -584,6 +586,16 @@
|
||||
<string notr="true"/>
|
||||
</property>
|
||||
</action>
|
||||
<action name="a_version">
|
||||
<property name="text">
|
||||
<string>Version</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="a_exit">
|
||||
<property name="text">
|
||||
<string>Exit</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections/>
|
||||
|
||||
Reference in New Issue
Block a user