X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fgraphics%2FPreviewLoader.h;h=ca22a9fa5c56706ef327ded5a5868e1ec837ba4d;hb=38c2cde0d8695ac5287bae218c4a33a2acf18ef8;hp=6910984c9ed13eb77c851ac49ee3bad94403fd4d;hpb=b8d43b05bc8411ae6dd347f40669b0c4a9a0d1ee;p=lyx.git diff --git a/src/graphics/PreviewLoader.h b/src/graphics/PreviewLoader.h index 6910984c9e..ca22a9fa5c 100644 --- a/src/graphics/PreviewLoader.h +++ b/src/graphics/PreviewLoader.h @@ -18,7 +18,9 @@ #ifndef PREVIEWLOADER_H #define PREVIEWLOADER_H -#include +#include "support/signals.h" + +#include #include "ColorCode.h" @@ -30,7 +32,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. @@ -74,10 +77,10 @@ public: * has been created and is ready for loading through * lyx::graphics::PreviewImage::image(). */ - typedef boost::signal sig_type; - typedef sig_type::slot_type slot_type; + typedef signals2::signal sig; + typedef sig::slot_type slot; /// - boost::signals::connection connect(slot_type const &) const; + signals2::connection connect(slot const &) const; /** When PreviewImage has finished loading the image file into memory, * it tells the PreviewLoader to tell the outside world @@ -91,6 +94,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 &);