ff7tk 0.80.25
Work with Final Fantasy 7 game data
AchievementEditor.h
Go to the documentation of this file.
1/****************************************************************************/
2// copyright 2013 - 2020 Chris Rizzitello <sithlord48@gmail.com> //
3// //
4// This file is part of FF7tk //
5// //
6// FF7tk is free software: you can redistribute it and/or modify //
7// it under the terms of the GNU General Public License as published by //
8// the Free Software Foundation, either version 3 of the License, or //
9// (at your option) any later version. //
10// //
11// FF7tk is distributed in the hope that it will be useful, //
12// but WITHOUT ANY WARRANTY; without even the implied warranty of //
13// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
14// GNU General Public License for more details. //
15/****************************************************************************/
16#pragma once
17
18#include <QWidget>
19#include <FF7Achievements.h>
20
21#ifndef ff7tkwidgets_export_h
22 #include <ff7tkwidgets_export.h>
23#endif
24
25class QListWidget;
26
34class FF7TKWIDGETS_EXPORT AchievementEditor : public QWidget
35{
36 Q_OBJECT
37public:
38 explicit AchievementEditor(QWidget *parent = nullptr);
39 ~AchievementEditor() = default;
40public slots:
45 bool openFile(const QString &fileName);
46
51 bool saveFile(const QString &fileName);
52private slots:
56 void itemToggled(const QModelIndex &index);
57private:
58 void initDisplay();
59 FF7Achievements achievements;
60 QListWidget *achievementList = nullptr;
61};
A QWidget editor for achievements.dat file from 2012 and 2013 release of Final Fantasy 7.
Definition: AchievementEditor.h:35
~AchievementEditor()=default
Work with achievements.dat.
Definition: FF7Achievements.h:30