Changeset View
Changeset View
Standalone View
Standalone View
plugins/tools/tool_transform2/kis_tool_transform.cc
Show First 20 Lines • Show All 853 Lines • ▼ Show 20 Line(s) | 841 | { | |||
---|---|---|---|---|---|
854 | * FIXME: The transform tool is not completely asynchronous, it | 854 | * FIXME: The transform tool is not completely asynchronous, it | ||
855 | * needs the content of the layer for creation of the stroke | 855 | * needs the content of the layer for creation of the stroke | ||
856 | * strategy. It means that we cannot start a new stroke until the | 856 | * strategy. It means that we cannot start a new stroke until the | ||
857 | * previous one is finished. Ideally, we should create the | 857 | * previous one is finished. Ideally, we should create the | ||
858 | * m_selectedPortionCache and m_selectionPath somewhere in the | 858 | * m_selectedPortionCache and m_selectionPath somewhere in the | ||
859 | * stroke and pass it to the tool somehow. But currently, we will | 859 | * stroke and pass it to the tool somehow. But currently, we will | ||
860 | * just disable starting a new stroke asynchronously | 860 | * just disable starting a new stroke asynchronously | ||
861 | */ | 861 | */ | ||
862 | | ||||
863 | if(nodePaintAbility() == NodePaintAbility::UNPAINTABLE) { | ||||
864 | KisCanvas2 *kisCanvas = dynamic_cast<KisCanvas2*>(canvas()); | ||||
865 | kisCanvas->viewManager()-> | ||||
866 | showFloatingMessage( | ||||
867 | i18nc("floating message in transformation tool", | ||||
868 | "Unable to transform the layer"), | ||||
869 | QIcon(), 4000, KisFloatingMessage::High); | ||||
870 | | ||||
871 | return; | ||||
872 | } | ||||
873 | | ||||
862 | if (image()->tryBarrierLock()) { | 874 | if (image()->tryBarrierLock()) { | ||
863 | image()->unlock(); | 875 | image()->unlock(); | ||
864 | } else { | 876 | } else { | ||
865 | return; | 877 | return; | ||
866 | } | 878 | } | ||
867 | 879 | | |||
868 | /** | 880 | /** | ||
869 | * We must ensure that the currently selected subtree | 881 | * We must ensure that the currently selected subtree | ||
▲ Show 20 Lines • Show All 443 Lines • Show Last 20 Lines |