ff7tk  0.02
Toolkit for making FF7 Tools
SaveIcon Class Reference

PSX icon data as a QPixmap. More...

#include <SaveIcon.h>

Inheritance diagram for SaveIcon:

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...
 

Detailed Description

PSX icon data as a QPixmap.

Definition at line 26 of file SaveIcon.h.

Constructor & Destructor Documentation

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

Parameters
datapsx saveicon data
nbFramesnumber 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

Parameters
datapsx saveicon one frame pre list item

Definition at line 33 of file SaveIcon.cpp.

References setAll().

Member Function Documentation

QPixmap SaveIcon::icon ( bool  chocobo_world_icon = false)

pixmap of your icon

Parameters
chocobo_world_iconis this an icon for chocoboworld?
Returns
psx SaveIcon as A QPixmap

Definition at line 68 of file SaveIcon.cpp.

References curFrame, and data.

Referenced by nextFrame(), and SlotPreview::setPsxIcon().

void SaveIcon::nextFrame ( )
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().

void SaveIcon::nextIcon ( QPixmap  )
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

Returns
Icon As QByteArray

Definition at line 63 of file SaveIcon.cpp.

References data.

void SaveIcon::setAll ( QByteArray  data,
quint8  nbFrames = 1 
)

fill SaveIcon with data

Parameters
datapsx saveicon data
nbFramesnumber 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

Parameters
datapsx saveicon one frame pre list item.

Definition at line 49 of file SaveIcon.cpp.

References nbFrames, nextFrame(), and timer.

Member Data Documentation

quint8 SaveIcon::curFrame
private

current Frame

Definition at line 75 of file SaveIcon.h.

Referenced by icon(), and nextFrame().

QByteArray SaveIcon::data
private

hold our icon data

Definition at line 74 of file SaveIcon.h.

Referenced by icon(), sauver(), and setAll().

quint8 SaveIcon::nbFrames
private

number of frames

<

Definition at line 75 of file SaveIcon.h.

Referenced by nextFrame(), and setAll().

QTimer SaveIcon::timer
staticprivate

frame change timer.

Definition at line 76 of file SaveIcon.h.

Referenced by setAll().


The documentation for this class was generated from the following files: