File indexing completed on 2024-12-22 04:48:18

0001 /*
0002     SPDX-License-Identifier: GPL-2.0-or-later
0003     SPDX-FileCopyrightText: 2024 Louis Schul <schul9louis@gmail.com>
0004 */
0005 
0006 #pragma once
0007 
0008 #include <QObject>
0009 #include <QSet>
0010 
0011 class PUMLParserUtils
0012 {
0013 public:
0014     void clearInfo();
0015     void clearPreviousInfo();
0016     void preTok();
0017 
0018     void addToNotePUMLBlock(const QString &pumlBlock);
0019     void pumlDarkChanged();
0020 
0021     QString renderCode(const QString &_text, const bool pumlDark);
0022 
0023 private:
0024     bool m_pumlDarkChanged = true;
0025     bool m_samePUMLBlocks = false;
0026     int m_currentPUMLBlockIndex = 0;
0027     QStringList m_notePUMLBlocks;
0028     QStringList m_previousNotePUMLBlocks;
0029     QStringList m_previousPUMLDiag;
0030 };