| 
    ff7tk
    1.3.0.3
    
   Work with Final Fantasy 7 game data 
   | 
 
Preview a Single Slot on a Psx memory card or FF7 Save file. More...
#include <SlotPreview.h>


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 *) | 
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
| enum SlotPreview::MODE | 
| SlotPreview::SlotPreview | ( | int | index = 0,  | 
        
| QWidget * | parent = nullptr  | 
        ||
| ) | 
      
  | 
  signal | 
      
  | 
  signal | 
      
  | 
  signal | 
      
  | 
  signal | 
Signal: User Clicked on preview, returns index of click.
      
  | 
  signal | 
Signal: User Clicked on copy, returns index of click.
| int SlotPreview::index | ( | void | ) | 
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  signal | 
Signal: User Clicked on paste, returns index of click.
      
  | 
  signal | 
Signal: User Clicked on remove, returns index of click.
| void SlotPreview::setBackground | ( | const QImage & | image | ) | 
| void SlotPreview::setGil | ( | int | gil | ) | 
| void SlotPreview::setLevel | ( | int | lvl | ) | 
| void SlotPreview::setLocation | ( | QString | loc | ) | 
| void SlotPreview::setMode | ( | SlotPreview::MODE | mode | ) | 
| void SlotPreview::setName | ( | QString | name | ) | 
| void SlotPreview::setParty | ( | QPixmap | p1, | 
| QPixmap | p2, | ||
| QPixmap | p3 | ||
| ) | 
| void SlotPreview::setPsxIcon | ( | const QByteArray & | icon_data, | 
| quint8 | frames = 1  | 
        ||
| ) | 
| void SlotPreview::setPsxIcon | ( | const QList< QByteArray > & | icon_data | ) | 
| void SlotPreview::setPSXText | ( | const QString & | text | ) | 
| void SlotPreview::setTime | ( | int | hour, | 
| int | min | ||
| ) |