#ifndef PREVIEWLOADER_H
#define PREVIEWLOADER_H
-#include <boost/signal.hpp>
+#include "support/signals.h"
+
+#include <QObject>
#include "ColorCode.h"
class PreviewImage;
-class PreviewLoader {
+class PreviewLoader : public QObject {
+ Q_OBJECT
public:
/** We need buffer because we require the preamble to the
* LaTeX file.
/** 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
* lyx::graphics::PreviewImage::image().
*/
- typedef boost::signal<void(PreviewImage const &)> sig_type;
- typedef sig_type::slot_type slot_type;
+ typedef signals2::signal<void(PreviewImage const &)> 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
/// The foreground color used
static ColorCode foregroundColor() { return Color_preview; }
+ double displayPixelRatio() const ;
+
+public Q_SLOTS:
+ ///
+ void refreshPreviews();
+
private:
/// noncopyable
PreviewLoader(PreviewLoader const &);