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