implement feature request #1489 (custom crop ratio by holding shift while resizing the crop area)

This commit is contained in:
Alberto Griggio
2017-04-10 21:14:45 +02:00
parent 14f544fcc2
commit 7a25641139
4 changed files with 50 additions and 48 deletions

View File

@@ -25,14 +25,14 @@ class CropGUIListener
public:
virtual ~CropGUIListener() {}
virtual void cropMoved (int &x, int &y, int &w, int &h) = 0;
virtual void cropWidth1Resized (int &x, int &y, int &w, int &h) = 0;
virtual void cropWidth2Resized (int &x, int &y, int &w, int &h) = 0;
virtual void cropHeight1Resized (int &x, int &y, int &w, int &h) = 0;
virtual void cropHeight2Resized (int &x, int &y, int &w, int &h) = 0;
virtual void cropTopLeftResized (int &x, int &y, int &w, int &h) = 0;
virtual void cropTopRightResized (int &x, int &y, int &w, int &h) = 0;
virtual void cropBottomLeftResized (int &x, int &y, int &w, int &h) = 0;
virtual void cropBottomRightResized (int &x, int &y, int &w, int &h) = 0;
virtual void cropWidth1Resized (int &x, int &y, int &w, int &h, float custom_ratio=0.f) = 0;
virtual void cropWidth2Resized (int &x, int &y, int &w, int &h, float custom_ratio=0.f) = 0;
virtual void cropHeight1Resized (int &x, int &y, int &w, int &h, float custom_ratio=0.f) = 0;
virtual void cropHeight2Resized (int &x, int &y, int &w, int &h, float custom_ratio=0.f) = 0;
virtual void cropTopLeftResized (int &x, int &y, int &w, int &h, float custom_ratio=0.f) = 0;
virtual void cropTopRightResized (int &x, int &y, int &w, int &h, float custom_ratio=0.f) = 0;
virtual void cropBottomLeftResized (int &x, int &y, int &w, int &h, float custom_ratio=0.f) = 0;
virtual void cropBottomRightResized (int &x, int &y, int &w, int &h, float custom_ratio=0.f) = 0;
virtual void cropInit (int &x, int &y, int &w, int &h) = 0;
virtual void cropResized (int &x, int &y, int& x2, int& y2) = 0;
virtual void cropManipReady () = 0;