first commit
This commit is contained in:
47
project/fm_viewer/core/fm_strings.h
Normal file
47
project/fm_viewer/core/fm_strings.h
Normal file
@@ -0,0 +1,47 @@
|
||||
#ifndef FM_STRINGS_H
|
||||
#define FM_STRINGS_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QMap>
|
||||
#include "rm_include.h"
|
||||
|
||||
|
||||
class FMS : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
private:
|
||||
static bool _loaded;
|
||||
public:
|
||||
explicit FMS(QObject *parent = nullptr) : QObject(parent){}
|
||||
|
||||
#if (FM_STR_TYPE2)
|
||||
static QMap<QString,QStringList> strings;
|
||||
#else // FM_STR_TYPE2
|
||||
#if !(MODEL_KOREAN_ONLY)
|
||||
static QMap<QString,QString> jps;
|
||||
#endif
|
||||
|
||||
#if(RM_MODEL == RM_MODEL_TYPE_ADT_CAPS || RM_MODEL == RM_MODEL_TYPE_TB4000 || RM_MODEL == RM_MODEL_TYPE_BV2000 || SUB_MODEL_KEIYO_KR || RM_MODEL == RM_MODEL_TYPE_MH9000 || RM_MODEL_TYPE_EMT_KR)
|
||||
static QMap<QString,QString> kos;
|
||||
#endif
|
||||
|
||||
#if(SUB_MODEL_BV5000 || RM_MODEL == RM_MODEL_TYPE_MH9000 || RM_MODEL_TYPE_EMT_KR)
|
||||
static QMap<QString,QString> ens;
|
||||
#endif
|
||||
#endif // FM_STR_TYPE2
|
||||
|
||||
static void load();
|
||||
static QString txt(const char* key);
|
||||
static QString txt(const char* key,RMLanguage::LANGUAGE_TYPE type);
|
||||
static QString txtLine(const char* key);
|
||||
|
||||
#if(SUPPORT_LANGUAGE_INSERT)
|
||||
// 1:JP, 2:EN, 3:KR
|
||||
static void insert_if_not_exist(int type,QString key, QString text);
|
||||
#endif // SUB_MODEL_BV5000
|
||||
signals:
|
||||
|
||||
public slots:
|
||||
};
|
||||
|
||||
#endif // FM_STRINGS_H
|
||||
Reference in New Issue
Block a user