]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/PreviewLoader.h
whitespace only
[lyx.git] / src / graphics / PreviewLoader.h
index 980c757444f5b2b7ef0873d531038beb243621cf..3f617628fc2dd7d9d15520ca5a11d564dfcffdd1 100644 (file)
@@ -19,6 +19,7 @@
 #define PREVIEWLOADER_H
 
 #include <boost/signal.hpp>
+#include <QObject>
 
 #include "ColorCode.h"
 
@@ -30,7 +31,8 @@ namespace graphics {
 
 class PreviewImage;
 
-class PreviewLoader {
+class PreviewLoader : public QObject {
+       Q_OBJECT
 public:
        /** We need buffer because we require the preamble to the
         *  LaTeX file.
@@ -68,7 +70,7 @@ public:
        /** We have accumulated several latex snippets with status "InQueue".
         *  Initiate their transformation into bitmap images.
         */
-       void startLoading() const;
+       void startLoading(bool wait = false) const;
 
        /** Connect and you'll be informed when the bitmap image file
         *  has been created and is ready for loading through
@@ -91,6 +93,12 @@ public:
        /// The foreground color used
        static ColorCode foregroundColor() { return Color_preview; }
 
+       double displayPixelRatio() const ;
+
+public Q_SLOTS:
+       ///
+       void refreshPreviews();
+
 private:
        /// noncopyable
        PreviewLoader(PreviewLoader const &);