From 671bf7bdf20ccc61339d0959b1fb2f81a316825b Mon Sep 17 00:00:00 2001 From: Renaud G Date: Wed, 21 Oct 2020 11:34:58 +0200 Subject: fix output --- include/parsingtoolbox.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'include/parsingtoolbox.h') diff --git a/include/parsingtoolbox.h b/include/parsingtoolbox.h index f91c2f6..a58aabd 100644 --- a/include/parsingtoolbox.h +++ b/include/parsingtoolbox.h @@ -23,6 +23,7 @@ #define PARSINGTOOLBOX_H #include +#include #include #include "booleancondition.h" @@ -197,7 +198,8 @@ public: std::pair hasResultOfType(Dice::RESULT_TYPE, ExecutionNode* node, bool notthelast= false) const; QList scalarResultsFromEachInstruction() const; std::pair finalScalarResult() const; - QString finalStringResult() const; + QString finalStringResult(std::function colorize, + bool removeUnhighlighted= false) const; QStringList allFirstResultAsString(bool& hasAlias) const; QList sumOfDiceResult() const; QList diceResultFromEachInstruction() const; @@ -208,7 +210,9 @@ public: // result static QString replaceVariableToValue(const QString& source, QStringList values, QMap& errorMap); - static QString replacePlaceHolderToValue(const QString& source, const QList& list); + static QString replacePlaceHolderToValue(const QString& source, const QList& list, + bool removeUnhighlighted, + std::function colorize); static SubtituteInfo readVariableFromString(const QString& source, int& start); static SubtituteInfo readPlaceHolderFromString(const QString& source, int& start); static ExportedDiceResult finalDiceResultFromInstruction(ExecutionNode* start); -- cgit v1.2.3-70-g09d2