ff7tk  0.02
Toolkit for making FF7 Tools
CharManager.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // copyright 2015- 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 CHARMANAGER_H
17 #define CHARMANAGER_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 "CharEditor.h"
27 #include "../data/FF7Char.h"
28 
29 class CharManager : public QWidget
30 {
31  Q_OBJECT
32 public:
33  explicit CharManager(qreal Scale=1,QWidget *parent=0);
34 
35 signals:
36  void comboParty1_changed(qint8);
37  void comboParty2_changed(qint8);
38  void comboParty3_changed(qint8);
39 
40 public slots:
41  void setParty(qint8 member1,qint8 member2,qint8 member3);
42 
43 private slots:
44  void party1Changed(int);
45  void party2Changed(int);
46  void party3Changed(int);
47 private:
48  void initDisplay(void);
49  void connectAll(void);
50  void disconnectAll(void);
53  QComboBox *comboParty[3];
54  bool load;
55  qreal scale;
56 };
57 
58 #endif // CHARMANAGER_H
void party2Changed(int)
Definition: CharManager.cpp:85
Data and Enums for Characters in Final Fantasy 7.
Definition: FF7Char.h:28
void disconnectAll(void)
Definition: CharManager.cpp:78
void setParty(qint8 member1, qint8 member2, qint8 member3)
Definition: CharManager.cpp:88
Widget to allow editing of a character using FF7Char for data.
Definition: CharEditor.h:37
CharManager(qreal Scale=1, QWidget *parent=0)
Definition: CharManager.cpp:18
void party1Changed(int)
Definition: CharManager.cpp:84
void comboParty1_changed(qint8)
void initDisplay(void)
Definition: CharManager.cpp:27
FF7Char * charData
Definition: CharManager.h:51
CharEditor * charEditor
Definition: CharManager.h:52
void comboParty2_changed(qint8)
void party3Changed(int)
Definition: CharManager.cpp:86
QComboBox * comboParty[3]
Definition: CharManager.h:53
void comboParty3_changed(qint8)
void connectAll(void)
Definition: CharManager.cpp:71
qreal scale
Definition: CharManager.h:55