ff7tk
0.02
Toolkit for making FF7 Tools
|
Preview a Single Slot on a Psx memory card or FF7 Save file. More...
#include <SlotPreview.h>
Public Types | |
enum | MODE { MODE_EMPTY, MODE_PSXGAME, MODE_FF7SAVE } |
Signals | |
void | clicked (int) |
Signal: User Clicked on preview . More... | |
void | btn_remove_clicked (int) |
Signal: User Clicked on remove . More... | |
void | btn_copy_clicked (int) |
Signal: User Clicked on copy . More... | |
void | btn_paste_clicked (int) |
Signal: User Clicked on paste . More... | |
Public Member Functions | |
SlotPreview (int index=0, qreal Scale=1, QWidget *parent=0) | |
int | index (void) |
void | setParty (QPixmap p1, QPixmap p2, QPixmap p3) |
void | setParty (QString p1_style, QString p2_style, QString p3_style) |
void | setName (QString) |
void | setLevel (int) |
void | setLocation (QString) |
void | setGil (int) |
void | setTime (int hour, int min) |
void | setPsxIcon (QByteArray icon_data, quint8 frames=1) |
void | setPsxIcon (QList< QByteArray > icon_data) |
void | setMode (int mode) |
Protected Member Functions | |
void | mousePressEvent (QMouseEvent *ev) |
Private Slots | |
void | setIndex (int index) |
void | set_Party1 (QPixmap) |
void | set_Party2 (QPixmap) |
void | set_Party3 (QPixmap) |
void | set_Party1 (QString style) |
void | set_Party2 (QString style) |
void | set_Party3 (QString style) |
void | removed (void) |
void | copy (void) |
void | paste (void) |
void | set_ff7_save (void) |
void | set_empty (void) |
void | set_psx_game (void) |
Private Member Functions | |
void | init_display (void) |
Private Attributes | |
QLabel * | party1 |
QLabel * | party2 |
QLabel * | party3 |
QLabel * | name |
QLabel * | lbl_Slot |
QLabel * | lbl_time |
QLabel * | lbl_level |
QLabel * | location |
QLabel * | lbl_gil |
QPushButton * | btn_copy |
QPushButton * | btn_paste |
QPushButton * | btn_remove |
SaveIcon * | icon |
QHBoxLayout * | btnLayout |
QVBoxLayout * | Final |
QVBoxLayout * | top_layout |
bool | not_pc |
qreal | scale |
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
Definition at line 34 of file SlotPreview.h.
enum SlotPreview::MODE |
Enumerator | |
---|---|
MODE_EMPTY |
Empty Slot. |
MODE_PSXGAME |
PSX Game or linked block. |
MODE_FF7SAVE |
FF7 Save in slot. |
Definition at line 39 of file SlotPreview.h.
SlotPreview::SlotPreview | ( | int | index = 0 , |
qreal | Scale = 1 , |
||
QWidget * | parent = 0 |
||
) |
Definition at line 17 of file SlotPreview.cpp.
References Final, scale, and setIndex().
|
signal |
|
signal |
|
signal |
|
signal |
Signal: User Clicked on preview .
Referenced by init_display(), and mousePressEvent().
|
privateslot |
Definition at line 224 of file SlotPreview.cpp.
References btn_copy_clicked(), and index().
Referenced by init_display().
int SlotPreview::index | ( | void | ) |
Definition at line 211 of file SlotPreview.cpp.
Referenced by copy(), init_display(), mousePressEvent(), paste(), and removed().
|
private |
Definition at line 29 of file SlotPreview.cpp.
References btn_copy, btn_paste, btn_remove, btnLayout, clicked(), copy(), index(), lbl_Slot, paste(), removed(), and scale.
Referenced by set_empty(), set_ff7_save(), and set_psx_game().
|
protected |
Definition at line 228 of file SlotPreview.cpp.
|
privateslot |
Definition at line 225 of file SlotPreview.cpp.
References btn_paste_clicked(), and index().
Referenced by init_display().
|
privateslot |
Definition at line 223 of file SlotPreview.cpp.
References btn_remove_clicked(), and index().
Referenced by init_display().
|
privateslot |
Definition at line 76 of file SlotPreview.cpp.
References btn_paste, btnLayout, Final, init_display(), lbl_Slot, location, and top_layout.
Referenced by setMode().
|
privateslot |
Definition at line 119 of file SlotPreview.cpp.
References btn_copy, btn_paste, btn_remove, btnLayout, Final, init_display(), lbl_gil, lbl_level, lbl_Slot, lbl_time, location, name, party1, party2, party3, scale, and top_layout.
Referenced by setMode().
|
privateslot |
Definition at line 212 of file SlotPreview.cpp.
References party1.
Referenced by set_psx_game(), and setParty().
|
privateslot |
Definition at line 213 of file SlotPreview.cpp.
References party1.
|
privateslot |
|
privateslot |
Definition at line 215 of file SlotPreview.cpp.
References party2.
|
privateslot |
|
privateslot |
Definition at line 217 of file SlotPreview.cpp.
References party3.
|
privateslot |
Definition at line 94 of file SlotPreview.cpp.
References btn_paste, btn_remove, btnLayout, Final, icon, init_display(), lbl_Slot, location, party1, scale, set_Party1(), and top_layout.
Referenced by setMode().
void SlotPreview::setGil | ( | int | gil | ) |
Definition at line 221 of file SlotPreview.cpp.
References lbl_gil.
Referenced by SlotSelect::setSlotPreview().
|
privateslot |
Definition at line 210 of file SlotPreview.cpp.
Referenced by SlotPreview().
void SlotPreview::setLevel | ( | int | lvl | ) |
Definition at line 219 of file SlotPreview.cpp.
References lbl_level.
Referenced by SlotSelect::setSlotPreview().
void SlotPreview::setLocation | ( | QString | loc | ) |
Definition at line 220 of file SlotPreview.cpp.
References location.
Referenced by SlotSelect::setSlotPreview().
void SlotPreview::setMode | ( | int | mode | ) |
Definition at line 67 of file SlotPreview.cpp.
References set_empty(), set_ff7_save(), and set_psx_game().
Referenced by SlotSelect::setSlotPreview().
void SlotPreview::setName | ( | QString | Name | ) |
Definition at line 218 of file SlotPreview.cpp.
References name.
Referenced by SlotSelect::setSlotPreview().
void SlotPreview::setParty | ( | QPixmap | p1, |
QPixmap | p2, | ||
QPixmap | p3 | ||
) |
Definition at line 196 of file SlotPreview.cpp.
References party1, party2, party3, set_Party1(), set_Party2(), and set_Party3().
Referenced by SlotSelect::setSlotPreview().
void SlotPreview::setParty | ( | QString | p1_style, |
QString | p2_style, | ||
QString | p3_style | ||
) |
Definition at line 203 of file SlotPreview.cpp.
References set_Party1(), set_Party2(), and set_Party3().
void SlotPreview::setPsxIcon | ( | QByteArray | icon_data, |
quint8 | frames = 1 |
||
) |
Definition at line 226 of file SlotPreview.cpp.
References SaveIcon::icon(), icon, party1, and SaveIcon::setAll().
Referenced by SlotSelect::setSlotPreview().
void SlotPreview::setPsxIcon | ( | QList< QByteArray > | icon_data | ) |
Definition at line 227 of file SlotPreview.cpp.
References SaveIcon::icon(), icon, party1, and SaveIcon::setAll().
void SlotPreview::setTime | ( | int | hour, |
int | min | ||
) |
Definition at line 222 of file SlotPreview.cpp.
References lbl_time.
Referenced by SlotSelect::setSlotPreview().
|
private |
Definition at line 80 of file SlotPreview.h.
Referenced by init_display(), and set_ff7_save().
|
private |
Definition at line 81 of file SlotPreview.h.
Referenced by init_display(), set_empty(), set_ff7_save(), and set_psx_game().
|
private |
Definition at line 82 of file SlotPreview.h.
Referenced by init_display(), set_ff7_save(), and set_psx_game().
|
private |
Definition at line 84 of file SlotPreview.h.
Referenced by init_display(), set_empty(), set_ff7_save(), and set_psx_game().
|
private |
Definition at line 85 of file SlotPreview.h.
Referenced by set_empty(), set_ff7_save(), set_psx_game(), and SlotPreview().
|
private |
Definition at line 83 of file SlotPreview.h.
Referenced by set_psx_game(), and setPsxIcon().
|
private |
Definition at line 79 of file SlotPreview.h.
Referenced by set_ff7_save(), and setGil().
|
private |
Definition at line 77 of file SlotPreview.h.
Referenced by set_ff7_save(), and setLevel().
|
private |
Definition at line 75 of file SlotPreview.h.
Referenced by init_display(), set_empty(), set_ff7_save(), and set_psx_game().
|
private |
Definition at line 76 of file SlotPreview.h.
Referenced by set_ff7_save(), and setTime().
|
private |
Definition at line 78 of file SlotPreview.h.
Referenced by set_empty(), set_ff7_save(), set_psx_game(), and setLocation().
|
private |
Definition at line 74 of file SlotPreview.h.
Referenced by set_ff7_save(), and setName().
|
private |
Definition at line 87 of file SlotPreview.h.
|
private |
Definition at line 71 of file SlotPreview.h.
Referenced by set_ff7_save(), set_Party1(), set_psx_game(), setParty(), and setPsxIcon().
|
private |
Definition at line 72 of file SlotPreview.h.
Referenced by set_ff7_save(), set_Party2(), and setParty().
|
private |
Definition at line 73 of file SlotPreview.h.
Referenced by set_ff7_save(), set_Party3(), and setParty().
|
private |
Definition at line 88 of file SlotPreview.h.
Referenced by init_display(), set_ff7_save(), set_psx_game(), and SlotPreview().
|
private |
Definition at line 86 of file SlotPreview.h.
Referenced by set_empty(), set_ff7_save(), and set_psx_game().