double click on ProfileInterface widgets open specific dialog, german

translation updated
This commit is contained in:
Rafael 2016-04-02 21:09:07 +02:00
parent 9062c88aea
commit 5c4f390bd2
15 changed files with 300 additions and 181 deletions

View file

@ -24,7 +24,6 @@ AboutDialog::AboutDialog(QWidget *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()));
}

View file

@ -56,7 +56,7 @@
<item>
<widget class="QLabel" name="labAbout">
<property name="text">
<string>&lt;span style=&quot; font-weight:600;&quot;&gt;gta5sync&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;A project for viewing and sync Grand Theft Auto 5 Snapmatic Pictures and Savegames&lt;br/&gt;&lt;br/&gt;Project version: %1&lt;br/&gt;Compiled with Qt %2&lt;br/&gt;Running with Qt %3&lt;br/&gt;&lt;br/&gt;Copyright © &lt;a href=&quot;https://github.com/Syping/&quot;&gt;Syping&lt;/a&gt; 2016&lt;br/&gt;gta5sync is licensed under &lt;a href=&quot;https://www.gnu.org/licenses/gpl-3.0.html#content&quot;&gt;GNU GPLv3&lt;/a&gt;</string>
<string>&lt;span style=&quot; font-weight:600;&quot;&gt;gta5sync&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;A project for viewing and sync Grand Theft Auto 5 Snapmatic Pictures and Savegames&lt;br/&gt;&lt;br/&gt;Project version: %1&lt;br/&gt;Compiled with Qt %2&lt;br/&gt;Running with Qt %3&lt;br/&gt;&lt;br/&gt;Copyright &amp;copy; &lt;a href=&quot;https://github.com/Syping/&quot;&gt;Syping&lt;/a&gt; 2016&lt;br/&gt;gta5sync is licensed under &lt;a href=&quot;https://www.gnu.org/licenses/gpl-3.0.html#content&quot;&gt;GNU GPLv3&lt;/a&gt;</string>
</property>
<property name="wordWrap">
<bool>true</bool>

98
SavegameCopy.cpp Executable file
View file

@ -0,0 +1,98 @@
/*****************************************************************************
* 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 <http://www.gnu.org/licenses/>.
*****************************************************************************/
#include "SidebarGenerator.h"
#include "SavegameWidget.h"
#include "SavegameCopy.h"
#include <QMessageBox>
#include <QFileDialog>
#include <QSettings>
SavegameCopy::SavegameCopy()
{
}
void SavegameCopy::CopySavegame(QWidget *parent, QString sgdPath)
{
QSettings settings("Syping", "gta5sync");
settings.beginGroup("FileDialogs");
fileDialogPreSave:
QFileInfo sgdFileInfo(sgdPath);
QFileDialog fileDialog(parent);
fileDialog.setFileMode(QFileDialog::AnyFile);
fileDialog.setViewMode(QFileDialog::Detail);
fileDialog.setAcceptMode(QFileDialog::AcceptSave);
fileDialog.setOption(QFileDialog::DontUseNativeDialog, true);
fileDialog.setOption(QFileDialog::DontConfirmOverwrite, true);
fileDialog.setDefaultSuffix("");
fileDialog.setWindowFlags(fileDialog.windowFlags()^Qt::WindowContextHelpButtonHint);
fileDialog.setWindowTitle(SavegameWidget::tr(("Copy savegame")));
QStringList filters;
filters << SavegameWidget::tr("Savegame files (SGTA*)");
filters << SavegameWidget::tr("All files (**)");
fileDialog.setNameFilters(filters);
QList<QUrl> sidebarUrls = SidebarGenerator::generateSidebarUrls(fileDialog.sidebarUrls());
fileDialog.setSidebarUrls(sidebarUrls);
fileDialog.restoreState(settings.value("CopySavegame","").toByteArray());
fileDialog.selectFile(sgdFileInfo.fileName());
if (fileDialog.exec())
{
QStringList selectedFiles = fileDialog.selectedFiles();
if (selectedFiles.length() == 1)
{
QString selectedFile = selectedFiles.at(0);
if (QFile::exists(selectedFile))
{
if (QMessageBox::Yes == QMessageBox::warning(parent, SavegameWidget::tr("Copy savegame"), SavegameWidget::tr("Overwrite %1 with current savegame?").arg("\""+selectedFile+"\""), QMessageBox::Yes | QMessageBox::No, QMessageBox::Yes))
{
if (!QFile::remove(selectedFile))
{
QMessageBox::warning(parent, SavegameWidget::tr("Copy savegame"), SavegameWidget::tr("Failed to overwrite %1 with current savegame").arg("\""+selectedFile+"\""));
goto fileDialogPreSave;
}
}
else
{
goto fileDialogPreSave;
}
}
bool isCopied = QFile::copy(sgdPath, selectedFile);
if (!isCopied)
{
QMessageBox::warning(parent, SavegameWidget::tr("Copy savegame"), SavegameWidget::tr("Failed to copy current savegame"));
goto fileDialogPreSave;
}
}
else
{
QMessageBox::warning(parent, SavegameWidget::tr("Copy savegame"), SavegameWidget::tr("No valid file is selected"));
goto fileDialogPreSave;
}
}
settings.setValue("CopySavegame", fileDialog.saveState());
settings.endGroup();
}

31
SavegameCopy.h Executable file
View file

