Changeset View
Changeset View
Standalone View
Standalone View
plugins/tools/defaulttool/defaulttool/DefaultTool.cpp
Show First 20 Lines • Show All 282 Lines • ▼ Show 20 Line(s) | 280 | { | |||
---|---|---|---|---|---|
283 | } | 283 | } | ||
284 | return false; | 284 | return false; | ||
285 | } | 285 | } | ||
286 | 286 | | |||
287 | private: | 287 | private: | ||
288 | QPointer<KoSelection> m_selection; | 288 | QPointer<KoSelection> m_selection; | ||
289 | }; | 289 | }; | ||
290 | 290 | | |||
291 | DefaultTool::DefaultTool(KoCanvasBase *canvas) | 291 | DefaultTool::DefaultTool(KoCanvasBase *canvas, bool connectToSelectedShapesProxy) | ||
292 | : KoInteractionTool(canvas) | 292 | : KoInteractionTool(canvas) | ||
293 | , m_lastHandle(KoFlake::NoHandle) | 293 | , m_lastHandle(KoFlake::NoHandle) | ||
294 | , m_hotPosition(KoFlake::TopLeft) | 294 | , m_hotPosition(KoFlake::TopLeft) | ||
295 | , m_mouseWasInsideHandles(false) | 295 | , m_mouseWasInsideHandles(false) | ||
296 | , m_decorator(0) | 296 | , m_decorator(0) | ||
297 | , m_selectionHandler(new SelectionHandler(this)) | 297 | , m_selectionHandler(new SelectionHandler(this)) | ||
298 | , m_tabbedOptionWidget(0) | 298 | , m_tabbedOptionWidget(0) | ||
299 | { | 299 | { | ||
Show All 35 Lines | |||||
335 | m_sizeCursors[1] = Qt::SizeBDiagCursor; | 335 | m_sizeCursors[1] = Qt::SizeBDiagCursor; | ||
336 | m_sizeCursors[2] = Qt::SizeHorCursor; | 336 | m_sizeCursors[2] = Qt::SizeHorCursor; | ||
337 | m_sizeCursors[3] = Qt::SizeFDiagCursor; | 337 | m_sizeCursors[3] = Qt::SizeFDiagCursor; | ||
338 | m_sizeCursors[4] = Qt::SizeVerCursor; | 338 | m_sizeCursors[4] = Qt::SizeVerCursor; | ||
339 | m_sizeCursors[5] = Qt::SizeBDiagCursor; | 339 | m_sizeCursors[5] = Qt::SizeBDiagCursor; | ||
340 | m_sizeCursors[6] = Qt::SizeHorCursor; | 340 | m_sizeCursors[6] = Qt::SizeHorCursor; | ||
341 | m_sizeCursors[7] = Qt::SizeFDiagCursor; | 341 | m_sizeCursors[7] = Qt::SizeFDiagCursor; | ||
342 | 342 | | |||
343 | if (connectToSelectedShapesProxy) { | ||||
343 | connect(canvas->selectedShapesProxy(), SIGNAL(selectionChanged()), this, SLOT(updateActions())); | 344 | connect(canvas->selectedShapesProxy(), SIGNAL(selectionChanged()), this, SLOT(updateActions())); | ||
344 | } | 345 | } | ||
346 | } | ||||
345 | 347 | | |||
346 | DefaultTool::~DefaultTool() | 348 | DefaultTool::~DefaultTool() | ||
347 | { | 349 | { | ||
348 | } | 350 | } | ||
349 | 351 | | |||
350 | void DefaultTool::slotActivateEditFillGradient(bool value) | 352 | void DefaultTool::slotActivateEditFillGradient(bool value) | ||
351 | { | 353 | { | ||
352 | if (value) { | 354 | if (value) { | ||
▲ Show 20 Lines • Show All 1375 Lines • Show Last 20 Lines |