~ubuntu-branches/ubuntu/intrepid/digikam/intrepid

« back to all changes in this revision

Viewing changes to digikam/imageplugins/coreplugin/ratiocrop/imageeffect_ratiocrop.h

  • Committer: Bazaar Package Importer
  • Author(s): Mark Purcell
  • Date: 2008-07-17 20:25:39 UTC
  • mfrom: (1.2.15 upstream) (3.1.2 lenny)
  • Revision ID: james.westby@ubuntu.com-20080717202539-6n7dtirbkoo7qvhd
Tags: 2:0.9.4-1
* New upstream release
  - digiKam 0.9.4 Release Plan (KDE3) ~ 13 July 08 (Closes: #490144)
* DEB_CONFIGURE_EXTRA_FLAGS := --without-included-sqlite3
* Debhelper compatibility level V7
* Install pixmaps in debian/*.install
* Add debian/digikam.lintian-overrides

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 * Date        : 2004-12-06
7
7
 * Description : digiKam image editor Ratio Crop tool
8
8
 *
9
 
 * Copyright (C) 2007 by Jaromir Malenko <malenko at email.cz>
10
 
 * Copyright (C) 2004-2007 by Gilles Caulier <caulier dot gilles at gmail dot com>
 
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-2008 by Gilles Caulier <caulier dot gilles at gmail dot com>
11
12
 *
12
13
 * This program is free software; you can redistribute it
13
14
 * and/or modify it under the terms of the GNU General
54
55
    ~ImageEffect_RatioCrop();
55
56
 
56
57
private:
57
 
    
58
 
    void readSettings(void);
59
 
    void writeSettings(void);
60
 
    
 
58
 
 
59
    void readSettings();
 
60
    void writeSettings();
 
61
 
61
62
    void applyRatioChanges(int a);
62
 
    
 
63
    void setRatioCBText(int orientation);
 
64
 
63
65
private slots:
64
66
 
65
67
    void slotUser1();
66
68
    void slotDefault();
67
69
    void slotOk();
68
70
 
69
 
    void slotCenterWidth(void);
70
 
    void slotCenterHeight(void);
 
71
    void slotCenterWidth();
 
72
    void slotCenterHeight();
71
73
    void slotXChanged(int x);
72
74
    void slotYChanged(int y);
73
75
    void slotWidthChanged(int w);
74
76
    void slotHeightChanged(int h);
75
 
    void slotCustomRatioChanged(void);
 
77
    void slotCustomRatioChanged();
 
78
    void slotCustomNRatioChanged(int a);
 
79
    void slotCustomDRatioChanged(int a);
 
80
    void slotPreciseCropChanged(bool a);
76
81
    void slotOrientChanged(int o);
77
82
    void slotAutoOrientChanged(bool a);
78
83
    void slotRatioChanged(int a);
79
84
    void slotSelectionChanged(QRect rect );
80
 
    void slotSelectionWidthChanged(int newWidth);
81
 
    void slotSelectionHeightChanged(int newHeight);
82
85
    void slotSelectionOrientationChanged(int);
83
86
    void slotGuideTypeChanged(int t);
84
 
    void slotGoldenGuideTypeChanged(void);
 
87
    void slotGoldenGuideTypeChanged();
85
88
 
86
89
private:
87
 
    
 
90
 
 
91
    bool                  m_originalIsLandscape;
 
92
 
88
93
    QLabel               *m_customLabel1;
89
94
    QLabel               *m_customLabel2;
90
95
    QLabel               *m_orientLabel;
91
96
    QLabel               *m_colorGuideLabel;
92
 
    
 
97
 
93
98
    QComboBox            *m_ratioCB;
94
99
    QComboBox            *m_orientCB;
95
100
    QComboBox            *m_guideLinesCB;
96
 
    
 
101
 
97
102
    QPushButton          *m_centerWidth;
98
103
    QPushButton          *m_centerHeight;
99
 
    
 
104
 
100
105
    QCheckBox            *m_goldenSectionBox;
101
106
    QCheckBox            *m_goldenSpiralSectionBox;
102
107
    QCheckBox            *m_goldenSpiralBox;
104
109
    QCheckBox            *m_flipHorBox;
105
110
    QCheckBox            *m_flipVerBox;
106
111
    QCheckBox            *m_autoOrientation;
107
 
    
 
112
    QCheckBox            *m_preciseCrop;
 
113
 
108
114
    QSpinBox             *m_guideSize;
109
 
    
 
115
 
110
116
    KIntNumInput         *m_widthInput;
111
117
    KIntNumInput         *m_heightInput;
112
 
    KIntNumInput         *m_xInput;    
113
 
    KIntNumInput         *m_yInput;    
114
 
     
 
118
    KIntNumInput         *m_xInput;
 
119
    KIntNumInput         *m_yInput;
 
120
 
115
121
    KIntSpinBox          *m_customRatioNInput;
116
122
    KIntSpinBox          *m_customRatioDInput;
117
 
    
 
123
 
118
124
    KColorButton         *m_guideColorBt;
119
 
    
 
125
 
120
126
    ImageSelectionWidget *m_imageSelectionWidget;
121
127
};
122
128