ff7tk  1.2.0.13
Work with Final Fantasy 7 game data
Public Types | Signals | Public Member Functions | Protected Member Functions | List of all members
SlotPreview Class Reference

Preview a Single Slot on a Psx memory card or FF7 Save file. More...

#include <SlotPreview.h>

Inheritance diagram for SlotPreview:
Inheritance graph
[legend]
Collaboration diagram for SlotPreview:
Collaboration graph
[legend]

Public Types

enum  MODE { EMPTY, PSXGAME, FF7SAVE }
 

Signals

void clicked (int)
 Signal: User Clicked on preview, returns index of click. More...
 
void remove (int)
 Signal: User Clicked on remove, returns index of click. More...
 
void btn_remove_clicked (int)
 
void copy (int)
 Signal: User Clicked on copy, returns index of click. More...
 
void btn_copy_clicked (int)
 
void paste (int)
 Signal: User Clicked on paste, returns index of click. More...
 
void btn_paste_clicked (int)
 

Public Member Functions

 SlotPreview (int index=0, QWidget *parent=nullptr)
 
int index (void)
 
void setParty (QPixmap p1, QPixmap p2, QPixmap p3)
 
void setName (QString)
 
void setLevel (int)
 
void setLocation (QString)
 
void setGil (int)
 
void setTime (int hour, int min)
 
void setPsxIcon (const QByteArray &icon_data, quint8 frames=1)
 
void setPsxIcon (const QList< QByteArray > &icon_data)
 
void setMode (SlotPreview::MODE mode)
 
void setBackground (const QImage &image)
 
void setPSXText (const QString &text)
 

Protected Member Functions

void mousePressEvent (QMouseEvent *ev)
 
void paintEvent (QPaintEvent *)
 

Detailed Description

Preview a Single Slot on a Psx memory card or FF7 Save file.

Currently will display the "description" of FF7 Save or a preview of what psx save is in that slot. More games could be added by extending the modes

Member Enumeration Documentation

◆ MODE

Enumerator
EMPTY 

Empty Slot.

PSXGAME 

PSX Game or linked block.

FF7SAVE 

FF7 Save in slot.

Constructor & Destructor Documentation

◆ SlotPreview()

SlotPreview::SlotPreview ( int  index = 0,
QWidget *  parent = nullptr 
)

Member Function Documentation

◆ btn_copy_clicked

void SlotPreview::btn_copy_clicked ( int  )
signal

◆ btn_paste_clicked

void SlotPreview::btn_paste_clicked ( int  )
signal

◆ btn_remove_clicked

void SlotPreview::btn_remove_clicked ( int  )
signal

◆ clicked

void SlotPreview::clicked ( int  )
signal

Signal: User Clicked on preview, returns index of click.

◆ copy

void SlotPreview::copy ( int  )
signal

Signal: User Clicked on copy, returns index of click.

◆ index()

int SlotPreview::index ( void  )

◆ mousePressEvent()

void SlotPreview::mousePressEvent ( QMouseEvent *  ev)
protected

◆ paintEvent()

void SlotPreview::paintEvent ( QPaintEvent *  e)
protected

◆ paste

void SlotPreview::paste ( int  )
signal

Signal: User Clicked on paste, returns index of click.

◆ remove

void SlotPreview::remove ( int  )
signal

Signal: User Clicked on remove, returns index of click.

◆ setBackground()

void SlotPreview::setBackground ( const QImage &  image)

◆ setGil()

void SlotPreview::setGil ( int  gil)

◆ setLevel()

void SlotPreview::setLevel ( int  lvl)

◆ setLocation()

void SlotPreview::setLocation ( QString  loc)

◆ setMode()

void SlotPreview::setMode ( SlotPreview::MODE  mode)

◆ setName()

void SlotPreview::setName ( QString  name)

◆ setParty()

void SlotPreview::setParty ( QPixmap  p1,
QPixmap  p2,
QPixmap  p3 
)

◆ setPsxIcon() [1/2]

void SlotPreview::setPsxIcon ( const QByteArray &  icon_data,
quint8  frames = 1 
)

◆ setPsxIcon() [2/2]

void SlotPreview::setPsxIcon ( const QList< QByteArray > &  icon_data)

◆ setPSXText()

void SlotPreview::setPSXText ( const QString &  text)

◆ setTime()

void SlotPreview::setTime ( int  hour,
int  min 
)

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