34 lines
720 B
C++
34 lines
720 B
C++
#ifndef HELPPAGE_H
|
|
#define HELPPAGE_H
|
|
|
|
#include <QWidget>
|
|
#include <QStackedWidget>
|
|
#include <QLabel>
|
|
#include <QTextBrowser>
|
|
#include "ElaTreeView.h"
|
|
|
|
class HelpPage : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit HelpPage(QWidget *parent = nullptr);
|
|
~HelpPage();
|
|
|
|
private:
|
|
void initUI();
|
|
void initTreeView();
|
|
void initContentPages();
|
|
void loadHelpFile();
|
|
void updateContent(const QString §ion);
|
|
QString extractSection(const QString §ionName);
|
|
QString markdownToHtml(const QString &markdown);
|
|
|
|
ElaTreeView* m_treeView;
|
|
QStackedWidget* m_stackedWidget;
|
|
QLabel* m_titleLabel;
|
|
QTextBrowser* m_contentBrowser;
|
|
QString m_helpContent;
|
|
};
|
|
|
|
#endif // HELPPAGE_H
|