ff7tk  0.02
Toolkit for making FF7 Tools
SlotSelect Class Reference

Display a preview of the contents of a PSX memory card file or FF7 PC save. More...

#include <SlotSelect.h>

Inheritance diagram for SlotSelect:

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
 
SlotPreviewpreview [15]
 
QPushButton * btnNew
 
FF7Saveff7
 
FF7Char Chars
 
qreal scale
 

Detailed Description

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.

Constructor & Destructor Documentation

SlotSelect::SlotSelect ( qreal  Scale = 1,
FF7Save data = 0,
bool  showLoad = false,
QWidget *  parent = 0 
)
explicit

create a new SlotSelect Dialog.

Parameters
scaleScale Fixed contents by this number (hidpi screens)
dataPointer to a FF7Save object
showLoadshow the load new file button
parentDialogs Parent

Definition at line 18 of file SlotSelect.cpp.

References btnNew, ff7, frm_preview, list_preview, newFile(), preview, preview_layout, scale, setSlotPreview(), and showLoad().

Member Function Documentation

void SlotSelect::button_clicked ( int  s)
privateslot

Definition at line 52 of file SlotSelect.cpp.

Referenced by setSlotPreview().

void SlotSelect::copy_slot ( int  s)
privateslot

Definition at line 75 of file SlotSelect.cpp.

References FF7Save::copySlot(), ff7, and FF7Save::isFF7().

Referenced by setSlotPreview().

void SlotSelect::newFile ( void  )
privateslot

Definition at line 169 of file SlotSelect.cpp.

Referenced by SlotSelect().

void SlotSelect::ReIntSlot ( int  s)
private

Definition at line 102 of file SlotSelect.cpp.

References preview, preview_layout, scale, and setSlotPreview().

Referenced by paste_slot(), and remove_slot().

void SlotSelect::showLoad ( bool  shown)
private

Definition at line 174 of file SlotSelect.cpp.

References btnNew.

Referenced by SlotSelect().

Member Data Documentation

QPushButton* SlotSelect::btnNew
private

Definition at line 64 of file SlotSelect.h.

Referenced by showLoad(), and SlotSelect().

FF7Char SlotSelect::Chars
private

Definition at line 67 of file SlotSelect.h.

Referenced by setSlotPreview().

FF7Save* SlotSelect::ff7
private

Definition at line 66 of file SlotSelect.h.

Referenced by copy_slot(), paste_slot(), remove_slot(), setSlotPreview(), and SlotSelect().

QFrame* SlotSelect::frm_preview
private

Definition at line 60 of file SlotSelect.h.

Referenced by SlotSelect().

QScrollArea* SlotSelect::list_preview
private

Definition at line 62 of file SlotSelect.h.

Referenced by SlotSelect().

SlotPreview* SlotSelect::preview[15]
private

Definition at line 63 of file SlotSelect.h.

Referenced by ReIntSlot(), setSlotPreview(), and SlotSelect().

QVBoxLayout* SlotSelect::preview_layout
private

Definition at line 61 of file SlotSelect.h.

Referenced by ReIntSlot(), and SlotSelect().

qreal SlotSelect::scale
private

Definition at line 68 of file SlotSelect.h.

Referenced by ReIntSlot(), and SlotSelect().


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