ff7tk 0.80.25
Work with Final Fantasy 7 game data
SaveIcon.h
Go to the documentation of this file.
1/****************************************************************************/
2// copyright 2010 Arzel Jérôme <myst6re@gmail.com> //
3// 2012 - 2020 Chris Rizzitello <sithlord48@gmail.com> //
4// //
5// This file is part of FF7tk //
6// //
7// FF7tk is free software: you can redistribute it and/or modify //
8// it under the terms of the GNU General Public License as published by //
9// the Free Software Foundation, either version 3 of the License, or //
10// (at your option) any later version. //
11// //
12// FF7tk is distributed in the hope that it will be useful, //
13// but WITHOUT ANY WARRANTY; without even the implied warranty of //
14// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
15// GNU General Public License for more details. //
16/****************************************************************************/
17#pragma once
18
19#include <QObject>
20#include <QPixmap>
21
22#ifndef ff7tk_export_h
23 #include <ff7tk_export.h>
24#endif
28class FF7TK_EXPORT SaveIcon : public QObject
29{
30 Q_OBJECT
31public:
33 SaveIcon();
34
40 SaveIcon(const QByteArray &data, quint8 nbFrames = 1);
41
46 SaveIcon(const QList<QByteArray> &data);
47
53 void setAll(const QByteArray &data, quint8 nbFrames = 1);
54
58 void setAll(const QList<QByteArray> &data);
59
64 const QByteArray &save();
65
70 QPixmap icon(bool chocobo_world_icon = false);
71signals:
72 void nextIcon(QPixmap);
73private:
74
78 QPixmap chocoWorldIcon();
79
83 void nextFrame();
84 QPixmap psxIcon();
85 QByteArray m_data;
86 quint8 m_nbFrames;
87 quint8 m_curFrame = 0;
88 static QTimer m_timer;
89};
PSX icon data as a QPixmap.
Definition: SaveIcon.h:29
void nextIcon(QPixmap)
Emit Signal: Time to update your QPixmap. connect to object your displaying on to tell it time for a ...