Relax dependency from procparams.h

This commit is contained in:
Flössie
2019-02-28 20:44:50 +01:00
parent 1786731f4a
commit 0cbc4923bc
86 changed files with 1139 additions and 814 deletions

View File

@@ -20,6 +20,7 @@
#define _PREVIEWHANDLER_
#include <list>
#include <memory>
#include <gtkmm.h>
@@ -54,7 +55,7 @@ private:
protected:
rtengine::IImage8* image;
rtengine::procparams::CropParams cropParams;
std::unique_ptr<rtengine::procparams::CropParams> cropParams;
double previewScale;
PreviewHandlerIdleHelper* pih;
std::list<PreviewListener*> listeners;
@@ -82,10 +83,7 @@ public:
// with this function it is possible to ask for a rough approximation of a (possibly zoomed) crop of the image
Glib::RefPtr<Gdk::Pixbuf> getRoughImage (int x, int y, int w, int h, double zoom);
Glib::RefPtr<Gdk::Pixbuf> getRoughImage (int desiredW, int desiredH, double& zoom);
rtengine::procparams::CropParams getCropParams ()
{
return cropParams;
}
rtengine::procparams::CropParams getCropParams ();
};
#endif