// SPDX-License-Identifier: BSD-3-Clause // SPDX-FileCopyrightText: 2020-2024 The Monero Project #ifndef FEATHER_DOCSDIALOG_H #define FEATHER_DOCSDIALOG_H #include #include #include #include "components.h" namespace Ui { class DocsDialog; } class DocsDialog : public WindowModalDialog { Q_OBJECT public: explicit DocsDialog(QWidget *parent = nullptr); ~DocsDialog() override; void filterIndex(const QString &text); void showDoc(const QString &doc, const QString& highlight = ""); void updateHighlights(const QString &highlight, bool scrollToCursor = false); bool wordMatch(QString &search); private: QScopedPointer ui; QString m_currentSource = ""; QMap m_docs; QMap m_categoryIndex; QMap m_navTitleIndex; QMap m_items; }; #endif //FEATHER_DOCSDIALOG_H