27 lines
519 B
C++
27 lines
519 B
C++
#ifndef TOOLS_H
|
|
#define TOOLS_H
|
|
|
|
#include <QColor>
|
|
#include <QJsonDocument>
|
|
|
|
#include "models/status.h"
|
|
|
|
class Tools
|
|
{
|
|
public:
|
|
Tools();
|
|
|
|
static const QColor getRandomColor();
|
|
static const QColor getForegroundColor(QColor background);
|
|
static bool isSaveFileExist();
|
|
static bool writeSaveToFile(QJsonDocument doc);
|
|
static bool readSaveFile(QJsonDocument &doc);
|
|
static const QString getStatusLabelStylesheet(Status);
|
|
|
|
private:
|
|
static const QString getSaveFilePath();
|
|
|
|
};
|
|
|
|
#endif // TOOLS_H
|