@ -0,0 +1,31 @@
/*****************************************************************************
* 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 <http://www.gnu.org/licenses/>.
*****************************************************************************/
#ifndef SAVEGAMECOPY_H
#define SAVEGAMECOPY_H
#include <QWidget>
class SavegameCopy
{
public:
SavegameCopy();
static void CopySavegame(QWidget *parent, QString sgdPath);
};
#endif // SAVEGAMECOPY_H

View file

@ -1,6 +1,6 @@
#include "SavegameDialog.h"
#include "ui_SavegameDialog.h"
#include "SavegameCopy.h"
#include <QMessageBox>
SavegameDialog::SavegameDialog(QWidget *parent) :
@ -16,7 +16,7 @@ SavegameDialog::~SavegameDialog()
delete ui;
}
void SavegameDialog::setSavegameData(SavegameData *savegame, bool readOk)
void SavegameDialog::setSavegameData(SavegameData *savegame, QString savegamePath, bool readOk)
{
// Showing error if reading error
if (!readOk)
@ -24,7 +24,7 @@ void SavegameDialog::setSavegameData(SavegameData *savegame, bool readOk)
QMessageBox::warning(this,tr("Savegame Viewer"),tr("Failed at %1").arg(savegame->getLastStep()));
return;
}
sgdPath = savegamePath;
ui->labSavegameText->setText(savegameLabStr.arg(savegame->getSavegameStr()));
}
@ -32,3 +32,8 @@ void SavegameDialog::on_cmdClose_clicked()
{
this->close();
}
void SavegameDialog::on_cmdCopy_clicked()
{
SavegameCopy::CopySavegame(this, sgdPath);
}

View file

@ -13,15 +13,17 @@ class SavegameDialog : public QDialog
Q_OBJECT
public:
explicit SavegameDialog(QWidget *parent = 0);
void setSavegameData(SavegameData *savegame, bool readOk);
void setSavegameData(SavegameData *savegame, QString sgdPath, bool readOk);
~SavegameDialog();
private slots:
void on_cmdClose_clicked();
void on_cmdCopy_clicked();
private:
Ui::SavegameDialog *ui;
QString savegameLabStr;
QString sgdPath;
};
#endif // SAVEGAMEDIALOG_H

View file

@ -52,6 +52,13 @@
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="cmdCopy">
<property name="text">
<string>Copy</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="cmdClose">
<property name="text">

View file

@ -19,8 +19,10 @@
#include "SavegameWidget.h"
#include "ui_SavegameWidget.h"
#include "SidebarGenerator.h"
#include "SavegameDialog.h"
#include "StandardPaths.h"
#include "SavegameData.h"
#include "SavegameCopy.h"
#include <QFileDialog>
#include <QMessageBox>
#include <QSettings>
@ -51,6 +53,11 @@ void SavegameWidget::setSavegameData(SavegameData *savegame, QString savegamePat
sgdata = savegame;
}
void SavegameWidget::on_cmdCopy_clicked()
{
SavegameCopy::CopySavegame(this, sgdPath);
}
void SavegameWidget::on_cmdDelete_clicked()
{
int uchoice = QMessageBox::question(this, tr("Delete savegame"), tr("Are you sure to delete %1 from your savegames?").arg("\""+sgdStr+"\""), QMessageBox::No | QMessageBox::Yes, QMessageBox::No);
@ -71,71 +78,16 @@ void SavegameWidget::on_cmdDelete_clicked()
}
}
void SavegameWidget::on_cmdCopy_clicked()
void SavegameWidget::mouseDoubleClickEvent(QMouseEvent *ev)
{
QSettings settings("Syping", "gta5sync");
settings.beginGroup("FileDialogs");
QWidget::mouseDoubleClickEvent(ev);
fileDialogPreSave:
QFileInfo sgdFileInfo(sgdPath);
QFileDialog fileDialog(this);
fileDialog.setFileMode(QFileDialog::AnyFile);
fileDialog.setViewMode(QFileDialog::Detail);
fileDialog.setAcceptMode(QFileDialog::AcceptSave);
fileDialog.setOption(QFileDialog::DontUseNativeDialog, true);
fileDialog.setOption(QFileDialog::DontConfirmOverwrite, true);
fileDialog.setDefaultSuffix("");
fileDialog.setWindowFlags(fileDialog.windowFlags()^Qt::WindowContextHelpButtonHint);
fileDialog.setWindowTitle(tr("Copy savegame"));
QStringList filters;
filters << tr("Savegame files (SGTA*)");
filters << tr("All files (**)");
fileDialog.setNameFilters(filters);
QList<QUrl> sidebarUrls = SidebarGenerator::generateSidebarUrls(fileDialog.sidebarUrls());
fileDialog.setSidebarUrls(sidebarUrls);
fileDialog.restoreState(settings.value("CopySavegame","").toByteArray());
fileDialog.selectFile(sgdFileInfo.fileName());
if (fileDialog.exec())
{
QStringList selectedFiles = fileDialog.selectedFiles();
if (selectedFiles.length() == 1)
{
QString selectedFile = selectedFiles.at(0);
if (QFile::exists(selectedFile))
{
if (QMessageBox::Yes == QMessageBox::warning(this, tr("Copy savegame"), tr("Overwrite %1 with current savegame?").arg("\""+selectedFile+"\""), QMessageBox::Yes | QMessageBox::No, QMessageBox::Yes))
{
if (!QFile::remove(selectedFile))
{
QMessageBox::warning(this, tr("Copy savegame"), tr("Failed to overwrite %1 with current savegame").arg("\""+selectedFile+"\""));
goto fileDialogPreSave;
}
}
else
{
goto fileDialogPreSave;
}
}
bool isCopied = QFile::copy(sgdPath, selectedFile);
if (!isCopied)
{
QMessageBox::warning(this, tr("Copy savegame"), tr("Failed to copy current savegame"));
goto fileDialogPreSave;
}
}
else
{
QMessageBox::warning(this, tr("Copy savegame"), tr("No valid file is selected"));
goto fileDialogPreSave;
}
}
settings.setValue("CopySavegame", fileDialog.saveState());
settings.endGroup();
SavegameDialog *savegameDialog = new SavegameDialog(this);
savegameDialog->setWindowFlags(savegameDialog->windowFlags()^Qt::WindowContextHelpButtonHint);
savegameDialog->setSavegameData(sgdata, sgdPath, true);
savegameDialog->setModal(true);
savegameDialog->show();
savegameDialog->exec();
savegameDialog->deleteLater();
delete savegameDialog;
}

