~ubuntu-branches/ubuntu/saucy/digikam/saucy

« back to all changes in this revision

Viewing changes to imageplugins/coreplugin/ratiocrop/ratiocroptool.h

  • Committer: Bazaar Package Importer
  • Author(s): Christian Mangold
  • Date: 2010-04-09 21:30:01 UTC
  • mfrom: (1.2.28 upstream)
  • Revision ID: james.westby@ubuntu.com-20100409213001-4bfyibrd359rn7o3
Tags: 2:1.2.0-0ubuntu1
* New upstream release (LP: #560576)
* Remove all patches, fixed upstream
  - Remove quilt build-depend

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* ============================================================
2
 
 *
3
 
 * This file is a part of digiKam project
4
 
 * http://www.digikam.org
5
 
 *
6
 
 * Date        : 2004-12-06
7
 
 * Description : digiKam image editor Ratio Crop tool
8
 
 *
9
 
 * Copyright (C) 2007 by Jaromir Malenko <malenko at email dot cz>
10
 
 * Copyright (C) 2008 by Roberto Castagnola <roberto dot castagnola at gmail dot com>
11
 
 * Copyright (C) 2004-2009 by Gilles Caulier <caulier dot gilles at gmail dot com>
12
 
 *
13
 
 * This program is free software; you can redistribute it
14
 
 * and/or modify it under the terms of the GNU General
15
 
 * Public License as published by the Free Software Foundation;
16
 
 * either version 2, or (at your option)
17
 
 * any later version.
18
 
 *
19
 
 * This program is distributed in the hope that it will be useful,
20
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22
 
 * GNU General Public License for more details.
23
 
 *
24
 
 * ============================================================ */
25
 
 
26
 
#ifndef RATIOCROPTOOL_H
27
 
#define RATIOCROPTOOL_H
28
 
 
29
 
// Local includes
30
 
 
31
 
#include "editortool.h"
32
 
 
33
 
class QRect;
34
 
 
35
 
namespace DigikamImagesPluginCore
36
 
{
37
 
 
38
 
class RatioCropToolPriv;
39
 
 
40
 
class RatioCropTool : public Digikam::EditorTool
41
 
{
42
 
    Q_OBJECT
43
 
 
44
 
public:
45
 
 
46
 
    RatioCropTool(QObject *parent);
47
 
    ~RatioCropTool();
48
 
 
49
 
private:
50
 
 
51
 
    void readSettings();
52
 
    void writeSettings();
53
 
 
54
 
    void finalRendering();
55
 
    void applyRatioChanges(int a);
56
 
    void setRatioCBText(int orientation);
57
 
 
58
 
private Q_SLOTS:
59
 
 
60
 
    void slotMaxAspectRatio();
61
 
    void slotResetSettings();
62
 
 
63
 
    void slotCenterWidth();
64
 
    void slotCenterHeight();
65
 
    void slotXChanged(int x);
66
 
    void slotYChanged(int y);
67
 
    void slotWidthChanged(int w);
68
 
    void slotHeightChanged(int h);
69
 
    void slotCustomRatioChanged();
70
 
    void slotCustomNRatioChanged(int a);
71
 
    void slotCustomDRatioChanged(int a);
72
 
    void slotPreciseCropChanged(bool a);
73
 
    void slotOrientChanged(int o);
74
 
    void slotAutoOrientChanged(bool a);
75
 
    void slotRatioChanged(int a);
76
 
    void slotSelectionChanged(const QRect&);
77
 
    void slotSelectionOrientationChanged(int);
78
 
    void slotGuideTypeChanged(int t);
79
 
    void slotGoldenGuideTypeChanged();
80
 
 
81
 
private:
82
 
 
83
 
    void blockWidgetSignals(bool b);
84
 
 
85
 
private:
86
 
 
87
 
    RatioCropToolPriv* const d;
88
 
};
89
 
 
90
 
}  // namespace DigikamImagesPluginCore
91
 
 
92
 
#endif /* RATIOCROPTOOL_H */