Fully functional as a basic NUS downloader application, only lacking titles database

This commit is contained in:
2024-04-07 15:36:36 -04:00
parent 4f76259ccf
commit f513afc39a
4 changed files with 311 additions and 25 deletions

143
qt/py/ui_MainMenu.py Normal file
View File

@@ -0,0 +1,143 @@
# -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'MainMenu.ui'
##
## Created by: Qt User Interface Compiler version 6.6.3
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################
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.QtWidgets import (QApplication, QCheckBox, QHBoxLayout, QLabel,
QLineEdit, QMainWindow, QMenuBar, QPushButton,
QSizePolicy, QStatusBar, QTextBrowser, QVBoxLayout,
QWidget)
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
if not MainWindow.objectName():
MainWindow.setObjectName(u"MainWindow")
MainWindow.resize(305, 605)
MainWindow.setMinimumSize(QSize(305, 605))
MainWindow.setMaximumSize(QSize(305, 605))
self.centralwidget = QWidget(MainWindow)
self.centralwidget.setObjectName(u"centralwidget")
self.verticalLayout_2 = QVBoxLayout(self.centralwidget)
self.verticalLayout_2.setObjectName(u"verticalLayout_2")
self.horizontalLayout = QHBoxLayout()
self.horizontalLayout.setObjectName(u"horizontalLayout")
self.show_titles_btn = QPushButton(self.centralwidget)
self.show_titles_btn.setObjectName(u"show_titles_btn")
self.horizontalLayout.addWidget(self.show_titles_btn)
self.show_more_btn = QPushButton(self.centralwidget)
self.show_more_btn.setObjectName(u"show_more_btn")
self.horizontalLayout.addWidget(self.show_more_btn)
self.verticalLayout_2.addLayout(self.horizontalLayout)
self.horizontalLayout_2 = QHBoxLayout()
self.horizontalLayout_2.setObjectName(u"horizontalLayout_2")
self.tid_entry = QLineEdit(self.centralwidget)
self.tid_entry.setObjectName(u"tid_entry")
self.horizontalLayout_2.addWidget(self.tid_entry)
self.label = QLabel(self.centralwidget)
self.label.setObjectName(u"label")
self.horizontalLayout_2.addWidget(self.label)
self.version_entry = QLineEdit(self.centralwidget)
self.version_entry.setObjectName(u"version_entry")
self.version_entry.setMaximumSize(QSize(75, 16777215))
self.horizontalLayout_2.addWidget(self.version_entry)
self.verticalLayout_2.addLayout(self.horizontalLayout_2)
self.download_btn = QPushButton(self.centralwidget)
self.download_btn.setObjectName(u"download_btn")
self.verticalLayout_2.addWidget(self.download_btn)
self.log_text_browser = QTextBrowser(self.centralwidget)
self.log_text_browser.setObjectName(u"log_text_browser")
self.verticalLayout_2.addWidget(self.log_text_browser)
self.horizontalLayout_4 = QHBoxLayout()
self.horizontalLayout_4.setObjectName(u"horizontalLayout_4")
self.pack_wad_chkbox = QCheckBox(self.centralwidget)
self.pack_wad_chkbox.setObjectName(u"pack_wad_chkbox")
self.horizontalLayout_4.addWidget(self.pack_wad_chkbox)
self.wad_file_entry = QLineEdit(self.centralwidget)
self.wad_file_entry.setObjectName(u"wad_file_entry")
self.wad_file_entry.setEnabled(False)
self.horizontalLayout_4.addWidget(self.wad_file_entry)
self.verticalLayout_2.addLayout(self.horizontalLayout_4)
self.keep_enc_chkbox = QCheckBox(self.centralwidget)
self.keep_enc_chkbox.setObjectName(u"keep_enc_chkbox")
self.keep_enc_chkbox.setChecked(True)
self.verticalLayout_2.addWidget(self.keep_enc_chkbox)
self.create_dec_chkbox = QCheckBox(self.centralwidget)
self.create_dec_chkbox.setObjectName(u"create_dec_chkbox")
self.verticalLayout_2.addWidget(self.create_dec_chkbox)
self.use_local_chkbox = QCheckBox(self.centralwidget)
self.use_local_chkbox.setObjectName(u"use_local_chkbox")
self.use_local_chkbox.setEnabled(False)
self.verticalLayout_2.addWidget(self.use_local_chkbox)
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QMenuBar(MainWindow)
self.menubar.setObjectName(u"menubar")
self.menubar.setGeometry(QRect(0, 0, 305, 30))
MainWindow.setMenuBar(self.menubar)
self.statusbar = QStatusBar(MainWindow)
self.statusbar.setObjectName(u"statusbar")
MainWindow.setStatusBar(self.statusbar)
self.retranslateUi(MainWindow)
QMetaObject.connectSlotsByName(MainWindow)
# setupUi
def retranslateUi(self, MainWindow):
MainWindow.setWindowTitle(QCoreApplication.translate("MainWindow", u"MainWindow", None))
self.show_titles_btn.setText(QCoreApplication.translate("MainWindow", u"Titles", None))
self.show_more_btn.setText(QCoreApplication.translate("MainWindow", u"More", None))
self.tid_entry.setText("")
self.tid_entry.setPlaceholderText(QCoreApplication.translate("MainWindow", u"Title ID", None))
self.label.setText(QCoreApplication.translate("MainWindow", u"v", None))
self.version_entry.setPlaceholderText(QCoreApplication.translate("MainWindow", u"Version", None))
self.download_btn.setText(QCoreApplication.translate("MainWindow", u"Start NUS Download!", None))
self.log_text_browser.setMarkdown("")
self.pack_wad_chkbox.setText(QCoreApplication.translate("MainWindow", u"Pack WAD", None))
self.wad_file_entry.setPlaceholderText(QCoreApplication.translate("MainWindow", u"File Name", None))
self.keep_enc_chkbox.setText(QCoreApplication.translate("MainWindow", u"Keep Enc. Contents", None))
self.create_dec_chkbox.setText(QCoreApplication.translate("MainWindow", u"Create Decrypted Contents (*.app)", None))
self.use_local_chkbox.setText(QCoreApplication.translate("MainWindow", u"Use Local Files If They Exist", None))
# retranslateUi

View File

@@ -30,23 +30,16 @@
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QPushButton" name="pushButton_3">
<widget class="QPushButton" name="show_titles_btn">
<property name="text">
<string>Titles</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButton">
<widget class="QPushButton" name="show_more_btn">
<property name="text">
<string>Scripts</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButton_2">
<property name="text">
<string>Extras</string>
<string>More</string>
</property>
</widget>
</item>
@@ -94,7 +87,7 @@
</widget>
</item>
<item>
<widget class="QTextBrowser" name="textBrowser">
<widget class="QTextBrowser" name="log_text_browser">
<property name="markdown">
<string/>
</property>
@@ -103,14 +96,14 @@
<item>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<item>
<widget class="QCheckBox" name="checkBox">
<widget class="QCheckBox" name="pack_wad_chkbox">
<property name="text">
<string>Pack WAD</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lineEdit_3">
<widget class="QLineEdit" name="wad_file_entry">
<property name="enabled">
<bool>false</bool>
</property>
@@ -122,21 +115,27 @@
</layout>
</item>
<item>
<widget class="QCheckBox" name="checkBox_2">
<widget class="QCheckBox" name="keep_enc_chkbox">
<property name="text">
<string>Keep Enc. Contents</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBox_3">
<widget class="QCheckBox" name="create_dec_chkbox">
<property name="text">
<string>Create Decrypted Contents (*.app)</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBox_4">
<widget class="QCheckBox" name="use_local_chkbox">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>Use Local Files If They Exist</string>
</property>