27 #ifndef QTXWEBBROWSER_H
28 #define QTXWEBBROWSER_H
34 #include <QMainWindow>
37 #if QT_VERSION < QT_VERSION_CHECK(5, 6, 0)
39 #define WebView QWebView
40 #define WebPage QWebPage
43 #define WebView QWebEngineView
44 #define WebPage QWebEnginePage
66 static void loadUrl(
const QString&,
const QString& = QString() );
68 static void shutdown();
75 void saveLink(
const QString& );
76 void openLink(
const QString&,
bool =
false );
79 virtual void load(
const QString& );
83 virtual void linkClicked(
const QUrl& );
84 virtual void linkHovered(
const QString&,
const QString&,
const QString& );
85 virtual void linkHovered(
const QString&) ;
90 void finished(
bool );
#define WebView
Definition: QtxWebBrowser.h:43
#define QTX_EXPORT
Definition: Qtx.h:36
Application resources manager.
Definition: QtxResourceMgr.h:53
A dialog box that is used to process file links.
Definition: QtxWebBrowser.h:102
~Downloader()
Destructor.
Definition: QtxWebBrowser.cxx:252
QButtonGroup * myAction
Definition: QtxWebBrowser.h:122
void browse()
Browse program to be used to open the file.
Definition: QtxWebBrowser.cxx:300
void setAction(int)
Set current action.
Definition: QtxWebBrowser.cxx:292
bool isRepeatAction() const
Get "repeat action for all such files" flag status.
Definition: QtxWebBrowser.cxx:272
QLabel * myFileName
Definition: QtxWebBrowser.h:121
QCheckBox * myRepeat
Definition: QtxWebBrowser.h:124
Downloader(const QString &, int=mOpen, const QString &=QString(), QWidget *=0)
Constructor.
Definition: QtxWebBrowser.cxx:200
@ mOpen
Definition: QtxWebBrowser.h:105
@ mSave
Definition: QtxWebBrowser.h:105
int action() const
Get action selected by the user.
Definition: QtxWebBrowser.cxx:262
QString myProgram
Definition: QtxWebBrowser.h:120
QString program() const
Get program to be used to open chosen file.
Definition: QtxWebBrowser.cxx:281
QPushButton * myBrowse
Definition: QtxWebBrowser.h:123
A class is used with QtxSearchTool in order to search text within the web page.
Definition: QtxWebBrowser.cxx:75
The QtxWebBrowser provides a window that can display html pages from local file system.
Definition: QtxWebBrowser.h:56
static QtxWebBrowser * myBrowser
The only one instance of web browser.
Definition: QtxWebBrowser.h:94
QUrl myLastUrl
Definition: QtxWebBrowser.h:98
QtxSearchTool * myFindPanel
Definition: QtxWebBrowser.h:97
QWebEngineView * myWebView
Definition: QtxWebBrowser.h:96
static QtxResourceMgr * myResourceMgr
Resources manager.
Definition: QtxWebBrowser.h:95