1 /* vi: set sw=4 ts=4: 2 * 3 * Copyright (C) 2021 Christian Hohnstaedt. 4 * 5 * All rights reserved. 6 */ 7 8 #ifndef __HELP_H 9 #define __HELP_H 10 11 #include "ui_Help.h" 12 13 #include <QDialog> 14 15 class QHelpEngineCore; 16 17 class Help: public QWidget, public Ui::Help 18 { 19 Q_OBJECT 20 21 QHelpEngineCore *helpengine; 22 void display(const QUrl &url); 23 24 public: 25 Help(); 26 ~Help(); 27 void register_ctxhelp_button(QDialog *dlg, 28 const QString &help_ctx) const; 29 QMap<QString, QUrl> url_by_ctx(const QString &ctx) const; 30 31 public slots: 32 void contexthelp(); 33 void contexthelp(const QString &context); 34 void content(); 35 36 }; 37 #endif 38