[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-kimageshop
Subject:    Re: Locking branch ready for testing
From:       Sven Langkamp <sven.langkamp () gmail ! com>
Date:       2012-07-10 13:01:09
Message-ID: CAAmsBfkNx_RCXo20vr-16kdswNcuktr9mivLdHpEohmsJXzyPA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On Mon, Jul 9, 2012 at 10:25 PM, Sven Langkamp <sven.langkamp@gmail.com>wrote:

> On Mon, Jul 9, 2012 at 12:14 AM, T Hall <tahall256@gmail.com> wrote:
>
>> On Sun, 8 Jul 2012 22:02:25 +0200
>> Sven Langkamp <sven.langkamp@gmail.com> wrote:
>>
>> > On Sun, Jul 8, 2012 at 4:39 PM, T Hall <tahall256@gmail.com> wrote:
>> >
>> > > Hi Sven,
>> > >
>> > > I've just compiled your branch and given it a quick test. These are
>> > > my observations so far:
>> > >
>> > > > - tools can be changed even if the active layer is
>> > > > locked/invisible, no longer grayed out (unless it's a shape layer)
>> > > Seems to work fine.
>> > > > - cursor/brush outline is still shown when the layer is
>> > > > locked/invisible
>> > > Works fine.
>> > > > - selections can be edited even if the current layer is locked,
>> > > > unless there is a locked local selection
>> > > Selection tools work. However, there are a couple of functions
>> > > (Deselect, Reselect and, Invert Selection), which aren't allowed on
>> > > locked layers (Greyed-out in menu, shortcuts do nothing). Since
>> > > these functions only edit selections, and don't affect the layer, I
>> > > think they should be allowed when the selected layer is locked.
>> > >
>> >
>> > Fixed, now just depends on the selection state.
>> Invert Selection is still greyed-out for locked layers. In theory, it
>> should work on any selection. It is available when the layer is not
>> locked, so it's definitely a locking issue. (I also think it *should*
>> work when nothing is selected. Invert nothing == select all. I fail to
>> see any advantage to blocking this possibility)
>>
>
> Fixed all the selection actions. The layer actions still are showing the
> old behavior, but that's not a regression that comes from the branch.
>
> We need someone to go through all of them and then set the correct
> behavior for each. It's quite easy so would be ideal for a junior job.
>
>> >
>> >
>> > > > - if the user tries to paint on a locked layer, Krita will show a
>> > > > small notification
>> > > Works fine. However, no notification is shown if the user tried to
>> > > edit the via a shortcut. e.g. pressing backspace to fill the layer
>> > > with the foreground colour (the application behaves correctly, in
>> > > that it doesn't allow the layer to be filled, it's only the
>> > > notification that's missing). I think it would be nice if the
>> > > notification appeared for such actions. (I haven't looked at how
>> > > locking a layer disables/blocks shortcuts/actions like this, so
>> > > don't know how difficult it would be to implement this)
>> > >
>> > > Additionally:
>> > > Items from the "Layer" menu (Mirror Horizontally, Mirror
>> > > Vertically, Shear Layer, Scale Layer, Rotate..., Convert Layer Type)
>> > > are still available for use on locked layers. Most of these are
>> > > destructive (not revertable except via undo), so definitely
>> > > shouldn't be allowed on locked layers.
>> > >
>> >
>> > This is kind of a problem. In KDE it usual that if the action is
>> > disabled menu entry and shortcut are disabled. So we could either
>> > have a notification or disable the menu entry. Not sure what to do
>> > there.
>> I guess we'll have to manage without notifications for
>> disallowed shortcuts. If the user is using the menus, the item being
>> greyed-out at least tells the user that the action is not permitted (as
>> opposed to the various possibilities when nothing appears to happen
>> when you press a shortcut: could be you pressed the wrong key, maybe it
>> did something but it wasn't visible/what you expected to see, etc.
>> etc.) Presumably if KDE is designed to not do anything for disabled
>> shortcuts/menu items, then any workaround would probably be rather
>> messy and more effort than it's worth.
>>
>> In the mean time, I notice the items from the Layer menu are still
>> active. I really don't think they should be.
>> >
>> >
>> >
>> > > The transform tool also exhibits some odd behaviour (What's
>> > > new :p). It allows you to make the transformation, as long as you
>> > > don't apply it (Seems reasonable). However, when you try to apply
>> > > it (and get the "Layer is locked" notification), it returns all the
>> > > handles to their original position.
>> > > 1. It appears you can't keep your transformation and either carry on
>> > > transforming or unlock the layer then apply it (if you really meant
>> > > to do the transformation, but forgot to unlock the layer first).
>> > > 2. Actually, if (before attempting further transformation) you
>> > > switch to another tool, then switch back to the transform tool,
>> > > then your transformation reappears as it was before you tried to
>> > > apply it (allowing you to carry on transforming, or unlock and
>> > > apply).
>> > >
>> > > I believe correct behaviour should be:
>> > > When you try to apply the transformation, handles remain in their
>> > > transformed position, allowing you to continue working with the
>> > > transformation (without having to switch to another tool and back).
>> > >
>> >
>> > Fixed, handles remain now.
>> Handles remain, but it isn't possible to manipulate them further
>> without switching to another tool, then switching back to the transform
>> tool. (try to apply, then unlock and apply now works, it's only if you
>> want to tweak the transformation after trying to apply that it still
>> doesn't work)
>>
>
> Works here.
>
>
>> >
>> >
>> > > Probably unrelated: I notice I can't make a selection when the
>> > > group layer is selected, be it unlocked or locked. Following the
>> > > logic of selection tools do not edit the selected layer, perhaps
>> > > they should be allowed? This could also be related to allowing the
>> > > transform tool to transform multiple layers at the same time by
>> > > operating on a group layer (feature request detailed in bug
>> > > 297927). Anyway, I don't think this is related to 'lockedness' or
>> > > specific to your branch, so I guess it's offtopic in this email.
>> > >
>> > >
>> > Fixed.
>> For a moment, I wondered if you'd fixed bug 297927, but I see we're now
>> back to being able to make selections with a group layer selected,
>> which at least means the bug is now accurately reproducible once more :)
>> I suspect when that bug is fixed, the group layer will need to take into
>> account the 'lockedness' of all it's child layers when being edited. (I
>> am thinking that transforming a whole group of layers should not be
>> allowed if one of them is locked.)
>> >
>> >
>> > > So to summarise:
>> > >  - Selection functions disallowed
>> > >  - No notifications shown for shortcuts/menu actions
>> > >  - Items from the Layer menu allowed to edit locked layers
>> > >  - Transform tool oddities
>> > >  - Incorrect notification for group layer locked
>> > >
>> > > Hope that helps.
>> > >
>> >
>> > It did :). Thanks a lot for the detailed testing.
>>
>>
>
Branch is now merged to master.

[Attachment #5 (text/html)]

<div class="gmail_quote">On Mon, Jul 9, 2012 at 10:25 PM, Sven Langkamp <span \
dir="ltr">&lt;<a href="mailto:sven.langkamp@gmail.com" \
target="_blank">sven.langkamp@gmail.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"> <div class="gmail_quote"><div><div class="h5">On Mon, Jul 9, \
2012 at 12:14 AM, T Hall <span dir="ltr">&lt;<a href="mailto:tahall256@gmail.com" \
target="_blank">tahall256@gmail.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">

<div>On Sun, 8 Jul 2012 22:02:25 +0200<br>
Sven Langkamp &lt;<a href="mailto:sven.langkamp@gmail.com" \
target="_blank">sven.langkamp@gmail.com</a>&gt; wrote:<br> <br>
&gt; On Sun, Jul 8, 2012 at 4:39 PM, T Hall &lt;<a href="mailto:tahall256@gmail.com" \
target="_blank">tahall256@gmail.com</a>&gt; wrote:<br> &gt;<br>
&gt; &gt; Hi Sven,<br>
&gt; &gt;<br>
&gt; &gt; I&#39;ve just compiled your branch and given it a quick test. These are<br>
&gt; &gt; my observations so far:<br>
&gt; &gt;<br>
&gt; &gt; &gt; - tools can be changed even if the active layer is<br>
&gt; &gt; &gt; locked/invisible, no longer grayed out (unless it&#39;s a shape \
layer)<br> &gt; &gt; Seems to work fine.<br>
&gt; &gt; &gt; - cursor/brush outline is still shown when the layer is<br>
&gt; &gt; &gt; locked/invisible<br>
&gt; &gt; Works fine.<br>
&gt; &gt; &gt; - selections can be edited even if the current layer is locked,<br>
&gt; &gt; &gt; unless there is a locked local selection<br>
&gt; &gt; Selection tools work. However, there are a couple of functions<br>
&gt; &gt; (Deselect, Reselect and, Invert Selection), which aren&#39;t allowed on<br>
&gt; &gt; locked layers (Greyed-out in menu, shortcuts do nothing). Since<br>
&gt; &gt; these functions only edit selections, and don&#39;t affect the layer, I<br>
&gt; &gt; think they should be allowed when the selected layer is locked.<br>
&gt; &gt;<br>
&gt;<br>
&gt; Fixed, now just depends on the selection state.<br>
</div>Invert Selection is still greyed-out for locked layers. In theory, it<br>
should work on any selection. It is available when the layer is not<br>
locked, so it&#39;s definitely a locking issue. (I also think it *should*<br>
work when nothing is selected. Invert nothing == select all. I fail to<br>
see any advantage to blocking this \
possibility)<br></blockquote></div></div><div><br>Fixed all the selection actions. \
The layer actions still are showing the old behavior, but that&#39;s not a regression \
that comes from the branch.<br>


<br>
We need someone to go through all of them and then set the correct 
behavior for each. It&#39;s quite easy so would be ideal for a junior \
job.</div><div><div class="h5"><blockquote class="gmail_quote" style="margin:0px 0px \
0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

<div>&gt;<br>
&gt;<br>
&gt; &gt; &gt; - if the user tries to paint on a locked layer, Krita will show a<br>
&gt; &gt; &gt; small notification<br>
&gt; &gt; Works fine. However, no notification is shown if the user tried to<br>
&gt; &gt; edit the via a shortcut. e.g. pressing backspace to fill the layer<br>
&gt; &gt; with the foreground colour (the application behaves correctly, in<br>
&gt; &gt; that it doesn&#39;t allow the layer to be filled, it&#39;s only the<br>
&gt; &gt; notification that&#39;s missing). I think it would be nice if the<br>
&gt; &gt; notification appeared for such actions. (I haven&#39;t looked at how<br>
&gt; &gt; locking a layer disables/blocks shortcuts/actions like this, so<br>
&gt; &gt; don&#39;t know how difficult it would be to implement this)<br>
&gt; &gt;<br>
&gt; &gt; Additionally:<br>
&gt; &gt; Items from the &quot;Layer&quot; menu (Mirror Horizontally, Mirror<br>
&gt; &gt; Vertically, Shear Layer, Scale Layer, Rotate..., Convert Layer Type)<br>
&gt; &gt; are still available for use on locked layers. Most of these are<br>
&gt; &gt; destructive (not revertable except via undo), so definitely<br>
&gt; &gt; shouldn&#39;t be allowed on locked layers.<br>
&gt; &gt;<br>
&gt;<br>
&gt; This is kind of a problem. In KDE it usual that if the action is<br>
&gt; disabled menu entry and shortcut are disabled. So we could either<br>
&gt; have a notification or disable the menu entry. Not sure what to do<br>
&gt; there.<br>
</div>I guess we&#39;ll have to manage without notifications for<br>
disallowed shortcuts. If the user is using the menus, the item being<br>
greyed-out at least tells the user that the action is not permitted (as<br>
opposed to the various possibilities when nothing appears to happen<br>
when you press a shortcut: could be you pressed the wrong key, maybe it<br>
did something but it wasn&#39;t visible/what you expected to see, etc.<br>
etc.) Presumably if KDE is designed to not do anything for disabled<br>
shortcuts/menu items, then any workaround would probably be rather<br>
messy and more effort than it&#39;s worth.<br>
<br>
In the mean time, I notice the items from the Layer menu are still<br>
active. I really don&#39;t think they should be.<br>
<div>&gt;<br>
&gt;<br>
&gt;<br>
&gt; &gt; The transform tool also exhibits some odd behaviour (What&#39;s<br>
&gt; &gt; new :p). It allows you to make the transformation, as long as you<br>
&gt; &gt; don&#39;t apply it (Seems reasonable). However, when you try to apply<br>
&gt; &gt; it (and get the &quot;Layer is locked&quot; notification), it returns all \
the<br> &gt; &gt; handles to their original position.<br>
&gt; &gt; 1. It appears you can&#39;t keep your transformation and either carry \
on<br> &gt; &gt; transforming or unlock the layer then apply it (if you really \
meant<br> &gt; &gt; to do the transformation, but forgot to unlock the layer \
first).<br> &gt; &gt; 2. Actually, if (before attempting further transformation) \
you<br> &gt; &gt; switch to another tool, then switch back to the transform tool,<br>
&gt; &gt; then your transformation reappears as it was before you tried to<br>
&gt; &gt; apply it (allowing you to carry on transforming, or unlock and<br>
&gt; &gt; apply).<br>
&gt; &gt;<br>
&gt; &gt; I believe correct behaviour should be:<br>
&gt; &gt; When you try to apply the transformation, handles remain in their<br>
&gt; &gt; transformed position, allowing you to continue working with the<br>
&gt; &gt; transformation (without having to switch to another tool and back).<br>
&gt; &gt;<br>
&gt;<br>
&gt; Fixed, handles remain now.<br>
</div>Handles remain, but it isn&#39;t possible to manipulate them further<br>
without switching to another tool, then switching back to the transform<br>
tool. (try to apply, then unlock and apply now works, it&#39;s only if you<br>
want to tweak the transformation after trying to apply that it still<br>
doesn&#39;t work)<br></blockquote></div></div><div><br>Works here.<br> \
</div><div><div class="h5"><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> <div>&gt;<br>
&gt;<br>
&gt; &gt; Probably unrelated: I notice I can&#39;t make a selection when the<br>
&gt; &gt; group layer is selected, be it unlocked or locked. Following the<br>
&gt; &gt; logic of selection tools do not edit the selected layer, perhaps<br>
&gt; &gt; they should be allowed? This could also be related to allowing the<br>
&gt; &gt; transform tool to transform multiple layers at the same time by<br>
&gt; &gt; operating on a group layer (feature request detailed in bug<br>
&gt; &gt; 297927). Anyway, I don&#39;t think this is related to &#39;lockedness&#39; \
or<br> &gt; &gt; specific to your branch, so I guess it&#39;s offtopic in this \
email.<br> &gt; &gt;<br>
&gt; &gt;<br>
&gt; Fixed.<br>
</div>For a moment, I wondered if you&#39;d fixed bug 297927, but I see we&#39;re \
now<br> back to being able to make selections with a group layer selected,<br>
which at least means the bug is now accurately reproducible once more :)<br>
I suspect when that bug is fixed, the group layer will need to take into<br>
account the &#39;lockedness&#39; of all it&#39;s child layers when being edited. \
(I<br> am thinking that transforming a whole group of layers should not be<br>
allowed if one of them is locked.)<br>
<div>&gt;<br>
&gt;<br>
&gt; &gt; So to summarise:<br>
&gt; &gt;  - Selection functions disallowed<br>
&gt; &gt;  - No notifications shown for shortcuts/menu actions<br>
&gt; &gt;  - Items from the Layer menu allowed to edit locked layers<br>
&gt; &gt;  - Transform tool oddities<br>
&gt; &gt;  - Incorrect notification for group layer locked<br>
&gt; &gt;<br>
&gt; &gt; Hope that helps.<br>
&gt; &gt;<br>
&gt;<br>
&gt; It did :). Thanks a lot for the detailed testing.<br>
<br>
</div></blockquote></div></div></div><br>
</blockquote></div><br>Branch is now merged to master.<br>



_______________________________________________
kimageshop mailing list
kimageshop@kde.org
https://mail.kde.org/mailman/listinfo/kimageshop


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic