selection handling plan

Boudewijn Rempt boud at valdyas.org
Tue May 24 14:49:30 CEST 2011


Here are my notes for the selection handling plan:

SELECTION PLAN

Big Refactors:

1) Remove KisSelection from KisImage; make default selection = selection mask on root group layer. The rool layer selection mask is the default selection for selection actions.
2) Separate pixel and vector selection into a pixel selection mask and vector selection mask
3) Re-enable mask visualisation: show both by default? Buttons in statusbar to switch visualisation on/off

Consequences of 1:

 * rename "local selection" to "selection mask"
 * create method to merge two masks together (idea: d&d with confirmation by dropping nodes on top of each other)
 * show rootlayer? (if so, fix bugs when d&d root layer)
 * display group layer selection masks always directly under the group layer, not mixed with the paint layers -- maybe separate hierarchy, or as icons on the group layer layerbox item?)
 * deactivate gui options to d&d move and delete the layer when the active layer is the group layer
 * the most local group's selection mask is the current selection, selection masks on groups are not active in a "merged" way

Consequences of 2:

 * make selection masks use grayscale colorspace instead of alpha
 * remove selection tools from toolbox; always paint on selection with the main tools
    * consequence: add a button on the top toolbar next to erase button to enable selection mode: when pressed, the paint tools will create a new selection mask on the root layer, or paint
                    on the root layer's selection mask if there's one.
 * allow to drag any shapes on vector selections
 

-- 
Boudewijn Rempt | http://www.valdyas.org, http://www.krita.org


More information about the kimageshop mailing list