Changeset View
Changeset View
Standalone View
Standalone View
documentation/qthelp/qthelpdocumentation.h
Show All 22 Lines | |||||
23 | #define QTHELPDOCUMENTATION_H | 23 | #define QTHELPDOCUMENTATION_H | ||
24 | 24 | | |||
25 | #include <QtCore/QMap> | 25 | #include <QtCore/QMap> | ||
26 | #include <QtCore/QUrl> | 26 | #include <QtCore/QUrl> | ||
27 | #include <QPointer> | 27 | #include <QPointer> | ||
28 | #include <QAction> | 28 | #include <QAction> | ||
29 | #include <interfaces/idocumentation.h> | 29 | #include <interfaces/idocumentation.h> | ||
30 | 30 | | |||
31 | namespace KDevelop { class StandardDocumentationView; } | ||||
31 | class QModelIndex; | 32 | class QModelIndex; | ||
32 | class QNetworkAccessManager; | 33 | class QNetworkAccessManager; | ||
33 | class QWebView; | | |||
34 | class QtHelpProviderAbstract; | 34 | class QtHelpProviderAbstract; | ||
35 | class QTemporaryFile; | 35 | class QTemporaryFile; | ||
36 | 36 | | |||
37 | class QtHelpDocumentation : public KDevelop::IDocumentation | 37 | class QtHelpDocumentation : public KDevelop::IDocumentation | ||
38 | { | 38 | { | ||
39 | Q_OBJECT | 39 | Q_OBJECT | ||
40 | public: | 40 | public: | ||
41 | QtHelpDocumentation(const QString& name, const QMap<QString, QUrl>& info); | 41 | QtHelpDocumentation(const QString& name, const QMap<QString, QUrl>& info); | ||
Show All 14 Lines | |||||
56 | 56 | | |||
57 | public slots: | 57 | public slots: | ||
58 | void viewContextMenuRequested(const QPoint& pos); | 58 | void viewContextMenuRequested(const QPoint& pos); | ||
59 | 59 | | |||
60 | private slots: | 60 | private slots: | ||
61 | void jumpedTo(const QUrl& newUrl); | 61 | void jumpedTo(const QUrl& newUrl); | ||
62 | 62 | | |||
63 | private: | 63 | private: | ||
64 | void setUserStyleSheet(QWebView* view, const QUrl& url); | 64 | void setUserStyleSheet(KDevelop::StandardDocumentationView* view, const QUrl& url); | ||
65 | 65 | | |||
66 | private: | 66 | private: | ||
67 | QtHelpProviderAbstract *m_provider; | 67 | QtHelpProviderAbstract *m_provider; | ||
68 | const QString m_name; | 68 | const QString m_name; | ||
69 | const QMap<QString, QUrl> m_info; | 69 | const QMap<QString, QUrl> m_info; | ||
70 | const QMap<QString, QUrl>::const_iterator m_current; | 70 | const QMap<QString, QUrl>::const_iterator m_current; | ||
71 | 71 | | |||
72 | QWebView* lastView; | 72 | KDevelop::StandardDocumentationView* lastView; | ||
73 | QPointer<QTemporaryFile> m_lastStyleSheet; | 73 | QPointer<QTemporaryFile> m_lastStyleSheet; | ||
74 | QScopedPointer<QNetworkAccessManager> m_sharedQNAM; | 74 | QScopedPointer<QNetworkAccessManager> m_sharedQNAM; | ||
75 | }; | 75 | }; | ||
76 | 76 | | |||
77 | class HomeDocumentation : public KDevelop::IDocumentation | 77 | class HomeDocumentation : public KDevelop::IDocumentation | ||
78 | { | 78 | { | ||
79 | Q_OBJECT | 79 | Q_OBJECT | ||
80 | public: | 80 | public: | ||
Show All 27 Lines |