~ubuntu-branches/ubuntu/trusty/digikam/trusty

« back to all changes in this revision

Viewing changes to core/imageplugins/transform/contentawareresizetool.h

  • Committer: Package Import Robot
  • Author(s): Mark Purcell
  • Date: 2012-09-27 21:41:30 UTC
  • mfrom: (1.2.43)
  • mto: This revision was merged to the branch mainline in revision 86.
  • Revision ID: package-import@ubuntu.com-20120927214130-i8v3ufr21nesp29i
Tags: 4:3.0.0~beta1a-1
* New upstream release

* Fix "wrongly conflicts phonon-backend-vlc" dropped (Closes: #688142)
* debian/watch include download.kde.org

* digikam 3.0.0 uses features from unreleased kdegraphics >=4.10 & ships 
a private version of the kdegraphics libs - this is not the Debian way :-(
* Unsatisfactory Conflicts: libkipi8, libkexiv2-10, libkdcraw20, libksane0
* Suspend digikam-dbg >130Mb

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 * Date        : 2009-02-01
7
7
 * Description : Content aware resizing tool.
8
8
 *
9
 
 * Copyright (C) 2009 by Julien Pontabry <julien dot pontabry at ulp dot u-strasbg dot fr>
10
 
 * Copyright (C) 2009-2010 by Gilles Caulier <caulier dot gilles at gmail dot com>
 
9
 * Copyright (C) 2009      by Julien Pontabry <julien dot pontabry at ulp dot u-strasbg dot fr>
 
10
 * Copyright (C) 2009-2012 by Gilles Caulier <caulier dot gilles at gmail dot com>
11
11
 *
12
12
 * This program is free software; you can redistribute it
13
13
 * and/or modify it under the terms of the GNU General
41
41
 
42
42
public:
43
43
 
44
 
    ContentAwareResizeTool(QObject* parent);
 
44
    ContentAwareResizeTool(QObject* const parent);
45
45
    ~ContentAwareResizeTool();
46
46
 
47
47
private:
48
48
 
49
49
    void writeSettings();
50
50
    void readSettings();
51
 
    void prepareEffect();
 
51
    void preparePreview();
52
52
    void prepareFinal();
53
 
    void putPreviewData();
54
 
    void putFinalData();
 
53
    void setPreviewImage();
 
54
    void setFinalImage();
55
55
    void renderingFinished();
56
56
    void blockWidgetSignals(bool b);
57
57
    void disableSettings();
58
 
    void contentAwareResizeCore(DImg* image, int target_width, int target_height, const QImage& mask);
 
58
    void contentAwareResizeCore(DImg* const image, int target_width, int target_height, const QImage& mask);
59
59
    void enableMaskSettings(bool b);
60
60
    void enableContentAwareSettings(bool b);
61
61
    bool eventFilter(QObject*, QEvent*);
71
71
 
72
72
private:
73
73
 
74
 
    class ContentAwareResizeToolPriv;
75
 
    ContentAwareResizeToolPriv* const d;
 
74
    class Private;
 
75
    Private* const d;
76
76
};
77
77
 
78
78
} // namespace DigikamTransformImagePlugin