diff --git a/ProfileInterface.cpp b/ProfileInterface.cpp
index 9afa86f..188dd87 100755
--- a/ProfileInterface.cpp
+++ b/ProfileInterface.cpp
@@ -497,6 +497,10 @@ bool ProfileInterface::importSnapmaticPicture(SnapmaticPicture *picture, QString
{
adjustedFileName.remove(adjustedFileName.length() - 7, 7);
}
+ if (adjustedFileName.right(4) == ".bak") // for the backup file system
+ {
+ adjustedFileName.remove(adjustedFileName.length() - 4, 4);
+ }
if (picFileName.left(4) != "PGTA")
{
if (warn) QMessageBox::warning(this, tr("Import"), tr("Failed to import the Snapmatic picture, file not begin with PGTA"));
diff --git a/ProfileLoader.cpp b/ProfileLoader.cpp
index 6d184bb..d8e4f15 100755
--- a/ProfileLoader.cpp
+++ b/ProfileLoader.cpp
@@ -43,12 +43,14 @@ void ProfileLoader::run()
QStringList BackupFiles = SavegameFiles.filter(".bak", Qt::CaseInsensitive);
profileDir.setNameFilters(QStringList("PGTA*"));
QStringList SnapmaticPics = profileDir.entryList(QDir::Files | QDir::NoDot, QDir::NoSort);
+ BackupFiles.append(SnapmaticPics.filter(".bak", Qt::CaseInsensitive));
SavegameFiles.removeDuplicates();
SnapmaticPics.removeDuplicates();
foreach(const QString &BackupFile, BackupFiles)
{
SavegameFiles.removeAll(BackupFile);
+ SnapmaticPics.removeAll(BackupFile);
}
int maximumV = SavegameFiles.length() + SnapmaticPics.length();
diff --git a/SnapmaticWidget.cpp b/SnapmaticWidget.cpp
index dd56387..ec1d110 100755
--- a/SnapmaticWidget.cpp
+++ b/SnapmaticWidget.cpp
@@ -19,6 +19,7 @@
#include "SnapmaticWidget.h"
#include "ui_SnapmaticWidget.h"
#include "SnapmaticPicture.h"
+#include "SnapmaticEditor.h"
#include "DatabaseThread.h"
#include "PictureDialog.h"
#include "PictureExport.h"
@@ -216,6 +217,7 @@ void SnapmaticWidget::contextMenuEvent(QContextMenuEvent *ev)
{
editMenu.addAction(tr("Hide &In-game"), this, SLOT(makePictureHiddenSlot()));
}
+ editMenu.addAction(tr("&Edit Properties"), this, SLOT(editSnapmaticProperties()));
QMenu exportMenu(tr("&Export"), this);
exportMenu.addAction(tr("Export as &JPG picture..."), this, SLOT(on_cmdExport_clicked()));
exportMenu.addAction(tr("Export as >A Snapmatic..."), this, SLOT(on_cmdCopy_clicked()));
@@ -312,6 +314,16 @@ void SnapmaticWidget::makePictureVisibleSlot()
makePictureVisible();
}
+void SnapmaticWidget::editSnapmaticProperties()
+{
+ SnapmaticEditor *snapmaticEditor = new SnapmaticEditor(this);
+ snapmaticEditor->setWindowFlags(snapmaticEditor->windowFlags()^Qt::WindowContextHelpButtonHint);
+ snapmaticEditor->setSnapmaticPicture(smpic);
+ snapmaticEditor->setModal(true);
+ snapmaticEditor->exec();
+ delete snapmaticEditor;
+}
+
bool SnapmaticWidget::isSelected()
{
return ui->cbSelected->isChecked();
diff --git a/SnapmaticWidget.h b/SnapmaticWidget.h
index a890bef..d4b8eaf 100755
--- a/SnapmaticWidget.h
+++ b/SnapmaticWidget.h
@@ -67,6 +67,7 @@ private slots:
void dialogPreviousPictureRequested();
void makePictureVisibleSlot();
void makePictureHiddenSlot();
+ void editSnapmaticProperties();
protected:
bool eventFilter(QObject *obj, QEvent *ev);
diff --git a/gta5view.pro b/gta5view.pro
index 5da1f35..f5a0fb7 100755
--- a/gta5view.pro
+++ b/gta5view.pro
@@ -48,6 +48,7 @@ SOURCES += main.cpp \
SavegameDialog.cpp \
SavegameWidget.cpp \
SidebarGenerator.cpp \
+ SnapmaticEditor.cpp \
SnapmaticPicture.cpp \
SnapmaticWidget.cpp \
StandardPaths.cpp \
@@ -79,6 +80,7 @@ HEADERS += \
SavegameDialog.h \
SavegameWidget.h \
SidebarGenerator.h \
+ SnapmaticEditor.h \
SnapmaticPicture.h \
SnapmaticWidget.h \
StandardPaths.h \
@@ -94,6 +96,7 @@ FORMS += \
ProfileInterface.ui \
SavegameDialog.ui \
SavegameWidget.ui \
+ SnapmaticEditor.ui \
SnapmaticWidget.ui \
UserInterface.ui
diff --git a/lang/gta5sync_ru.ts b/lang/gta5sync_ru.ts
index 0db6103..9145532 100755
--- a/lang/gta5sync_ru.ts
+++ b/lang/gta5sync_ru.ts
@@ -250,7 +250,7 @@ Copyright © <a href="https://github.com/Syping/">Syping
-
+
OK, Cancel, Apply
@@ -534,11 +534,11 @@ Copyright © <a href="https://github.com/Syping/">Syping
-
-
-
-
-
+
+
+
+
+
@@ -603,68 +603,68 @@ Copyright © <a href="https://github.com/Syping/">Syping
-
+
-
+
-
+
-
+
-
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
-
+
+
+
-
+
-
+
@@ -685,30 +685,30 @@ Copyright © <a href="https://github.com/Syping/">Syping
Не получилось имортировать копию сохранения, потому что не осталось свободных под них слотов
-
-
-
-
+
+
+
+
-
+
-
+
-
+
-
+
@@ -951,6 +951,69 @@ Copyright © <a href="https://github.com/Syping/">Syping
Выбранный файл неверен
+
+ SnapmaticEditor
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
SnapmaticWidget
@@ -990,80 +1053,85 @@ Copyright © <a href="https://github.com/Syping/">Syping
-
-
+
+
Удалить картинку
-
+
Уверены, что хотите удалить %1 из коллекции картинок Snapmatic?
-
+
Не удалось удалить %1 из колелкции картинок Snapmatic
-
+
-
+
-
+
-
-
-
-
-
-
-
-
-
-
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
-
+
-
-
+
+
-
+
@@ -1095,93 +1163,93 @@ Copyright © <a href="https://github.com/Syping/">Syping
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
@@ -1196,32 +1264,32 @@ Copyright © <a href="https://github.com/Syping/">Syping
-
+
-
+
-
+
-
+
-
+
-
+
@@ -1238,7 +1306,7 @@ Copyright © <a href="https://github.com/Syping/">Syping
О программе gta5sync
-
+
Ctrl+A
@@ -1247,37 +1315,37 @@ Copyright © <a href="https://github.com/Syping/">Syping
Закрыть
-
+
Ctrl+Q
-
+
Ctrl+P
-
+
-
+
-
+
-
+
-
+
@@ -1288,7 +1356,7 @@ Copyright © <a href="https://github.com/Syping/">Syping
-
+
diff --git a/res/gta5sync_de.qm b/res/gta5sync_de.qm
index 6883d9d..07ef849 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 7186bd9..546bde5 100755
--- a/res/gta5sync_de.ts
+++ b/res/gta5sync_de.ts
@@ -358,7 +358,7 @@ Copyright © <a href="https://github.com/Syping/">Syping
&OK
-
+
OK, Cancel, Apply
Abbre&chen
@@ -725,11 +725,11 @@ Copyright © <a href="https://github.com/Syping/">Syping
-
-
-
-
-
+
+
+
+
+
Importieren
@@ -784,12 +784,12 @@ Copyright © <a href="https://github.com/Syping/">Syping
Kann %1 nicht importieren weil das Dateiformat nicht gültig ist
-
+
Fehlgeschlagen beim Importieren vom Snapmatic Bild, dieses Bild ist bereits im Spiel
-
+
%1Exportiere Snapmatic Bilder%2<br><br>JPG Bilder machen es möglich sie mit ein Bildansicht Programm zu öffnen<br>Das GTA Snapmatic Format macht es möglich sie wieder ins Game zu importieren<br><br>Exportieren als:
@@ -806,40 +806,40 @@ Copyright © <a href="https://github.com/Syping/">Syping
Aktivierte Bilder: %1 von %2
-
+
Fehlgeschlagen beim Importieren vom Snapmatic Bild, Datei beginnt nicht mit PGTA
-
+
Fehlgeschlagen beim Importieren vom Snapmatic Bild, kann Snapmatic Bild nicht ins Profil kopieren
-
+
Fehlgeschlagen beim Importieren vom Spielstand, kann Spielstanddatei nicht ins Profil kopieren
-
+
Fehlgeschlagen beim Importieren vom Spielstand, kein Spielstandslot mehr frei
-
-
+
+
JPG Bilder und GTA Snapmatic
-
-
+
+
Nur JPG Bilder
-
-
+
+
Nur GTA Snapmatic
@@ -858,25 +858,25 @@ Das GTA Snapmatic Format macht es möglich sie wieder ins Game zu importieren
Exportieren als:
-
-
+
+
Keine Snapmatic Bilder oder Spielstände ausgewählt
-
-
-
+
+
+
Auswahl löschen
-
+
Möchtest du wirklich die ausgewählten Snapmatic Bilder und Spielstanddateien löschen?
-
+
Fehlgeschlagen beim kompletten entfernen der ausgewählten Snapmatic Bilder und/oder der Spielstanddateien
@@ -897,10 +897,10 @@ Exportieren als:
Fehlgeschlagenen beim Import vom Spielstand weil kein Spielstandslot mehr übrig ist
-
-
-
-
+
+
+
+
Auswahl exportieren
@@ -921,12 +921,12 @@ Exportieren als:
Wie sollen wir mit den Snapmatic Bilder umgehen?
-
+
Auswahl exportieren...
-
+
Initialisiere Export...
@@ -935,7 +935,7 @@ Exportieren als:
Initialisierung...
-
+
@@ -1254,6 +1254,69 @@ Exportieren als:
Fehlgeschlagen beim Löschen %1 von deinen Spielständen
+
+ SnapmaticEditor
+
+
+
+
+
+ Snapmatic Eigenschaften
+
+
+
+
+ Snapmatic Typ
+
+
+
+
+
+ Editor
+
+
+
+
+
+ Selbstporträt
+
+
+
+
+
+ Fahndungsfoto
+
+
+
+
+ Eigenes
+
+
+
+
+ Director
+
+
+
+
+ Meme
+
+
+
+
+ &Übernehmen
+
+
+
+
+ Abbre&chen
+
+
+
+
+ Patchen von Snapmatic Eigenschaften fehlgeschlagen wegen I/O Fehler
+
+
SnapmaticWidget
@@ -1288,18 +1351,18 @@ Exportieren als:
-
-
+
+
Bild löschen
-
+
Bist du sicher %1 von deinen Snapmatic Bilder zu löschen?
-
+
Bearbei&ten
@@ -1312,7 +1375,7 @@ Exportieren als:
&Im Spiel deaktivieren
-
+
&Exportieren
@@ -1325,54 +1388,59 @@ Exportieren als:
Exportiere als >A Snapmatic
-
+
&Im Spiel anzeigen
-
+
&Im Spiel ausblenden
-
+
+
+ &Eigenschaften bearbeiten
+
+
+
Exportiere als &JPG Bild...
-
+
Exportiere als >A Snapmatic...
-
+
A&nsehen
-
+
Entfe&rnen
-
-
+
+
Au&swählen
-
+
A&bwählen
-
-
+
+
Alles &auswählen
-
+
Alles a&bwählen
@@ -1420,7 +1488,7 @@ Exportieren als:
Bist du sicher %1 von deinen Snapmatic Bilder zu löschen?
-
+
Fehlgeschlagen beim Löschen %1 von deinen Snapmatic Bildern
@@ -1460,7 +1528,7 @@ Exportieren als:
Über gta5sync
-
+
Strg+A
@@ -1473,7 +1541,7 @@ Exportieren als:
Optionen
-
+
Strg+O
@@ -1482,7 +1550,7 @@ Exportieren als:
Alles auswählen
-
+
Strg+S
@@ -1499,7 +1567,7 @@ Exportieren als:
Auswahl exportieren
-
+
Strg+E
@@ -1508,32 +1576,32 @@ Exportieren als:
Auswahl löschen
-
+
Strg+D
-
+
Beenden
-
+
Auswahl &Sichtbarkeit
-
+
&Über gta5view
-
+
B&eenden
-
+
Strg+Q
@@ -1553,22 +1621,22 @@ Exportieren als:
%1 %2
-
+
&Datei
-
+
&Hilfe
-
+
Bearb&eiten
-
+
&Profil
@@ -1581,43 +1649,43 @@ Exportieren als:
&Über gta5sync
-
+
&Profil schließen
-
+
Strg+Ende
-
+
Strg+Entf
-
+
Datei &öffnen...
-
+
Wähle >A V Ordner...
-
+
Strg+G
-
+
Im Spiel anzeig&en
-
+
Im Spiel ausblen&den
@@ -1630,7 +1698,7 @@ Exportieren als:
Im Spiel aktivier&en
-
+
Umschalt+E
@@ -1639,7 +1707,7 @@ Exportieren als:
Im Spiel &deaktivieren
-
+
Umschalt+D
@@ -1653,7 +1721,7 @@ Exportieren als:
&Profil auswählen
-
+
Strg+P
@@ -1662,27 +1730,27 @@ Exportieren als:
&Optionen
-
+
Ein&stellungen
-
+
&Alles auswählen
-
+
Alles a&bwählen
-
+
Auswahl &exportieren...
-
+
Auswahl entfe&rnen
@@ -1691,12 +1759,12 @@ Exportieren als:
Strg+R
-
+
Dateien &importieren...
-
+
Strg+I
@@ -1711,7 +1779,7 @@ Exportieren als:
Profil auswählen
-
+
diff --git a/res/gta5sync_fr.ts b/res/gta5sync_fr.ts
index 7a9715c..ecb9827 100644
--- a/res/gta5sync_fr.ts
+++ b/res/gta5sync_fr.ts
@@ -286,7 +286,7 @@ gta5view est distribué sous license <a href="https://www.gnu.org/licens
&OK
-
+
OK, Cancel, Apply
&Annuler
@@ -559,11 +559,11 @@ gta5view est distribué sous license <a href="https://www.gnu.org/licens
-
-
-
-
-
+
+
+
+
+
Importer
@@ -625,73 +625,73 @@ gta5view est distribué sous license <a href="https://www.gnu.org/licens
Impossible d'importer %1, format invalide
-
+
Impossible d'importer la photo Snapmatic,nom de fichier incorrect (PGTA*)
-
+
Impossible d'importer la photo Snapmatic, un fichier du même nom existe déjà
-
+
Impossible d'importer la photo Snapmatic, impossible de copier le fichier dans le profil
-
+
Impossible d'importer la sauvegarde, impossible de copier le fichier dans le profil
-
+
Impossible d'importer la sauvegarde, aucun emplacement libre
-
-
-
-
+
+
+
+
Exporter la sélection
-
-
+
+
Images JPG et GTA Snapmatic
-
-
+
+
Images JPG seulement
-
-
+
+
GTA Snapmatic seulement
-
+
%1Exporter les photos Snapmatic%2<br><br>Les fichiers JPG permettent d'ouvrir les photos avec une visionneuse d'images<br>Les GTA Snapmatic permettent d'importer les photos dans le jeu<br><br>Exporter comme :
-
+
Exporter la sélection...
-
+
Initialisation de l'export...
-
+
@@ -700,25 +700,25 @@ gta5view est distribué sous license <a href="https://www.gnu.org/licens
%1
-
-
+
+
Aucun fichier de sauvegarde ou photo Snapmatic sélectionné
-
-
-
+
+
+
Supprimer la sélection
-
+
Supprimer la sélection ?
-
+
Impossible de supprimer la sélection
@@ -926,6 +926,69 @@ gta5view est distribué sous license <a href="https://www.gnu.org/licens
&Déselectionner tout
+
+ SnapmaticEditor
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ &Annuler
+
+
+
+
+
+
+
SnapmaticWidget
@@ -970,8 +1033,8 @@ gta5view est distribué sous license <a href="https://www.gnu.org/licens
-
-
+
+
Supprimer la photo
@@ -981,74 +1044,79 @@ gta5view est distribué sous license <a href="https://www.gnu.org/licens
Supprimer
-
+
Supprimer %1 ?
-
+
Impossible de supprimer %1
-
+
Édi&ter
-
+
&Visible en jeu
-
+
&Invisible en jeu
-
+
+
+
+
+
+
&Exporter
-
+
Exporter comme image &JPG...
-
+
Exporter comme >A Snapmatic...
-
+
&Voir
-
+
S&upprimer
-
-
+
+
&Sélectionner
-
+
&Déselectionner
-
-
+
+
Sélectionner &tout
-
+
&Déselectionner tout
@@ -1080,22 +1148,22 @@ gta5view est distribué sous license <a href="https://www.gnu.org/licens
Fer&mer
-
+
&Fichier
-
+
Ai&de
-
+
&Éditer
-
+
&Profil
@@ -1104,113 +1172,113 @@ gta5view est distribué sous license <a href="https://www.gnu.org/licens
&À propos de gta5sync
-
+
Ctrl+P
-
+
&Quitter
-
+
Quitter
-
+
Ctrl+Q
-
+
Fermer le &profil
-
+
Ctrl + Fin
-
+
Paramètre&s
-
+
Ctrl+S
-
+
Sélectionner &tout
-
+
Ctrl+A
-
+
&Désélectionner tout
-
+
Ctrl+D
-
+
&Exporter la sélection...
-
+
Ctrl+E
-
+
&Supprimer la sélection
-
+
Ctrl+Del
-
+
&Importer...
-
+
Ctrl+I
-
+
&Ouvrir...
-
+
Ctrl+O
-
+
Modifier l'emplacement de >A V...
-
+
@@ -1218,22 +1286,22 @@ gta5view est distribué sous license <a href="https://www.gnu.org/licens
Modifier l'emplacement de GTA V...
-
+
Ctrl+G
-
+
Rendre visible &en jeu
-
+
Shift+E
-
+
&Visibilité de la sélection
@@ -1243,17 +1311,17 @@ gta5view est distribué sous license <a href="https://www.gnu.org/licens
gta5view - %1
-
+
&À propos de gta5view
-
+
Ren&dre invisible en jeu
-
+
Shift+D