/// Compute the size of the object, returned in dim
void metrics(MetricsInfo &, Dimension & dim) const override;
///
- void draw(PainterInfo & pi, int x, int y) const override;
+ void draw(PainterInfo & pi, int x, int y, bool const darkmode = false) const override;
/** Find the PreviewLoader and add a LaTeX snippet to it.
* Do not start the loading process.
/** Store the connection to the preview loader so that we connect
* only once.
*/
- signals2::scoped_connection ploader_connection_;
+ scoped_connection ploader_connection_;
/// Inform the core that the inset has changed.
Inset const * parent_;
public:
explicit RenderMonitoredPreview(Inset const *);
///
- void draw(PainterInfo & pi, int x, int y) const override;
+ void draw(PainterInfo & pi, int x, int y, bool const darkmode = false) const override;
///
void setAbsFile(support::FileName const & file);
///
/// Connect and you'll be informed when the file changes.
/// Do not forget to track objects used by the slot.
- typedef signals2::signal<void()> sig;
+ typedef signal<void()> sig;
typedef sig::slot_type slot;
- signals2::connection connect(slot const & slot);
+ connection connect(slot const & slot);
/// equivalent to dynamic_cast
RenderMonitoredPreview * asMonitoredPreview() override { return this; }