diff --git a/5sync.ico b/5sync.ico new file mode 100755 index 0000000..c0bbc52 Binary files /dev/null and b/5sync.ico differ diff --git a/5sync.png b/5sync.png new file mode 100755 index 0000000..fcd9b3a Binary files /dev/null and b/5sync.png differ diff --git a/AboutDialog.cpp b/AboutDialog.cpp new file mode 100755 index 0000000..96d48cc --- /dev/null +++ b/AboutDialog.cpp @@ -0,0 +1,40 @@ +/***************************************************************************** +* gta5sync GRAND THEFT AUTO V SYNC +* Copyright (C) 2016 Syping +* +* 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 . +*****************************************************************************/ + +#include "AboutDialog.h" +#include "ui_AboutDialog.h" + +AboutDialog::AboutDialog(QWidget *parent) : + QDialog(parent), + ui(new Ui::AboutDialog) +{ + ui->setupUi(this); + this->setWindowIcon(QIcon(":/img/5sync.png")); + aboutStr = ui->labAbout->text(); + ui->labAbout->setText(aboutStr.arg(qApp->applicationVersion(), QT_VERSION_STR, qVersion())); +} + +AboutDialog::~AboutDialog() +{ + delete ui; +} + +void AboutDialog::on_cmdClose_clicked() +{ + this->close(); +} diff --git a/AboutDialog.h b/AboutDialog.h new file mode 100755 index 0000000..08ab3d9 --- /dev/null +++ b/AboutDialog.h @@ -0,0 +1,44 @@ +/***************************************************************************** +* gta5sync GRAND THEFT AUTO V SYNC +* Copyright (C) 2016 Syping +* +* 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 . +*****************************************************************************/ + +#ifndef ABOUTDIALOG_H +#define ABOUTDIALOG_H + +#include + +namespace Ui { +class AboutDialog; +} + +class AboutDialog : public QDialog +{ + Q_OBJECT + +public: + explicit AboutDialog(QWidget *parent = 0); + ~AboutDialog(); + +private slots: + void on_cmdClose_clicked(); + +private: + Ui::AboutDialog *ui; + QString aboutStr; +}; + +#endif // ABOUTDIALOG_H diff --git a/AboutDialog.ui b/AboutDialog.ui new file mode 100755 index 0000000..7191660 --- /dev/null +++ b/AboutDialog.ui @@ -0,0 +1,114 @@ + + + AboutDialog + + + + 0 + 0 + 375 + 250 + + + + About gta5sync + + + true + + + + + + QFrame::NoFrame + + + QFrame::Plain + + + 0 + + + true + + + + + 0 + 0 + 357 + 201 + + + + + 0 + + + 0 + + + 0 + + + 0 + + + + + <span style=" font-weight:600;">gta5sync</span><br/><br/>A project for viewing and sync Grand Theft Auto 5 Snapmatic Pictures and Savegames<br/><br/>Project version: %1<br/>Compiled with Qt %2<br/>Running with Qt %3<br/><br/>Copyright © <a href="https://github.com/Syping/">Syping</a> 2016<br/>gta5sync is licensed under <a href="https://www.gnu.org/licenses/gpl-3.0.html#content">GNU GPLv3</a> + + + true + + + true + + + + + + + Qt::Vertical + + + + 0 + 0 + + + + + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Close + + + + + + + + + + diff --git a/PictureDialog.cpp b/PictureDialog.cpp index fddd79c..ba9dc5a 100755 --- a/PictureDialog.cpp +++ b/PictureDialog.cpp @@ -42,6 +42,7 @@ PictureDialog::PictureDialog(ProfileDatabase *profileDB, QWidget *parent) : ui(new Ui::PictureDialog) { ui->setupUi(this); + this->setWindowIcon(QIcon(":/img/5sync.png")); windowTitleStr = this->windowTitle(); jsonDrawString = ui->labJSON->text(); ui->cmdExport->setEnabled(0); diff --git a/UserInterface.cpp b/UserInterface.cpp index 7b00a6c..e57250c 100755 --- a/UserInterface.cpp +++ b/UserInterface.cpp @@ -19,6 +19,7 @@ #include "UserInterface.h" #include "ui_UserInterface.h" #include "ProfileInterface.h" +#include "AboutDialog.h" #include #include #include @@ -41,6 +42,7 @@ UserInterface::UserInterface(ProfileDatabase *profileDB, CrewDatabase *crewDB, D ui(new Ui::UserInterface) { ui->setupUi(this); + this->setWindowIcon(QIcon(":/img/5sync.png")); profileOpen = 0; profileUI = 0; @@ -174,3 +176,13 @@ void UserInterface::openSelectProfile() { // not needed right now } + +void UserInterface::on_actionAbout_gta5sync_triggered() +{ + AboutDialog *aboutDialog = new AboutDialog(this); + aboutDialog->setWindowFlags(aboutDialog->windowFlags()^Qt::WindowContextHelpButtonHint); + aboutDialog->show(); + aboutDialog->exec(); + aboutDialog->deleteLater(); + delete aboutDialog; +} diff --git a/UserInterface.h b/UserInterface.h index 6dfce56..894fa78 100755 --- a/UserInterface.h +++ b/UserInterface.h @@ -43,6 +43,7 @@ private slots: void on_actionExit_triggered(); void on_actionSelect_profile_triggered(); void on_profileButton_clicked(); + void on_actionAbout_gta5sync_triggered(); private: ProfileDatabase *profileDB; diff --git a/app.qrc b/app.qrc index a56a748..92d0d0c 100755 --- a/app.qrc +++ b/app.qrc @@ -6,5 +6,7 @@ savegame.png + 5sync.ico + 5sync.png diff --git a/app.rc b/app.rc index dde4315..d7e2782 100755 --- a/app.rc +++ b/app.rc @@ -1,4 +1,4 @@ -//IDI_ICON1 ICON DISCARDABLE "gta5sync.ico" +IDI_ICON1 ICON DISCARDABLE "5sync.ico" #include diff --git a/gta5sync.pro b/gta5sync.pro index 8f9edd3..6ff64be 100755 --- a/gta5sync.pro +++ b/gta5sync.pro @@ -38,7 +38,8 @@ SOURCES += main.cpp \ ProfileInterface.cpp \ SnapmaticWidget.cpp \ SavegameWidget.cpp \ - ProfileLoader.cpp + ProfileLoader.cpp \ + AboutDialog.cpp HEADERS += \ SnapmaticPicture.h \ @@ -53,7 +54,8 @@ HEADERS += \ ProfileInterface.h \ SnapmaticWidget.h \ SavegameWidget.h \ - ProfileLoader.h + ProfileLoader.h \ + AboutDialog.h FORMS += \ PictureDialog.ui \ @@ -61,7 +63,8 @@ FORMS += \ UserInterface.ui \ ProfileInterface.ui \ SnapmaticWidget.ui \ - SavegameWidget.ui + SavegameWidget.ui \ + AboutDialog.ui TRANSLATIONS += \ gta5sync_de.ts diff --git a/gta5sync_de.qm b/gta5sync_de.qm index e22c595..3720c93 100755 Binary files a/gta5sync_de.qm and b/gta5sync_de.qm differ diff --git a/gta5sync_de.ts b/gta5sync_de.ts index daec28c..c072fb9 100755 --- a/gta5sync_de.ts +++ b/gta5sync_de.ts @@ -1,6 +1,24 @@ + + AboutDialog + + + About gta5sync + Über gta5sync + + + + <span style=" font-weight:600;">gta5sync</span><br/><br/>A project for viewing and sync Grand Theft Auto 5 Snapmatic Pictures and Savegames<br/><br/>Project version: %1<br/>Compiled with Qt %2<br/>Running with Qt %3<br/><br/>Copyright © <a href="https://github.com/Syping/">Syping</a> 2016<br/>gta5sync is licensed under <a href="https://www.gnu.org/licenses/gpl-3.0.html#content">GNU GPLv3</a> + + + + + Close + Schließen + + PictureDialog @@ -48,28 +66,28 @@ Keine Crew - + JPEG picture (*.jpg);;Portable Network Graphics (*.png) JPEG Bild (*.jpg);;Portable Network Graphics (*.png) - + Export picture Bild exportieren - - + + Snapmatic Picture Exporter Snapmatic Bild Exporter - + Failed to save the picture Fehlgeschlagen beim Speichern des Bildes - + No valid file is selected Keine gültige Datei wurde ausgewählt @@ -213,7 +231,7 @@ - + Close Schließen @@ -238,12 +256,12 @@ Strg+P - + GTA V Folder not found! GTA V Ordner nicht gefunden! - + gta5sync gta5sync