2018-08-23 00:24:55 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "common.h"
|
|
|
|
#include <QString>
|
2018-10-10 19:03:15 +08:00
|
|
|
#include <QVector>
|
2018-11-02 02:46:37 +08:00
|
|
|
#include <QHash>
|
2018-11-02 02:07:42 +08:00
|
|
|
#include <QFile>
|
2018-12-02 04:55:32 +08:00
|
|
|
#include <QFileInfo>
|
2019-01-12 06:14:49 +08:00
|
|
|
#include <QDir>
|
2019-06-29 11:16:31 +08:00
|
|
|
#include <QSettings>
|
|
|
|
#include <QMainWindow>
|
|
|
|
#include <QDialog>
|
|
|
|
#include <QLayout>
|
|
|
|
#include <QFormLayout>
|
|
|
|
#include <QLabel>
|
|
|
|
#include <QPushButton>
|
|
|
|
#include <QCheckBox>
|
|
|
|
#include <QSpinBox>
|
|
|
|
#include <QListWidget>
|
|
|
|
#include <QMessageBox>
|
|
|
|
#include <QInputDialog>
|
2019-03-13 23:44:21 +08:00
|
|
|
|
|
|
|
struct QTextFile : QFile { QTextFile(QString name, QIODevice::OpenMode mode) : QFile(name) { open(mode | QIODevice::Text); } };
|
|
|
|
inline std::wstring S(const QString& S) { return { S.toStdWString() }; }
|
2019-07-02 13:56:04 +08:00
|
|
|
inline QString S(const std::string& S) { return QString::fromStdString(S); }
|
2019-03-13 23:44:21 +08:00
|
|
|
inline QString S(const std::wstring& S) { return QString::fromStdWString(S); }
|