typo fix
[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         Q_INVOKABLE bool canGoBack();
36         Q_INVOKABLE bool canGoForward();
37
38     private slots:
39         void initJSObjects();
40         void printRequested();
41
42     private:
43         QWebInspector * inspector_;
44     };
45
46 }
47
48 ///////////////////////////////hh.e////////////////////////////////////////
49 //#include "Viewer.cci"
50 //#include "Viewer.ct"
51 //#include "Viewer.cti"
52 #endif
53
54 \f
55 // Local Variables:
56 // mode: c++
57 // fill-column: 100
58 // comment-column: 40
59 // c-file-style: "j32"
60 // indent-tabs-mode: nil
61 // ispell-local-dictionary: "american"
62 // compile-command: "scons -U"
63 // End: