# Soundboard Engine - customizable soundboard # Copyright (C) 2026 Vidhu Kant Sharma # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . from PySide6.QtWidgets import ( QVBoxLayout, QWidget, QLabel, QPushButton ) from PySide6.QtCore import QUrl from PySide6.QtGui import QDesktopServices from Soundboard import Soundboard class AboutWindow(QWidget): def __init__(self, soundboard: Soundboard, app_version): super().__init__() self.app_version = app_version self.soundboard = soundboard self.setWindowTitle(f"About - Soundboard Engine {self.app_version}") self.setMinimumSize(450, 300) self.resize(450, 300) layout = QVBoxLayout() layout.setSpacing(10) soundboard_info = QLabel( f"Soundboard Name: {self.soundboard.soundboard_name}\n" + f"Soundboard Author: {self.soundboard.soundboard_author}\n" + f"Soundboard ID: {self.soundboard.soundboard_id}\n" + f"Soundboard Version: {self.soundboard.soundboard_version}" ) layout.addWidget(soundboard_info) app_info = QLabel( "Soundboard Engine - Customizable soundboard.\n" + f"Version - {self.app_version}\n" + "Copyright (c) 2026 Vidhu Kant Sharma \n" + "This program comes with absolutely no warranty.\n" + "See GNU GPL Version 3 or later for more details." ) layout.addWidget(app_info) view_source_btn = QPushButton("View Source Code") view_source_btn.clicked.connect(lambda: QDesktopServices.openUrl(QUrl("https://git.vidhukant.com/soundboard-engine/about"))) layout.addWidget(view_source_btn) view_license_btn = QPushButton("View License") view_license_btn.clicked.connect(lambda: QDesktopServices.openUrl(QUrl("https://git.vidhukant.com/soundboard-engine/tree/LICENSE"))) layout.addWidget(view_license_btn) self.setLayout(layout)