X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fgraphics%2FGraphicsCacheItem.h;h=6f7f968bc6a44086af831849470043faa4053c0e;hb=db58111360d68f76c5797069a7b80967447d1379;hp=481e4b117a6a770f132daa2c4125f46644ccf547;hpb=896cb74fe2fab71aba57471363196c5332217df0;p=lyx.git diff --git a/src/graphics/GraphicsCacheItem.h b/src/graphics/GraphicsCacheItem.h index 481e4b117a..6f7f968bc6 100644 --- a/src/graphics/GraphicsCacheItem.h +++ b/src/graphics/GraphicsCacheItem.h @@ -30,7 +30,7 @@ #include "GraphicsTypes.h" -#include +#include "support/signals.h" namespace lyx { @@ -46,7 +46,7 @@ class Converter; class CacheItem { public: /// - CacheItem(support::FileName const & file); + CacheItem(support::FileName const & file, support::FileName const & doc_file); /// Needed for the pimpl ~CacheItem(); @@ -66,11 +66,8 @@ public: void startMonitoring() const; /// bool monitoring() const; - /** Returns the check checksum of filename() so that, for example, you can - * ascertain whether to output a new PostScript version of the file - * for a LaTeX run. - */ - unsigned long checksum() const; + /// perform a modification check asynchronously + void checkModifiedAsync() const; /** Get the image associated with filename(). * If the image is not yet loaded, returns 0. @@ -85,10 +82,9 @@ public: /** Connect and you'll be informed when the loading status of the image * changes. */ - typedef boost::signal sig_type; - typedef sig_type::slot_type slot_type; + typedef signals2::signal::slot_type slot_type; /// - boost::signals::connection connect(slot_type const &) const; + signals2::connection connect(slot_type const &) const; private: /// noncopyable