2018-08-22 12:24:55 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "common.h"
|
|
|
|
#include <QString>
|
2018-10-10 07:03:15 -04:00
|
|
|
#include <QVector>
|
2018-11-01 14:46:37 -04:00
|
|
|
#include <QHash>
|
2018-11-01 14:07:42 -04:00
|
|
|
#include <QFile>
|
2018-12-01 15:55:32 -05:00
|
|
|
#include <QFileInfo>
|
2019-01-11 17:14:49 -05:00
|
|
|
#include <QDir>
|
2019-06-29 08:46:31 +05:30
|
|
|
#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 11:44:21 -04:00
|
|
|
|
2019-09-16 17:14:59 -04:00
|
|
|
static thread_local bool ok;
|
|
|
|
|
2019-03-13 11:44:21 -04: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 11:26:04 +05:30
|
|
|
inline QString S(const std::string& S) { return QString::fromStdString(S); }
|
2019-03-13 11:44:21 -04:00
|
|
|
inline QString S(const std::wstring& S) { return QString::fromStdWString(S); }
|