Implementation of import button and FileBrowser
651
app/file.svg
Normal file
|
|
@ -0,0 +1,651 @@
|
||||||
|
<?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:xlink="http://www.w3.org/1999/xlink"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
inkscape:export-ydpi="240.00000"
|
||||||
|
inkscape:export-xdpi="240.00000"
|
||||||
|
inkscape:export-filename="/home/jimmac/gfx/novell/pdes/trunk/docs/BIGmime-text.png"
|
||||||
|
sodipodi:docname="text-x-generic.svg"
|
||||||
|
inkscape:version="0.48.5 r10040"
|
||||||
|
sodipodi:version="0.32"
|
||||||
|
id="svg249"
|
||||||
|
height="36"
|
||||||
|
width="36"
|
||||||
|
inkscape:output_extension="org.inkscape.output.svg.inkscape"
|
||||||
|
version="1.1">
|
||||||
|
<defs
|
||||||
|
id="defs3">
|
||||||
|
<inkscape:perspective
|
||||||
|
sodipodi:type="inkscape:persp3d"
|
||||||
|
inkscape:vp_x="0 : 24 : 1"
|
||||||
|
inkscape:vp_y="0 : 1000 : 0"
|
||||||
|
inkscape:vp_z="48 : 24 : 1"
|
||||||
|
inkscape:persp3d-origin="24 : 16 : 1"
|
||||||
|
id="perspective78" />
|
||||||
|
<radialGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#linearGradient5060"
|
||||||
|
id="radialGradient6719"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
gradientTransform="matrix(-2.774389,0,0,1.969706,112.7623,-872.8854)"
|
||||||
|
cx="605.71429"
|
||||||
|
cy="486.64789"
|
||||||
|
fx="605.71429"
|
||||||
|
fy="486.64789"
|
||||||
|
r="117.14286" />
|
||||||
|
<linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
id="linearGradient5060">
|
||||||
|
<stop
|
||||||
|
style="stop-color:black;stop-opacity:1;"
|
||||||
|
offset="0"
|
||||||
|
id="stop5062" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:black;stop-opacity:0;"
|
||||||
|
offset="1"
|
||||||
|
id="stop5064" />
|
||||||
|
</linearGradient>
|
||||||
|
<radialGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#linearGradient5060"
|
||||||
|
id="radialGradient6717"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
gradientTransform="matrix(2.774389,0,0,1.969706,-1891.633,-872.8854)"
|
||||||
|
cx="605.71429"
|
||||||
|
cy="486.64789"
|
||||||
|
fx="605.71429"
|
||||||
|
fy="486.64789"
|
||||||
|
r="117.14286" />
|
||||||
|
<linearGradient
|
||||||
|
id="linearGradient5048">
|
||||||
|
<stop
|
||||||
|
style="stop-color:black;stop-opacity:0;"
|
||||||
|
offset="0"
|
||||||
|
id="stop5050" />
|
||||||
|
<stop
|
||||||
|
id="stop5056"
|
||||||
|
offset="0.5"
|
||||||
|
style="stop-color:black;stop-opacity:1;" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:black;stop-opacity:0;"
|
||||||
|
offset="1"
|
||||||
|
id="stop5052" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#linearGradient5048"
|
||||||
|
id="linearGradient6715"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
gradientTransform="matrix(2.774389,0,0,1.969706,-1892.179,-872.8854)"
|
||||||
|
x1="302.85715"
|
||||||
|
y1="366.64789"
|
||||||
|
x2="302.85715"
|
||||||
|
y2="609.50507" />
|
||||||
|
<linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
id="linearGradient4542">
|
||||||
|
<stop
|
||||||
|
style="stop-color:#000000;stop-opacity:1;"
|
||||||
|
offset="0"
|
||||||
|
id="stop4544" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#000000;stop-opacity:0;"
|
||||||
|
offset="1"
|
||||||
|
id="stop4546" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
id="linearGradient15662">
|
||||||
|
<stop
|
||||||
|
id="stop15664"
|
||||||
|
offset="0.0000000"
|
||||||
|
style="stop-color:#ffffff;stop-opacity:1.0000000;" />
|
||||||
|
<stop
|
||||||
|
id="stop15666"
|
||||||
|
offset="1.0000000"
|
||||||
|
style="stop-color:#f8f8f8;stop-opacity:1.0000000;" />
|
||||||
|
</linearGradient>
|
||||||
|
<radialGradient
|
||||||
|
id="aigrd3"
|
||||||
|
cx="20.892099"
|
||||||
|
cy="64.567902"
|
||||||
|
r="5.257"
|
||||||
|
fx="20.892099"
|
||||||
|
fy="64.567902"
|
||||||
|
gradientUnits="userSpaceOnUse">
|
||||||
|
<stop
|
||||||
|
offset="0"
|
||||||
|
style="stop-color:#F0F0F0"
|
||||||
|
id="stop15573" />
|
||||||
|
<stop
|
||||||
|
offset="1.0000000"
|
||||||
|
style="stop-color:#9a9a9a;stop-opacity:1.0000000;"
|
||||||
|
id="stop15575" />
|
||||||
|
</radialGradient>
|
||||||
|
<radialGradient
|
||||||
|
id="aigrd2"
|
||||||
|
cx="20.892099"
|
||||||
|
cy="114.5684"
|
||||||
|
r="5.256"
|
||||||
|
fx="20.892099"
|
||||||
|
fy="114.5684"
|
||||||
|
gradientUnits="userSpaceOnUse">
|
||||||
|
<stop
|
||||||
|
offset="0"
|
||||||
|
style="stop-color:#F0F0F0"
|
||||||
|
id="stop15566" />
|
||||||
|
<stop
|
||||||
|
offset="1.0000000"
|
||||||
|
style="stop-color:#9a9a9a;stop-opacity:1.0000000;"
|
||||||
|
id="stop15568" />
|
||||||
|
</radialGradient>
|
||||||
|
<linearGradient
|
||||||
|
id="linearGradient269">
|
||||||
|
<stop
|
||||||
|
id="stop270"
|
||||||
|
offset="0.0000000"
|
||||||
|
style="stop-color:#a3a3a3;stop-opacity:1.0000000;" />
|
||||||
|
<stop
|
||||||
|
id="stop271"
|
||||||
|
offset="1.0000000"
|
||||||
|
style="stop-color:#4c4c4c;stop-opacity:1.0000000;" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
id="linearGradient259">
|
||||||
|
<stop
|
||||||
|
id="stop260"
|
||||||
|
offset="0.0000000"
|
||||||
|
style="stop-color:#fafafa;stop-opacity:1.0000000;" />
|
||||||
|
<stop
|
||||||
|
id="stop261"
|
||||||
|
offset="1.0000000"
|
||||||
|
style="stop-color:#bbbbbb;stop-opacity:1.0000000;" />
|
||||||
|
</linearGradient>
|
||||||
|
<radialGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#linearGradient269"
|
||||||
|
id="radialGradient15656"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
gradientTransform="matrix(0.6972721,0,0,0.74371548,3.1846314,13.897294)"
|
||||||
|
cx="8.824419"
|
||||||
|
cy="3.7561285"
|
||||||
|
fx="8.824419"
|
||||||
|
fy="3.7561285"
|
||||||
|
r="37.751713" />
|
||||||
|
<radialGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#linearGradient259"
|
||||||
|
id="radialGradient15658"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
gradientTransform="matrix(0.69166958,0,0,0.74973928,0.76967307,13.431775)"
|
||||||
|
cx="33.966679"
|
||||||
|
cy="35.736916"
|
||||||
|
fx="33.966679"
|
||||||
|
fy="35.736916"
|
||||||
|
r="86.70845" />
|
||||||
|
<radialGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#linearGradient15662"
|
||||||
|
id="radialGradient15668"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
gradientTransform="matrix(0.6972721,0,0,0.74371548,3.1846314,13.897294)"
|
||||||
|
cx="8.1435566"
|
||||||
|
cy="7.2678967"
|
||||||
|
fx="8.1435566"
|
||||||
|
fy="7.2678967"
|
||||||
|
r="38.158695" />
|
||||||
|
<radialGradient
|
||||||
|
r="5.256"
|
||||||
|
fy="114.5684"
|
||||||
|
fx="20.892099"
|
||||||
|
cy="114.5684"
|
||||||
|
cx="20.892099"
|
||||||
|
gradientTransform="matrix(0.229703,0,0,0.229703,4.613529,3.979808)"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
id="radialGradient2283"
|
||||||
|
xlink:href="#aigrd2"
|
||||||
|
inkscape:collect="always" />
|
||||||
|
<radialGradient
|
||||||
|
r="5.257"
|
||||||
|
fy="64.567902"
|
||||||
|
fx="20.892099"
|
||||||
|
cy="64.567902"
|
||||||
|
cx="20.892099"
|
||||||
|
gradientTransform="matrix(0.229703,0,0,0.229703,4.613529,3.979808)"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
id="radialGradient2285"
|
||||||
|
xlink:href="#aigrd3"
|
||||||
|
inkscape:collect="always" />
|
||||||
|
<radialGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#linearGradient4542"
|
||||||
|
id="radialGradient4548"
|
||||||
|
cx="24.306795"
|
||||||
|
cy="42.07798"
|
||||||
|
fx="24.306795"
|
||||||
|
fy="42.07798"
|
||||||
|
r="15.821514"
|
||||||
|
gradientTransform="matrix(1,0,0,0.284916,0,30.08928)"
|
||||||
|
gradientUnits="userSpaceOnUse" />
|
||||||
|
<linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#linearGradient5048"
|
||||||
|
id="linearGradient3330"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
gradientTransform="matrix(2.774389,0,0,1.969706,-1892.179,-872.8854)"
|
||||||
|
x1="302.85715"
|
||||||
|
y1="366.64789"
|
||||||
|
x2="302.85715"
|
||||||
|
y2="609.50507" />
|
||||||
|
<radialGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#linearGradient5060"
|
||||||
|
id="radialGradient3332"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
gradientTransform="matrix(2.774389,0,0,1.969706,-1891.633,-872.8854)"
|
||||||
|
cx="605.71429"
|
||||||
|
cy="486.64789"
|
||||||
|
fx="605.71429"
|
||||||
|
fy="486.64789"
|
||||||
|
r="117.14286" />
|
||||||
|
<radialGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#linearGradient5060"
|
||||||
|
id="radialGradient3334"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
gradientTransform="matrix(-2.774389,0,0,1.969706,112.7623,-872.8854)"
|
||||||
|
cx="605.71429"
|
||||||
|
cy="486.64789"
|
||||||
|
fx="605.71429"
|
||||||
|
fy="486.64789"
|
||||||
|
r="117.14286" />
|
||||||
|
<radialGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#linearGradient259"
|
||||||
|
id="radialGradient3336"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
gradientTransform="matrix(0.69166958,0,0,0.74973928,0.76967307,13.431775)"
|
||||||
|
cx="33.966679"
|
||||||
|
cy="35.736916"
|
||||||
|
fx="33.966679"
|
||||||
|
fy="35.736916"
|
||||||
|
r="86.70845" />
|
||||||
|
<radialGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#linearGradient269"
|
||||||
|
id="radialGradient3338"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
gradientTransform="matrix(0.6972721,0,0,0.74371548,3.1846314,13.897294)"
|
||||||
|
cx="8.824419"
|
||||||
|
cy="3.7561285"
|
||||||
|
fx="8.824419"
|
||||||
|
fy="3.7561285"
|
||||||
|
r="37.751713" />
|
||||||
|
<radialGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#linearGradient15662"
|
||||||
|
id="radialGradient3340"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
gradientTransform="matrix(0.6972721,0,0,0.74371548,3.1846314,13.897294)"
|
||||||
|
cx="8.1435566"
|
||||||
|
cy="7.2678967"
|
||||||
|
fx="8.1435566"
|
||||||
|
fy="7.2678967"
|
||||||
|
r="38.158695" />
|
||||||
|
<radialGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#aigrd2"
|
||||||
|
id="radialGradient3342"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
gradientTransform="matrix(0.229703,0,0,0.229703,4.613529,3.979808)"
|
||||||
|
cx="20.892099"
|
||||||
|
cy="114.5684"
|
||||||
|
fx="20.892099"
|
||||||
|
fy="114.5684"
|
||||||
|
r="5.256" />
|
||||||
|
<radialGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#aigrd3"
|
||||||
|
id="radialGradient3344"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
gradientTransform="matrix(0.229703,0,0,0.229703,4.613529,3.979808)"
|
||||||
|
cx="20.892099"
|
||||||
|
cy="64.567902"
|
||||||
|
fx="20.892099"
|
||||||
|
fy="64.567902"
|
||||||
|
r="5.257" />
|
||||||
|
</defs>
|
||||||
|
<sodipodi:namedview
|
||||||
|
inkscape:window-y="555"
|
||||||
|
inkscape:window-x="2797"
|
||||||
|
inkscape:window-height="688"
|
||||||
|
inkscape:window-width="1172"
|
||||||
|
inkscape:document-units="px"
|
||||||
|
inkscape:grid-bbox="true"
|
||||||
|
showgrid="false"
|
||||||
|
inkscape:current-layer="layer5"
|
||||||
|
inkscape:cy="11.371057"
|
||||||
|
inkscape:cx="4.8138927"
|
||||||
|
inkscape:zoom="5.6568542"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
borderopacity="0.25490196"
|
||||||
|
bordercolor="#666666"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
id="base"
|
||||||
|
inkscape:showpageshadow="false"
|
||||||
|
inkscape:window-maximized="0" />
|
||||||
|
<metadata
|
||||||
|
id="metadata4">
|
||||||
|
<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>Generic Text</dc:title>
|
||||||
|
<dc:subject>
|
||||||
|
<rdf:Bag>
|
||||||
|
<rdf:li>text</rdf:li>
|
||||||
|
<rdf:li>plaintext</rdf:li>
|
||||||
|
<rdf:li>regular</rdf:li>
|
||||||
|
<rdf:li>document</rdf:li>
|
||||||
|
</rdf:Bag>
|
||||||
|
</dc:subject>
|
||||||
|
<cc:license
|
||||||
|
rdf:resource="http://creativecommons.org/licenses/publicdomain/" />
|
||||||
|
<dc:creator>
|
||||||
|
<cc:Agent>
|
||||||
|
<dc:title>Jakub Steiner</dc:title>
|
||||||
|
</cc:Agent>
|
||||||
|
</dc:creator>
|
||||||
|
<dc:source>http://jimmac.musichall.cz</dc:source>
|
||||||
|
</cc:Work>
|
||||||
|
<cc:License
|
||||||
|
rdf:about="http://creativecommons.org/licenses/publicdomain/">
|
||||||
|
<cc:permits
|
||||||
|
rdf:resource="http://creativecommons.org/ns#Reproduction" />
|
||||||
|
<cc:permits
|
||||||
|
rdf:resource="http://creativecommons.org/ns#Distribution" />
|
||||||
|
<cc:permits
|
||||||
|
rdf:resource="http://creativecommons.org/ns#DerivativeWorks" />
|
||||||
|
</cc:License>
|
||||||
|
</rdf:RDF>
|
||||||
|
</metadata>
|
||||||
|
<g
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer6"
|
||||||
|
inkscape:label="Shadow"
|
||||||
|
transform="translate(0,-12)" />
|
||||||
|
<g
|
||||||
|
style="display:inline"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
inkscape:label="Base"
|
||||||
|
id="layer1"
|
||||||
|
transform="translate(0,-12)" />
|
||||||
|
<g
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer5"
|
||||||
|
inkscape:label="Text"
|
||||||
|
style="display:inline"
|
||||||
|
transform="translate(0,-12)">
|
||||||
|
<g
|
||||||
|
id="g3293"
|
||||||
|
transform="translate(-0.14255424,-1.8443353)">
|
||||||
|
<g
|
||||||
|
id="g6707"
|
||||||
|
transform="matrix(0.01516183,0,0,0.01502715,31.628025,43.067278)"
|
||||||
|
style="display:inline">
|
||||||
|
<rect
|
||||||
|
y="-150.69685"
|
||||||
|
x="-1559.2523"
|
||||||
|
height="478.35718"
|
||||||
|
width="1339.6335"
|
||||||
|
id="rect6709"
|
||||||
|
style="opacity:0.40206185;color:#000000;fill:url(#linearGradient3330);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible" />
|
||||||
|
<path
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
sodipodi:nodetypes="cccc"
|
||||||
|
id="path6711"
|
||||||
|
d="m -219.61876,-150.68038 c 0,0 0,478.33079 0,478.33079 142.874166,0.90045 345.40022,-107.16966 345.40014,-239.196175 0,-132.026537 -159.436816,-239.134595 -345.40014,-239.134615 z"
|
||||||
|
style="opacity:0.40206185;color:#000000;fill:url(#radialGradient3332);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible" />
|
||||||
|
<path
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
style="opacity:0.40206185;color:#000000;fill:url(#radialGradient3334);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible"
|
||||||
|
d="m -1559.2523,-150.68038 c 0,0 0,478.33079 0,478.33079 -142.8742,0.90045 -345.4002,-107.16966 -345.4002,-239.196175 0,-132.026537 159.4368,-239.134595 345.4002,-239.134615 z"
|
||||||
|
id="path6713"
|
||||||
|
sodipodi:nodetypes="cccc" />
|
||||||
|
</g>
|
||||||
|
<rect
|
||||||
|
ry="0.82745206"
|
||||||
|
y="16.057652"
|
||||||
|
x="5.5250192"
|
||||||
|
height="29.467638"
|
||||||
|
width="25.114162"
|
||||||
|
id="rect15391"
|
||||||
|
style="color:#000000;fill:url(#radialGradient3336);fill-opacity:1;fill-rule:nonzero;stroke:url(#radialGradient3338);stroke-width:0.72011936;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dashoffset:0;marker:none;visibility:visible;display:block;overflow:visible" />
|
||||||
|
<rect
|
||||||
|
rx="0.10733275"
|
||||||
|
ry="0.10733275"
|
||||||
|
y="16.732763"
|
||||||
|
x="6.2901468"
|
||||||
|
height="28.046045"
|
||||||
|
width="23.602549"
|
||||||
|
id="rect15660"
|
||||||
|
style="color:#000000;fill:none;stroke:url(#radialGradient3340);stroke-width:0.72011936;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dashoffset:0;marker:none;visibility:visible;display:block;overflow:visible" />
|
||||||
|
<g
|
||||||
|
id="g2270"
|
||||||
|
transform="matrix(0.72011933,0,0,0.72011933,1.2351921,13.404418)"
|
||||||
|
style="display:inline">
|
||||||
|
<g
|
||||||
|
transform="matrix(0.229703,0,0,0.229703,4.967081,4.244972)"
|
||||||
|
style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-miterlimit:4"
|
||||||
|
id="g1440">
|
||||||
|
<radialGradient
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
fy="114.5684"
|
||||||
|
fx="20.892099"
|
||||||
|
r="5.256"
|
||||||
|
cy="114.5684"
|
||||||
|
cx="20.892099"
|
||||||
|
id="radialGradient1442">
|
||||||
|
<stop
|
||||||
|
id="stop1444"
|
||||||
|
style="stop-color:#F0F0F0"
|
||||||
|
offset="0" />
|
||||||
|
<stop
|
||||||
|
id="stop1446"
|
||||||
|
style="stop-color:#474747"
|
||||||
|
offset="1" />
|
||||||
|
</radialGradient>
|
||||||
|
<path
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
id="path1448"
|
||||||
|
d="m 23.428,113.07 c 0,1.973 -1.6,3.572 -3.573,3.572 -1.974,0 -3.573,-1.6 -3.573,-3.572 0,-1.974 1.6,-3.573 3.573,-3.573 1.973,0 3.573,1.6 3.573,3.573 z"
|
||||||
|
style="stroke:none" />
|
||||||
|
<radialGradient
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
fy="64.567902"
|
||||||
|
fx="20.892099"
|
||||||
|
r="5.257"
|
||||||
|
cy="64.567902"
|
||||||
|
cx="20.892099"
|
||||||
|
id="radialGradient1450">
|
||||||
|
<stop
|
||||||
|
id="stop1452"
|
||||||
|
style="stop-color:#F0F0F0"
|
||||||
|
offset="0" />
|
||||||
|
<stop
|
||||||
|
id="stop1454"
|
||||||
|
style="stop-color:#474747"
|
||||||
|
offset="1" />
|
||||||
|
</radialGradient>
|
||||||
|
<path
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
id="path1456"
|
||||||
|
d="m 23.428,63.07 c 0,1.973 -1.6,3.573 -3.573,3.573 -1.974,0 -3.573,-1.6 -3.573,-3.573 0,-1.974 1.6,-3.573 3.573,-3.573 1.973,0 3.573,1.6 3.573,3.573 z"
|
||||||
|
style="stroke:none" />
|
||||||
|
</g>
|
||||||
|
<path
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
id="path15570"
|
||||||
|
d="m 9.9950109,29.952326 c 0,0.453204 -0.3675248,0.820499 -0.8207288,0.820499 -0.4534338,0 -0.8207289,-0.367524 -0.8207289,-0.820499 0,-0.453434 0.3675248,-0.820729 0.8207289,-0.820729 0.453204,0 0.8207288,0.367525 0.8207288,0.820729 z"
|
||||||
|
style="fill:url(#radialGradient3342);fill-rule:nonzero;stroke:none" />
|
||||||
|
<path
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
id="path15577"
|
||||||
|
d="m 9.9950109,18.467176 c 0,0.453204 -0.3675248,0.820729 -0.8207288,0.820729 -0.4534338,0 -0.8207289,-0.367525 -0.8207289,-0.820729 0,-0.453434 0.3675248,-0.820729 0.8207289,-0.820729 0.453204,0 0.8207288,0.367525 0.8207288,0.820729 z"
|
||||||
|
style="fill:url(#radialGradient3344);fill-rule:nonzero;stroke:none" />
|
||||||
|
</g>
|
||||||
|
<path
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
sodipodi:nodetypes="cc"
|
||||||
|
id="path15672"
|
||||||
|
d="m 9.0551666,17.38831 0,27.29727"
|
||||||
|
style="fill:none;stroke:#000000;stroke-width:0.71187621;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:0.01754384;display:inline" />
|
||||||
|
<path
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
sodipodi:nodetypes="cc"
|
||||||
|
id="path15674"
|
||||||
|
d="m 9.7711647,17.047145 0,27.37729"
|
||||||
|
style="fill:none;stroke:#ffffff;stroke-width:0.72011936;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:0.20467828;display:inline" />
|
||||||
|
<g
|
||||||
|
id="g2253"
|
||||||
|
transform="matrix(0.654654,0,0,0.72011933,2.4717673,13.431775)">
|
||||||
|
<rect
|
||||||
|
ry="0.065390877"
|
||||||
|
rx="0.15156493"
|
||||||
|
y="9"
|
||||||
|
x="15.000002"
|
||||||
|
height="1"
|
||||||
|
width="22.000004"
|
||||||
|
id="rect15686"
|
||||||
|
style="color:#000000;fill:#9b9b9b;fill-opacity:0.54970757;fill-rule:nonzero;stroke:none;stroke-width:1;marker:none;visibility:visible;display:block;overflow:visible" />
|
||||||
|
<rect
|
||||||
|
ry="0.065390877"
|
||||||
|
rx="0.15156493"
|
||||||
|
y="11"
|
||||||
|
x="15.000002"
|
||||||
|
height="1"
|
||||||
|
width="22.000004"
|
||||||
|
id="rect15688"
|
||||||
|
style="color:#000000;fill:#9b9b9b;fill-opacity:0.54970757;fill-rule:nonzero;stroke:none;stroke-width:1;marker:none;visibility:visible;display:block;overflow:visible" />
|
||||||
|
<rect
|
||||||
|
ry="0.065390877"
|
||||||
|
rx="0.15156493"
|
||||||
|
y="13"
|
||||||
|
x="15.000002"
|
||||||
|
height="1"
|
||||||
|
width="22.000004"
|
||||||
|
id="rect15690"
|
||||||
|
style="color:#000000;fill:#9b9b9b;fill-opacity:0.54970757;fill-rule:nonzero;stroke:none;stroke-width:1;marker:none;visibility:visible;display:block;overflow:visible" />
|
||||||
|
<rect
|
||||||
|
ry="0.065390877"
|
||||||
|
rx="0.15156493"
|
||||||
|
y="15"
|
||||||
|
x="15.000002"
|
||||||
|
height="1"
|
||||||
|
width="22.000004"
|
||||||
|
id="rect15692"
|
||||||
|
style="color:#000000;fill:#9b9b9b;fill-opacity:0.54970757;fill-rule:nonzero;stroke:none;stroke-width:1;marker:none;visibility:visible;display:block;overflow:visible" />
|
||||||
|
<rect
|
||||||
|
ry="0.065390877"
|
||||||
|
rx="0.15156493"
|
||||||
|
y="17"
|
||||||
|
x="15.000002"
|
||||||
|
height="1"
|
||||||
|
width="22.000004"
|
||||||
|
id="rect15694"
|
||||||
|
style="color:#000000;fill:#9b9b9b;fill-opacity:0.54970757;fill-rule:nonzero;stroke:none;stroke-width:1;marker:none;visibility:visible;display:block;overflow:visible" />
|
||||||
|
<rect
|
||||||
|
ry="0.065390877"
|
||||||
|
rx="0.15156493"
|
||||||
|
y="19"
|
||||||
|
x="15.000002"
|
||||||
|
height="1"
|
||||||
|
width="22.000004"
|
||||||
|
id="rect15696"
|
||||||
|
style="color:#000000;fill:#9b9b9b;fill-opacity:0.54970757;fill-rule:nonzero;stroke:none;stroke-width:1;marker:none;visibility:visible;display:block;overflow:visible" />
|
||||||
|
<rect
|
||||||
|
ry="0.065390877"
|
||||||
|
rx="0.15156493"
|
||||||
|
y="21"
|
||||||
|
x="15.000002"
|
||||||
|
height="1"
|
||||||
|
width="22.000004"
|
||||||
|
id="rect15698"
|
||||||
|
style="color:#000000;fill:#9b9b9b;fill-opacity:0.54970757;fill-rule:nonzero;stroke:none;stroke-width:1;marker:none;visibility:visible;display:block;overflow:visible" />
|
||||||
|
<rect
|
||||||
|
ry="0.065390877"
|
||||||
|
rx="0.15156493"
|
||||||
|
y="23"
|
||||||
|
x="15.000002"
|
||||||
|
height="1"
|
||||||
|
width="22.000004"
|
||||||
|
id="rect15700"
|
||||||
|
style="color:#000000;fill:#9b9b9b;fill-opacity:0.54970757;fill-rule:nonzero;stroke:none;stroke-width:1;marker:none;visibility:visible;display:block;overflow:visible" />
|
||||||
|
<rect
|
||||||
|
ry="0.065390877"
|
||||||
|
rx="0.068204239"
|
||||||
|
y="25"
|
||||||
|
x="14.999992"
|
||||||
|
height="1"
|
||||||
|
width="9.9000053"
|
||||||
|
id="rect15732"
|
||||||
|
style="color:#000000;fill:#9b9b9b;fill-opacity:0.54970757;fill-rule:nonzero;stroke:none;stroke-width:1;marker:none;visibility:visible;display:block;overflow:visible" />
|
||||||
|
<rect
|
||||||
|
ry="0.065390877"
|
||||||
|
rx="0.15156493"
|
||||||
|
y="29"
|
||||||
|
x="14.999992"
|
||||||
|
height="1"
|
||||||
|
width="22.000004"
|
||||||
|
id="rect15736"
|
||||||
|
style="color:#000000;fill:#9b9b9b;fill-opacity:0.54970757;fill-rule:nonzero;stroke:none;stroke-width:1;marker:none;visibility:visible;display:block;overflow:visible" />
|
||||||
|
<rect
|
||||||
|
ry="0.065390877"
|
||||||
|
rx="0.15156493"
|
||||||
|
y="31"
|
||||||
|
x="14.999992"
|
||||||
|
height="1"
|
||||||
|
width="22.000004"
|
||||||
|
id="rect15738"
|
||||||
|
style="color:#000000;fill:#9b9b9b;fill-opacity:0.54970757;fill-rule:nonzero;stroke:none;stroke-width:1;marker:none;visibility:visible;display:block;overflow:visible" />
|
||||||
|
<rect
|
||||||
|
ry="0.065390877"
|
||||||
|
rx="0.15156493"
|
||||||
|
y="33"
|
||||||
|
x="14.999992"
|
||||||
|
height="1"
|
||||||
|
width="22.000004"
|
||||||
|
id="rect15740"
|
||||||
|
style="color:#000000;fill:#9b9b9b;fill-opacity:0.54970757;fill-rule:nonzero;stroke:none;stroke-width:1;marker:none;visibility:visible;display:block;overflow:visible" />
|
||||||
|
<rect
|
||||||
|
ry="0.065390877"
|
||||||
|
rx="0.15156493"
|
||||||
|
y="35"
|
||||||
|
x="14.999992"
|
||||||
|
height="1"
|
||||||
|
width="22.000004"
|
||||||
|
id="rect15742"
|
||||||
|
style="color:#000000;fill:#9b9b9b;fill-opacity:0.54970757;fill-rule:nonzero;stroke:none;stroke-width:1;marker:none;visibility:visible;display:block;overflow:visible" />
|
||||||
|
<rect
|
||||||
|
ry="0.065390877"
|
||||||
|
rx="0.10609552"
|
||||||
|
y="37"
|
||||||
|
x="14.999992"
|
||||||
|
height="1"
|
||||||
|
width="15.400014"
|
||||||
|
id="rect15744"
|
||||||
|
style="color:#000000;fill:#9b9b9b;fill-opacity:0.54970757;fill-rule:nonzero;stroke:none;stroke-width:1;marker:none;visibility:visible;display:block;overflow:visible" />
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 23 KiB |
455
app/folder.svg
Normal file
|
|
@ -0,0 +1,455 @@
|
||||||
|
<?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:xlink="http://www.w3.org/1999/xlink"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
width="36"
|
||||||
|
height="36"
|
||||||
|
id="svg97"
|
||||||
|
sodipodi:version="0.32"
|
||||||
|
inkscape:version="0.48.5 r10040"
|
||||||
|
sodipodi:docname="folder.svg"
|
||||||
|
inkscape:export-filename="/home/jimmac/Desktop/horlander-style3.png"
|
||||||
|
inkscape:export-xdpi="90.000000"
|
||||||
|
inkscape:export-ydpi="90.000000"
|
||||||
|
inkscape:output_extension="org.inkscape.output.svg.inkscape"
|
||||||
|
version="1.1">
|
||||||
|
<defs
|
||||||
|
id="defs3">
|
||||||
|
<inkscape:perspective
|
||||||
|
sodipodi:type="inkscape:persp3d"
|
||||||
|
inkscape:vp_x="0 : 24 : 1"
|
||||||
|
inkscape:vp_y="0 : 1000 : 0"
|
||||||
|
inkscape:vp_z="48 : 24 : 1"
|
||||||
|
inkscape:persp3d-origin="24 : 16 : 1"
|
||||||
|
id="perspective68" />
|
||||||
|
<radialGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#linearGradient5060"
|
||||||
|
id="radialGradient6719"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
gradientTransform="matrix(-2.774389,0,0,1.969706,112.7623,-872.8854)"
|
||||||
|
cx="605.71429"
|
||||||
|
cy="486.64789"
|
||||||
|
fx="605.71429"
|
||||||
|
fy="486.64789"
|
||||||
|
r="117.14286" />
|
||||||
|
<linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
id="linearGradient5060">
|
||||||
|
<stop
|
||||||
|
style="stop-color:black;stop-opacity:1;"
|
||||||
|
offset="0"
|
||||||
|
id="stop5062" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:black;stop-opacity:0;"
|
||||||
|
offset="1"
|
||||||
|
id="stop5064" />
|
||||||
|
</linearGradient>
|
||||||
|
<radialGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#linearGradient5060"
|
||||||
|
id="radialGradient6717"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
gradientTransform="matrix(2.774389,0,0,1.969706,-1891.633,-872.8854)"
|
||||||
|
cx="605.71429"
|
||||||
|
cy="486.64789"
|
||||||
|
fx="605.71429"
|
||||||
|
fy="486.64789"
|
||||||
|
r="117.14286" />
|
||||||
|
<linearGradient
|
||||||
|
id="linearGradient5048">
|
||||||
|
<stop
|
||||||
|
style="stop-color:black;stop-opacity:0;"
|
||||||
|
offset="0"
|
||||||
|
id="stop5050" />
|
||||||
|
<stop
|
||||||
|
id="stop5056"
|
||||||
|
offset="0.5"
|
||||||
|
style="stop-color:black;stop-opacity:1;" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:black;stop-opacity:0;"
|
||||||
|
offset="1"
|
||||||
|
id="stop5052" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#linearGradient5048"
|
||||||
|
id="linearGradient6715"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
gradientTransform="matrix(2.774389,0,0,1.969706,-1892.179,-872.8854)"
|
||||||
|
x1="302.85715"
|
||||||
|
y1="366.64789"
|
||||||
|
x2="302.85715"
|
||||||
|
y2="609.50507" />
|
||||||
|
<linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
id="linearGradient9806">
|
||||||
|
<stop
|
||||||
|
style="stop-color:#000000;stop-opacity:1;"
|
||||||
|
offset="0"
|
||||||
|
id="stop9808" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#000000;stop-opacity:0;"
|
||||||
|
offset="1"
|
||||||
|
id="stop9810" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
id="linearGradient9766">
|
||||||
|
<stop
|
||||||
|
style="stop-color:#6194cb;stop-opacity:1;"
|
||||||
|
offset="0"
|
||||||
|
id="stop9768" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#729fcf;stop-opacity:1;"
|
||||||
|
offset="1"
|
||||||
|
id="stop9770" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
id="linearGradient3096">
|
||||||
|
<stop
|
||||||
|
id="stop3098"
|
||||||
|
offset="0"
|
||||||
|
style="stop-color:#424242;stop-opacity:1;" />
|
||||||
|
<stop
|
||||||
|
id="stop3100"
|
||||||
|
offset="1.0000000"
|
||||||
|
style="stop-color:#777777;stop-opacity:1.0000000;" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
id="linearGradient319"
|
||||||
|
inkscape:collect="always">
|
||||||
|
<stop
|
||||||
|
id="stop320"
|
||||||
|
offset="0"
|
||||||
|
style="stop-color:#ffffff;stop-opacity:1;" />
|
||||||
|
<stop
|
||||||
|
id="stop321"
|
||||||
|
offset="1"
|
||||||
|
style="stop-color:#ffffff;stop-opacity:0;" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
id="linearGradient1789">
|
||||||
|
<stop
|
||||||
|
style="stop-color:#202020;stop-opacity:1.0000000;"
|
||||||
|
offset="0.0000000"
|
||||||
|
id="stop1790" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#b9b9b9;stop-opacity:1.0000000;"
|
||||||
|
offset="1.0000000"
|
||||||
|
id="stop1791" />
|
||||||
|
</linearGradient>
|
||||||
|
<radialGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#linearGradient1789"
|
||||||
|
id="radialGradient238"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
gradientTransform="matrix(1.055022,-0.02734504,0.177703,1.190929,-3.572177,-7.125301)"
|
||||||
|
cx="20.706017"
|
||||||
|
cy="37.517986"
|
||||||
|
fx="20.706017"
|
||||||
|
fy="37.517986"
|
||||||
|
r="30.905205" />
|
||||||
|
<linearGradient
|
||||||
|
id="linearGradient3983">
|
||||||
|
<stop
|
||||||
|
style="stop-color:#ffffff;stop-opacity:0.87628865;"
|
||||||
|
offset="0.0000000"
|
||||||
|
id="stop3984" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#fffffe;stop-opacity:0.0000000;"
|
||||||
|
offset="1.0000000"
|
||||||
|
id="stop3985" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#linearGradient3983"
|
||||||
|
id="linearGradient491"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
gradientTransform="matrix(1.516844,0,0,0.708978,-0.879573,-1.318166)"
|
||||||
|
x1="6.2297964"
|
||||||
|
y1="13.773066"
|
||||||
|
x2="9.8980894"
|
||||||
|
y2="66.834053" />
|
||||||
|
<linearGradient
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
y2="46.689312"
|
||||||
|
x2="12.853771"
|
||||||
|
y1="32.567184"
|
||||||
|
x1="13.035696"
|
||||||
|
gradientTransform="matrix(1.317489,0,0,0.816256,-0.879573,-1.318166)"
|
||||||
|
id="linearGradient322"
|
||||||
|
xlink:href="#linearGradient319"
|
||||||
|
inkscape:collect="always" />
|
||||||
|
<linearGradient
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
y2="6.1802502"
|
||||||
|
x2="15.514889"
|
||||||
|
y1="31.36775"
|
||||||
|
x1="18.112709"
|
||||||
|
id="linearGradient3104"
|
||||||
|
xlink:href="#linearGradient3096"
|
||||||
|
inkscape:collect="always" />
|
||||||
|
<linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#linearGradient9766"
|
||||||
|
id="linearGradient9772"
|
||||||
|
x1="22.175976"
|
||||||
|
y1="36.987999"
|
||||||
|
x2="22.065331"
|
||||||
|
y2="32.050499"
|
||||||
|
gradientUnits="userSpaceOnUse" />
|
||||||
|
<radialGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#linearGradient9806"
|
||||||
|
id="radialGradient9812"
|
||||||
|
cx="24.35099"
|
||||||
|
cy="41.591846"
|
||||||
|
fx="24.35099"
|
||||||
|
fy="41.591846"
|
||||||
|
r="19.136078"
|
||||||
|
gradientTransform="matrix(1,0,0,0.242494,0,31.50606)"
|
||||||
|
gradientUnits="userSpaceOnUse" />
|
||||||
|
</defs>
|
||||||
|
<sodipodi:namedview
|
||||||
|
fill="#729fcf"
|
||||||
|
id="base"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="0.10196078"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:zoom="4"
|
||||||
|
inkscape:cx="24.484127"
|
||||||
|
inkscape:cy="-13.803699"
|
||||||
|
inkscape:current-layer="layer1"
|
||||||
|
showgrid="false"
|
||||||
|
inkscape:grid-bbox="true"
|
||||||
|
inkscape:document-units="px"
|
||||||
|
inkscape:window-width="1026"
|
||||||
|
inkscape:window-height="818"
|
||||||
|
inkscape:window-x="2543"
|
||||||
|
inkscape:window-y="520"
|
||||||
|
inkscape:showpageshadow="false"
|
||||||
|
stroke="#3465a4"
|
||||||
|
inkscape:window-maximized="0" />
|
||||||
|
<metadata
|
||||||
|
id="metadata4">
|
||||||
|
<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>Folder Icon</dc:title>
|
||||||
|
<dc:date />
|
||||||
|
<dc:creator>
|
||||||
|
<cc:Agent>
|
||||||
|
<dc:title>Jakub Steiner</dc:title>
|
||||||
|
</cc:Agent>
|
||||||
|
</dc:creator>
|
||||||
|
<cc:license
|
||||||
|
rdf:resource="http://creativecommons.org/licenses/publicdomain/" />
|
||||||
|
<dc:source>http://jimmac.musichall.cz</dc:source>
|
||||||
|
<dc:subject>
|
||||||
|
<rdf:Bag>
|
||||||
|
<rdf:li>folder</rdf:li>
|
||||||
|
<rdf:li>directory</rdf:li>
|
||||||
|
</rdf:Bag>
|
||||||
|
</dc:subject>
|
||||||
|
</cc:Work>
|
||||||
|
<cc:License
|
||||||
|
rdf:about="http://creativecommons.org/licenses/publicdomain/">
|
||||||
|
<cc:permits
|
||||||
|
rdf:resource="http://creativecommons.org/ns#Reproduction" />
|
||||||
|
<cc:permits
|
||||||
|
rdf:resource="http://creativecommons.org/ns#Distribution" />
|
||||||
|
<cc:permits
|
||||||
|
rdf:resource="http://creativecommons.org/ns#DerivativeWorks" />
|
||||||
|
</cc:License>
|
||||||
|
</rdf:RDF>
|
||||||
|
</metadata>
|
||||||
|
<g
|
||||||
|
id="layer1"
|
||||||
|
inkscape:label="Folder"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
transform="translate(0,-12)">
|
||||||
|
<g
|
||||||
|
id="g3346"
|
||||||
|
transform="matrix(0.69173553,0,0,0.69173553,1.909546,13.295426)">
|
||||||
|
<g
|
||||||
|
id="g6707"
|
||||||
|
transform="matrix(0.02262383,0,0,0.02086758,43.38343,36.36962)"
|
||||||
|
style="display:inline">
|
||||||
|
<rect
|
||||||
|
y="-150.69685"
|
||||||
|
x="-1559.2523"
|
||||||
|
height="478.35718"
|
||||||
|
width="1339.6335"
|
||||||
|
id="rect6709"
|
||||||
|
style="opacity:0.40206185;color:#000000;fill:url(#linearGradient6715);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible" />
|
||||||
|
<path
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
sodipodi:nodetypes="cccc"
|
||||||
|
id="path6711"
|
||||||
|
d="m -219.61876,-150.68038 c 0,0 0,478.33079 0,478.33079 142.874166,0.90045 345.40022,-107.16966 345.40014,-239.196175 0,-132.026537 -159.436816,-239.134595 -345.40014,-239.134615 z"
|
||||||
|
style="opacity:0.40206185;color:#000000;fill:url(#radialGradient6717);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible" />
|
||||||
|
<path
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
style="opacity:0.40206185;color:#000000;fill:url(#radialGradient6719);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible"
|
||||||
|
d="m -1559.2523,-150.68038 c 0,0 0,478.33079 0,478.33079 -142.8742,0.90045 -345.4002,-107.16966 -345.4002,-239.196175 0,-132.026537 159.4368,-239.134595 345.4002,-239.134615 z"
|
||||||
|
id="path6713"
|
||||||
|
sodipodi:nodetypes="cccc" />
|
||||||
|
</g>
|
||||||
|
<path
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
sodipodi:nodetypes="ccccccssssccc"
|
||||||
|
style="fill:url(#radialGradient238);fill-opacity:1;fill-rule:nonzero;stroke:url(#linearGradient3104);stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
|
||||||
|
id="path216"
|
||||||
|
d="m 4.5217805,38.687417 c 0.021796,0.416304 0.4599049,0.832609 0.8762095,0.832609 l 31.327021,0 c 0.416302,0 0.810812,-0.416305 0.789016,-0.832609 L 36.577584,11.460682 c -0.0218,-0.416303 -0.459897,-0.832616 -0.876201,-0.832616 l -13.270873,0 c -0.485057,0 -1.234473,-0.315589 -1.401644,-1.1066322 L 20.417475,6.6283628 C 20.262006,5.8926895 19.535261,5.5904766 19.118957,5.5904766 l -14.7788595,0 c -0.4163128,0 -0.8108208,0.4163041 -0.7890249,0.8326083 L 4.5217805,38.687417 z" />
|
||||||
|
<path
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
style="opacity:0.11363633;color:#000000;fill:#729fcf;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:1.00000024;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:inline;overflow:visible"
|
||||||
|
d="m 5.2265927,22.5625 30.2655803,0"
|
||||||
|
id="path9788"
|
||||||
|
sodipodi:nodetypes="cc" />
|
||||||
|
<path
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
style="opacity:0.11363633;color:#000000;fill:#729fcf;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:1.00000036;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:inline;overflow:visible"
|
||||||
|
d="m 5.0421736,18.5625 30.4469304,0"
|
||||||
|
id="path9784"
|
||||||
|
sodipodi:nodetypes="cc" />
|
||||||
|
<path
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
sodipodi:nodetypes="cc"
|
||||||
|
id="path9778"
|
||||||
|
d="m 4.9806965,12.5625 30.5073605,0"
|
||||||
|
style="opacity:0.11363633;color:#000000;fill:#729fcf;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:inline;overflow:visible" />
|
||||||
|
<path
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
sodipodi:nodetypes="cc"
|
||||||
|
id="path9798"
|
||||||
|
d="m 5.3861577,32.5625 30.1087233,0"
|
||||||
|
style="opacity:0.11363633;color:#000000;fill:#729fcf;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:1.00000036;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:inline;overflow:visible" />
|
||||||
|
<path
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
style="opacity:0.11363633;color:#000000;fill:#729fcf;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:1.00000024;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:inline;overflow:visible"
|
||||||
|
d="m 5.5091398,34.5625 29.9877532,0"
|
||||||
|
id="path9800"
|
||||||
|
sodipodi:nodetypes="cc" />
|
||||||
|
<path
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
sodipodi:nodetypes="cc"
|
||||||
|
id="path9782"
|
||||||
|
d="m 5.0421736,16.5625 30.4469304,0"
|
||||||
|
style="opacity:0.11363633;color:#000000;fill:#729fcf;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:1.00000036;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:inline;overflow:visible" />
|
||||||
|
<path
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
style="opacity:0.11363633;color:#000000;fill:#729fcf;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:1.00000024;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:inline;overflow:visible"
|
||||||
|
d="m 5.0114345,14.5625 30.4771455,0"
|
||||||
|
id="path9780"
|
||||||
|
sodipodi:nodetypes="cc" />
|
||||||
|
<path
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
style="opacity:0.11363633;color:#000000;fill:#729fcf;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:1.00000024;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:inline;overflow:visible"
|
||||||
|
d="m 4.9220969,10.5625 15.2808151,0"
|
||||||
|
id="path9776"
|
||||||
|
sodipodi:nodetypes="cc" />
|
||||||
|
<path
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
sodipodi:nodetypes="cc"
|
||||||
|
id="path9774"
|
||||||
|
d="m 4.8737534,8.5624999 14.7837336,0"
|
||||||
|
style="opacity:0.11363633;color:#000000;fill:#729fcf;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:0.99999982;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:inline;overflow:visible" />
|
||||||
|
<path
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
sodipodi:nodetypes="cc"
|
||||||
|
id="path9794"
|
||||||
|
d="m 5.3246666,28.5625 30.1692094,0"
|
||||||
|
style="opacity:0.11363633;color:#000000;fill:#729fcf;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:1.00000036;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:inline;overflow:visible" />
|
||||||
|
<path
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
style="opacity:0.11363633;color:#000000;fill:#729fcf;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:inline;overflow:visible"
|
||||||
|
d="m 5.2880638,26.5625 30.2051202,0"
|
||||||
|
id="path9792"
|
||||||
|
sodipodi:nodetypes="cc" />
|
||||||
|
<path
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
sodipodi:nodetypes="cc"
|
||||||
|
id="path9790"
|
||||||
|
d="m 5.2265927,24.5625 30.2655803,0"
|
||||||
|
style="opacity:0.11363633;color:#000000;fill:#729fcf;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:1.00000024;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:inline;overflow:visible" />
|
||||||
|
<path
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
sodipodi:nodetypes="cc"
|
||||||
|
id="path9786"
|
||||||
|
d="m 5.1958537,20.5625 30.2957953,0"
|
||||||
|
style="opacity:0.11363633;color:#000000;fill:#729fcf;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:1.00000012;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:inline;overflow:visible" />
|
||||||
|
<path
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
style="opacity:0.11363633;color:#000000;fill:#729fcf;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:1.00000036;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:inline;overflow:visible"
|
||||||
|
d="m 5.3246666,30.5625 30.1692094,0"
|
||||||
|
id="path9796"
|
||||||
|
sodipodi:nodetypes="cc" />
|
||||||
|
<path
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
sodipodi:nodetypes="cc"
|
||||||
|
id="path9802"
|
||||||
|
d="m 5.5091398,36.5625 29.9877532,0"
|
||||||
|
style="opacity:0.11363633;color:#000000;fill:#729fcf;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:1.00000024;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:inline;overflow:visible" />
|
||||||
|
<path
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
sodipodi:nodetypes="cccccccccscccccc"
|
||||||
|
id="path219"
|
||||||
|
d="m 6.068343,38.864023 c 0.016343,0.312228 -0.1809113,0.520379 -0.4985848,0.416303 l 0,0 C 5.2520766,39.176251 5.033027,38.968099 5.0166756,38.65587 L 4.068956,6.5913839 C 4.0526131,6.2791558 4.2341418,6.0906134 4.5463699,6.0906134 L 18.96842,6.0429196 c 0.312228,0 0.931943,0.3004727 1.132936,1.3221818 l 0.573489,2.8155346 C 20.247791,9.715379 20.255652,9.7010175 20.037287,9.0239299 L 19.631192,7.7647478 C 19.412142,7.0371009 18.932991,6.9328477 18.620763,6.9328477 l -12.8877741,0 c -0.3122276,0 -0.5094814,0.2081522 -0.4931306,0.5203887 L 6.1778636,38.968099 6.068343,38.864023 z"
|
||||||
|
style="opacity:0.45142858;color:#000000;fill:url(#linearGradient491);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.21380496;marker:none;visibility:visible;display:block;overflow:visible" />
|
||||||
|
<g
|
||||||
|
inkscape:export-ydpi="74.800003"
|
||||||
|
inkscape:export-xdpi="74.800003"
|
||||||
|
inkscape:export-filename="/home/jimmac/ximian_art/icons/nautilus/suse93/gnome-fs-directory.png"
|
||||||
|
transform="matrix(1.040764,0,0.05449252,1.040764,-8.670199,2.670594)"
|
||||||
|
id="g220"
|
||||||
|
style="fill:#ffffff;fill-opacity:0.75706213;fill-rule:nonzero;stroke:none">
|
||||||
|
<path
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
sodipodi:nodetypes="cscscs"
|
||||||
|
id="path221"
|
||||||
|
d="m 42.417183,8.5151772 c 0.0051,-0.097113 -0.128161,-0.2469882 -0.235117,-0.2470056 l -13.031401,-0.00212 c 0,0 0.911714,0.5879545 2.201812,0.5962436 l 11.053497,0.07102 c 0.01109,-0.2117278 0.0027,-0.2560322 0.01121,-0.4181395 z"
|
||||||
|
style="fill:#ffffff;fill-opacity:0.50847461" />
|
||||||
|
</g>
|
||||||
|
<path
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
inkscape:export-ydpi="74.800003"
|
||||||
|
inkscape:export-xdpi="74.800003"
|
||||||
|
inkscape:export-filename="/home/jimmac/ximian_art/icons/nautilus/suse93/gnome-fs-directory.png"
|
||||||
|
sodipodi:nodetypes="cscccscc"
|
||||||
|
id="path233"
|
||||||
|
d="m 39.783532,39.51062 c 1.143894,-0.04406 1.963076,-1.096299 2.047035,-2.321005 0.791787,-11.548687 1.65936,-21.231949 1.65936,-21.231949 0.07215,-0.247484 -0.167911,-0.494967 -0.48014,-0.494967 l -34.3711566,0 c 0,0 -1.8503191,21.866892 -1.8503191,21.866892 -0.1145551,0.982066 -0.4660075,1.804718 -1.5498358,2.183713 l 34.5450565,-0.0027 z"
|
||||||
|
style="color:#000000;fill:url(#linearGradient9772);fill-opacity:1;fill-rule:nonzero;stroke:#3465a4;stroke-width:1;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:block" />
|
||||||
|
<path
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
style="opacity:0.46590911;fill:none;stroke:url(#linearGradient322);stroke-width:0.9999997px;stroke-linecap:round;stroke-linejoin:miter;stroke-opacity:1"
|
||||||
|
d="m 9.6202444,16.463921 32.7910986,0.06481 -1.574046,20.001979 c -0.08432,1.071511 -0.450678,1.428215 -1.872656,1.428215 -1.871502,0 -28.677968,-0.03241 -31.394742,-0.03241 0.2335983,-0.320811 0.3337557,-0.988623 0.3350963,-1.004612 L 9.6202444,16.463921 z"
|
||||||
|
id="path304"
|
||||||
|
sodipodi:nodetypes="ccsscsc" />
|
||||||
|
<path
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
style="fill:#ffffff;fill-opacity:0.0892857;fill-rule:evenodd;stroke:none"
|
||||||
|
d="M 9.6202481,16.223182 8.4536014,31.866453 c 0,0 8.2961546,-4.148078 18.6663476,-4.148078 10.370193,0 15.55529,-11.495193 15.55529,-11.495193 l -33.0549909,0 z"
|
||||||
|
id="path323"
|
||||||
|
sodipodi:nodetypes="ccccc" />
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
<g
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer2"
|
||||||
|
inkscape:label="pattern"
|
||||||
|
transform="translate(0,-12)" />
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 22 KiB |
|
|
@ -14,6 +14,7 @@
|
||||||
<li>Android-logging-log4j (<a href="https://code.google.com/p/android-logging-log4j/">https://code.google.com/p/android-logging-log4j/</a>)</li>
|
<li>Android-logging-log4j (<a href="https://code.google.com/p/android-logging-log4j/">https://code.google.com/p/android-logging-log4j/</a>)</li>
|
||||||
<li>Log4j (<a href="http://logging.apache.org/log4j">http://logging.apache.org/log4j</a>)</li>
|
<li>Log4j (<a href="http://logging.apache.org/log4j">http://logging.apache.org/log4j</a>)</li>
|
||||||
<li>dom4J (<a href="http://dom4j.sourceforge.net/">http://dom4j.sourceforge.net/</a>)</li>
|
<li>dom4J (<a href="http://dom4j.sourceforge.net/">http://dom4j.sourceforge.net/</a>)</li>
|
||||||
|
<li>Tango Desktop Project(<a href="http://tango.freedesktop.org/">http://tango.freedesktop.org/</a>)</li>
|
||||||
</ul>
|
</ul>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
@ -20,6 +20,7 @@ import com.ericsson.uecontrol.core.behaviour.UeBehaviourSleep;
|
||||||
import com.ericsson.uecontrol.core.behaviour.UeBehaviourSurfing;
|
import com.ericsson.uecontrol.core.behaviour.UeBehaviourSurfing;
|
||||||
import com.ericsson.uecontrol.gui.fragments.BehaviourListFragment;
|
import com.ericsson.uecontrol.gui.fragments.BehaviourListFragment;
|
||||||
import com.ericsson.uecontrol.gui.fragments.FileBrowserDialog;
|
import com.ericsson.uecontrol.gui.fragments.FileBrowserDialog;
|
||||||
|
import com.ericsson.uecontrol.gui.fragments.FileBrowserDialog.OnFileSelectionListener;
|
||||||
import com.ericsson.uecontrol.gui.fragments.StatusFragment;
|
import com.ericsson.uecontrol.gui.fragments.StatusFragment;
|
||||||
import com.ericsson.uecontrol.gui.util.CSVWriter;
|
import com.ericsson.uecontrol.gui.util.CSVWriter;
|
||||||
|
|
||||||
|
|
@ -31,7 +32,8 @@ import java.io.File;
|
||||||
import de.mindpipe.android.logging.log4j.LogConfigurator;
|
import de.mindpipe.android.logging.log4j.LogConfigurator;
|
||||||
|
|
||||||
|
|
||||||
public class MainActivity extends FragmentActivity implements OnSharedPreferenceChangeListener{
|
public class MainActivity extends FragmentActivity implements OnSharedPreferenceChangeListener,
|
||||||
|
OnFileSelectionListener {
|
||||||
private static final Logger log = Logger.getLogger(MainActivity.class);
|
private static final Logger log = Logger.getLogger(MainActivity.class);
|
||||||
public static final String DEFAULT_LOG_PATH = "/sdcard/uecontrol/";
|
public static final String DEFAULT_LOG_PATH = "/sdcard/uecontrol/";
|
||||||
public static final String BEHAVIOUR_SAVE_FILE = "behaviour_list.json";
|
public static final String BEHAVIOUR_SAVE_FILE = "behaviour_list.json";
|
||||||
|
|
@ -203,7 +205,8 @@ public class MainActivity extends FragmentActivity implements OnSharedPreference
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else if (id == R.id.action_import) {
|
else if (id == R.id.action_import) {
|
||||||
//TODO:
|
FileBrowserDialog browser = FileBrowserDialog.newInstance("/sdcard");
|
||||||
|
browser.show(this.getFragmentManager(), "import");
|
||||||
}
|
}
|
||||||
else if (id == R.id.action_export) {
|
else if (id == R.id.action_export) {
|
||||||
//TODO:
|
//TODO:
|
||||||
|
|
@ -214,6 +217,16 @@ public class MainActivity extends FragmentActivity implements OnSharedPreference
|
||||||
}
|
}
|
||||||
return super.onOptionsItemSelected(item);
|
return super.onOptionsItemSelected(item);
|
||||||
}
|
}
|
||||||
|
public void onFileSelection(String tag, File file){
|
||||||
|
try {
|
||||||
|
if(tag.equals("import")) {
|
||||||
|
currentExecutor.read(file.getAbsolutePath());
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
log.error("Unable to import from: "+file.getAbsolutePath(), e);
|
||||||
|
Toast.makeText(this, "Unable to import from file", Toast.LENGTH_SHORT).show();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
private void updateExecutionState(){
|
private void updateExecutionState(){
|
||||||
|
|
|
||||||
233
app/src/main/java/com/ericsson/uecontrol/gui/fragments/FileBrowserDialog.java
Executable file
|
|
@ -0,0 +1,233 @@
|
||||||
|
package com.ericsson.uecontrol.gui.fragments;
|
||||||
|
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Collections;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import android.app.Activity;
|
||||||
|
import android.app.AlertDialog;
|
||||||
|
import android.app.Dialog;
|
||||||
|
import android.app.DialogFragment;
|
||||||
|
import android.content.Context;
|
||||||
|
import android.content.DialogInterface;
|
||||||
|
import android.graphics.drawable.Drawable;
|
||||||
|
import android.os.Bundle;
|
||||||
|
import android.view.ContextThemeWrapper;
|
||||||
|
import android.view.KeyEvent;
|
||||||
|
import android.view.View;
|
||||||
|
import android.view.ViewGroup;
|
||||||
|
import android.widget.AbsListView;
|
||||||
|
import android.widget.AdapterView;
|
||||||
|
import android.widget.AdapterView.OnItemClickListener;
|
||||||
|
import android.widget.ArrayAdapter;
|
||||||
|
import android.widget.LinearLayout;
|
||||||
|
import android.widget.ListView;
|
||||||
|
import android.widget.TextView;
|
||||||
|
import android.widget.Toast;
|
||||||
|
|
||||||
|
import com.ericsson.uecontrol.R;
|
||||||
|
|
||||||
|
import org.apache.log4j.Logger;
|
||||||
|
|
||||||
|
|
||||||
|
/** Allow user to select destination directory and to enter filename.
|
||||||
|
*
|
||||||
|
* */
|
||||||
|
public class FileBrowserDialog extends DialogFragment
|
||||||
|
implements OnItemClickListener, DialogInterface.OnKeyListener {
|
||||||
|
public static final Logger log = Logger.getLogger(FileBrowserDialog.class);
|
||||||
|
public static final int FOLDER_ICON = R.drawable.folder;
|
||||||
|
public static final int FILE_ICON = R.drawable.file;
|
||||||
|
|
||||||
|
public static interface OnFileSelectionListener{
|
||||||
|
public void onFileSelection(String tag, File file);
|
||||||
|
}
|
||||||
|
|
||||||
|
private File root;
|
||||||
|
private File path;
|
||||||
|
private File selection;
|
||||||
|
private ListView fileListView;
|
||||||
|
private TextView pathView;
|
||||||
|
private OnFileSelectionListener callback;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public static FileBrowserDialog newInstance(String root) {
|
||||||
|
FileBrowserDialog browser = new FileBrowserDialog();
|
||||||
|
Bundle bundle = new Bundle();
|
||||||
|
bundle.putString("root", root);
|
||||||
|
|
||||||
|
browser.setArguments(bundle);
|
||||||
|
return browser;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onAttach(Activity activity) {
|
||||||
|
if(!(activity instanceof OnFileSelectionListener))
|
||||||
|
throw new ClassCastException(activity.toString() + " must implement OnFileSelectionListener");
|
||||||
|
|
||||||
|
Bundle bundle = this.getArguments();
|
||||||
|
root = new File(bundle.getString("root"));
|
||||||
|
callback = (OnFileSelectionListener) activity;
|
||||||
|
|
||||||
|
super.onAttach(activity);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Build the popup.
|
||||||
|
* */
|
||||||
|
@Override
|
||||||
|
public Dialog onCreateDialog(Bundle savedInstanceState) {
|
||||||
|
// Fix for CopyPaste bar not visible
|
||||||
|
final Context context = new ContextThemeWrapper(getActivity(), android.R.style.Theme_Holo_Light);
|
||||||
|
|
||||||
|
LinearLayout rootView = new LinearLayout(context);
|
||||||
|
rootView.setOrientation(LinearLayout.VERTICAL);
|
||||||
|
rootView.setLayoutParams(new LinearLayout.LayoutParams(
|
||||||
|
LinearLayout.LayoutParams.MATCH_PARENT,
|
||||||
|
LinearLayout.LayoutParams.MATCH_PARENT));
|
||||||
|
int padding = getResources().getDimensionPixelSize(R.dimen.standard_padding);
|
||||||
|
rootView.setPadding(padding, padding, padding, padding);
|
||||||
|
|
||||||
|
|
||||||
|
pathView = new TextView(context);
|
||||||
|
pathView.setText(root.getAbsolutePath());
|
||||||
|
pathView.setLayoutParams(new LinearLayout.LayoutParams(
|
||||||
|
LinearLayout.LayoutParams.MATCH_PARENT,
|
||||||
|
LinearLayout.LayoutParams.WRAP_CONTENT));
|
||||||
|
rootView.addView(pathView);
|
||||||
|
|
||||||
|
fileListView = new ListView(context);
|
||||||
|
fileListView.setLayoutParams(new LinearLayout.LayoutParams(
|
||||||
|
LinearLayout.LayoutParams.MATCH_PARENT,
|
||||||
|
LinearLayout.LayoutParams.WRAP_CONTENT));
|
||||||
|
fileListView.setOnItemClickListener(this);
|
||||||
|
fileListView.setChoiceMode(AbsListView.CHOICE_MODE_SINGLE);
|
||||||
|
|
||||||
|
updateFileList(root);
|
||||||
|
rootView.addView(fileListView);
|
||||||
|
|
||||||
|
/*EditText fileNameView = new EditText(context);
|
||||||
|
fileNameView.setLayoutParams(new LinearLayout.LayoutParams(
|
||||||
|
LinearLayout.LayoutParams.MATCH_PARENT,
|
||||||
|
LinearLayout.LayoutParams.WRAP_CONTENT));
|
||||||
|
fileNameView.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS);
|
||||||
|
rootView.addView(fileNameView);
|
||||||
|
*/
|
||||||
|
|
||||||
|
// Create dialog
|
||||||
|
AlertDialog.Builder builder = new AlertDialog.Builder(context);
|
||||||
|
builder.setTitle(R.string.configure_behaviour);
|
||||||
|
builder.setOnKeyListener(this);
|
||||||
|
builder.setPositiveButton(R.string.action_select, new DialogInterface.OnClickListener() {
|
||||||
|
public void onClick(DialogInterface dialog, int id) {
|
||||||
|
if(selection != null)
|
||||||
|
callback.onFileSelection(FileBrowserDialog.this.getTag(), selection);
|
||||||
|
else
|
||||||
|
Toast.makeText(context, "No File Selected", Toast.LENGTH_SHORT).show();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
builder.setNegativeButton(R.string.action_cancel, new DialogInterface.OnClickListener() {
|
||||||
|
public void onClick(DialogInterface dialog, int id) {
|
||||||
|
FileBrowserDialog.this.getDialog().cancel();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
builder.setView(rootView);
|
||||||
|
|
||||||
|
AlertDialog dialog = builder.create();
|
||||||
|
dialog.show();
|
||||||
|
dialog.getButton(AlertDialog.BUTTON_POSITIVE).setEnabled(false);
|
||||||
|
return dialog;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
|
||||||
|
File file = (File)fileListView.getAdapter().getItem(position);
|
||||||
|
if(file.isDirectory()){
|
||||||
|
updateFileList(file);
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
log.debug("File selected: "+ file.getAbsolutePath());
|
||||||
|
((AlertDialog)this.getDialog()).getButton(AlertDialog.BUTTON_POSITIVE).setEnabled(true);
|
||||||
|
selection = file;
|
||||||
|
((FileListAdapter)fileListView.getAdapter()).notifyDataSetChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event) {
|
||||||
|
if (event.getAction() == KeyEvent.ACTION_UP && keyCode == KeyEvent.KEYCODE_BACK) {
|
||||||
|
if(root.equals(path))
|
||||||
|
dialog.dismiss();
|
||||||
|
else
|
||||||
|
updateFileList(path.getParentFile());
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private void updateFileList(File dir){
|
||||||
|
if(!dir.isDirectory())
|
||||||
|
dir = dir.getParentFile();
|
||||||
|
if(dir.compareTo(root) <= 0)
|
||||||
|
dir = root;
|
||||||
|
|
||||||
|
log.debug("Browsing folder: "+ dir.getAbsolutePath());
|
||||||
|
ArrayList<File> folders = new ArrayList();
|
||||||
|
ArrayList<File> files = new ArrayList();
|
||||||
|
for(File file : dir.listFiles()){
|
||||||
|
if(file.isDirectory())
|
||||||
|
folders.add(file);
|
||||||
|
else
|
||||||
|
files.add(file);
|
||||||
|
}
|
||||||
|
Collections.sort(folders);
|
||||||
|
Collections.sort(files);
|
||||||
|
folders.addAll(files);
|
||||||
|
|
||||||
|
path = dir;
|
||||||
|
pathView.setText(dir.getAbsolutePath());
|
||||||
|
fileListView.setAdapter(new FileListAdapter(this.getActivity(), folders));
|
||||||
|
|
||||||
|
// Reset selection
|
||||||
|
selection = null;
|
||||||
|
if(this.getDialog() != null)
|
||||||
|
((AlertDialog)this.getDialog()).getButton(AlertDialog.BUTTON_POSITIVE).setEnabled(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected class FileListAdapter extends ArrayAdapter<File>{
|
||||||
|
private List<File> fileList;
|
||||||
|
|
||||||
|
public FileListAdapter(Context context, List<File> fileList) {
|
||||||
|
super(context, android.R.layout.simple_list_item_1, fileList);
|
||||||
|
this.fileList = fileList;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public View getView(int position, View convertView, ViewGroup parent) {
|
||||||
|
TextView textview = (TextView) super.getView( position, convertView, parent );
|
||||||
|
textview.setPadding(5, 10, 10, 10);
|
||||||
|
|
||||||
|
File file = fileList.get(position);
|
||||||
|
textview.setText(file.getName());
|
||||||
|
|
||||||
|
Drawable icon = getActivity().getResources().getDrawable(
|
||||||
|
( file.isDirectory() ? FOLDER_ICON : FILE_ICON )
|
||||||
|
);
|
||||||
|
textview.setCompoundDrawablesWithIntrinsicBounds(icon, null, null, null );
|
||||||
|
|
||||||
|
// Is selected?
|
||||||
|
if (position == fileList.indexOf(selection))
|
||||||
|
textview.setBackgroundResource(android.R.color.darker_gray);
|
||||||
|
else
|
||||||
|
textview.setBackgroundResource(android.R.color.transparent);
|
||||||
|
|
||||||
|
return textview;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
app/src/main/res/drawable-hdpi/file.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
app/src/main/res/drawable-hdpi/folder.png
Normal file
|
After Width: | Height: | Size: 2 KiB |
BIN
app/src/main/res/drawable-mdpi/file.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
app/src/main/res/drawable-mdpi/folder.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
app/src/main/res/drawable-xhdpi/file.png
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
app/src/main/res/drawable-xhdpi/folder.png
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
app/src/main/res/drawable-xxhdpi/file.png
Normal file
|
After Width: | Height: | Size: 3.3 KiB |
BIN
app/src/main/res/drawable-xxhdpi/folder.png
Normal file
|
After Width: | Height: | Size: 4 KiB |
|
|
@ -23,7 +23,7 @@
|
||||||
android:title="@string/action_import"
|
android:title="@string/action_import"
|
||||||
android:orderInCategory="100"
|
android:orderInCategory="100"
|
||||||
android:showAsAction="never"
|
android:showAsAction="never"
|
||||||
android:enabled="false" />
|
android:enabled="true" />
|
||||||
<item android:id="@+id/action_export"
|
<item android:id="@+id/action_export"
|
||||||
android:title="@string/action_export"
|
android:title="@string/action_export"
|
||||||
android:orderInCategory="100"
|
android:orderInCategory="100"
|
||||||
|
|
|
||||||