|
ff7tk
0.02
Toolkit for making FF7 Tools
|
PSX icon data as a QPixmap. More...
#include <SaveIcon.h>
Signals | |
| void | nextIcon (QPixmap) |
| Emit Signal: Time to update your QPixmap. connect to object your displaying on to tell it time for a new icon. More... | |
Public Member Functions | |
| SaveIcon () | |
| create a new Save icon More... | |
| SaveIcon (QByteArray data, quint8 nbFrames=1) | |
| create a new Save icon with data More... | |
| SaveIcon (QList< QByteArray > data) | |
| create a new Save icon with data More... | |
| void | setAll (QByteArray data, quint8 nbFrames=1) |
| fill SaveIcon with data More... | |
| void | setAll (QList< QByteArray > data) |
| fill SaveIcon with data More... | |
| QByteArray | sauver () |
| incase you wish to write the icon to a file More... | |
| QPixmap | icon (bool chocobo_world_icon=false) |
| pixmap of your icon More... | |
Private Slots | |
| void | nextFrame () |
| get get next icon if more then one frame More... | |
Private Attributes | |
| QByteArray | data |
| hold our icon data More... | |
| quint8 | nbFrames |
| number of frames More... | |
| quint8 | curFrame |
| current Frame More... | |
Static Private Attributes | |
| static QTimer | timer |
| frame change timer. More... | |
PSX icon data as a QPixmap.
Definition at line 26 of file SaveIcon.h.
| SaveIcon::SaveIcon | ( | ) |
create a new Save icon
Definition at line 23 of file SaveIcon.cpp.
| SaveIcon::SaveIcon | ( | QByteArray | data, |
| quint8 | nbFrames = 1 |
||
| ) |
create a new Save icon with data
| data | psx saveicon data |
| nbFrames | number of frames icon has (1-3) |
Definition at line 28 of file SaveIcon.cpp.
References setAll().
| SaveIcon::SaveIcon | ( | QList< QByteArray > | data | ) |
create a new Save icon with data
| data | psx saveicon one frame pre list item |
Definition at line 33 of file SaveIcon.cpp.
References setAll().
| QPixmap SaveIcon::icon | ( | bool | chocobo_world_icon = false | ) |
pixmap of your icon
| chocobo_world_icon | is this an icon for chocoboworld? |
Definition at line 68 of file SaveIcon.cpp.
References curFrame, and data.
Referenced by nextFrame(), and SlotPreview::setPsxIcon().
|
privateslot |
get get next icon if more then one frame
Definition at line 147 of file SaveIcon.cpp.
References curFrame, icon(), nbFrames, and nextIcon().
Referenced by setAll().
|
signal |
Emit Signal: Time to update your QPixmap. connect to object your displaying on to tell it time for a new icon.
Referenced by nextFrame().
| QByteArray SaveIcon::sauver | ( | ) |
incase you wish to write the icon to a file
Definition at line 63 of file SaveIcon.cpp.
References data.
| void SaveIcon::setAll | ( | QByteArray | data, |
| quint8 | nbFrames = 1 |
||
| ) |
fill SaveIcon with data
| data | psx saveicon data |
| nbFrames | number of frames in icon (1-3) |
Definition at line 38 of file SaveIcon.cpp.
References data, nbFrames, nextFrame(), and timer.
Referenced by SaveIcon(), and SlotPreview::setPsxIcon().
| void SaveIcon::setAll | ( | QList< QByteArray > | data | ) |
fill SaveIcon with data
| data | psx saveicon one frame pre list item. |
Definition at line 49 of file SaveIcon.cpp.
References nbFrames, nextFrame(), and timer.
|
private |
|
private |
hold our icon data
Definition at line 74 of file SaveIcon.h.
|
private |
number of frames
<
Definition at line 75 of file SaveIcon.h.
Referenced by nextFrame(), and setAll().
|
staticprivate |