implement _pykit.canGoBack / _pykit.canGoForward
[pykit.git] / Viewer.hh
1 // $Id$
2 //
3 // Copyright (C) 2010
4 //     Stefan Bund <info@j32.de>
5
6 /** \file
7     \brief Viewer public header */
8
9 #ifndef HH_PyKit_Viewer_
10 #define HH_PyKit_Viewer_ 1
11
12 // Custom includes
13 #include <QWebView>
14 #include <QUrl>
15
16 //#include "Viewer.mpp"
17 ///////////////////////////////hh.p////////////////////////////////////////
18
19 class QWebInspector;
20
21 namespace pykit {
22
23     class Publisher;
24
25     class Viewer
26         : public QWebView
27     {
28         Q_OBJECT;
29     public:
30         Viewer(QUrl const & url, Publisher * publisher, QWidget * parent = 0);
31         ~Viewer();
32
33         static Viewer * instance();
34
35     private slots:
36         void printRequested();
37
38     private:
39         QWebInspector * inspector_;
40     };
41
42 }
43
44 ///////////////////////////////hh.e////////////////////////////////////////
45 //#include "Viewer.cci"
46 //#include "Viewer.ct"
47 //#include "Viewer.cti"
48 #endif
49
50 \f
51 // Local Variables:
52 // mode: c++
53 // fill-column: 100
54 // comment-column: 40
55 // c-file-style: "j32"
56 // indent-tabs-mode: nil
57 // ispell-local-dictionary: "american"
58 // compile-command: "scons -U"
59 // End: