ff7tk  0.02
Toolkit for making FF7 Tools
FF7Text.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // copyright 2012-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 FF7TEXT_H
17  #define FF7TEXT_H
18 #include <QObject>
19 
23 class FF7TEXT{
24  // Q_OBJECT
25 public:
26  FF7TEXT();
27 
29  void init(bool);
30 
35  QString toPC(QByteArray text);
36 
41  QByteArray toFF7(QString string);
42 private:
43  QString eng;
44  QString jap;
45  QString jap_fa;
46  QString jap_fb;
47  QString jap_fc;
48  QString jap_fd;
49  QString jap_fe;
50  bool in_ja;
51  QString character(quint8 ord, quint8 table);
52 };
53 #endif //FF7TEXT_H
Convert ff7text <-> pc string.
Definition: FF7Text.h:23
QByteArray toFF7(QString string)
convert pc string to ff7text
Definition: FF7Text.cpp:99
FF7TEXT()
Definition: FF7Text.cpp:19
void init(bool)
if TRUE toPC will return Japanese test
Definition: FF7Text.cpp:31
QString toPC(QByteArray text)
convert ff7text to pc string
Definition: FF7Text.cpp:38
QString eng
Definition: FF7Text.h:43
QString jap_fb
Definition: FF7Text.h:46
QString jap_fd
Definition: FF7Text.h:48
QString character(quint8 ord, quint8 table)
Definition: FF7Text.cpp:144
QString jap_fa
Definition: FF7Text.h:45
QString jap
Definition: FF7Text.h:44
QString jap_fc
Definition: FF7Text.h:47
bool in_ja
Definition: FF7Text.h:50
QString jap_fe
Definition: FF7Text.h:49