From 7cd179515501c7264de1285255c549af359e6f2f Mon Sep 17 00:00:00 2001 From: mrbesen Date: Sat, 8 Oct 2022 18:38:01 +0200 Subject: [PATCH] add version, copyright info, link to release page, update translation --- lolautoaccept.pro | 2 + resources/ts/de_DE.ts | 73 ++++++++++++++++++++------ resources/ts/en.ts | 73 ++++++++++++++++++++------ src/mainwindow.cpp | 2 + ui/mainwindow.ui | 117 +++++++++++++++++++++++++++++++++--------- 5 files changed, 208 insertions(+), 59 deletions(-) diff --git a/lolautoaccept.pro b/lolautoaccept.pro index 45a3854..86e1238 100644 --- a/lolautoaccept.pro +++ b/lolautoaccept.pro @@ -20,6 +20,8 @@ DEFINES += QT_DEPRECATED_WARNINGS # You can also select to disable deprecated APIs only up to a certain version of Qt. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 +DEFINES += LOLAA_VERSION=\\\"0.0.6\\\" + # parameters: var, prepend, append defineReplace(prependAll) { for(a,$$1):result += $$2$${a}$$3 diff --git a/resources/ts/de_DE.ts b/resources/ts/de_DE.ts index 6e2bfdd..f8b0b01 100644 --- a/resources/ts/de_DE.ts +++ b/resources/ts/de_DE.ts @@ -22,59 +22,93 @@ LoL-Auto-Accept - + Mainswitch Hauptschalter - + Enable LoL-Auto-Accept Spiel automatisch annehmen - + Spam "smite" in the chat when there is not exactly 1 player with smite equiped in champ select Wenn nicht genau 1 Spieler Smite ausgewählt hat, wird "smite" in den Chat gespammt - + + Write a Text as soon as you are in a champ select lobby. + Einen Text schreiben, sobald du in der Champion Auswahl bist. + + + + Auto Write + Automatisch Schreiben + + + Enable Smite Warning Smite Warnung - + + Developed by MrBesen + Entwickelt von MrBesen + + + + autowriteText + Zu schreibender Text + + + This Tab is used, when you are in a gamemode with no fixed roles Dieser Tab wird verwendet, wenn der Gamemode keine festen Rollen hat - + Default Default - + Top Top - + Jungle Jungle - + Middle - + Bottom - + Support - + Support + + + + <a href="https://git.mrbesen.de/MrBesen/lolautoaccept/releases">Webseite</a> + <a href="https://git.mrbesen.de/MrBesen/lolautoaccept/releases">Webseite</a> + + + <a href="https://git.mrbesen.de/MrBesen/lolautoaccept/releases">Homepage</a> + <a href="https://git.mrbesen.de/MrBesen/lolautoaccept/releases">Webseite</a> + + + + Version: + Version: Pick @@ -89,22 +123,27 @@ Bannen - + + Version: %1 + Version: %1 + + + League of Legends Client not found! League of Legends Client nicht gefunden! - + Auto-Acceptor started! - + Auto-Acceptor stoped! Auto Acceptor gestoppt! - + Auto-Acceptor failed! Auto-Acceptor fehlgeschlagen! @@ -161,7 +200,7 @@ ID: %4 Champion: - + Enable %1 Aktiviere %1 diff --git a/resources/ts/en.ts b/resources/ts/en.ts index 9c7f7ae..8dd32e3 100644 --- a/resources/ts/en.ts +++ b/resources/ts/en.ts @@ -22,59 +22,93 @@ LoL-Auto-Accept - + Mainswitch Mainswitch - + Enable LoL-Auto-Accept Automatically accept game - + Spam "smite" in the chat when there is not exactly 1 player with smite equiped in champ select Spam "smite" in the chat when there is not exactly 1 player with smite equiped in champ select - + + Write a Text as soon as you are in a champ select lobby. + Write a Text as soon as you are in the champ select lobby. + + + + Auto Write + Auto write + + + Enable Smite Warning Enable Smite Warning - + + Developed by MrBesen + Developed by MrBesen + + + + autowriteText + Text to autowrite + + + This Tab is used, when you are in a gamemode with no fixed roles This Tab is used, when you are in a gamemode with no fixed roles - + Default Default - + Top Top - + Jungle Jungle - + Middle - + Bottom - + Support - + Support + + + + <a href="https://git.mrbesen.de/MrBesen/lolautoaccept/releases">Webseite</a> + <a href="https://git.mrbesen.de/MrBesen/lolautoaccept/releases">Webseite</a> + + + <a href="https://git.mrbesen.de/MrBesen/lolautoaccept/releases">Homepage</a> + <a href="https://git.mrbesen.de/MrBesen/lolautoaccept/releases">Webseite</a> + + + + Version: + Version: Pick @@ -89,22 +123,27 @@ Ban - + + Version: %1 + Version: %1 + + + League of Legends Client not found! League of Legends Client not found! - + Auto-Acceptor started! Auto-Acceptor started! - + Auto-Acceptor stoped! Auto-Acceptor stopped! - + Auto-Acceptor failed! Auto-Acceptor failed! @@ -161,7 +200,7 @@ ID: %4 Champion: - + Enable %1 Enable %1 diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 2bddfba..601caa2 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -7,6 +7,8 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWi lolaa(conf.getConfig(), dd, std::bind(&MainWindow::onFail, this), std::bind(&MainWindow::onPosChange, this, std::placeholders::_1)) { ui->setupUi(this); + ui->versionLabel->setText(tr("Version: %1").arg(LOLAA_VERSION)); + lolaa.setOnRuneChangeFunc(std::bind(&RuneDisplay::setRunes, ui->runedisplay, std::placeholders::_1)); conf.load(); diff --git a/ui/mainwindow.ui b/ui/mainwindow.ui index 5077a5d..918eefa 100644 --- a/ui/mainwindow.ui +++ b/ui/mainwindow.ui @@ -6,8 +6,8 @@ 0 0 - 465 - 635 + 482 + 629 @@ -31,29 +31,47 @@ 0 0 - 465 + 475 581 - + QLayout::SetDefaultConstraint - + + 6 + + + 6 + + + 6 + + + 6 + + + 9 + + Mainswitch - - + + + + Write a Text as soon as you are in a champ select lobby. + - Enable LoL-Auto-Accept + Auto Write - + Spam "smite" in the chat when there is not exactly 1 player with smite equiped in champ select @@ -66,14 +84,30 @@ - - + + + + + - Auto Write + Enable LoL-Auto-Accept - + + + + Developed by MrBesen + + + Qt::PlainText + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + @@ -113,7 +147,7 @@ - + QTabWidget::North @@ -186,8 +220,37 @@ - - + + + + <a href="https://git.mrbesen.de/MrBesen/lolautoaccept/releases">Webseite</a> + + + Qt::RichText + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + true + + + Qt::TextBrowserInteraction + + + + + + + Version: + + + Qt::PlainText + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + @@ -197,7 +260,7 @@ 0 0 - 465 + 482 24 @@ -224,6 +287,10 @@ mainswitch enableAll + enableSmiteWarning + enableAutoWrite + autoWriteText + tabWidget @@ -234,8 +301,8 @@ aatoggled(bool) - 19 - 61 + 25 + 88 393 @@ -282,8 +349,8 @@ applyRunes() - 270 - 599 + 232 + 598 452 @@ -314,8 +381,8 @@ autoWriteChanged() - 182 - 130 + 188 + 156 441 @@ -346,8 +413,8 @@ setEnabled(bool) - 88 - 131 + 94 + 156 86