diff --git a/PictureDialog.cpp b/PictureDialog.cpp index 8966b03..4b78ef4 100755 --- a/PictureDialog.cpp +++ b/PictureDialog.cpp @@ -41,6 +41,7 @@ PictureDialog::PictureDialog(ProfileDatabase *profileDB, QWidget *parent) : jsonDrawString = ui->labJSON->text(); ui->cmdExport->setEnabled(0); plyrsList = QStringList(); + picTitl = ""; crewID = ""; locX = ""; locY = ""; @@ -75,6 +76,7 @@ void PictureDialog::setSnapmaticPicture(SnapmaticPicture *picture, bool readOk) locZ = QString::number(picture->getLocationZ()); crewID = QString::number(picture->getCrewNumber()); plyrsList = picture->getPlayers(); + picTitl = picture->getPictureTitl(); QString plyrsStr; if (plyrsList.length() >= 1) @@ -100,7 +102,7 @@ void PictureDialog::setSnapmaticPicture(SnapmaticPicture *picture, bool readOk) if (crewID == "") { crewID = tr("No crew"); } this->setWindowTitle(windowTitleStr.arg(picture->getPictureStr())); - ui->labJSON->setText(jsonDrawString.arg(locX, locY, locZ, plyrsStr, crewID)); + ui->labJSON->setText(jsonDrawString.arg(locX, locY, locZ, plyrsStr, crewID, picTitl)); } else { @@ -136,7 +138,7 @@ void PictureDialog::on_playerNameUpdated() plyrsStr.append(""); } plyrsStr.remove(0,2); - ui->labJSON->setText(jsonDrawString.arg(locX, locY, locZ, plyrsStr, crewID)); + ui->labJSON->setText(jsonDrawString.arg(locX, locY, locZ, plyrsStr, crewID, picTitl)); } } diff --git a/PictureDialog.h b/PictureDialog.h index 16d0af4..c280e71 100755 --- a/PictureDialog.h +++ b/PictureDialog.h @@ -49,6 +49,7 @@ private: QString jsonDrawString; QString windowTitleStr; QStringList plyrsList; + QString picTitl; QString crewID; QString locX; QString locY; diff --git a/PictureDialog.ui b/PictureDialog.ui index d1054b2..f885561 100755 --- a/PictureDialog.ui +++ b/PictureDialog.ui @@ -62,29 +62,28 @@ + + + 0 + 0 + + - <span style=" font-weight:600;">Location: </span>%1, %2, %3 <br><span style=" font-weight:600;">Players: </span>%4<br><span style=" font-weight:600;">Crew ID: </span>%5 + <span style=" font-weight:600;">Title: </span>%6<br> +<span style=" font-weight:600;">Location: </span>%1, %2, %3 <br> +<span style=" font-weight:600;">Players: </span>%4<br> +<span style=" font-weight:600;">Crew ID: </span>%5 true - - - - Qt::Horizontal - - - - 0 - 0 - - - - + + Export picture + Export @@ -92,6 +91,9 @@ + + Close + Close diff --git a/gta5sync.pro b/gta5sync.pro index 7b43aea..160bd72 100755 --- a/gta5sync.pro +++ b/gta5sync.pro @@ -66,13 +66,14 @@ FORMS += \ UserInterface.ui TRANSLATIONS += \ - gta5sync_de.ts + res/gta5sync_de.ts RESOURCES += \ res/app.qrc -OTHER_FILES += \ - app.rc +OTHER_FILES += app.rc \ + res/gta5sync.desktop \ + res/gta5sync_de.ts win32: RC_FILE += app.rc @@ -100,6 +101,6 @@ isEqual(QT_MAJOR_VERSION, 4): SOURCES += qjson4/QJsonArray.cpp \ # UNIX SYSTEM STUFF unix: !macx: appfiles.path = $$(INSTALL_PATH)/share/applications -unix: !macx: appfiles.files = $$PWD/res/5sync.desktop +unix: !macx: appfiles.files = $$PWD/res/gta5sync.desktop unix: !macx: target.path = $$(INSTALL_PATH)/bin unix: !macx: INSTALLS += target appfiles diff --git a/res/app.qrc b/res/app.qrc index 67a1099..5517c88 100755 --- a/res/app.qrc +++ b/res/app.qrc @@ -6,7 +6,6 @@ savegame.png - 5sync.ico 5sync-48.png diff --git a/res/gta5sync.desktop b/res/gta5sync.desktop new file mode 100755 index 0000000..94c3b4c --- /dev/null +++ b/res/gta5sync.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Version=1.0 +Encoding=UTF-8 +Type=Application +Name=gta5sync +Comment=gta5sync +Categories=Qt;Application;Utility; +Exec=gta5sync +Icon=gta5sync +Terminal=false +StartupNotify=false diff --git a/res/gta5sync_de.qm b/res/gta5sync_de.qm index 1388ce6..ee250ff 100755 Binary files a/res/gta5sync_de.qm and b/res/gta5sync_de.qm differ diff --git a/res/gta5sync_de.ts b/res/gta5sync_de.ts index 59bc191..9354c95 100755 --- a/res/gta5sync_de.ts +++ b/res/gta5sync_de.ts @@ -4,17 +4,17 @@ 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 @@ -22,71 +22,92 @@ PictureDialog - + %1 - Snapmatic Picture Viewer %1 - Snapmatic Bildansicht - <span style=" font-weight:600;">Location: </span>%1, %2, %3 <br><span style=" font-weight:600;">Players: </span>%4<br><span style=" font-weight:600;">Crew ID: </span>%5 - <span style=" font-weight:600;">Standort: </span>%1, %2, %3 <br><span style=" font-weight:600;">Spieler: </span>%4<br><span style=" font-weight:600;">Crew ID: </span>%5 + <span style=" font-weight:600;">Standort: </span>%1, %2, %3 <br><span style=" font-weight:600;">Spieler: </span>%4<br><span style=" font-weight:600;">Crew ID: </span>%5 - + <span style=" font-weight:600;">Picture Title: </span>%6<br> +<span style=" font-weight:600;">Location: </span>%1, %2, %3 <br> +<span style=" font-weight:600;">Players: </span>%4<br> +<span style=" font-weight:600;">Crew ID: </span>%5 + <span style=" font-weight:600;">Bildtitel: </span>%6<br> +<span style=" font-weight:600;">Standort: </span>%1, %2, %3 <br> +<span style=" font-weight:600;">Spieler: </span>%4<br> +<span style=" font-weight:600;">Crew ID: </span>%5 + + + + <span style=" font-weight:600;">Title: </span>%6<br> +<span style=" font-weight:600;">Location: </span>%1, %2, %3 <br> +<span style=" font-weight:600;">Players: </span>%4<br> +<span style=" font-weight:600;">Crew ID: </span>%5 + <span style=" font-weight:600;">Titel: </span>%6<br> +<span style=" font-weight:600;">Standort: </span>%1, %2, %3 <br> +<span style=" font-weight:600;">Spieler: </span>%4<br> +<span style=" font-weight:600;">Crew ID: </span>%5 + + + Export Exportieren - + + Close Schließen - - + + Snapmatic Picture Viewer Snapmatic Bildansicht - - + + Failed at %1 Fehlgeschlagen bei %1 - - + + No player Keine Spieler - - + + No crew Keine Crew - + JPEG picture (*.jpg) JPEG Bild (*.jpg) - + Portable Network Graphics (*.png) Portable Network Graphics (*.png) - + Overwrite %1 with current Snapmatic picture? Überschreibe %1 mit aktuellen Snapmatic Bild? - + Failed to overwrite %1 with current Snapmatic picture Fehlgeschlagen beim Überschreiben von %1 mit aktuellen Snapmatic Bild - + Failed to save current picture Fehlgeschlagen beim Speichern vom aktuellen Bild @@ -95,11 +116,12 @@ JPEG Bild (*.jpg);;Portable Network Graphics (*.png) - - - - - + + + + + + Export picture Bild exportieren @@ -112,7 +134,7 @@ Beim Speichern des Bildes ist ein Fehler aufgetreten - + No valid file is selected Keine gültige Datei wurde ausgewählt @@ -120,27 +142,28 @@ ProfileInterface - + Profile Interface Profil Interface - + Loading file %1 of %2 files Loading %1 files of %2 files Lade Datei %1 von %2 Dateien - - - - - - - - - - + + + + + + + + + + + Import copy Kopie importieren @@ -153,68 +176,73 @@ Ansehen - + Close Profile Profil schließen - + Loading... Lade... - + All profile files (SGTA* PGTA*) Alle Profildateien (SGTA* PGTA*) - + Savegames files (SGTA*) Spielstanddateien (SGTA*) - + Snapmatic pictures (PGTA*) Snapmatic Bilder (PGTA*) - + All files (**) Alle Dateien (**) - + Failed to read Snapmatic picture Fehler beim Lesen vom Snapmatic Bild - + Failed to read Savegame file Fehler beim Lesen von Spielstanddatei - - + + Can't import %1 because of not valid file format + Kann %1 nicht importieren weil das Dateiformat nicht gültig ist + + + + No valid file is selected Keine gültige Datei wurde ausgewählt - + Failed to import copy of Snapmatic picture because the file not begin with PGTA Fehlgeschlagenen beim Import vom Snapmatic Bild weil die Datei nicht mit PGTA begint - + Failed to import copy of Snapmatic picture because the copy failed Fehlgeschlagenen beim Import vom Snapmatic Bild weil kopieren fehlgeschlagen ist - + Failed to import copy of Savegame file because the copy failed Fehlgeschlagenen beim Import vom Spielstand weil kopieren fehlgeschlagen ist - + Failed to import copy of Savegame file because no free Savegame slot left Fehlgeschlagenen beim Import vom Spielstand weil kein Spielstandslot mehr übrig ist @@ -222,23 +250,23 @@ SavegameDialog - - + + Savegame Viewer Spielstandanzeiger - + <span style=" font-weight:600;">Savegame</span><br><br>%1 <span style=" font-weight:600;">Spielstand</span><br><br>%1 - + Close Schließen - + Failed at %1 Fehlgeschlagen bei %1 @@ -246,72 +274,72 @@ SavegameWidget - + Savegame Widget Spielstand Widget - + The Third Way (100%) - 00/00/00 00:00:00 The Third Way (100%) - 00/00/00 00:00:00 - + Copy Kopieren - + Delete Löschen - - + + Delete savegame Savegame löschen - + Are you sure to delete %1 from your savegames? Bist du sicher %1 von deinen Spielständen zu löschen? - + Failed at deleting %1 from your savegames Fehlgeschlagen beim Löschen %1 von deinen Spielständen - - - - - + + + + + Copy savegame Spielstand kopieren - + Savegame files (SGTA*) Spielstanddateien (SGTA*) - + All files (**) Alle Dateien (**) - + Overwrite %1 with current savegame? Überschreibe %1 mit aktuellen Spielstand? - + Failed to overwrite %1 with current savegame Fehlgeschlagen beim Überschreiben von %1 mit aktuellen Spielstand - + Failed to copy current savegame Fehlgeschlagen beim Kopieren vom Spielstand @@ -320,7 +348,7 @@ Beim Kopieren vom Spielstand ist ein Fehler aufgetreten - + No valid file is selected Keine gültige Datei wurde ausgewählt @@ -336,33 +364,33 @@ SnapmaticWidget - + Snapmatic Widget Snapmatic Widget - + PHOTO - 00/00/00 00:00:00 FOTO - 00/00/00 00:00:00 - + View Ansehen - + Delete Löschen - - + + Delete picture Bild löschen - + Are you sure to delete %1 from your Snapmatic pictures? Bist du sicher %1 von deinen Snapmatic Bilder zu löschen? @@ -371,7 +399,7 @@ Bist du sicher %1 von deinen Snapmatic Bilder zu löschen? - + Failed at deleting %1 from your Snapmatic pictures Fehlgeschlagen beim Löschen %1 von deinen Snapmatic Bildern @@ -387,33 +415,33 @@ GTA V Sync - + gta5sync - %1 gta5sync - %1 - + File Datei - + Help Hilfe - + About gta5sync Über gta5sync - + Ctrl+A Strg+A - - + + Close Schließen @@ -422,30 +450,30 @@ Schließen - + Ctrl+Q Strg+Q - - - - + + + + Select profile Profil auswählen - + Ctrl+P Strg+P - + GTA V Folder not found! GTA V Ordner nicht gefunden! - + gta5sync gta5sync