Commit d2287193 authored by Dmitry Kazakov's avatar Dmitry Kazakov

Add move to top/bottom of parent layer functionality to layer docker

This is a recovered copy of the patch:
https://phabricator.kde.org/D15577
parent 948a30ae
......@@ -3556,6 +3556,16 @@
<isCheckable>false</isCheckable>
<statusTip></statusTip>
</Action>
<Action name="move_layer_up_top">
<icon>arrowupblr</icon>
<text>Move Layer or Mask Up to Top</text>
<whatsThis></whatsThis>
<toolTip>Move Layer or Mask Up to Top</toolTip>
<iconText></iconText>
<shortcut>Ctrl+Shift+PgUp</shortcut>
<isCheckable>false</isCheckable>
<statusTip></statusTip>
</Action>
<Action name="move_layer_up">
<icon>arrowupblr</icon>
<text>Move Layer or Mask Up</text>
......@@ -3566,6 +3576,16 @@
<isCheckable>false</isCheckable>
<statusTip></statusTip>
</Action>
<Action name="move_layer_down_bottom">
<icon>arrowdown</icon>
<text>Move Layer or Mask Down to Bottom</text>
<whatsThis></whatsThis>
<toolTip>Move Layer or Mask Down to Bottom</toolTip>
<iconText></iconText>
<shortcut>Ctrl+Shift+PgDown</shortcut>
<isCheckable>false</isCheckable>
<statusTip></statusTip>
</Action>
<Action name="move_layer_down">
<icon>arrowdown</icon>
<text>Move Layer or Mask Down</text>
......
......@@ -4,7 +4,9 @@
<file>dark_addlayer.png</file>
<file>dark_addtofolder.png</file>
<file>dark_arrowdown.png</file>
<file>dark_arrowdownbottom.png</file>
<file>dark_arrowupblr.png</file>
<file>dark_arrowuptop.png</file>
<file>dark_deletelayer.png</file>
<file>dark_duplicatelayer.png</file>
<file>dark_properties.png</file>
......@@ -12,7 +14,9 @@
<file>light_addlayer.png</file>
<file>light_addtofolder.png</file>
<file>light_arrowdown.png</file>
<file>light_arrowdownbottom.png</file>
<file>light_arrowupblr.png</file>
<file>light_arrowuptop.png</file>
<file>light_deletelayer.png</file>
<file>light_duplicatelayer.png</file>
<file>light_properties.png</file>
......
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="22"
height="22"
viewBox="0 0 22 22.000001"
id="svg2"
version="1.1"
inkscape:version="0.92.3 (2405546, 2018-03-11)"
sodipodi:docname="dark_arrowdownbottom.svg"
inkscape:export-filename="/home/razvan/Documents/projects/dev/phabricator-krita/krita/pics/layerbox/dark_arrowuptop.png"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96">
<defs
id="defs4">
<filter
style="color-interpolation-filters:sRGB"
inkscape:label="Drop Shadow"
id="filter5026">
<feFlood
flood-opacity="0.501961"
flood-color="rgb(0,0,0)"
result="flood"
id="feFlood5028" />
<feComposite
in="flood"
in2="SourceGraphic"
operator="in"
result="composite1"
id="feComposite5030" />
<feGaussianBlur
in="composite1"
stdDeviation="0"
result="blur"
id="feGaussianBlur5032" />
<feOffset
dx="2.77556e-017"
dy="-2"
result="offset"
id="feOffset5034" />
<feComposite
in="SourceGraphic"
in2="offset"
operator="over"
result="composite2"
id="feComposite5036" />
</filter>
<filter
style="color-interpolation-filters:sRGB"
inkscape:label="Drop Shadow"
id="filter6180">
<feFlood
flood-opacity="0.501961"
flood-color="rgb(0,0,0)"
result="flood"
id="feFlood6182" />
<feComposite
in="flood"
in2="SourceGraphic"
operator="in"
result="composite1"
id="feComposite6184" />
<feGaussianBlur
in="composite1"
stdDeviation="0"
result="blur"
id="feGaussianBlur6186" />
<feOffset
dx="2.77556e-017"
dy="-2"
result="offset"
id="feOffset6188" />
<feComposite
in="SourceGraphic"
in2="offset"
operator="over"
result="composite2"
id="feComposite6190" />
</filter>
<filter
style="color-interpolation-filters:sRGB"
inkscape:label="Drop Shadow"
id="filter7302">
<feFlood
flood-opacity="0.501961"
flood-color="rgb(0,0,0)"
result="flood"
id="feFlood7304" />
<feComposite
in="flood"
in2="SourceGraphic"
operator="in"
result="composite1"
id="feComposite7306" />
<feGaussianBlur
in="composite1"
stdDeviation="0"
result="blur"
id="feGaussianBlur7308" />
<feOffset
dx="0"
dy="2"
result="offset"
id="feOffset7310" />
<feComposite
in="SourceGraphic"
in2="offset"
operator="over"
result="composite2"
id="feComposite7312" />
</filter>
<filter
style="color-interpolation-filters:sRGB"
inkscape:label="Drop Shadow"
id="filter7350">
<feFlood
flood-opacity="0.501961"
flood-color="rgb(0,0,0)"
result="flood"
id="feFlood7352" />
<feComposite
in="flood"
in2="SourceGraphic"
operator="in"
result="composite1"
id="feComposite7354" />
<feGaussianBlur
in="composite1"
stdDeviation="0"
result="blur"
id="feGaussianBlur7356" />
<feOffset
dx="0"
dy="-2"
result="offset"
id="feOffset7358" />
<feComposite
in="SourceGraphic"
in2="offset"
operator="over"
result="composite2"
id="feComposite7360" />
</filter>
</defs>
<sodipodi:namedview
id="base"
pagecolor="#474747"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:zoom="32"
inkscape:cx="13.417004"
inkscape:cy="10.77184"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="true"
units="px"
inkscape:showpageshadow="false"
showborder="true"
inkscape:window-width="1920"
inkscape:window-height="1056"
inkscape:window-x="1920"
inkscape:window-y="0"
inkscape:window-maximized="1"
objecttolerance="10000"
guidetolerance="10000"
inkscape:snap-perpendicular="true"
inkscape:snap-tangential="true"
inkscape:snap-path-clip="true"
inkscape:snap-path-mask="true"
gridtolerance="10000"
showguides="false">
<inkscape:grid
type="xygrid"
id="grid3336"
dotted="false"
empspacing="8"
snapvisiblegridlinesonly="false"
enabled="true"
visible="true"
empcolor="#aaaaff"
empopacity="0.25098039"
color="#7878ff"
opacity="0.1254902"
spacingx="1"
spacingy="1" />
</sodipodi:namedview>
<metadata
id="metadata7">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
<dc:creator>
<cc:Agent>
<dc:title>Andrei Rudenko</dc:title>
</cc:Agent>
</dc:creator>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:groupmode="layer"
id="layer1"
inkscape:label="Layer 1"
transform="translate(0,-10)">
<g
id="g88829">
<path
inkscape:connector-curvature="0"
id="rect4159"
d="m 3,17 v 1 1 h 1 v 1 h 1.0000001 v 1 H 6 v 1 h 1 v 1 h 1.0000001 v 1 H 9 v 1 h 1 v 1 h 2 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 -1 h -2 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 H 11 10 V 22 H 9 V 21 H 8.0000001 V 20 H 7 V 19 H 6 V 18 H 5.0000001 v -1 z"
style="opacity:1;fill:#373737;fill-opacity:1;stroke:none;stroke-width:4;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:1;stroke-opacity:1" />
<rect
y="27"
x="3"
height="2"
width="16"
id="rect88825"
style="opacity:1;vector-effect:none;fill:#373737;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.75;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:fill markers stroke" />
</g>
</g>
</svg>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="32"
height="32"
viewBox="0 0 32 32.000001"
id="svg2"
version="1.1"
inkscape:version="0.92.3 (2405546, 2018-03-11)"
sodipodi:docname="dark_arrowuptop.svg"
inkscape:export-filename="C:\dribbble\krita icons\Collaborate\1_flat\layers\light_arrowdown.png"
inkscape:export-xdpi="45"
inkscape:export-ydpi="45">
<defs
id="defs4">
<filter
style="color-interpolation-filters:sRGB;"
inkscape:label="Drop Shadow"
id="filter5026">
<feFlood
flood-opacity="0.501961"
flood-color="rgb(0,0,0)"
result="flood"
id="feFlood5028" />
<feComposite
in="flood"
in2="SourceGraphic"
operator="in"
result="composite1"
id="feComposite5030" />
<feGaussianBlur
in="composite1"
stdDeviation="0"
result="blur"
id="feGaussianBlur5032" />
<feOffset
dx="2.77556e-017"
dy="-2"
result="offset"
id="feOffset5034" />
<feComposite
in="SourceGraphic"
in2="offset"
operator="over"
result="composite2"
id="feComposite5036" />
</filter>
<filter
style="color-interpolation-filters:sRGB;"
inkscape:label="Drop Shadow"
id="filter6180">
<feFlood
flood-opacity="0.501961"
flood-color="rgb(0,0,0)"
result="flood"
id="feFlood6182" />
<feComposite
in="flood"
in2="SourceGraphic"
operator="in"
result="composite1"
id="feComposite6184" />
<feGaussianBlur
in="composite1"
stdDeviation="0"
result="blur"
id="feGaussianBlur6186" />
<feOffset
dx="2.77556e-017"
dy="-2"
result="offset"
id="feOffset6188" />
<feComposite
in="SourceGraphic"
in2="offset"
operator="over"
result="composite2"
id="feComposite6190" />
</filter>
<filter
style="color-interpolation-filters:sRGB;"
inkscape:label="Drop Shadow"
id="filter7302">
<feFlood
flood-opacity="0.501961"
flood-color="rgb(0,0,0)"
result="flood"
id="feFlood7304" />
<feComposite
in="flood"
in2="SourceGraphic"
operator="in"
result="composite1"
id="feComposite7306" />
<feGaussianBlur
in="composite1"
stdDeviation="0"
result="blur"
id="feGaussianBlur7308" />
<feOffset
dx="0"
dy="2"
result="offset"
id="feOffset7310" />
<feComposite
in="SourceGraphic"
in2="offset"
operator="over"
result="composite2"
id="feComposite7312" />
</filter>
<filter
style="color-interpolation-filters:sRGB;"
inkscape:label="Drop Shadow"
id="filter7350">
<feFlood
flood-opacity="0.501961"
flood-color="rgb(0,0,0)"
result="flood"
id="feFlood7352" />
<feComposite
in="flood"
in2="SourceGraphic"
operator="in"
result="composite1"
id="feComposite7354" />
<feGaussianBlur
in="composite1"
stdDeviation="0"
result="blur"
id="feGaussianBlur7356" />
<feOffset
dx="0"
dy="-2"
result="offset"
id="feOffset7358" />
<feComposite
in="SourceGraphic"
in2="offset"
operator="over"
result="composite2"
id="feComposite7360" />
</filter>
</defs>
<sodipodi:namedview
id="base"
pagecolor="#474747"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:zoom="16"
inkscape:cx="14.464822"
inkscape:cy="13.970721"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="true"
units="px"
inkscape:showpageshadow="false"
showborder="true"
inkscape:window-width="1920"
inkscape:window-height="1056"
inkscape:window-x="1920"
inkscape:window-y="0"
inkscape:window-maximized="1"
objecttolerance="10000"
guidetolerance="10000"
inkscape:snap-perpendicular="true"
inkscape:snap-tangential="true"
inkscape:snap-path-clip="true"
inkscape:snap-path-mask="true"
gridtolerance="10000"
showguides="false">
<inkscape:grid
type="xygrid"
id="grid3336"
dotted="false"
empspacing="8"
snapvisiblegridlinesonly="false"
enabled="true"
visible="true"
empcolor="#aaaaff"
empopacity="0.25098039"
color="#7878ff"
opacity="0.1254902"
spacingx="2"
spacingy="2.0000001" />
</sodipodi:namedview>
<metadata
id="metadata7">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
<dc:creator>
<cc:Agent>
<dc:title>Andrei Rudenko</dc:title>
</cc:Agent>
</dc:creator>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:groupmode="layer"
id="layer1"
inkscape:label="Layer 1">
<g
id="g88796"
transform="matrix(1,0,0,-1,0,33.999999)">
<path
inkscape:connector-curvature="0"
id="rect4159"
d="m 0,3.9999994 v 2 2 h 2 v 2 h 2 v 1.9999996 h 2 v 2 h 2 v 2 h 2 v 2 h 2 v 2 h 2 v 2 h 4 v -2 h 2 v -2 h 2 v -2 h 2 v -2 h 2 v -2 h 2 V 9.9999994 h 2 v -2 h 2 v -2 -2 h -4 v 2 h -2 v 2 h -2 v 2 h -2 v 1.9999996 h -2 v 2 h -2 v 2 h -2 -2 v -2 h -2 v -2 H 10 V 9.9999994 H 8 v -2 H 6 v -2 H 4 v -2 z"
style="opacity:1;fill:#373737;fill-opacity:1;stroke:none;stroke-width:4;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:1;stroke-opacity:1" />
<rect
y="26"
x="0"
height="4"
width="32"
id="rect88773"
style="opacity:1;vector-effect:none;fill:#373737;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.75;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:fill markers stroke" />
</g>
</g>
</svg>
......@@ -4,7 +4,9 @@
<file>dark_addlayer.svg</file>
<file>dark_addtofolder.svg</file>
<file>dark_arrowdown.svg</file>
<file>dark_arrowdownbottom.svg</file>
<file>dark_arrowupblr.svg</file>
<file>dark_arrowuptop.svg</file>
<file>dark_deletelayer.svg</file>
<file>dark_duplicatelayer.svg</file>
<file>dark_properties.svg</file>
......@@ -12,7 +14,9 @@
<file>light_addlayer.svg</file>
<file>light_addtofolder.svg</file>
<file>light_arrowdown.svg</file>
<file>light_arrowdownbottom.svg</file>
<file>light_arrowupblr.svg</file>
<file>light_arrowuptop.svg</file>
<file>light_deletelayer.svg</file>
<file>light_duplicatelayer.svg</file>
<file>light_properties.svg</file>
......
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="22"
height="22"
viewBox="0 0 22 22.000001"
id="svg2"
version="1.1"
inkscape:version="0.92.3 (2405546, 2018-03-11)"
sodipodi:docname="light_arrowdownbottom.svg"
inkscape:export-filename="/home/razvan/Documents/projects/dev/phabricator-krita/krita/pics/layerbox/dark_arrowuptop.png"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96">
<defs
id="defs4">
<filter
style="color-interpolation-filters:sRGB"
inkscape:label="Drop Shadow"
id="filter5026">
<feFlood
flood-opacity="0.501961"
flood-color="rgb(0,0,0)"
result="flood"
id="feFlood5028" />
<feComposite
in="flood"
in2="SourceGraphic"
operator="in"
result="composite1"
id="feComposite5030" />
<feGaussianBlur
in="composite1"
stdDeviation="0"
result="blur"
id="feGaussianBlur5032" />
<feOffset
dx="2.77556e-017"
dy="-2"
result="offset"
id="feOffset5034" />
<feComposite
in="SourceGraphic"
in2="offset"
operator="over"
result="composite2"
id="feComposite5036" />
</filter>
<filter
style="color-interpolation-filters:sRGB"
inkscape:label="Drop Shadow"
id="filter6180">
<feFlood
flood-opacity="0.501961"
flood-color="rgb(0,0,0)"
result="flood"
id="feFlood6182" />
<feComposite
in="flood"
in2="SourceGraphic"
operator="in"
result="composite1"
id="feComposite6184" />
<feGaussianBlur
in="composite1"
stdDeviation="0"
result="blur"
id="feGaussianBlur6186" />
<feOffset
dx="2.77556e-017"
dy="-2"
result="offset"
id="feOffset6188" />
<feComposite
in="SourceGraphic"
in2="offset"
operator="over"
result="composite2"
id="feComposite6190" />
</filter>
<filter
style="color-interpolation-filters:sRGB"
inkscape:label="Drop Shadow"
id="filter7302">
<feFlood
flood-opacity="0.501961"
flood-color="rgb(0,0,0)"
result="flood"
id="feFlood7304" />
<feComposite
in="flood"
in2="SourceGraphic"
operator="in"
result="composite1"
id="feComposite7306" />
<feGaussianBlur
in="composite1"
stdDeviation="0"
result="blur"
id="feGaussianBlur7308" />
<feOffset
dx="0"
dy="2"
result="offset"
id="feOffset7310" />
<feComposite
in="SourceGraphic"
in2="offset"
operator="over"
result="composite2"
id="feComposite7312" />
</filter>
<filter
style="color-interpolation-filters:sRGB"
inkscape:label="Drop Shadow"
id="filter7350">
<feFlood
flood-opacity="0.501961"
flood-color="rgb(0,0,0)"
result="flood"
id="feFlood7352" />
<feComposite
in="flood"
in2="SourceGraphic"
operator="in"
result="composite1"
id="feComposite7354" />
<feGaussianBlur
in="composite1"
stdDeviation="0"
result="blur"
id="feGaussianBlur7356" />
<feOffset
dx="0"
dy="-2"
result="offset"
id="feOffset7358" />
<feComposite
in="SourceGraphic"
in2="offset"
operator="over"
result="composite2"
id="feComposite7360" />
</filter>
</defs>
<sodipodi:namedview
id="base"
pagecolor="#474747"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:zoom="32"
inkscape:cx="13.823254"
inkscape:cy="10.45934"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="true"
units="px"
inkscape:showpageshadow="false"
showborder="true"
inkscape:window-width="1920"
inkscape:window-height="1056"
inkscape:window-x="1920"
inkscape:window-y="0"
inkscape:window-maximized="1"
objecttolerance="10000"
guidetolerance="10000"
inkscape:snap-perpendicular="true"
inkscape:snap-tangential="true"
inkscape:snap-path-clip="true"
inkscape:snap-path-mask="true"
gridtolerance="10000"
showguides="false">
<inkscape:grid