diff --git a/CrewDatabase.cpp b/CrewDatabase.cpp index 09e5639..ab4f2f9 100755 --- a/CrewDatabase.cpp +++ b/CrewDatabase.cpp @@ -1,6 +1,6 @@ /***************************************************************************** * gta5sync GRAND THEFT AUTO V SYNC -* Copyright (C) 2016 Syping Gaming Team +* 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 @@ -38,7 +38,7 @@ CrewDatabase::CrewDatabase(QObject *parent) : QObject(parent) QString dirPath = dir.absolutePath(); QString defaultConfPath = dirPath + "/crews.ini"; - QSettings confPathSettings("Syping Gaming Team","gta5sync"); + QSettings confPathSettings("Syping","gta5sync"); confPathSettings.beginGroup("Database"); QString confPathFile = confPathSettings.value("Location", defaultConfPath).toString(); confPathSettings.endGroup(); diff --git a/CrewDatabase.h b/CrewDatabase.h index e4e32d6..a480548 100755 --- a/CrewDatabase.h +++ b/CrewDatabase.h @@ -1,6 +1,6 @@ /***************************************************************************** * gta5sync GRAND THEFT AUTO V SYNC -* Copyright (C) 2016 Syping Gaming Team +* 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 diff --git a/DatabaseThread.cpp b/DatabaseThread.cpp index 379b2f6..8e5eeb8 100755 --- a/DatabaseThread.cpp +++ b/DatabaseThread.cpp @@ -1,6 +1,6 @@ /***************************************************************************** * gta5sync GRAND THEFT AUTO V SYNC -* Copyright (C) 2016 Syping Gaming Team +* 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 diff --git a/DatabaseThread.h b/DatabaseThread.h index 9ca9081..631c4be 100755 --- a/DatabaseThread.h +++ b/DatabaseThread.h @@ -1,6 +1,6 @@ /***************************************************************************** * gta5sync GRAND THEFT AUTO V SYNC -* Copyright (C) 2016 Syping Gaming Team +* 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 diff --git a/PictureDialog.cpp b/PictureDialog.cpp index 4213407..037500a 100755 --- a/PictureDialog.cpp +++ b/PictureDialog.cpp @@ -1,6 +1,6 @@ /***************************************************************************** * gta5sync GRAND THEFT AUTO V SYNC -* Copyright (C) 2016 Syping Gaming Team +* 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 @@ -68,7 +68,7 @@ void PictureDialog::setSnapmaticPicture(SnapmaticPicture *picture, bool readOk) if (picture->isPicOk()) { - ui->labPicture->setPixmap(picture->getPixmap()); + ui->labPicture->setPixmap(QPixmap::fromImage(picture->getPicture(), Qt::AutoColor)); ui->cmdExport->setEnabled(true); } if (picture->isJsonOk()) diff --git a/PictureDialog.h b/PictureDialog.h index 1456859..93d728d 100755 --- a/PictureDialog.h +++ b/PictureDialog.h @@ -1,6 +1,6 @@ /***************************************************************************** * gta5sync GRAND THEFT AUTO V SYNC -* Copyright (C) 2016 Syping Gaming Team +* 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 diff --git a/ProfileDatabase.cpp b/ProfileDatabase.cpp index d737a9a..17829e2 100755 --- a/ProfileDatabase.cpp +++ b/ProfileDatabase.cpp @@ -1,6 +1,6 @@ /***************************************************************************** * gta5sync GRAND THEFT AUTO V SYNC -* Copyright (C) 2016 Syping Gaming Team +* 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 @@ -38,7 +38,7 @@ ProfileDatabase::ProfileDatabase(QObject *parent) : QObject(parent) QString dirPath = dir.absolutePath(); QString defaultConfPath = dirPath + "/players.ini"; - QSettings confPathSettings("Syping Gaming Team","gta5sync"); + QSettings confPathSettings("Syping","gta5sync"); confPathSettings.beginGroup("Database"); QString confPathFile = confPathSettings.value("Location", defaultConfPath).toString(); confPathSettings.endGroup(); diff --git a/ProfileDatabase.h b/ProfileDatabase.h index bbe1f26..4c4e463 100755 --- a/ProfileDatabase.h +++ b/ProfileDatabase.h @@ -1,6 +1,6 @@ /***************************************************************************** * gta5sync GRAND THEFT AUTO V SYNC -* Copyright (C) 2016 Syping Gaming Team +* 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 diff --git a/ProfileInterface.cpp b/ProfileInterface.cpp index b15f8b3..3c1d9fa 100755 --- a/ProfileInterface.cpp +++ b/ProfileInterface.cpp @@ -1,6 +1,6 @@ /***************************************************************************** * gta5sync GRAND THEFT AUTO V SYNC -* Copyright (C) 2016 Syping Gaming Team +* 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 @@ -20,6 +20,7 @@ #include "ui_ProfileInterface.h" #include "SnapmaticWidget.h" #include "SavegameWidget.h" +#include "ProfileLoader.h" #include #include #include @@ -50,42 +51,26 @@ void ProfileInterface::setProfileFolder(QString folder, QString profile) void ProfileInterface::setupProfileInterface() { - QDir profileDir; - profileDir.setPath(profileFolder); ui->labProfileContent->setText(contentStr.arg(profileName)); - profileDir.setNameFilters(QStringList("PGTA*")); - QStringList SnapmaticPics = profileDir.entryList(QDir::Files | QDir::NoDot, QDir::NoSort); - foreach(const QString &SnapmaticPic, SnapmaticPics) - { - QString picturePath = profileFolder + "/" + SnapmaticPic; - SnapmaticPicture *picture = new SnapmaticPicture(picturePath); - if (picture->readingPicture()) - { - SnapmaticWidget *picWidget = new SnapmaticWidget(profileDB); - picWidget->setSnapmaticPicture(picture, picturePath); - ui->vlSnapmatic->addWidget(picWidget); - crewDB->addCrew(picture->getCrewNumber()); - } - } - QSpacerItem *snapmaticSpacer = new QSpacerItem(0, 0, QSizePolicy::Minimum, QSizePolicy::Expanding); - ui->vlSnapmatic->addSpacerItem(snapmaticSpacer); + ProfileLoader *profileLoader = new ProfileLoader(profileFolder, crewDB); + QObject::connect(profileLoader, SIGNAL(savegameLoaded(SavegameData*, QString)), this, SLOT(on_savegameLoaded(SavegameData*, QString))); + QObject::connect(profileLoader, SIGNAL(pictureLoaded(SnapmaticPicture*, QString)), this, SLOT(on_pictureLoaded(SnapmaticPicture*, QString))); + profileLoader->start(); +} - profileDir.setNameFilters(QStringList("SGTA*")); - QStringList SavegameFiles = profileDir.entryList(QDir::Files | QDir::NoDot, QDir::NoSort); - foreach(const QString &SavegameFile, SavegameFiles) - { - QString sgdPath = profileFolder + "/" + SavegameFile; - SavegameData *savegame = new SavegameData(sgdPath); - if (savegame->readingSavegame()) - { - SavegameWidget *sgdWidget = new SavegameWidget(); - sgdWidget->setSavegameData(savegame, sgdPath); - ui->vlSavegame->addWidget(sgdWidget); - } - } - QSpacerItem *savegameSpacer = new QSpacerItem(0, 0, QSizePolicy::Minimum, QSizePolicy::Expanding); - ui->vlSavegame->addSpacerItem(savegameSpacer); +void ProfileInterface::on_savegameLoaded(SavegameData *savegame, QString savegamePath) +{ + SavegameWidget *sgdWidget = new SavegameWidget(); + sgdWidget->setSavegameData(savegame, savegamePath); + ui->vlSavegame->addWidget(sgdWidget); +} + +void ProfileInterface::on_pictureLoaded(SnapmaticPicture *picture, QString picturePath) +{ + SnapmaticWidget *picWidget = new SnapmaticWidget(profileDB); + picWidget->setSnapmaticPicture(picture, picturePath); + ui->vlSnapmatic->addWidget(picWidget); } void ProfileInterface::on_cmdCloseProfile_clicked() diff --git a/ProfileInterface.h b/ProfileInterface.h index 2944412..8af4375 100755 --- a/ProfileInterface.h +++ b/ProfileInterface.h @@ -1,6 +1,6 @@ /***************************************************************************** * gta5sync GRAND THEFT AUTO V SYNC -* Copyright (C) 2016 Syping Gaming Team +* 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 @@ -19,7 +19,9 @@ #ifndef PROFILEINTERFACE_H #define PROFILEINTERFACE_H +#include "SnapmaticPicture.h" #include "ProfileDatabase.h" +#include "SavegameData.h" #include "CrewDatabase.h" #include @@ -38,6 +40,8 @@ public: private slots: void on_cmdCloseProfile_clicked(); + void on_pictureLoaded(SnapmaticPicture *picture, QString picturePath); + void on_savegameLoaded(SavegameData *savegame, QString savegamePath); private: ProfileDatabase *profileDB; diff --git a/ProfileInterface.ui b/ProfileInterface.ui index cbdc519..9c6fa19 100755 --- a/ProfileInterface.ui +++ b/ProfileInterface.ui @@ -64,13 +64,16 @@ 0 - - - - + + + 0 + + + + diff --git a/ProfileLoader.cpp b/ProfileLoader.cpp new file mode 100755 index 0000000..e7ad0c4 --- /dev/null +++ b/ProfileLoader.cpp @@ -0,0 +1,66 @@ +/***************************************************************************** +* 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 "ProfileLoader.h" +#include "SnapmaticPicture.h" +#include "SavegameData.h" +#include "CrewDatabase.h" +#include +#include +#include +#include + +ProfileLoader::ProfileLoader(QString profileFolder, CrewDatabase *crewDB, QObject *parent) : QThread(parent), profileFolder(profileFolder), crewDB(crewDB) +{ + +} + +void ProfileLoader::run() +{ + QDir profileDir; + profileDir.setPath(profileFolder); + profileDir.setNameFilters(QStringList("SGTA*")); + QStringList SavegameFiles = profileDir.entryList(QDir::Files | QDir::NoDot, QDir::NoSort); + QStringList BackupFiles = SavegameFiles.filter(".bak", Qt::CaseInsensitive); + foreach(const QString &BackupFile, BackupFiles) + { + SavegameFiles.removeAll(BackupFile); + } + foreach(const QString &SavegameFile, SavegameFiles) + { + QString sgdPath = profileFolder + "/" + SavegameFile; + SavegameData *savegame = new SavegameData(sgdPath); + if (savegame->readingSavegame()) + { + emit savegameLoaded(savegame, sgdPath); + } + } + + profileDir.setNameFilters(QStringList("PGTA*")); + QStringList SnapmaticPics = profileDir.entryList(QDir::Files | QDir::NoDot, QDir::NoSort); + foreach(const QString &SnapmaticPic, SnapmaticPics) + { + QString picturePath = profileFolder + "/" + SnapmaticPic; + SnapmaticPicture *picture = new SnapmaticPicture(picturePath); + if (picture->readingPicture()) + { + emit pictureLoaded(picture, picturePath); + crewDB->addCrew(picture->getCrewNumber()); + } + } +} diff --git a/ProfileLoader.h b/ProfileLoader.h new file mode 100755 index 0000000..d4fc99c --- /dev/null +++ b/ProfileLoader.h @@ -0,0 +1,46 @@ +/***************************************************************************** +* 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 PROFILELOADER_H +#define PROFILELOADER_H + +#include "SnapmaticPicture.h" +#include "SavegameData.h" +#include "CrewDatabase.h" +#include +#include + +class ProfileLoader : public QThread +{ + Q_OBJECT +public: + explicit ProfileLoader(QString profileFolder, CrewDatabase *crewDB, QObject *parent = 0); + +protected: + void run(); + +private: + QString profileFolder; + CrewDatabase *crewDB; + +signals: + void pictureLoaded(SnapmaticPicture *picture, QString picturePath); + void savegameLoaded(SavegameData *savegame, QString savegamePath); +}; + +#endif // PROFILELOADER_H diff --git a/SavegameData.cpp b/SavegameData.cpp index cd6a435..37ebe42 100755 --- a/SavegameData.cpp +++ b/SavegameData.cpp @@ -1,6 +1,6 @@ /***************************************************************************** * gta5sync GRAND THEFT AUTO V SYNC -* Copyright (C) 2016 Syping Gaming Team +* 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 diff --git a/SavegameData.h b/SavegameData.h index 4f9f058..0a3de6b 100755 --- a/SavegameData.h +++ b/SavegameData.h @@ -1,6 +1,6 @@ /***************************************************************************** * gta5sync GRAND THEFT AUTO V SYNC -* Copyright (C) 2016 Syping Gaming Team +* 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 diff --git a/SavegameWidget.cpp b/SavegameWidget.cpp index fa3acd9..97865dd 100755 --- a/SavegameWidget.cpp +++ b/SavegameWidget.cpp @@ -1,6 +1,6 @@ /***************************************************************************** * gta5sync GRAND THEFT AUTO V SYNC -* Copyright (C) 2016 Syping Gaming Team +* 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 diff --git a/SavegameWidget.h b/SavegameWidget.h index 29bd0f0..6083570 100755 --- a/SavegameWidget.h +++ b/SavegameWidget.h @@ -1,6 +1,6 @@ /***************************************************************************** * gta5sync GRAND THEFT AUTO V SYNC -* Copyright (C) 2016 Syping Gaming Team +* 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 diff --git a/SavegameWidget.ui b/SavegameWidget.ui index c3e9b45..95a00d7 100755 --- a/SavegameWidget.ui +++ b/SavegameWidget.ui @@ -14,8 +14,24 @@ Savegame Widget + + + + + + + :/img/savegame.png + + + + + + 0 + 0 + + The Third Way (100%) - 00/00/00 00:00:00 @@ -24,19 +40,6 @@ - - - - Qt::Horizontal - - - - 0 - 0 - - - - @@ -53,6 +56,8 @@ - + + + diff --git a/SnapmaticPicture.cpp b/SnapmaticPicture.cpp index 111ea18..04c6846 100755 --- a/SnapmaticPicture.cpp +++ b/SnapmaticPicture.cpp @@ -1,6 +1,6 @@ /***************************************************************************** * gta5sync GRAND THEFT AUTO V SYNC -* Copyright (C) 2016 Syping Gaming Team +* 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 @@ -21,8 +21,8 @@ #include #include #include -#include #include +#include #include SnapmaticPicture::SnapmaticPicture(QString fileName, QObject *parent) : QObject(parent), picFileName(fileName) @@ -36,7 +36,7 @@ SnapmaticPicture::SnapmaticPicture(QString fileName, QObject *parent) : QObject( jsonStreamLength = 3076; // INIT PIC - cachePicture = QPixmap(0,0); + cachePicture = QImage(0, 0, QImage::Format_RGB32); pictureStr = ""; lastStep = ""; picOk = 0; @@ -95,7 +95,7 @@ bool SnapmaticPicture::readingPicture() return false; } QByteArray jpegRawContent = picFile->read(jpegPicStreamLength); - picOk = cachePicture.loadFromData(jpegRawContent); + picOk = cachePicture.loadFromData(jpegRawContent, "JPEG"); // Read JSON Stream if (!picFile->isReadable()) @@ -145,9 +145,9 @@ bool SnapmaticPicture::readingPictureFromFile(QString fileName) } } -void SnapmaticPicture::setPixmap(QPixmap pixmap) +void SnapmaticPicture::setPicture(QImage picture) { - cachePicture = pixmap; + cachePicture = picture; } QString SnapmaticPicture::getPictureStr() @@ -160,7 +160,7 @@ QString SnapmaticPicture::getLastStep() return lastStep; } -QPixmap SnapmaticPicture::getPixmap() +QImage SnapmaticPicture::getPicture() { return cachePicture; } diff --git a/SnapmaticPicture.h b/SnapmaticPicture.h index 8496583..bcfc86f 100755 --- a/SnapmaticPicture.h +++ b/SnapmaticPicture.h @@ -1,6 +1,6 @@ /***************************************************************************** * gta5sync GRAND THEFT AUTO V SYNC -* Copyright (C) 2016 Syping Gaming Team +* 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 @@ -21,8 +21,8 @@ #include #include -#include #include +#include #include class SnapmaticPicture : public QObject @@ -32,9 +32,9 @@ public: explicit SnapmaticPicture(QString fileName = "", QObject *parent = 0); bool readingPictureFromFile(QString fileName); bool readingPicture(); - void setPixmap(QPixmap pixmap); + void setPicture(QImage picture); bool isPicOk(); - QPixmap getPixmap(); + QImage getPicture(); QString getLastStep(); QString getPictureStr(); @@ -52,7 +52,7 @@ private: QString getSnapmaticJSONString(QByteArray jsonBytes); QString convertDrawStringForLog(QString inputStr); QString convertLogStringForDraw(QString inputStr); - QPixmap cachePicture; + QImage cachePicture; QString picFileName; QString pictureStr; QString lastStep; diff --git a/SnapmaticWidget.cpp b/SnapmaticWidget.cpp index 9f9b706..8128c88 100755 --- a/SnapmaticWidget.cpp +++ b/SnapmaticWidget.cpp @@ -1,6 +1,6 @@ /***************************************************************************** * gta5sync GRAND THEFT AUTO V SYNC -* Copyright (C) 2016 Syping Gaming Team +* 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 @@ -38,7 +38,7 @@ SnapmaticWidget::~SnapmaticWidget() void SnapmaticWidget::setSnapmaticPicture(SnapmaticPicture *picture, QString picturePath) { - QPixmap SnapmaticPixmap = picture->getPixmap(); + QPixmap SnapmaticPixmap = QPixmap::fromImage(picture->getPicture(), Qt::AutoColor); SnapmaticPixmap.scaled(ui->labPicture->width(), ui->labPicture->height(), Qt::KeepAspectRatio, Qt::SmoothTransformation); ui->labPicStr->setText(picture->getPictureStr()); ui->labPicture->setPixmap(SnapmaticPixmap); diff --git a/SnapmaticWidget.h b/SnapmaticWidget.h index 906f6a3..92f19f6 100755 --- a/SnapmaticWidget.h +++ b/SnapmaticWidget.h @@ -1,6 +1,6 @@ /***************************************************************************** * gta5sync GRAND THEFT AUTO V SYNC -* Copyright (C) 2016 Syping Gaming Team +* 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 diff --git a/SnapmaticWidget.ui b/SnapmaticWidget.ui index 1065636..f2fcd92 100755 --- a/SnapmaticWidget.ui +++ b/SnapmaticWidget.ui @@ -41,6 +41,12 @@ + + + 0 + 0 + + PHOTO - 00/00/00 00:00:00 @@ -49,19 +55,6 @@ - - - - Qt::Horizontal - - - - 0 - 0 - - - - diff --git a/SyncFramework.cpp b/SyncFramework.cpp index 2ebc211..2576f7a 100755 --- a/SyncFramework.cpp +++ b/SyncFramework.cpp @@ -1,6 +1,6 @@ /***************************************************************************** * gta5sync GRAND THEFT AUTO V SYNC -* Copyright (C) 2016 Syping Gaming Team +* 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 diff --git a/SyncFramework.h b/SyncFramework.h index 8314440..b654cb8 100755 --- a/SyncFramework.h +++ b/SyncFramework.h @@ -1,6 +1,6 @@ /***************************************************************************** * gta5sync GRAND THEFT AUTO V SYNC -* Copyright (C) 2016 Syping Gaming Team +* 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 diff --git a/UserInterface.cpp b/UserInterface.cpp index 838df56..244b3ac 100755 --- a/UserInterface.cpp +++ b/UserInterface.cpp @@ -1,6 +1,6 @@ /***************************************************************************** * gta5sync GRAND THEFT AUTO V SYNC -* Copyright (C) 2016 Syping Gaming Team +* 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 @@ -40,7 +40,7 @@ UserInterface::UserInterface(ProfileDatabase *profileDB, CrewDatabase *crewDB, Q ui->setupUi(this); // init settings - QSettings SyncSettings("Syping Gaming Team", "gta5sync"); + QSettings SyncSettings("Syping", "gta5sync"); SyncSettings.beginGroup("dir"); bool forceDir = SyncSettings.value("force", false).toBool(); diff --git a/UserInterface.h b/UserInterface.h index c45bfbc..85dfe0e 100755 --- a/UserInterface.h +++ b/UserInterface.h @@ -1,6 +1,6 @@ /***************************************************************************** * gta5sync GRAND THEFT AUTO V SYNC -* Copyright (C) 2016 Syping Gaming Team +* 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 diff --git a/UserInterface.ui b/UserInterface.ui index 77d812a..ba61eda 100755 --- a/UserInterface.ui +++ b/UserInterface.ui @@ -6,14 +6,14 @@ 0 0 - 800 - 600 + 625 + 500 - 800 - 600 + 625 + 500 @@ -48,7 +48,7 @@ 0 0 - 800 + 625 21 diff --git a/app.qrc b/app.qrc index 1f91577..a56a748 100755 --- a/app.qrc +++ b/app.qrc @@ -4,4 +4,7 @@ qt_de.qm qtbase_de.qm + + savegame.png + diff --git a/app.rc b/app.rc index 0950fc4..dde4315 100755 --- a/app.rc +++ b/app.rc @@ -19,11 +19,11 @@ BEGIN BEGIN BLOCK "040904b0" BEGIN - VALUE "CompanyName", "Syping Gaming Team\0" + VALUE "CompanyName", "Syping" VALUE "FileDescription", "Grand Theft Auto V Sync\0" VALUE "FileVersion", "1.0.0.0\0" VALUE "InternalName", "gta5sync\0" - VALUE "LegalCopyright", "Copyright © 2015-2016 Syping Gaming Team\0" + VALUE "LegalCopyright", "Copyright © 2015-2016 Syping\0" VALUE "OriginalFilename", "gta5sync.exe\0" VALUE "ProductName", "Grand Theft Auto V Sync\0" VALUE "ProductVersion", "1.0.0.0\0" diff --git a/gta5sync.pro b/gta5sync.pro index d38c25b..8f9edd3 100755 --- a/gta5sync.pro +++ b/gta5sync.pro @@ -1,6 +1,6 @@ #/***************************************************************************** #* gta5sync GRAND THEFT AUTO V SYNC -#* Copyright (C) 2015-2016 Syping Gaming Team +#* Copyright (C) 2015-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 @@ -37,7 +37,8 @@ SOURCES += main.cpp \ UserInterface.cpp \ ProfileInterface.cpp \ SnapmaticWidget.cpp \ - SavegameWidget.cpp + SavegameWidget.cpp \ + ProfileLoader.cpp HEADERS += \ SnapmaticPicture.h \ @@ -51,7 +52,8 @@ HEADERS += \ UserInterface.h \ ProfileInterface.h \ SnapmaticWidget.h \ - SavegameWidget.h + SavegameWidget.h \ + ProfileLoader.h FORMS += \ PictureDialog.ui \ diff --git a/main.cpp b/main.cpp index 81bb218..a8c6ce7 100755 --- a/main.cpp +++ b/main.cpp @@ -1,6 +1,6 @@ /***************************************************************************** * gta5sync GRAND THEFT AUTO V SYNC -* Copyright (C) 2016 Syping Gaming Team +* 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 @@ -40,7 +40,7 @@ int main(int argc, char *argv[]) a.setApplicationVersion("1.0.0"); // Loading translation settings - QSettings settings("Syping Gaming Team", "gta5sync"); + QSettings settings("Syping", "gta5sync"); settings.beginGroup("Interface"); QString language = settings.value("Language","System").toString(); settings.endGroup(); diff --git a/qjson4/QJsonArray.cpp b/qjson4/QJsonArray.cpp index 8d370af..531941f 100755 --- a/qjson4/QJsonArray.cpp +++ b/qjson4/QJsonArray.cpp @@ -1,6 +1,6 @@ /***************************************************************************** * gta5sync GRAND THEFT AUTO V SYNC -* Copyright (C) 2016 Syping Gaming Team +* 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 diff --git a/qjson4/QJsonArray.h b/qjson4/QJsonArray.h index e961ae3..94aab1b 100755 --- a/qjson4/QJsonArray.h +++ b/qjson4/QJsonArray.h @@ -1,6 +1,6 @@ /***************************************************************************** * gta5sync GRAND THEFT AUTO V SYNC -* Copyright (C) 2016 Syping Gaming Team +* 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 diff --git a/qjson4/QJsonDocument.cpp b/qjson4/QJsonDocument.cpp index bccad4c..59adf32 100755 --- a/qjson4/QJsonDocument.cpp +++ b/qjson4/QJsonDocument.cpp @@ -1,6 +1,6 @@ /***************************************************************************** * gta5sync GRAND THEFT AUTO V SYNC -* Copyright (C) 2016 Syping Gaming Team +* 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 diff --git a/qjson4/QJsonDocument.h b/qjson4/QJsonDocument.h index a133a40..12e8fc7 100755 --- a/qjson4/QJsonDocument.h +++ b/qjson4/QJsonDocument.h @@ -1,6 +1,6 @@ /***************************************************************************** * gta5sync GRAND THEFT AUTO V SYNC -* Copyright (C) 2016 Syping Gaming Team +* 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 diff --git a/qjson4/QJsonObject.cpp b/qjson4/QJsonObject.cpp index f730822..55f8cf1 100755 --- a/qjson4/QJsonObject.cpp +++ b/qjson4/QJsonObject.cpp @@ -1,6 +1,6 @@ /***************************************************************************** * gta5sync GRAND THEFT AUTO V SYNC -* Copyright (C) 2016 Syping Gaming Team +* 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 diff --git a/qjson4/QJsonObject.h b/qjson4/QJsonObject.h index fcfc758..ad657bc 100755 --- a/qjson4/QJsonObject.h +++ b/qjson4/QJsonObject.h @@ -1,6 +1,6 @@ /***************************************************************************** * gta5sync GRAND THEFT AUTO V SYNC -* Copyright (C) 2016 Syping Gaming Team +* 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 diff --git a/qjson4/QJsonParseError.cpp b/qjson4/QJsonParseError.cpp index 1974513..6bcfd98 100755 --- a/qjson4/QJsonParseError.cpp +++ b/qjson4/QJsonParseError.cpp @@ -1,6 +1,6 @@ /***************************************************************************** * gta5sync GRAND THEFT AUTO V SYNC -* Copyright (C) 2016 Syping Gaming Team +* 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 diff --git a/qjson4/QJsonParseError.h b/qjson4/QJsonParseError.h index eeaad33..b87d7aa 100755 --- a/qjson4/QJsonParseError.h +++ b/qjson4/QJsonParseError.h @@ -1,6 +1,6 @@ /***************************************************************************** * gta5sync GRAND THEFT AUTO V SYNC -* Copyright (C) 2016 Syping Gaming Team +* 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 diff --git a/qjson4/QJsonParser.cpp b/qjson4/QJsonParser.cpp index 5a9730f..9b084f7 100755 --- a/qjson4/QJsonParser.cpp +++ b/qjson4/QJsonParser.cpp @@ -1,6 +1,6 @@ /***************************************************************************** * gta5sync GRAND THEFT AUTO V SYNC -* Copyright (C) 2016 Syping Gaming Team +* 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 diff --git a/qjson4/QJsonParser.h b/qjson4/QJsonParser.h index 762e89f..d54a0d9 100755 --- a/qjson4/QJsonParser.h +++ b/qjson4/QJsonParser.h @@ -1,6 +1,6 @@ /***************************************************************************** * gta5sync GRAND THEFT AUTO V SYNC -* Copyright (C) 2016 Syping Gaming Team +* 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 diff --git a/qjson4/QJsonRoot.h b/qjson4/QJsonRoot.h index 8f3799b..77b9751 100755 --- a/qjson4/QJsonRoot.h +++ b/qjson4/QJsonRoot.h @@ -1,6 +1,6 @@ /***************************************************************************** * gta5sync GRAND THEFT AUTO V SYNC -* Copyright (C) 2016 Syping Gaming Team +* 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 diff --git a/qjson4/QJsonValue.cpp b/qjson4/QJsonValue.cpp index 508b4d7..68bf87f 100755 --- a/qjson4/QJsonValue.cpp +++ b/qjson4/QJsonValue.cpp @@ -1,6 +1,6 @@ /***************************************************************************** * gta5sync GRAND THEFT AUTO V SYNC -* Copyright (C) 2016 Syping Gaming Team +* 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 diff --git a/qjson4/QJsonValue.h b/qjson4/QJsonValue.h index 47f502d..bf32898 100755 --- a/qjson4/QJsonValue.h +++ b/qjson4/QJsonValue.h @@ -1,6 +1,6 @@ /***************************************************************************** * gta5sync GRAND THEFT AUTO V SYNC -* Copyright (C) 2016 Syping Gaming Team +* 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 diff --git a/qjson4/QJsonValueRef.cpp b/qjson4/QJsonValueRef.cpp index 9d1191a..7d67ef4 100755 --- a/qjson4/QJsonValueRef.cpp +++ b/qjson4/QJsonValueRef.cpp @@ -1,6 +1,6 @@ /***************************************************************************** * gta5sync GRAND THEFT AUTO V SYNC -* Copyright (C) 2016 Syping Gaming Team +* 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 diff --git a/qjson4/QJsonValueRef.h b/qjson4/QJsonValueRef.h index 8e23048..567c68a 100755 --- a/qjson4/QJsonValueRef.h +++ b/qjson4/QJsonValueRef.h @@ -1,6 +1,6 @@ /***************************************************************************** * gta5sync GRAND THEFT AUTO V SYNC -* Copyright (C) 2016 Syping Gaming Team +* 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 diff --git a/savegame.png b/savegame.png new file mode 100755 index 0000000..a2c61b0 Binary files /dev/null and b/savegame.png differ