Subversion Repositories svn1-original

Rev

Rev 208 | Rev 211 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 208 Rev 209
Line 2... Line 2...
2
#define QMREPORTWINDOW_H
2
#define QMREPORTWINDOW_H
3
 
3
 
4
#include <QTabWidget>
4
#include <QTabWidget>
5
#include <QLineEdit>
5
#include <QLineEdit>
6
#include <QPushButton>
6
#include <QPushButton>
-
 
7
#include <QWebView>
-
 
8
#include <QUrl>
7
 
9
 
8
class QWebView;
-
 
9
class QWidget;
10
class QWidget;
-
 
11
class QmWebView;
10
 
12
 
11
class QmReportWindow : public QWidget
13
class QmReportWindow : public QWidget
12
{
14
{
13
    Q_OBJECT
15
    Q_OBJECT
14
 
16
 
Line 20... Line 22...
20
private:
22
private:
21
    QTabWidget *tabWidget;
23
    QTabWidget *tabWidget;
22
    QLineEdit *tabPath;
24
    QLineEdit *tabPath;
23
    QPushButton *pb_original;
25
    QPushButton *pb_original;
24
    QPushButton *pb_back;
26
    QPushButton *pb_back;
-
 
27
    QPushButton *pb_forward;
25
    QPushButton *pb_print;
28
    QPushButton *pb_print;
-
 
29
    QmWebView *currentWebView;
26
 
30
 
27
private slots:
31
private slots:
28
    void deleteTab(int tab);
32
    void deleteTab(int tab);
29
    void tabChanged(int tab);
33
    void tabChanged(int tab);
30
    void back(void);
34
    void back(void);
-
 
35
    void forward(void);
-
 
36
    void home(void);
-
 
37
};
-
 
38
 
-
 
39
class QmWebView : public QWebView
-
 
40
{
-
 
41
public:
-
 
42
    QmWebView(QWidget * parent = 0 ) : QWebView(parent) {}
-
 
43
    void setUrl(const QString &url) { homeUrl = url; QWebView::setUrl(QUrl(url,QUrl::TolerantMode)); }
-
 
44
    void home(void) { QWebView::setUrl(QUrl(homeUrl,QUrl::TolerantMode)); }
-
 
45
    QString homeUrl;
31
};
46
};
32
 
47
 
33
#endif // QMREPORTWINDOW_H
48
#endif // QMREPORTWINDOW_H