[Digikam-devel] extragear/graphics/digikam/libs/widgets/imageplugins

Gilles Caulier caulier.gilles at free.fr
Mon Mar 27 10:54:57 BST 2006


SVN commit 523058 by cgilles:

digikam from trunk : Preparing code for 0.9.1-beta1 : Removing old methods from common widgets about image data management available to all image plugins

CCMAIL: digikam-devel at kde.org

 M  +0 -12     imagepannelwidget.cpp  
 M  +0 -4      imagepannelwidget.h  
 M  +0 -16     imageregionwidget.cpp  
 M  +0 -4      imageregionwidget.h  


--- trunk/extragear/graphics/digikam/libs/widgets/imageplugins/imagepannelwidget.cpp #523057:523058
@@ -477,18 +477,6 @@
                         .arg(rect.right()).arg(rect.bottom()));
 }
 
-// FIXME remove these methods when all image plugins will be ported to DIMG.
-
-QImage ImagePannelWidget::getOriginalClipImage(void)
-{
-    return ( d->imageRegionWidget->getImageRegionData() );
-}
-
-void ImagePannelWidget::setPreviewImageData(QImage img)
-{
-    d->imageRegionWidget->updatePreviewImage(&img);
-}    
-
 }  // NameSpace Digikam
 
 #include "imagepannelwidget.moc"
--- trunk/extragear/graphics/digikam/libs/widgets/imageplugins/imagepannelwidget.h #523057:523058
@@ -79,10 +79,6 @@
     
     KProgress *progressBar(void);
            
-    // FIXME remove these methods when all image plugins will be ported to DIMG.
-    QImage getOriginalClipImage(void);
-    void   setPreviewImageData(QImage img);
-           
 public slots:
 
     // Set the top/Left conner clip position.
--- trunk/extragear/graphics/digikam/libs/widgets/imageplugins/imageregionwidget.cpp #523057:523058
@@ -495,22 +495,6 @@
     setCursor( KCursor::handCursor() );    
 }
 
-// ---------------------------------------------------------------------------
-// FIXME remove these methods when all image plugins will be ported to DIMG.
-
-void ImageRegionWidget::updatePreviewImage(QImage *img)
-{
-    QPixmap pix( img->scale((uint)(img->width()  * d->zoomFactor),
-                            (uint)(img->height() * d->zoomFactor)));
-    QRect area = getLocalTargetImageRegion();
-    copyBlt( d->pixmap, area.x(), area.y(), &pix, 0, 0, area.width(), area.height() );
-}
-
-QImage ImageRegionWidget::getImageRegionData(void)
-{
-    return ( d->iface->getOriginalImg()->copyQImage(getImageRegionToRender()) );
-}
-
 }  // NameSpace Digikam
 
 #include "imageregionwidget.moc"
--- trunk/extragear/graphics/digikam/libs/widgets/imageplugins/imageregionwidget.h #523057:523058
@@ -77,10 +77,6 @@
     
     void   setHighLightPoints(QPointArray pointsList);
              
-    // FIXME remove these methods when all image plugins will be ported to DIMG.
-    QImage getImageRegionData(void);
-    void   updatePreviewImage(QImage *img);
-             
 signals:
     
     void contentsMovedEvent( bool target );



More information about the Digikam-devel mailing list