14.17: the Layers panel grays only for what lasts
This commit is contained in:
12 files changed
+156
-12
No files matched your search
@@ -263,6 +263,13 @@ void EditorSession::endEdit()
|
||||
notify();
|
||||
}
|
||||
|
||||
bool EditorSession::layersLookEditable() const
|
||||
{
|
||||
return !m_selectionAmountOperation && !m_colorRange && !m_textDraft && m_document && !showsBusy() && !m_isImporting && !m_showsNewDocument
|
||||
&& !m_showsImporter && !m_renamingLayerID && !(m_transformEdit && m_transformEdit->persistent) && !m_cropRect && !m_gradientEdit && !m_hueSaturation
|
||||
&& !m_levels && !m_filterEdit && !m_adjustmentEditingID;
|
||||
}
|
||||
|
||||
bool EditorSession::canEditLayers() const
|
||||
{
|
||||
return !m_selectionAmountOperation && !m_colorRange && !m_textDraft && m_document && !m_brushStroke && !m_warpStroke && !m_isProjectBusy && !m_isImporting
|
||||
|
||||
@@ -217,6 +217,8 @@ public:
|
||||
void beginEdit(const QString &name);
|
||||
void endEdit();
|
||||
bool canEditLayers() const;
|
||||
// The panel grays for what lasts, not for a stroke.
|
||||
bool layersLookEditable() const;
|
||||
void addBlankLayer();
|
||||
void deleteLayer(QUuid id);
|
||||
void deleteActiveLayer();
|
||||
|
||||
Reference in new issue
Block a user