109
108
// -------------------------------------------------------------
111
KSeparator *line = new KSeparator (Qt::Horizontal, m_gboxSettings->plainPage());
110
KSeparator *line = new KSeparator (Qt::Horizontal, m_gboxSettings->plainPage());
113
QLabel *angleLabel = new QLabel(i18n("Angles (in degrees):"), m_gboxSettings->plainPage());
114
QLabel *label3 = new QLabel(i18n(" Top left:"), m_gboxSettings->plainPage());
115
m_topLeftAngleLabel = new QLabel(m_gboxSettings->plainPage());
116
QLabel *label4 = new QLabel(i18n(" Top right:"), m_gboxSettings->plainPage());
117
m_topRightAngleLabel = new QLabel(m_gboxSettings->plainPage());
118
QLabel *label5 = new QLabel(i18n(" Bottom left:"), m_gboxSettings->plainPage());
119
m_bottomLeftAngleLabel = new QLabel(m_gboxSettings->plainPage());
120
QLabel *label6 = new QLabel(i18n(" Bottom right:"), m_gboxSettings->plainPage());
112
QLabel *angleLabel = new QLabel(i18n("Angles (in degrees):"), m_gboxSettings->plainPage());
113
QLabel *label3 = new QLabel(i18n(" Top left:"), m_gboxSettings->plainPage());
114
m_topLeftAngleLabel = new QLabel(m_gboxSettings->plainPage());
115
QLabel *label4 = new QLabel(i18n(" Top right:"), m_gboxSettings->plainPage());
116
m_topRightAngleLabel = new QLabel(m_gboxSettings->plainPage());
117
QLabel *label5 = new QLabel(i18n(" Bottom left:"), m_gboxSettings->plainPage());
118
m_bottomLeftAngleLabel = new QLabel(m_gboxSettings->plainPage());
119
QLabel *label6 = new QLabel(i18n(" Bottom right:"), m_gboxSettings->plainPage());
121
120
m_bottomRightAngleLabel = new QLabel(m_gboxSettings->plainPage());
123
122
// -------------------------------------------------------------
160
160
gridLayout->addWidget(line2, 8, 0, 1, 3);
161
161
gridLayout->addWidget(m_drawWhileMovingCheckBox, 9, 0, 1, 3);
162
162
gridLayout->addWidget(m_drawGridCheckBox, 10, 0, 1, 3);
163
gridLayout->addWidget(label7, 11, 0, 1, 1);
164
gridLayout->addWidget(m_guideColorBt, 11, 2, 1, 1);
165
gridLayout->addWidget(space, 12, 0, 1, 3);
166
gridLayout->addWidget(label8, 13, 0, 1, 1);
167
gridLayout->addWidget(m_guideSize, 13, 2, 1, 1);
163
gridLayout->addWidget(m_inverseTransformation, 11, 0, 1, 3);
164
gridLayout->addWidget(label7, 12, 0, 1, 1);
165
gridLayout->addWidget(m_guideColorBt, 12, 2, 1, 1);
166
gridLayout->addWidget(space, 13, 0, 1, 3);
167
gridLayout->addWidget(label8, 14, 0, 1, 1);
168
gridLayout->addWidget(m_guideSize, 14, 2, 1, 1);
168
169
gridLayout->setColumnStretch(1, 10);
169
gridLayout->setRowStretch(14, 10);
170
gridLayout->setRowStretch(15, 10);
171
172
setToolSettings(m_gboxSettings);
174
175
// -------------------------------------------------------------
176
connect(m_previewWidget, SIGNAL(signalPerspectiveChanged(QRect, float, float, float, float)),
177
this, SLOT(slotUpdateInfo(QRect, float, float, float, float)));
177
connect(m_previewWidget, SIGNAL(signalPerspectiveChanged(const QRect&, float, float, float, float)),
178
this, SLOT(slotUpdateInfo(const QRect&, float, float, float, float)));
179
180
connect(m_drawWhileMovingCheckBox, SIGNAL(toggled(bool)),
180
181
m_previewWidget, SLOT(slotToggleDrawWhileMoving(bool)));
202
206
m_drawGridCheckBox->setChecked(group.readEntry("Draw Grid", false));
203
207
m_guideColorBt->setColor(group.readEntry("Guide Color", defaultGuideColor));
204
208
m_guideSize->setValue(group.readEntry("Guide Width", 1));
209
m_inverseTransformation->setChecked(group.readEntry("Inverse Transformation", false));
205
210
m_previewWidget->slotToggleDrawWhileMoving(m_drawWhileMovingCheckBox->isChecked());
206
211
m_previewWidget->slotToggleDrawGrid(m_drawGridCheckBox->isChecked());
207
212
m_previewWidget->slotChangeGuideColor(m_guideColorBt->color());
231
237
kapp->restoreOverrideCursor();
234
void PerspectiveTool::slotUpdateInfo(QRect newSize, float topLeftAngle, float topRightAngle,
235
float bottomLeftAngle, float bottomRightAngle)
240
void PerspectiveTool::slotUpdateInfo(const QRect& newSize, float topLeftAngle, float topRightAngle,
241
float bottomLeftAngle, float bottomRightAngle)
238
244
m_newWidthLabel->setText(temp.setNum(newSize.width()) + i18n(" px"));