add 'view' global JS object to main frame
[pykit.git] / Viewer.hh
index 445d894..ff99a3f 100644 (file)
--- a/Viewer.hh
+++ b/Viewer.hh
@@ -32,7 +32,11 @@ namespace pykit {
 
         static Viewer * instance();
 
+        Q_INVOKABLE bool canGoBack();
+        Q_INVOKABLE bool canGoForward();
+
     private slots:
+        void initJSObjects();
         void printRequested();
 
     private: