ff7tk
0.02
Toolkit for making FF7 Tools
|
Display a preview of the contents of a PSX memory card file or FF7 PC save. More...
#include <SlotSelect.h>
Public Member Functions | |
SlotSelect (qreal Scale=1, FF7Save *data=0, bool showLoad=false, QWidget *parent=0) | |
create a new SlotSelect Dialog. More... | |
Private Slots | |
void | button_clicked (int s) |
void | remove_slot (int s) |
void | copy_slot (int s) |
void | paste_slot (int s) |
void | newFile (void) |
Private Member Functions | |
void | setSlotPreview (int s) |
void | showLoad (bool shown) |
void | ReIntSlot (int s) |
Private Attributes | |
QFrame * | frm_preview |
QVBoxLayout * | preview_layout |
QScrollArea * | list_preview |
SlotPreview * | preview [15] |
QPushButton * | btnNew |
FF7Save * | ff7 |
FF7Char | Chars |
qreal | scale |
Display a preview of the contents of a PSX memory card file or FF7 PC save.
When the dialog is run it will return the slot selected (0-14) or -1 if the load button was pushed. Copy Paste and Remove are are internal so no need to worry about doing those. Copy will currently only copies FF7 Saves.
Definition at line 38 of file SlotSelect.h.
|
explicit |
create a new SlotSelect Dialog.
scale | Scale Fixed contents by this number (hidpi screens) |
data | Pointer to a FF7Save object |
showLoad | show the load new file button |
parent | Dialogs Parent |
Definition at line 18 of file SlotSelect.cpp.
References btnNew, ff7, frm_preview, list_preview, newFile(), preview, preview_layout, scale, setSlotPreview(), and showLoad().
|
privateslot |
Definition at line 52 of file SlotSelect.cpp.
Referenced by setSlotPreview().
|
privateslot |
Definition at line 75 of file SlotSelect.cpp.
References FF7Save::copySlot(), ff7, and FF7Save::isFF7().
Referenced by setSlotPreview().
|
privateslot |
Definition at line 169 of file SlotSelect.cpp.
Referenced by SlotSelect().
|
privateslot |
Definition at line 82 of file SlotSelect.cpp.
References FF7Save::BLOCK_ENDLINK, FF7Save::BLOCK_MIDLINK, FF7Save::clearSlot(), ff7, FF7Save::isFF7(), FF7Save::pasteSlot(), FF7Save::psx_block_next(), FF7Save::psx_block_size(), FF7Save::psx_block_type(), ReIntSlot(), and FF7Save::type().
Referenced by setSlotPreview().
|
private |
Definition at line 102 of file SlotSelect.cpp.
References preview, preview_layout, scale, and setSlotPreview().
Referenced by paste_slot(), and remove_slot().
|
privateslot |
Definition at line 54 of file SlotSelect.cpp.
References FF7Save::BLOCK_DELETED_MAIN, FF7Save::BLOCK_MAIN, FF7Save::clearSlot(), ff7, FF7Save::psx_block_next(), FF7Save::psx_block_size(), FF7Save::psx_block_type(), ReIntSlot(), and FF7Save::type().
Referenced by setSlotPreview().
|
private |
Definition at line 110 of file SlotSelect.cpp.
References FF7Save::BLOCK_DELETED_ENDLINK, FF7Save::BLOCK_DELETED_MAIN, FF7Save::BLOCK_DELETED_MIDLINK, FF7Save::BLOCK_EMPTY, FF7Save::BLOCK_ENDLINK, FF7Save::BLOCK_MIDLINK, button_clicked(), Chars, copy_slot(), FF7Save::descGil(), FF7Save::descLevel(), FF7Save::descLocation(), FF7Save::descName(), FF7Save::descParty(), FF7Save::descTime(), FF7Save::dialogColorLL(), FF7Save::dialogColorLR(), FF7Save::dialogColorUL(), FF7Save::dialogColorUR(), ff7, FF7Save::isFF7(), SlotPreview::MODE_EMPTY, SlotPreview::MODE_FF7SAVE, SlotPreview::MODE_PSXGAME, paste_slot(), FF7Char::pixmap(), preview, FF7Save::psx_block_next(), FF7Save::psx_block_size(), FF7Save::psx_block_type(), FF7Save::psxDesc(), FF7Save::region(), remove_slot(), SlotPreview::setGil(), SlotPreview::setLevel(), SlotPreview::setLocation(), SlotPreview::setMode(), SlotPreview::setName(), SlotPreview::setParty(), SlotPreview::setPsxIcon(), SlotPreview::setTime(), FF7Save::slotIcon(), and FF7Save::type().
Referenced by ReIntSlot(), and SlotSelect().
|
private |
|
private |
Definition at line 64 of file SlotSelect.h.
Referenced by showLoad(), and SlotSelect().
|
private |
Definition at line 67 of file SlotSelect.h.
Referenced by setSlotPreview().
|
private |
Definition at line 66 of file SlotSelect.h.
Referenced by copy_slot(), paste_slot(), remove_slot(), setSlotPreview(), and SlotSelect().
|
private |
Definition at line 60 of file SlotSelect.h.
Referenced by SlotSelect().
|
private |
Definition at line 62 of file SlotSelect.h.
Referenced by SlotSelect().
|
private |
Definition at line 63 of file SlotSelect.h.
Referenced by ReIntSlot(), setSlotPreview(), and SlotSelect().
|
private |
Definition at line 61 of file SlotSelect.h.
Referenced by ReIntSlot(), and SlotSelect().
|
private |
Definition at line 68 of file SlotSelect.h.
Referenced by ReIntSlot(), and SlotSelect().