aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/cli/displaytoolbox.h
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2022-04-29 10:48:09 +0200
committerRenaud G <renaud@rolisteam.org>2022-04-29 10:48:09 +0200
commit07c5f6ec23fcf9237a24e71adcfacabce677f818 (patch)
tree588e8c5f82b9163181fad3581f610e6f1d88cba4 /cli/displaytoolbox.h
parenta9153f1615a842cfb9e9bcda4d9071e202618569 (diff)
downloadOneRoll-07c5f6ec23fcf9237a24e71adcfacabce677f818.tar.gz
OneRoll-07c5f6ec23fcf9237a24e71adcfacabce677f818.zip
Change file organization.
Diffstat (limited to 'cli/displaytoolbox.h')
-rw-r--r--cli/displaytoolbox.h29
1 files changed, 0 insertions, 29 deletions
diff --git a/cli/displaytoolbox.h b/cli/displaytoolbox.h
deleted file mode 100644
index 5a22b0f..0000000
--- a/cli/displaytoolbox.h
+++ /dev/null
@@ -1,29 +0,0 @@
-#ifndef GENERATEIMAGE_H
-#define GENERATEIMAGE_H
-
-#include <QJsonArray>
-#include <QString>
-
-#include "diceparser/diceparser.h"
-
-class DisplayToolBox
-{
-public:
- enum class Output
- {
- Svg,
- Terminal,
- Json,
- Image
- };
- DisplayToolBox();
-#ifdef PAINTER_OP
- static QString makeImage(QByteArray svgCode);
-#endif
- static QString colorToIntCode(QString str);
- static QString colorToTermCode(QString str);
- static QString diceToSvg(QJsonArray array, bool withColor, bool allSameColor, bool allSameFaceCount);
- static QString diceResultToString(QJsonObject val, Output type, bool hasColor);
-};
-
-#endif // GENERATEIMAGE_H