Fork me on GitHub
2.15.20
FGx
A cross-platform launcher for FlightGear
xbrowser.h
Go to the documentation of this file.
1 #ifndef XBROWSER_H
2 #define XBROWSER_H
3 
4 #include <QtGui/QWidget>
5 #include <QtGui/QStatusBar>
6 #include <QtGui/QToolBar>
7 #include <QtGui/QProgressBar>
8 #include <QtGui/QAction>
9 
10 #include <QtWebKit/QWebView>
11 #include <QtWebKit/QWebFrame>
12 #include <QtNetwork/QNetworkDiskCache>
13 #include <QtNetwork/QNetworkCookieJar>
14 
15 #include "xobjects/mainobject.h"
16 
17 class MainObject;
18 
19 
20 class XBrowser : public QWidget
21 {
22 Q_OBJECT
23 public:
24  explicit XBrowser(MainObject *mob, QWidget *parent = 0);
25 
26 
28 
29  QToolBar *toolbar;
30 
31  QProgressBar *progressBar;
32 
33  QWebView *webView;
34  QNetworkDiskCache *networkDiskCache;
35  QNetworkCookieJar *networkCookieJar;
36 
37  QStatusBar *statusBar;
38 
39 
40 signals:
41 
42 public slots:
43 
44  void progress_start();
45  void progress_update(int progress);
46  void progress_finish(bool Ok);
47 
48 };
49 
50 #endif // XBROWSER_H
QProgressBar * progressBar
Definition: xbrowser.h:31
The MainObject is an extended QObject, and the main "controller" for FGx.
Definition: mainobject.h:66
QToolBar * toolbar
Definition: xbrowser.h:29
void progress_update(int progress)
Definition: xbrowser.cpp:65
QStatusBar * statusBar
Definition: xbrowser.h:37
void progress_finish(bool Ok)
Definition: xbrowser.cpp:68
XBrowser(MainObject *mob, QWidget *parent=0)
Definition: xbrowser.cpp:7
QNetworkDiskCache * networkDiskCache
Definition: xbrowser.h:34
QWebView * webView
Definition: xbrowser.h:33
QNetworkCookieJar * networkCookieJar
Definition: xbrowser.h:35
MainObject * mainObject
Definition: xbrowser.h:27
void progress_start()
Definition: xbrowser.cpp:61