ff7tk  1.2.0.13
Work with Final Fantasy 7 game data
SlotSelect.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: 2012 - 2023 Chris Rizzitello <sithlord48@gmail.com>
2 // SPDX-License-Identifier: LGPL-3.0-or-later
3 
4 #pragma once
5 
6 #include <QDialog>
7 #include <ff7tkwidgets_export.h>
8 
9 class QVBoxLayout;
10 class QWidget;
11 
12 class SlotPreview;
13 class FF7Save;
14 
22 class FF7TKWIDGETS_EXPORT SlotSelect : public QDialog
23 {
24  Q_OBJECT
25 public:
26  enum RESULT {
27  CANCEL = -2,
28  LOAD_NEW = -1
29  };
35  explicit SlotSelect(FF7Save *data = nullptr, bool loadVisiable = false, QWidget *parent = nullptr);
36 private slots:
37  void button_clicked(int s);
38  void remove_slot(int s);
39  void copy_slot(int s);
40  void paste_slot(int s);
41  void newFile(void);
42  void reject() override;
43 private:
44  void setSlotPreview(int s);
45  void showLoad(bool shown);
46  void ReIntSlot(int s);
47  QVBoxLayout *preview_layout;
48  SlotPreview *preview[15];
49  QPushButton *btnNew;
50  //Private Data
51  FF7Save *ff7;
52 };
FF7Save
edit saves from Final Fantasy 7
Definition: FF7Save.h:52
SlotSelect::RESULT
RESULT
Definition: SlotSelect.h:26
SlotPreview
Preview a Single Slot on a Psx memory card or FF7 Save file.
Definition: SlotPreview.h:19
SlotSelect
Display a preview of the contents of a PSX memory card file or FF7 PC save.
Definition: SlotSelect.h:22