Diff of /trunk/previewField.h [r44] .. [r45] Maximize Restore

  Switch to side-by-side view

--- a/trunk/previewField.h
+++ b/trunk/previewField.h
@@ -38,7 +38,7 @@
     bool previewCalculated;
     float selectX,selectY;
     float selectW,selectH;
-    float zoom;
+    float zoomX,zoomY;
 
     // shown part of the sourceImage
     float baseClipX0, baseClipY0,baseClipX1,baseClipY1;
@@ -50,13 +50,15 @@
 public:
     PreviewField( QWidget *parent=0 );
     ~PreviewField( void );
-    void setZoom( float newZoom );
+    void setZoom( float newZoomX,  float newZoomY );
+    void setZoom( float newZoom  )  { setZoom( newZoom, newZoom ); }
     void setTheImage( const QImage & newImage );
     void setClipRect( float cx0, float cy0, float cx1, float cy1 );
     void setPreview( const QImage & preImage );
     QImage theImage( void ) const { return srcImage; }
     QRect DstRect( void );
-    float Zoom( void ) { return zoom; };
+    float ZoomX( void ) { return zoomX; };
+    float ZoomY( void ) { return zoomY; };
     QSize sizeHint( void ) const;
     QSize minimumSizeHint( void ) const;