Changeset View
Changeset View
Standalone View
Standalone View
src/editor/browserwidget.h
Show All 12 Lines | |||||
13 | * * | 13 | * * | ||
14 | ***************************************************************************/ | 14 | ***************************************************************************/ | ||
15 | 15 | | |||
16 | #ifndef BROWSERWIDGET_H | 16 | #ifndef BROWSERWIDGET_H | ||
17 | #define BROWSERWIDGET_H | 17 | #define BROWSERWIDGET_H | ||
18 | 18 | | |||
19 | 19 | | |||
20 | #include "ui_browserwidget.h" | 20 | #include "ui_browserwidget.h" | ||
21 | #include <QtWebEngineWidgets/QWebEngineView> | ||||
21 | 22 | | |||
22 | class KEduVocExpression; | 23 | class KEduVocExpression; | ||
23 | class KHTMLPart; | 24 | | ||
24 | 25 | | |||
25 | 26 | | |||
26 | namespace Editor | 27 | namespace Editor | ||
27 | { | 28 | { | ||
28 | 29 | | |||
29 | struct DictionaryProvider { | 30 | struct DictionaryProvider { | ||
30 | QString name; | 31 | QString name; | ||
31 | QString url; | 32 | QString url; | ||
Show All 25 Lines | 55 | private: | |||
57 | */ | 58 | */ | ||
58 | void setupProviders(); | 59 | void setupProviders(); | ||
59 | 60 | | |||
60 | /// Column in the document - corresponds to the language (-KV_COL_TRANS) | 61 | /// Column in the document - corresponds to the language (-KV_COL_TRANS) | ||
61 | int m_currentTranslation; | 62 | int m_currentTranslation; | ||
62 | /// Selection in the doc - if more than one row is selected behavior is different | 63 | /// Selection in the doc - if more than one row is selected behavior is different | ||
63 | KEduVocExpression* m_entry; | 64 | KEduVocExpression* m_entry; | ||
64 | 65 | | |||
65 | KHTMLPart *m_htmlPart; | 66 | QWebEngineView *m_htmlPart; | ||
66 | QList<DictionaryProvider> m_providers; | 67 | QList<DictionaryProvider> m_providers; | ||
67 | int m_currentProvider; | 68 | int m_currentProvider; | ||
68 | }; | 69 | }; | ||
69 | 70 | | |||
70 | } | 71 | } | ||
71 | 72 | | |||
72 | #endif | 73 | #endif |