1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-04-23 20:47:45 +00:00

launcher: Port to NovusMainWindow

This commit is contained in:
Joshua Goins 2023-10-10 18:09:14 -04:00
parent 90ab618a36
commit 4b04e68c31
4 changed files with 9 additions and 5 deletions

View file

@ -4,5 +4,5 @@
add_executable(novus-launcher add_executable(novus-launcher
src/main.cpp src/main.cpp
src/mainwindow.cpp) src/mainwindow.cpp)
target_link_libraries(novus-launcher PUBLIC Qt6::Widgets KF6::ConfigCore physis z) target_link_libraries(novus-launcher PUBLIC Qt6::Widgets KF6::ConfigCore physis z novus-common)
target_include_directories(novus-launcher PUBLIC include) target_include_directories(novus-launcher PUBLIC include)

View file

@ -3,9 +3,9 @@
#pragma once #pragma once
#include <QMainWindow> #include "novusmainwindow.h"
class MainWindow : public QMainWindow class MainWindow : public NovusMainWindow
{ {
public: public:
MainWindow(); MainWindow();

View file

@ -8,12 +8,17 @@
#include <QMessageBox> #include <QMessageBox>
#include <physis.hpp> #include <physis.hpp>
#include "aboutdata.h"
#include "mainwindow.h" #include "mainwindow.h"
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
QApplication app(argc, argv); QApplication app(argc, argv);
customizeAboutData(QStringLiteral("launcher"),
QStringLiteral("SDK Launcher"),
QStringLiteral("Handles setting up and launching various Novus SDK components."));
KConfig config(QStringLiteral("novusrc")); KConfig config(QStringLiteral("novusrc"));
KConfigGroup game = config.group(QStringLiteral("Game")); KConfigGroup game = config.group(QStringLiteral("Game"));

View file

@ -18,9 +18,8 @@ static QMap<QString, QString> applications = {{QStringLiteral("Armoury - View an
{QStringLiteral("Model Viewer - Preview MDL files"), QStringLiteral("novus-mdlviewer")}}; {QStringLiteral("Model Viewer - Preview MDL files"), QStringLiteral("novus-mdlviewer")}};
MainWindow::MainWindow() MainWindow::MainWindow()
: NovusMainWindow()
{ {
setWindowTitle(QStringLiteral("Novus SDK"));
auto appList = new QListWidget(); auto appList = new QListWidget();
auto applicationHeader = new QListWidgetItem(); auto applicationHeader = new QListWidgetItem();