7
7
* Description : digiKam image editor Ratio Crop tool
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>
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();
58
void readSettings(void);
59
void writeSettings(void);
61
62
void applyRatioChanges(int a);
63
void setRatioCBText(int orientation);
66
68
void slotDefault();
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();
91
bool m_originalIsLandscape;
88
93
QLabel *m_customLabel1;
89
94
QLabel *m_customLabel2;
90
95
QLabel *m_orientLabel;
91
96
QLabel *m_colorGuideLabel;
93
98
QComboBox *m_ratioCB;
94
99
QComboBox *m_orientCB;
95
100
QComboBox *m_guideLinesCB;
97
102
QPushButton *m_centerWidth;
98
103
QPushButton *m_centerHeight;
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;
112
QCheckBox *m_preciseCrop;
108
114
QSpinBox *m_guideSize;
110
116
KIntNumInput *m_widthInput;
111
117
KIntNumInput *m_heightInput;
112
KIntNumInput *m_xInput;
113
KIntNumInput *m_yInput;
118
KIntNumInput *m_xInput;
119
KIntNumInput *m_yInput;
115
121
KIntSpinBox *m_customRatioNInput;
116
122
KIntSpinBox *m_customRatioDInput;
118
124
KColorButton *m_guideColorBt;
120
126
ImageSelectionWidget *m_imageSelectionWidget;