View file

@ -39,6 +39,9 @@ private slots:
void on_cmdDelete_clicked();
void on_cmdCopy_clicked();
protected:
void mouseDoubleClickEvent(QMouseEvent *ev);
private:
Ui::SavegameWidget *ui;
SavegameData *sgdata;

View file

@ -176,8 +176,8 @@ void UserInterface::openSelectProfile()
void UserInterface::on_actionAbout_gta5sync_triggered()
{
AboutDialog *aboutDialog = new AboutDialog(this);
aboutDialog->setWindowIcon(this->windowIcon());
aboutDialog->setWindowFlags(aboutDialog->windowFlags()^Qt::WindowContextHelpButtonHint);
aboutDialog->setModal(true);
aboutDialog->show();
aboutDialog->exec();
aboutDialog->deleteLater();

View file

@ -32,6 +32,7 @@ SOURCES += main.cpp \
ProfileDatabase.cpp \
ProfileInterface.cpp \
ProfileLoader.cpp \
SavegameCopy.cpp \
SavegameData.cpp \
SavegameDialog.cpp \
SavegameWidget.cpp \
@ -52,6 +53,7 @@ HEADERS += \
ProfileDatabase.h \
ProfileInterface.h \
ProfileLoader.h \
SavegameCopy.h \
SavegameData.h \
SavegameDialog.h \
SavegameWidget.h \
@ -74,7 +76,7 @@ FORMS += \
TRANSLATIONS += \
res/gta5sync_de.ts \
res/lang/gta5sync_ru.ts
lang/gta5sync_ru.ts
RESOURCES += \
res/app.qrc

View file

@ -9,15 +9,19 @@
<translation>О программе gta5sync</translation>
</message>
<message utf8="true">
<location filename="../AboutDialog.ui" line="59"/>
<source>&lt;span style=&quot; font-weight:600;&quot;&gt;gta5sync&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;A project for viewing and sync Grand Theft Auto 5 Snapmatic Pictures and Savegames&lt;br/&gt;&lt;br/&gt;Project version: %1&lt;br/&gt;Compiled with Qt %2&lt;br/&gt;Running with Qt %3&lt;br/&gt;&lt;br/&gt;Copyright © &lt;a href=&quot;https://github.com/Syping/&quot;&gt;Syping&lt;/a&gt; 2016&lt;br/&gt;gta5sync is licensed under &lt;a href=&quot;https://www.gnu.org/licenses/gpl-3.0.html#content&quot;&gt;GNU GPLv3&lt;/a&gt;</source>
<translation>&lt;span style=&quot; font-weight:600;&quot;&gt;gta5sync&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;Проект для просмотра и синхронизации фотографий Snapmatic и сохранений от Grand Theft Auto 5&lt;br/&gt;&lt;br/&gt;Версия проекта: %1&lt;br/&gt;Скомпилировано с Qt %2&lt;br/&gt;Работает на Qt %3&lt;br/&gt;&lt;br/&gt;Copyright © &lt;a href=&quot;https://github.com/Syping/&quot;&gt;Syping&lt;/a&gt; 2016&lt;br/&gt;gta5sync лицензирован по &lt;a href=&quot;https://www.gnu.org/licenses/gpl-3.0.html#content&quot;&gt;GNU GPLv3&lt;/a&gt;</translation>
<translation type="obsolete">&lt;span style=&quot; font-weight:600;&quot;&gt;gta5sync&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;Проект для просмотра и синхронизации фотографий Snapmatic и сохранений от Grand Theft Auto 5&lt;br/&gt;&lt;br/&gt;Версия проекта: %1&lt;br/&gt;Скомпилировано с Qt %2&lt;br/&gt;Работает на Qt %3&lt;br/&gt;&lt;br/&gt;Copyright © &lt;a href=&quot;https://github.com/Syping/&quot;&gt;Syping&lt;/a&gt; 2016&lt;br/&gt;gta5sync лицензирован по &lt;a href=&quot;https://www.gnu.org/licenses/gpl-3.0.html#content&quot;&gt;GNU GPLv3&lt;/a&gt;</translation>
</message>
<message>
<location filename="../AboutDialog.ui" line="104"/>
<source>Close</source>
<translation>Закрыть</translation>
</message>
<message>
<location filename="../AboutDialog.ui" line="59"/>
<source>&lt;span style=&quot; font-weight:600;&quot;&gt;gta5sync&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;A project for viewing and sync Grand Theft Auto 5 Snapmatic Pictures and Savegames&lt;br/&gt;&lt;br/&gt;Project version: %1&lt;br/&gt;Compiled with Qt %2&lt;br/&gt;Running with Qt %3&lt;br/&gt;&lt;br/&gt;Copyright &amp;copy; &lt;a href=&quot;https://github.com/Syping/&quot;&gt;Syping&lt;/a&gt; 2016&lt;br/&gt;gta5sync is licensed under &lt;a href=&quot;https://www.gnu.org/licenses/gpl-3.0.html#content&quot;&gt;GNU GPLv3&lt;/a&gt;</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>PictureDialog</name>
@ -27,7 +31,7 @@
<translation>%1 - Просмотрщик фотографий Snapmatic</translation>
</message>
<message>
<location filename="../PictureDialog.ui" line="72"/>
<location filename="../PictureDialog.ui" line="78"/>
<source>&lt;span style=&quot; font-weight:600;&quot;&gt;Title: &lt;/span&gt;%6&lt;br&gt;
&lt;span style=&quot; font-weight:600;&quot;&gt;Location: &lt;/span&gt;%1, %2, %3 &lt;br&gt;
&lt;span style=&quot; font-weight:600;&quot;&gt;Players: &lt;/span&gt;%4&lt;br&gt;
@ -38,109 +42,109 @@
&lt;span style=&quot; font-weight:600;&quot;&gt;ID группы: &lt;/span&gt;%5</translation>
</message>
<message>
<location filename="../PictureDialog.ui" line="85"/>
<location filename="../PictureDialog.cpp" line="166"/>
<location filename="../PictureDialog.cpp" line="249"/>
<location filename="../PictureDialog.cpp" line="253"/>
<location filename="../PictureDialog.cpp" line="267"/>
<location filename="../PictureDialog.cpp" line="273"/>
<location filename="../PictureDialog.ui" line="91"/>
<location filename="../PictureDialog.cpp" line="175"/>
<location filename="../PictureDialog.cpp" line="258"/>
<location filename="../PictureDialog.cpp" line="262"/>
<location filename="../PictureDialog.cpp" line="276"/>
<location filename="../PictureDialog.cpp" line="282"/>
<source>Export picture</source>
<translation>Экспорт картинки</translation>
</message>
<message>
<location filename="../PictureDialog.ui" line="88"/>
<location filename="../PictureDialog.ui" line="94"/>
<source>Export</source>
<translation>Экспорт</translation>
</message>
<message>
<location filename="../PictureDialog.ui" line="95"/>
<location filename="../PictureDialog.ui" line="101"/>
<source>Copy</source>
<translation>Копировать</translation>
</message>
<message>
<location filename="../PictureDialog.ui" line="102"/>
<location filename="../PictureDialog.ui" line="105"/>
<location filename="../PictureDialog.ui" line="108"/>
<location filename="../PictureDialog.ui" line="111"/>
<source>Close</source>
<translation>Закрыть</translation>
</message>
<message>
<location filename="../PictureDialog.cpp" line="66"/>
<location filename="../PictureDialog.cpp" line="113"/>
<location filename="../PictureDialog.cpp" line="69"/>
<location filename="../PictureDialog.cpp" line="117"/>
<source>Snapmatic Picture Viewer</source>
<translation>Просмотрщик фотографий Snapmatic</translation>
</message>
<message>
<location filename="../PictureDialog.cpp" line="66"/>
<location filename="../PictureDialog.cpp" line="113"/>
<location filename="../PictureDialog.cpp" line="69"/>
<location filename="../PictureDialog.cpp" line="117"/>
<source>Failed at %1</source>
<translation>Ошибка при %1</translation>
</message>
<message>
<location filename="../PictureDialog.cpp" line="102"/>
<location filename="../PictureDialog.cpp" line="112"/>
<location filename="../PictureDialog.cpp" line="106"/>
<location filename="../PictureDialog.cpp" line="116"/>
<source>No player</source>
<translation>Игроков нет</translation>
</message>
<message>
<location filename="../PictureDialog.cpp" line="105"/>
<location filename="../PictureDialog.cpp" line="112"/>
<location filename="../PictureDialog.cpp" line="109"/>
<location filename="../PictureDialog.cpp" line="116"/>
<source>No crew</source>
<translation>Без группы</translation>
</message>
<message>
<location filename="../PictureDialog.cpp" line="170"/>
<location filename="../PictureDialog.cpp" line="179"/>
<source>JPEG picture (*.jpg)</source>
<translation>Картинка JPEG (*.jpg)</translation>
</message>
<message>
<location filename="../PictureDialog.cpp" line="171"/>
<location filename="../PictureDialog.cpp" line="180"/>
<source>Portable Network Graphics (*.png)</source>
<translation>Картинка Portable Network Graphics (*.png)</translation>
</message>
<message>
<location filename="../PictureDialog.cpp" line="249"/>
<location filename="../PictureDialog.cpp" line="319"/>
<location filename="../PictureDialog.cpp" line="258"/>
<location filename="../PictureDialog.cpp" line="328"/>
<source>Overwrite %1 with current Snapmatic picture?</source>
<translation>Перезаписать %1 текущей картинкой Snapmatic?</translation>
</message>
<message>
<location filename="../PictureDialog.cpp" line="253"/>
<location filename="../PictureDialog.cpp" line="323"/>
<location filename="../PictureDialog.cpp" line="262"/>
<location filename="../PictureDialog.cpp" line="332"/>
<source>Failed to overwrite %1 with current Snapmatic picture</source>
<translation>Не удалось перезаписать %1 картинкой Snapmatic</translation>
</message>
<message>
<location filename="../PictureDialog.cpp" line="267"/>
<location filename="../PictureDialog.cpp" line="276"/>
<source>Failed to export current Snapmatic picture</source>
<translation>Не удалось экспортировать текущую картинку Snapmatic</translation>
</message>
<message>
<location filename="../PictureDialog.cpp" line="273"/>
<location filename="../PictureDialog.cpp" line="342"/>
<location filename="../PictureDialog.cpp" line="282"/>
<location filename="../PictureDialog.cpp" line="351"/>
<source>No valid file is selected</source>
<translation>Выбранный файл неверен</translation>
</message>
<message>
<location filename="../PictureDialog.cpp" line="297"/>
<location filename="../PictureDialog.cpp" line="319"/>
<location filename="../PictureDialog.cpp" line="323"/>
<location filename="../PictureDialog.cpp" line="336"/>
<location filename="../PictureDialog.cpp" line="342"/>
<location filename="../PictureDialog.cpp" line="306"/>
<location filename="../PictureDialog.cpp" line="328"/>
<location filename="../PictureDialog.cpp" line="332"/>
<location filename="../PictureDialog.cpp" line="345"/>
<location filename="../PictureDialog.cpp" line="351"/>
<source>Copy picture</source>
<translation>Скопировать картинку</translation>
</message>
<message>
<location filename="../PictureDialog.cpp" line="300"/>
<location filename="../PictureDialog.cpp" line="309"/>
<source>Snapmatic pictures (PGTA*)</source>
<translation>Картинки Snapmatic (PGTA*)</translation>
</message>
<message>
<location filename="../PictureDialog.cpp" line="301"/>
<location filename="../PictureDialog.cpp" line="310"/>
<source>All files (**)</source>
<translation>Все файлы (**)</translation>
</message>
<message>
<location filename="../PictureDialog.cpp" line="336"/>
<location filename="../PictureDialog.cpp" line="345"/>
<source>Failed to copy current Snapmatic picture</source>
<translation>Не удалось скопировать текущую картинку Snapmatic</translation>
</message>
@ -259,6 +263,11 @@
</message>
<message>
<location filename="../SavegameDialog.ui" line="58"/>
<source>Copy</source>
<translation type="unfinished">Копировать</translation>
</message>
<message>
<location filename="../SavegameDialog.ui" line="65"/>
<source>Close</source>
<translation>Закрыть</translation>
</message>
@ -291,57 +300,56 @@
<translation>Удалить</translation>
</message>
<message>
<location filename="../SavegameWidget.cpp" line="56"/>
<location filename="../SavegameWidget.cpp" line="69"/>
<location filename="../SavegameWidget.cpp" line="57"/>
<location filename="../SavegameWidget.cpp" line="70"/>
<source>Delete savegame</source>
<translation>Удалить сохранение</translation>
</message>
<message>
<location filename="../SavegameWidget.cpp" line="56"/>
<location filename="../SavegameWidget.cpp" line="57"/>
<source>Are you sure to delete %1 from your savegames?</source>
<translation>Вы уверены, что хотите удалить сохранение %1?</translation>
</message>
<message>
<location filename="../SavegameWidget.cpp" line="69"/>
<location filename="../SavegameWidget.cpp" line="70"/>
<source>Failed at deleting %1 from your savegames</source>
<translation>Не удалось удалить сохранение %1</translation>
</message>
<message>
<location filename="../SavegameWidget.cpp" line="89"/>
<location filename="../SavegameWidget.cpp" line="111"/>
<location filename="../SavegameWidget.cpp" line="115"/>
<location filename="../SavegameWidget.cpp" line="128"/>
<location filename="../SavegameWidget.cpp" line="134"/>
<location filename="../SavegameCopy.cpp" line="68"/>
<location filename="../SavegameCopy.cpp" line="72"/>
<location filename="../SavegameCopy.cpp" line="85"/>
<location filename="../SavegameCopy.cpp" line="91"/>
<source>Copy savegame</source>
<translation>Копировать сохранение</translation>
</message>
<message>
<location filename="../SavegameWidget.cpp" line="92"/>
<location filename="../SavegameCopy.cpp" line="49"/>
<source>Savegame files (SGTA*)</source>
<translation>Файлы сохранений (SGTA*)</translation>
</message>
<message>
<location filename="../SavegameWidget.cpp" line="93"/>
<location filename="../SavegameCopy.cpp" line="50"/>
<source>All files (**)</source>
<translation>Все файлы (**)</translation>
</message>
<message>
<location filename="../SavegameWidget.cpp" line="111"/>
<location filename="../SavegameCopy.cpp" line="68"/>
<source>Overwrite %1 with current savegame?</source>
<translation>Перезаписать %1 текущим сохранением?</translation>
</message>
<message>
<location filename="../SavegameWidget.cpp" line="115"/>
<location filename="../SavegameCopy.cpp" line="72"/>
<source>Failed to overwrite %1 with current savegame</source>
<translation>Не удалось перезаписать %1 текущим сохранением</translation>
</message>
<message>
<location filename="../SavegameWidget.cpp" line="128"/>
<location filename="../SavegameCopy.cpp" line="85"/>
<source>Failed to copy current savegame</source>
<translation>Не удалось скопировать текущее сохранение</translation>
</message>
<message>
<location filename="../SavegameWidget.cpp" line="134"/>
<location filename="../SavegameCopy.cpp" line="91"/>
<source>No valid file is selected</source>
<translation>Выбранный файл неверен</translation>
</message>

View file

@ -411,7 +411,7 @@ int main(int argc, char *argv[])
bool readOk = savegame.readingSavegameFromFile(arg1);
savegameDialog->setWindowFlags(savegameDialog->windowFlags()^Qt::WindowContextHelpButtonHint);
savegameDialog->setWindowIcon(IconLoader::loadingAppIcon());
savegameDialog->setSavegameData(&savegame, readOk);
savegameDialog->setSavegameData(&savegame, arg1, readOk);
if (!readOk) { return 1; }

Binary file not shown.

View file

@ -8,16 +8,24 @@
<source>About gta5sync</source>
<translation>Über gta5sync</translation>
</message>
<message utf8="true">
<location filename="../AboutDialog.ui" line="59"/>
<message>
<source>generated by class</source>
<translation type="obsolete">Generiert von der Klasse</translation>
</message>
<message>
<source>&lt;span style=&quot; font-weight:600;&quot;&gt;gta5sync&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;A project for viewing and sync Grand Theft Auto 5 Snapmatic Pictures and Savegames&lt;br/&gt;&lt;br/&gt;Project version: %1&lt;br/&gt;Compiled with Qt %2&lt;br/&gt;Running with Qt %3&lt;br/&gt;&lt;br/&gt;Copyright © &lt;a href=&quot;https://github.com/Syping/&quot;&gt;Syping&lt;/a&gt; 2016&lt;br/&gt;gta5sync is licensed under &lt;a href=&quot;https://www.gnu.org/licenses/gpl-3.0.html#content&quot;&gt;GNU GPLv3&lt;/a&gt;</source>
<translation>&lt;span style=&quot; font-weight:600;&quot;&gt;gta5sync&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;Ein Projekt zum ansehen und synchronisieren von Grand Theft Auto 5 Snapmatic Bilder und Spielständen&lt;br/&gt;&lt;br/&gt;Projektversion: %1&lt;br/&gt;Gebaut mit Qt %2&lt;br/&gt;Läuft auf Qt %3&lt;br/&gt;&lt;br/&gt;Copyright © &lt;a href=&quot;https://github.com/Syping/&quot;&gt;Syping&lt;/a&gt; 2016&lt;br/&gt;gta5sync is lizenziert unter &lt;a href=&quot;https://www.gnu.org/licenses/gpl-3.0.html#content&quot;&gt;GNU GPLv3&lt;/a&gt;</translation>
<translation type="obsolete">&lt;span style=&quot; font-weight:600;&quot;&gt;gta5sync&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;Ein Projekt zum ansehen und synchronisieren von Grand Theft Auto 5 Snapmatic Bilder und Spielständen&lt;br/&gt;&lt;br/&gt;Projektversion: %1&lt;br/&gt;Gebaut mit Qt %2&lt;br/&gt;Läuft auf Qt %3&lt;br/&gt;&lt;br/&gt;Copyright © &lt;a href=&quot;https://github.com/Syping/&quot;&gt;Syping&lt;/a&gt; 2016&lt;br/&gt;gta5sync is lizenziert unter &lt;a href=&quot;https://www.gnu.org/licenses/gpl-3.0.html#content&quot;&gt;GNU GPLv3&lt;/a&gt;</translation>
</message>
<message>
<location filename="../AboutDialog.ui" line="104"/>
<source>Close</source>
<translation>Schließen</translation>
</message>
<message>
<location filename="../AboutDialog.ui" line="59"/>
<source>&lt;span style=&quot; font-weight:600;&quot;&gt;gta5sync&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;A project for viewing and sync Grand Theft Auto 5 Snapmatic Pictures and Savegames&lt;br/&gt;&lt;br/&gt;Project version: %1&lt;br/&gt;Compiled with Qt %2&lt;br/&gt;Running with Qt %3&lt;br/&gt;&lt;br/&gt;Copyright &amp;copy; &lt;a href=&quot;https://github.com/Syping/&quot;&gt;Syping&lt;/a&gt; 2016&lt;br/&gt;gta5sync is licensed under &lt;a href=&quot;https://www.gnu.org/licenses/gpl-3.0.html#content&quot;&gt;GNU GPLv3&lt;/a&gt;</source>
<translation>&lt;span style=&quot; font-weight:600;&quot;&gt;gta5sync&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;Ein Projekt zum ansehen und synchronisieren von Grand Theft Auto 5 Snapmatic Bilder und Spielständen&lt;br/&gt;&lt;br/&gt;Projektversion: %1&lt;br/&gt;Gebaut mit Qt %2&lt;br/&gt;Läuft auf Qt %3&lt;br/&gt;&lt;br/&gt;Copyright &amp;copy; &lt;a href=&quot;https://github.com/Syping/&quot;&gt;Syping&lt;/a&gt; 2016&lt;br/&gt;gta5sync is lizenziert unter &lt;a href=&quot;https://www.gnu.org/licenses/gpl-3.0.html#content&quot;&gt;GNU GPLv3&lt;/a&gt;</translation>
</message>
</context>
<context>
<name>PictureDialog</name>
@ -41,7 +49,7 @@
&lt;span style=&quot; font-weight:600;&quot;&gt;Crew ID: &lt;/span&gt;%5</translation>
</message>
<message>
<location filename="../PictureDialog.ui" line="72"/>
<location filename="../PictureDialog.ui" line="78"/>
<source>&lt;span style=&quot; font-weight:600;&quot;&gt;Title: &lt;/span&gt;%6&lt;br&gt;
&lt;span style=&quot; font-weight:600;&quot;&gt;Location: &lt;/span&gt;%1, %2, %3 &lt;br&gt;
&lt;span style=&quot; font-weight:600;&quot;&gt;Players: &lt;/span&gt;%4&lt;br&gt;
@ -52,93 +60,93 @@
&lt;span style=&quot; font-weight:600;&quot;&gt;Crew ID: &lt;/span&gt;%5</translation>
</message>
<message>
<location filename="../PictureDialog.ui" line="88"/>
<location filename="../PictureDialog.ui" line="94"/>
<source>Export</source>
<translation>Exportieren</translation>
</message>
<message>
<location filename="../PictureDialog.ui" line="95"/>
<location filename="../PictureDialog.ui" line="101"/>
<source>Copy</source>
<translation>Kopieren</translation>
</message>
<message>
<location filename="../PictureDialog.ui" line="102"/>
<location filename="../PictureDialog.ui" line="105"/>
<location filename="../PictureDialog.ui" line="108"/>
<location filename="../PictureDialog.ui" line="111"/>
<source>Close</source>
<translation>Schließen</translation>
</message>
<message>
<location filename="../PictureDialog.cpp" line="66"/>
<location filename="../PictureDialog.cpp" line="113"/>
<location filename="../PictureDialog.cpp" line="69"/>
<location filename="../PictureDialog.cpp" line="117"/>
<source>Snapmatic Picture Viewer</source>
<translation>Snapmatic Bildansicht</translation>
</message>
<message>
<location filename="../PictureDialog.cpp" line="66"/>
<location filename="../PictureDialog.cpp" line="113"/>
<location filename="../PictureDialog.cpp" line="69"/>
<location filename="../PictureDialog.cpp" line="117"/>
<source>Failed at %1</source>
<translation>Fehlgeschlagen bei %1</translation>
</message>
<message>
<location filename="../PictureDialog.cpp" line="102"/>
<location filename="../PictureDialog.cpp" line="112"/>
<location filename="../PictureDialog.cpp" line="106"/>
<location filename="../PictureDialog.cpp" line="116"/>
<source>No player</source>
<translation>Keine Spieler</translation>
</message>
<message>
<location filename="../PictureDialog.cpp" line="105"/>
<location filename="../PictureDialog.cpp" line="112"/>
<location filename="../PictureDialog.cpp" line="109"/>
<location filename="../PictureDialog.cpp" line="116"/>
<source>No crew</source>
<translation>Keine Crew</translation>
</message>
<message>
<location filename="../PictureDialog.cpp" line="170"/>
<location filename="../PictureDialog.cpp" line="179"/>
<source>JPEG picture (*.jpg)</source>
<translation>JPEG Bild (*.jpg)</translation>
</message>
<message>
<location filename="../PictureDialog.cpp" line="171"/>
<location filename="../PictureDialog.cpp" line="180"/>
<source>Portable Network Graphics (*.png)</source>
<translation>Portable Network Graphics (*.png)</translation>
</message>
<message>
<location filename="../PictureDialog.cpp" line="249"/>
<location filename="../PictureDialog.cpp" line="319"/>
<location filename="../PictureDialog.cpp" line="258"/>
<location filename="../PictureDialog.cpp" line="328"/>
<source>Overwrite %1 with current Snapmatic picture?</source>
<translation>Überschreibe %1 mit aktuellen Snapmatic Bild?</translation>
</message>
<message>
<location filename="../PictureDialog.cpp" line="253"/>
<location filename="../PictureDialog.cpp" line="323"/>
<location filename="../PictureDialog.cpp" line="262"/>
<location filename="../PictureDialog.cpp" line="332"/>
<source>Failed to overwrite %1 with current Snapmatic picture</source>
<translation>Fehlgeschlagen beim Überschreiben von %1 mit aktuellen Snapmatic Bild</translation>
</message>
<message>
<location filename="../PictureDialog.cpp" line="267"/>
<location filename="../PictureDialog.cpp" line="276"/>
<source>Failed to export current Snapmatic picture</source>
<translation>Fehlgeschlagen beim Exportieren vom aktuellen Snapmatic Bild</translation>
</message>
<message>
<location filename="../PictureDialog.cpp" line="297"/>
<location filename="../PictureDialog.cpp" line="319"/>
<location filename="../PictureDialog.cpp" line="323"/>
<location filename="../PictureDialog.cpp" line="336"/>
<location filename="../PictureDialog.cpp" line="342"/>
<location filename="../PictureDialog.cpp" line="306"/>
<location filename="../PictureDialog.cpp" line="328"/>
<location filename="../PictureDialog.cpp" line="332"/>
<location filename="../PictureDialog.cpp" line="345"/>
<location filename="../PictureDialog.cpp" line="351"/>
<source>Copy picture</source>
<translation>Bild kopieren</translation>
</message>
<message>
<location filename="../PictureDialog.cpp" line="300"/>
<location filename="../PictureDialog.cpp" line="309"/>
<source>Snapmatic pictures (PGTA*)</source>
<translation>Snapmatic Bilder (PGTA*)</translation>
</message>
<message>
<location filename="../PictureDialog.cpp" line="301"/>
<location filename="../PictureDialog.cpp" line="310"/>
<source>All files (**)</source>
<translation>Alle Dateien (**)</translation>
</message>
<message>
<location filename="../PictureDialog.cpp" line="336"/>
<location filename="../PictureDialog.cpp" line="345"/>
<source>Failed to copy current Snapmatic picture</source>
<translation>Fehlgeschlagen beim Kopieren vom Snapmatic Bild</translation>
</message>
@ -151,12 +159,12 @@
<translation type="obsolete">JPEG Bild (*.jpg);;Portable Network Graphics (*.png)</translation>
</message>
<message>
<location filename="../PictureDialog.ui" line="85"/>
<location filename="../PictureDialog.cpp" line="166"/>
<location filename="../PictureDialog.cpp" line="249"/>
<location filename="../PictureDialog.cpp" line="253"/>
<location filename="../PictureDialog.cpp" line="267"/>
<location filename="../PictureDialog.cpp" line="273"/>
<location filename="../PictureDialog.ui" line="91"/>
<location filename="../PictureDialog.cpp" line="175"/>
<location filename="../PictureDialog.cpp" line="258"/>
<location filename="../PictureDialog.cpp" line="262"/>
<location filename="../PictureDialog.cpp" line="276"/>
<location filename="../PictureDialog.cpp" line="282"/>
<source>Export picture</source>
<translation>Bild exportieren</translation>
</message>
@ -169,8 +177,8 @@
<translation type="obsolete">Beim Speichern des Bildes ist ein Fehler aufgetreten</translation>
</message>
<message>
<location filename="../PictureDialog.cpp" line="273"/>
<location filename="../PictureDialog.cpp" line="342"/>
<location filename="../PictureDialog.cpp" line="282"/>
<location filename="../PictureDialog.cpp" line="351"/>
<source>No valid file is selected</source>
<translation>Keine gültige Datei wurde ausgewählt</translation>
</message>
@ -298,6 +306,11 @@
</message>
<message>
<location filename="../SavegameDialog.ui" line="58"/>
<source>Copy</source>
<translation>Kopieren</translation>
</message>
<message>
<location filename="../SavegameDialog.ui" line="65"/>
<source>Close</source>
<translation>Schließen</translation>
</message>
@ -330,52 +343,51 @@
<translation>Löschen</translation>
</message>
<message>
<location filename="../SavegameWidget.cpp" line="56"/>
<location filename="../SavegameWidget.cpp" line="69"/>
<location filename="../SavegameWidget.cpp" line="57"/>
<location filename="../SavegameWidget.cpp" line="70"/>
<source>Delete savegame</source>
<translation>Savegame löschen</translation>
</message>
<message>
<location filename="../SavegameWidget.cpp" line="56"/>
<location filename="../SavegameWidget.cpp" line="57"/>
<source>Are you sure to delete %1 from your savegames?</source>
<translation>Bist du sicher %1 von deinen Spielständen zu löschen?</translation>
</message>
<message>
<location filename="../SavegameWidget.cpp" line="69"/>
<location filename="../SavegameWidget.cpp" line="70"/>
<source>Failed at deleting %1 from your savegames</source>
<translation>Fehlgeschlagen beim Löschen %1 von deinen Spielständen</translation>
</message>
<message>
<location filename="../SavegameWidget.cpp" line="89"/>
<location filename="../SavegameWidget.cpp" line="111"/>
<location filename="../SavegameWidget.cpp" line="115"/>
<location filename="../SavegameWidget.cpp" line="128"/>
<location filename="../SavegameWidget.cpp" line="134"/>
<location filename="../SavegameCopy.cpp" line="68"/>
<location filename="../SavegameCopy.cpp" line="72"/>
<location filename="../SavegameCopy.cpp" line="85"/>
<location filename="../SavegameCopy.cpp" line="91"/>
<source>Copy savegame</source>
<translation>Spielstand kopieren</translation>
</message>
<message>
<location filename="../SavegameWidget.cpp" line="92"/>
<location filename="../SavegameCopy.cpp" line="49"/>
<source>Savegame files (SGTA*)</source>
<translation>Spielstanddateien (SGTA*)</translation>
</message>
<message>
<location filename="../SavegameWidget.cpp" line="93"/>
<location filename="../SavegameCopy.cpp" line="50"/>
<source>All files (**)</source>
<translation>Alle Dateien (**)</translation>
</message>
<message>
<location filename="../SavegameWidget.cpp" line="111"/>
<location filename="../SavegameCopy.cpp" line="68"/>
<source>Overwrite %1 with current savegame?</source>
<translation>Überschreibe %1 mit aktuellen Spielstand?</translation>
</message>
<message>
<location filename="../SavegameWidget.cpp" line="115"/>
<location filename="../SavegameCopy.cpp" line="72"/>
<source>Failed to overwrite %1 with current savegame</source>
<translation>Fehlgeschlagen beim Überschreiben von %1 mit aktuellen Spielstand </translation>
</message>
<message>
<location filename="../SavegameWidget.cpp" line="128"/>
<location filename="../SavegameCopy.cpp" line="85"/>
<source>Failed to copy current savegame</source>
<translation>Fehlgeschlagen beim Kopieren vom Spielstand</translation>
</message>
@ -384,7 +396,7 @@
<translation type="obsolete">Beim Kopieren vom Spielstand ist ein Fehler aufgetreten</translation>
</message>
<message>
<location filename="../SavegameWidget.cpp" line="134"/>
<location filename="../SavegameCopy.cpp" line="91"/>
<source>No valid file is selected</source>
<translation>Keine gültige Datei wurde ausgewählt</translation>
</message>