1#ifndef HELPTREEDOCKWIDGET_H
2#define HELPTREEDOCKWIDGET_H
4#include "../../common/sharedStructures.h"
7#include <qstandarditemmodel.h>
9#include <qfuturewatcher.h>
12#include "../widgets/abstractDockWidget.h"
14#include "ui_helpTreeDockWidget.h"
21class LeafFilterProxyModel;
29 Q_PROPERTY(QColor backgroundColorHeading READ backgroundColorHeading WRITE setBackgroundColorHeading)
30 Q_PROPERTY(QColor textColorHeading READ textColorHeading WRITE setTextColorHeading)
31 Q_PROPERTY(QColor linkColor READ linkColor WRITE setLinkColor);
32 Q_PROPERTY(QColor backgroundParamName READ backgroundParamName WRITE setBackgroundParamName);
33 Q_PROPERTY(QColor textColorSection READ textColorSection WRITE setTextColorSection);
34 Q_PROPERTY(QColor backgroundColorSection READ backgroundColorSection WRITE setBackgroundColorSection);
42 Qt::WindowFlags flags = Qt::WindowFlags());
60 iconPluginFilter = 102,
62 iconPluginDataIO = 104,
63 iconPluginGrabber = 105,
65 iconPluginRawIO = 107,
66 iconPluginActuator = 108
73 stateContentLoaded = 0x02
75 Q_DECLARE_FLAGS(States, State)
78 QColor backgroundColorHeading()
const;
79 void setBackgroundColorHeading(
const QColor &color);
81 QColor textColorHeading()
const;
82 void setTextColorHeading(
const QColor &color);
84 QColor backgroundColorSection()
const;
85 void setBackgroundColorSection(
const QColor &color);
87 QColor textColorSection()
const;
88 void setTextColorSection(
const QColor &color);
90 QColor linkColor()
const;
91 void setLinkColor(
const QColor &color);
93 QColor backgroundParamName()
const;
94 void setBackgroundParamName(
const QColor &color);
99 void navigateBackwards();
100 void navigateForwards();
106 void showPluginInfo(
const QString &name, HelpItemType type,
const QModelIndex &modelIndex,
bool fromLink);
110 void on_splitter_splitterMoved (
int pos,
int index );
111 void on_helpTreeContent_anchorClicked(
const QUrl & link);
115 void on_treeView_expanded(
const QModelIndex &index);
116 void on_treeView_collapsed(
const QModelIndex &index);
118 void selectedItemChanged(
const QModelIndex ¤t,
const QModelIndex &previous);
122 static void createFilterWidgetNode(
int fOrW, QStandardItemModel* model,
const QMap<int,QIcon> *iconGallery);
128 ito::RetVal highlightContent(
const QString &prefix ,
const QString &name ,
const QString ¶m ,
const QString &shortDesc,
const QString &helpText,
const QString &error, QTextDocument *document,
const QMap<QString, QImage> &images);
129 QModelIndex
findIndexByPath(
const int type, QStringList path,
const QStandardItem* current);
135 void loadAndProcessCssStyleSheet();
138 static const int rolePath = Qt::UserRole + 1;
139 static const int roleType = Qt::UserRole + 2;
140 static const int roleFilename = Qt::UserRole + 3;
143 Ui::HelpTreeDockWidget ui;
149 QMap<int, QIcon> m_iconGallery;
160 QString m_filterTextPending;
161 int m_filterTextPendingTimer;
163 QColor m_backgroundColorHeading;
164 QColor m_textColorHeading;
166 QColor m_backgroundParamName;
167 QColor m_textColorSection;
168 QColor m_backgroundColorSection;
170 QFutureWatcher<ito::RetVal> m_loaderWatcher;
171 QMutex m_dbLoaderMutex;
174 void showEvent(QShowEvent *event);
175 void timerEvent(QTimerEvent *event);
This class provides a special search function to the help model. The normal filtermodel hides nodes i...
Definition leafFilterProxyModel.h:32
class for parameter handling e.g. to pass parameters to plugins
Definition param.h:477
Class for managing status values (like errors or warning)
Definition retVal.h:54
Definition apiFunctionsGraph.cpp:40