-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcommandindexdialog.h
More file actions
41 lines (30 loc) · 1.02 KB
/
commandindexdialog.h
File metadata and controls
41 lines (30 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef COMMANDINDEXDIALOG_H
#define COMMANDINDEXDIALOG_H
#include <QDialog>
#include <QTreeWidget>
#include <QTreeWidgetItem>
#include "commandindex.h"
namespace Ui {
class CommandIndexDialog;
}
class CommandIndexDialog : public QDialog
{
Q_OBJECT
CommandIndex *commandIndex;
QList<QTreeWidgetItem*> chapters;
void populateIndex();
QTreeWidgetItem *findChapter(const QString &name);
QTreeWidgetItem *findSection(QTreeWidgetItem *chapter, const QString &name);
void appendSectionTitle(QString &text, const QString &title);
QString formatReference(const Reference &reference);
QString formatInputSyntax(const InputSyntax &inputSyntax);
public:
explicit CommandIndexDialog(CommandIndex *ci, QWidget *parent = 0);
~CommandIndexDialog();
private slots:
void on_commandTreeWidget_currentItemChanged(QTreeWidgetItem *current, QTreeWidgetItem *previous);
void on_commandHelpBrowser_anchorClicked(const QUrl &url);
private:
Ui::CommandIndexDialog *ui;
};
#endif // COMMANDINDEXDIALOG_H