]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/PreviewLoader.h
whitespace only
[lyx.git] / src / graphics / PreviewLoader.h
index 697b7802cd5ed822747419a0fe4369e3a0f63ab6..3f617628fc2dd7d9d15520ca5a11d564dfcffdd1 100644 (file)
@@ -19,7 +19,7 @@
 #define PREVIEWLOADER_H
 
 #include <boost/signal.hpp>
-#include "support/docstring.h"
+#include <QObject>
 
 #include "ColorCode.h"
 
@@ -31,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.
@@ -66,11 +67,6 @@ public:
        /// Remove this snippet of LaTeX from the PreviewLoader.
        void remove(std::string const & latex_snippet) const;
 
-       /// Record math macro definitions added to the loader
-       void addMacroDef(docstring const & latex_snippet) const;
-       /// Has a math macro definition already been added to the loader?
-       bool hasMacroDef(docstring const & latex_snippet) const;
-
        /** We have accumulated several latex snippets with status "InQueue".
         *  Initiate their transformation into bitmap images.
         */
@@ -99,6 +95,10 @@ public:
 
        double displayPixelRatio() const ;
 
+public Q_SLOTS:
+       ///
+       void refreshPreviews();
+
 private:
        /// noncopyable
        PreviewLoader(PreviewLoader const &);