latest changes from gta5sync

This commit is contained in:
Syping 2017-03-30 03:44:48 +02:00
parent c3643aece0
commit 6b4f856e4d
21 changed files with 569 additions and 451 deletions

View file

@ -20,6 +20,7 @@
#define SNAPMATICEDITOR_H
#include <QDialog>
#include "CrewDatabase.h"
#include "SnapmaticPicture.h"
namespace Ui {
@ -31,16 +32,14 @@ class SnapmaticEditor : public QDialog
Q_OBJECT
public:
explicit SnapmaticEditor(QWidget *parent = 0);
explicit SnapmaticEditor(CrewDatabase *crewDB, QWidget *parent = 0);
void setSnapmaticPicture(SnapmaticPicture *picture);
void setSnapmaticTitle(const QString &title);
void setSnapmaticCrew(const QString &crew = "");
QString returnCrewName(int crewID);
~SnapmaticEditor();
private slots:
void on_cbSelfie_toggled(bool checked);
void on_cbMugshot_toggled(bool checked);
void on_cbDirector_toggled(bool checked);
void on_cbEditor_toggled(bool checked);
void on_rbSelfie_toggled(bool checked);
void on_rbMugshot_toggled(bool checked);
void on_rbEditor_toggled(bool checked);
@ -49,12 +48,21 @@ private slots:
void on_cmdApply_clicked();
void on_cbQualify_toggled(bool checked);
void on_labTitle_linkActivated(const QString &link);
void on_labCrew_linkActivated(const QString &link);
private:
CrewDatabase *crewDB;
Ui::SnapmaticEditor *ui;
SnapmaticProperties localSpJson;
SnapmaticPicture *smpic;
QString snapmaticTitle;
int crewID;
bool isSelfie;
bool isMugshot;
bool isEditor;
void selfie_toggled(bool checked);
void mugshot_toggled(bool checked);
void editor_toggled(bool checked);
void qualifyAvatar();
};