ff7tk  0.02
Toolkit for making FF7 Tools
AchievementEditor.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // copyright 2013 -2016 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 #ifndef ACHIEVEMENTEDITOR_H
17 #define ACHIEVEMENTEDITOR_H
18 
19 #include "qglobal.h"
20 #if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
21  #include <QtWidgets>
22 #else
23  #include <QtGui>
24 #endif
25 
26 #include "../data/FF7Achievements.h"
27 
36 class AchievementEditor : public QWidget
37 {
38  Q_OBJECT
39 public:
40  explicit AchievementEditor(qreal Scale=1,QWidget *parent=0);
41 public slots:
47  bool openFile(QString fileName="");
48 
54  bool saveFile(QString fileName="");
55 private slots:
59  void itemToggled(QModelIndex index);
60 private:
61  void initDisplay(void);
62  void initConnect(void);
63  void initDisconnect(void);
65  QListWidget *achievementList;
66  qreal scale;
67 };
68 
69 #endif // ACHIEVEMENTEDITOR_H
A QWidget editor for achievements.dat file from 2012 and 2013 release of Final Fantasy 7...
qreal scale
Scale value for hidpi systems.
bool openFile(QString fileName="")
open a file.
bool saveFile(QString fileName="")
saves a file.
AchievementEditor(qreal Scale=1, QWidget *parent=0)
create a new AchievementEditor
FF7Achievements achievements
data class for widget
Work with achievements.dat.
QListWidget * achievementList
QListWidget that will contain the list of achievements.
void itemToggled(QModelIndex index)
an item has been toggled
void initConnect(void)
Connect objects.
void initDisplay(void)
create this items widgets
void initDisconnect(void)
Disconnect object.