Changeset View
Changeset View
Standalone View
Standalone View
libs/ui/kis_layer_manager.cc
Show First 20 Lines • Show All 569 Lines • ▼ Show 20 Line(s) | 567 | { | |||
---|---|---|---|---|---|
570 | KisLayerSP layer = activeLayer(); | 570 | KisLayerSP layer = activeLayer(); | ||
571 | if (!layer) return; | 571 | if (!layer) return; | ||
572 | 572 | | |||
573 | if (!m_view->blockUntilOperationsFinished(m_view->image())) return; | 573 | if (!m_view->blockUntilOperationsFinished(m_view->image())) return; | ||
574 | 574 | | |||
575 | m_view->image()->rotateNode(layer, radians); | 575 | m_view->image()->rotateNode(layer, radians); | ||
576 | } | 576 | } | ||
577 | 577 | | |||
578 | void KisLayerManager::shearLayer(double angleX, double angleY) | | |||
579 | { | | |||
580 | if (!m_view->image()) return; | | |||
581 | | ||||
582 | KisLayerSP layer = activeLayer(); | | |||
583 | if (!layer) return; | | |||
584 | | ||||
585 | if (!m_view->blockUntilOperationsFinished(m_view->image())) return; | | |||
586 | | ||||
587 | m_view->image()->shearNode(layer, angleX, angleY); | | |||
588 | } | | |||
589 | | ||||
590 | void KisLayerManager::flattenImage() | 578 | void KisLayerManager::flattenImage() | ||
591 | { | 579 | { | ||
592 | KisImageSP image = m_view->image(); | 580 | KisImageSP image = m_view->image(); | ||
593 | 581 | | |||
594 | if (!m_view->blockUntilOperationsFinished(image)) return; | 582 | if (!m_view->blockUntilOperationsFinished(image)) return; | ||
595 | 583 | | |||
596 | if (image) { | 584 | if (image) { | ||
597 | bool doIt = true; | 585 | bool doIt = true; | ||
▲ Show 20 Lines • Show All 248 Lines • Show Last 20 Lines |