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

List:       kde-kimageshop
Subject:    Re: A first part of the layers/masks patch
From:       Dmitry Kazakov <dimula73 () gmail ! com>
Date:       2009-09-26 17:46:05
Message-ID: ae32c1ef0909261046h71832ea2n5512858ca70126ea () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On Sat, Sep 26, 2009 at 10:17 AM, Boudewijn Rempt <boud@valdyas.org> wrote:

> On Saturday 26 September 2009, Dmitry Kazakov wrote:
> > > Yes, all selection tools will not work on the mask but on the
> selection.
> > > So even if you have selected the mask all changes with selection tools
> > > will go to the global selection.
> >
> > Exactly!
> >
> > > We might want to kill the actions in the mask menu. See the other
> thread.
> >
> > We should kill them in layerBox and share them with mask manager.
> >
>
> Actually, the actions aren't implemented in the layerbox, but in the node
> model. The layerbox only refers the the node manager (at least, it was that
> way when I implemented it, I should check again.) But generally speaking, I
> prefer the gui to be in the layerbox.
>

What we have now:

KisMaskManager - has it's own KActions for all the mask operations
KisLayerManager - has it's own KActions for all the layer operations
KisLayerBox - has it's own KActions for all the layer ans mask operations
(and some of them are created twice even)
This means that "Filter Layer..." menu-item has three(!) clones.

You don't think it's normal, do you?


As i remember KAction is created exactly to ensure that an action is created
ONCE only. We just break this idea.

How it should be, i think:
KisMaskManager - has it's own KActions for all the mask operations
KisLayerManager - has it's own KActions for all the layer operations
KisLayerBox - just gets pointers for actions from KisMaskManager and
KisLayerManager. It must not create any KAction related to masks or layers.


PS:

By the way, we are getting  "dividends" from this actions-duplication
already. Filter masks have different names in menubar and in layerbox's
context-menu.
"Filter Mask..." against "Effect Mask...".

And don't even try to simply change a string in KisMaskManager - this will
be just another "dirty hack" that will help us to make our codebase
completely unmaintainable. =(

-- 
Dmitry Kazakov

[Attachment #5 (text/html)]

<br><br><div class="gmail_quote">On Sat, Sep 26, 2009 at 10:17 AM, Boudewijn Rempt \
<span dir="ltr">&lt;<a href="mailto:boud@valdyas.org">boud@valdyas.org</a>&gt;</span> \
wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, \
204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <div class="im">On Saturday 26 \
September 2009, Dmitry Kazakov wrote:<br> </div><div><div></div><div class="h5">&gt; \
&gt; Yes, all selection tools will not work on the mask but on the selection.<br> \
&gt; &gt; So even if you have selected the mask all changes with selection tools<br> \
&gt; &gt; will go to the global selection.<br> &gt;<br>
&gt; Exactly!<br>
&gt;<br>
&gt; &gt; We might want to kill the actions in the mask menu. See the other \
thread.<br> &gt;<br>
&gt; We should kill them in layerBox and share them with mask manager.<br>
&gt;<br>
<br>
</div></div>Actually, the actions aren&#39;t implemented in the layerbox, but in the \
node<br> model. The layerbox only refers the the node manager (at least, it was \
that<br> way when I implemented it, I should check again.) But generally speaking, \
I<br> prefer the gui to be in the layerbox.<br>
</blockquote></div><br>What we have now:<br><br>KisMaskManager - has it&#39;s own \
KActions for all the mask operations<br>KisLayerManager - has it&#39;s own KActions \
for all the layer operations<br>KisLayerBox - has it&#39;s own KActions for all the \
layer ans mask operations (and some of them are created twice even)<br> This means \
that &quot;Filter Layer...&quot; menu-item has three(!) clones.<br><br>You don&#39;t \
think it&#39;s normal, do you?<br><br><br>As i remember KAction is created exactly to \
ensure that an action is created ONCE only. We just break this idea.<br> <br>How it \
should be, i think:<br>KisMaskManager - has it&#39;s own KActions for all the mask \
operations<br> KisLayerManager - has it&#39;s own KActions for all the layer \
operations<br> KisLayerBox - just gets pointers for actions from KisMaskManager and \
KisLayerManager. It must not create any KAction related to masks or \
layers.<br><br><br>PS:<br><br>By the way, we are getting   &quot;dividends&quot; from \
this actions-duplication already. Filter masks have different names in menubar and in \
layerbox&#39;s context-menu.<br> &quot;Filter Mask...&quot; against &quot;Effect \
Mask...&quot;.<br><br>And don&#39;t even try to simply change a string in \
KisMaskManager - this will be just another &quot;dirty hack&quot; that will help us \
to make our codebase completely unmaintainable. =(<br clear="all"> <br>-- <br>Dmitry \
Kazakov<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