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

« back to all changes in this revision

Viewing changes to core/imageplugins/transform/perspectivetool.cpp

  • Committer: Package Import Robot
  • Author(s): Rohan Garg
  • Date: 2012-11-26 18:24:20 UTC
  • mfrom: (1.9.1) (3.1.23 experimental)
  • Revision ID: package-import@ubuntu.com-20121126182420-qoy6z0nx4ai0wzcl
Tags: 4:3.0.0~beta3-0ubuntu1
* New upstream release
  - Add build-deps :  libhupnp-dev, libqtgstreamer-dev, libmagickcore-dev
* Merge from debian, remaining changes:
  - Make sure libqt4-opengl-dev, libgl1-mesa-dev and libglu1-mesa-dev only
    install on i386,amd64 and powerpc
  - Depend on libtiff-dev instead of libtiff4-dev
  - Drop digikam breaks/replaces kipi-plugins-common since we're past the
    LTS release now
  - digikam to recommend mplayerthumbs | ffmpegthumbs. We currently only
    have latter in the archives, even though former is also supposed to
    be part of kdemultimedia. (LP: #890059)
  - kipi-plugins to recommend www-browser rather than konqueror directly
    since 2.8 no direct usage of konqueror is present in the flickr
    plugin anymore (LP: #1011211)
  - Keep kubuntu_mysqld_executable_name.diff
  - Don't install libkipi translations
  - Keep deps on libcv-dev, libcvaux-dev
  - Keep split packaging of libraries
  - Replace icons from KDE 3 time in debian/xpm.d/*.xpm with the new
    versions (LP: #658047)
* Update debian/not-installed

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 * Date        : 2005-02-17
7
7
 * Description : a plugin to change image perspective .
8
8
 *
9
 
 * Copyright (C) 2005-2011 by Gilles Caulier <caulier dot gilles at gmail dot com>
10
 
 * Copyright (C) 2006-2011 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de>
 
9
 * Copyright (C) 2005-2012 by Gilles Caulier <caulier dot gilles at gmail dot com>
 
10
 * Copyright (C) 2006-2012 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de>
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
59
59
namespace DigikamTransformImagePlugin
60
60
{
61
61
 
62
 
class PerspectiveTool::PerspectiveToolPriv
 
62
class PerspectiveTool::Private
63
63
{
64
64
public:
65
65
 
66
 
    PerspectiveToolPriv() :
 
66
    Private() :
67
67
        newWidthLabel(0),
68
68
        newHeightLabel(0),
69
69
        topLeftAngleLabel(0),
97
97
    EditorToolSettings*  gboxSettings;
98
98
};
99
99
 
100
 
const QString PerspectiveTool::PerspectiveToolPriv::configGroupName("perspective Tool");
101
 
const QString PerspectiveTool::PerspectiveToolPriv::configDrawWhileMovingEntry("Draw While Moving");
102
 
const QString PerspectiveTool::PerspectiveToolPriv::configDrawGridEntry("Draw Grid");
103
 
const QString PerspectiveTool::PerspectiveToolPriv::configInverseTransformationEntry("Inverse Transformation");
 
100
const QString PerspectiveTool::Private::configGroupName("perspective Tool");
 
101
const QString PerspectiveTool::Private::configDrawWhileMovingEntry("Draw While Moving");
 
102
const QString PerspectiveTool::Private::configDrawGridEntry("Draw Grid");
 
103
const QString PerspectiveTool::Private::configInverseTransformationEntry("Inverse Transformation");
104
104
 
105
105
// --------------------------------------------------------
106
106
 
107
 
PerspectiveTool::PerspectiveTool(QObject* parent)
 
107
PerspectiveTool::PerspectiveTool(QObject* const parent)
108
108
    : EditorTool(parent),
109
 
      d(new PerspectiveToolPriv)
 
109
      d(new Private)
110
110
{
111
111
    setObjectName("perspective");
112
112
    setToolName(i18n("Perspective"));
127
127
    // -------------------------------------------------------------
128
128
 
129
129
    QString temp;
130
 
    ImageIface iface(0, 0);
 
130
    ImageIface iface;
131
131
 
132
132
    d->gboxSettings = new EditorToolSettings;
133
133
    d->gboxSettings->setTools(EditorToolSettings::ColorGuide);
135
135
    // -------------------------------------------------------------
136
136
 
137
137
    QLabel* label1   = new QLabel(i18n("New width:"));
138
 
    d->newWidthLabel = new QLabel(temp.setNum( iface.originalWidth()) + i18n(" px"));
 
138
    d->newWidthLabel = new QLabel(temp.setNum( iface.originalSize().width()) + i18n(" px"));
139
139
    d->newWidthLabel->setAlignment( Qt::AlignBottom | Qt::AlignRight );
140
140
 
141
141
    QLabel* label2    = new QLabel(i18n("New height:"));
142
 
    d->newHeightLabel = new QLabel(temp.setNum( iface.originalHeight()) + i18n(" px"));
 
142
    d->newHeightLabel = new QLabel(temp.setNum( iface.originalSize().height()) + i18n(" px"));
143
143
    d->newHeightLabel->setAlignment( Qt::AlignBottom | Qt::AlignRight );
144
144
 
145
145
    // -------------------------------------------------------------