Ajout btn fichierCSV

This commit is contained in:
pablo rodriguez 2022-05-25 21:22:38 +02:00
parent 96791614a2
commit a3fcc46c55
16 changed files with 803 additions and 30 deletions

4
bin/.gitignore vendored
View File

@ -1,7 +1,3 @@
/resources/ /resources/
/app/ /app/
/MEPTL/ /MEPTL/
/fichierAnalyse.png
/fichier_analyse.svg
/open.svg
/open2.png

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
bin/fichierAnalyse.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

325
bin/fichier_analyse.svg Normal file
View File

@ -0,0 +1,325 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
inkscape:export-ydpi="96"
inkscape:export-xdpi="96"
inkscape:export-filename="C:\Users\pabr6\git\analyseWriter\MEPTL\icons\fichierAnalyse.png"
sodipodi:docname="fichier_analyse.svg"
inkscape:version="1.1.2 (b8e25be833, 2022-02-05)"
id="svg8"
version="1.1"
viewBox="0 0 12.7 12.7"
height="48"
width="48"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/">
<defs
id="defs2">
<linearGradient
id="k"
gradientTransform="matrix(7.99974,0,0,7.9977797,-861.96742,-7808.7674)"
gradientUnits="userSpaceOnUse"
x1="122.75008"
x2="111.74973"
xlink:href="#b"
y1="991.62115"
y2="977.11713" />
<linearGradient
id="b">
<stop
offset="0"
stop-color="#0369a3"
id="stop7" />
<stop
offset="1"
stop-color="#1c99e0"
id="stop9" />
</linearGradient>
<linearGradient
id="j"
gradientUnits="userSpaceOnUse"
x1="108.00134"
x2="20.001341"
y1="122"
y2="6"
gradientTransform="translate(12)">
<stop
offset="0"
stop-color="#e6e6e6"
id="stop35" />
<stop
offset="1"
stop-color="#fff"
id="stop37" />
</linearGradient>
<linearGradient
id="i"
gradientUnits="userSpaceOnUse"
x1="108.00134"
x2="20.001341"
xlink:href="#b"
y1="130"
y2="14"
gradientTransform="translate(12)" />
<linearGradient
id="h"
gradientTransform="matrix(4.4999,0,0,3.66665,-930.97741,2199.6564)"
gradientUnits="userSpaceOnUse"
x2="0"
y1="-581.63782"
y2="-578.63782">
<stop
offset="0"
stop-color="#63bbee"
id="stop29" />
<stop
offset="1"
stop-color="#aadcf7"
id="stop31" />
</linearGradient>
<linearGradient
id="g"
gradientTransform="matrix(-4.19983,0,0,3.9111,1552.9405,-4523.1636)"
gradientUnits="userSpaceOnUse"
x2="0"
xlink:href="#a"
y1="1173"
y2="1178" />
<linearGradient
id="a">
<stop
offset="0"
stop-color="#666"
id="stop2" />
<stop
offset="1"
stop-color="#333"
id="stop4" />
</linearGradient>
<linearGradient
id="f"
gradientTransform="matrix(4.19983,0,0,3.9111,-1380.9394,-4521.9436)"
gradientUnits="userSpaceOnUse"
x2="0"
xlink:href="#a"
y1="1173"
y2="1178" />
<linearGradient
id="e"
gradientTransform="matrix(1.19997,0,0,1.22222,-269.19161,858.5534)"
gradientUnits="userSpaceOnUse"
x2="0"
y1="-629.66907"
y2="-635.54944">
<stop
offset="0"
stop-color="#18a303"
id="stop22" />
<stop
offset="1"
stop-color="#106802"
id="stop24" />
</linearGradient>
<linearGradient
id="d"
gradientTransform="matrix(4.19983,0,0,3.9111,-1380.9394,-4517.0536)"
gradientUnits="userSpaceOnUse"
x2="0"
y1="1173"
y2="1178">
<stop
offset="0"
stop-color="#0369a3"
id="stop17" />
<stop
offset="1"
stop-color="#023f62"
id="stop19" />
</linearGradient>
<linearGradient
id="c"
gradientTransform="matrix(0,0.791084,-1.28,0,1511.6005,-282.0136)"
gradientUnits="userSpaceOnUse"
x1="445.69522"
x2="441.38797"
y1="1103.5776"
y2="1099.8198">
<stop
offset="0"
stop-color="#e9b913"
id="stop12" />
<stop
offset="1"
stop-color="#ff0"
id="stop14" />
</linearGradient>
</defs>
<sodipodi:namedview
inkscape:window-maximized="1"
inkscape:window-y="-8"
inkscape:window-x="-8"
inkscape:window-height="1009"
inkscape:window-width="1920"
inkscape:guide-bbox="true"
showguides="true"
units="px"
showgrid="false"
inkscape:document-rotation="0"
inkscape:current-layer="layer1"
inkscape:document-units="mm"
inkscape:cy="19.744638"
inkscape:cx="25.753876"
inkscape:zoom="4.6594929"
inkscape:pageshadow="2"
inkscape:pageopacity="0.0"
borderopacity="1.0"
bordercolor="#666666"
pagecolor="#ffffff"
id="base"
inkscape:pagecheckerboard="0"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0"
inkscape:snap-bbox="true"
inkscape:bbox-paths="true"
inkscape:bbox-nodes="true"
inkscape:snap-midpoints="true"
inkscape:object-paths="true"
inkscape:snap-global="false">
<sodipodi:guide
id="guide14"
orientation="1,0"
position="-2.471617e-08,4.4381936" />
<sodipodi:guide
position="6.6200247,5.8336321"
orientation="0.70860014,0.70561026"
id="guide2079" />
<sodipodi:guide
position="6.6200247,5.8336321"
orientation="-0.71816555,0.69587229"
id="guide5772" />
</sodipodi:namedview>
<metadata
id="metadata5">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<g
id="layer1"
inkscape:groupmode="layer"
inkscape:label="Calque 1"
transform="translate(-0.92013353,-0.34176359)">
<g
id="g923"
transform="matrix(0.08485361,0,0,0.08631596,0.60989086,1.0161972)">
<path
d="m 17.253295,0 c -0.25037,0 -0.50072,0.011156 -0.75,0.035156 -3.66708,0.6998 -4.56576,2.2662469 -4.5,5.9980468 V 122.00195 c 4e-4,4.1875 1.81149,5.99765 6,5.99805 h 91.998055 c 4.1885,-4e-4 5.99764,-1.81055 5.99804,-5.99805 V 50.183594 c 0.048,-2.1119 -0.78004,-4.230247 -2.25,-5.748047 L 71.589245,2.2851562 c -1.51819,-1.4691999 -3.63759,-2.2988999 -5.75,-2.25 H 18.003295 C 17.754105,0.0111562 17.503675,0 17.253295,0 Z m 70.00978,0.013672 c -0.20997,0 -0.41948,0.016828 -0.62695,0.048828 -2.66247,0.8528 -3.55843,4.904547 -1.50586,6.810547 L 109.22596,31.09375 c 2.22593,2.1217 6.6581,0.306209 6.77538,-2.775391 V 4.097656 C 116.0011,1.9839562 114.08836,0.0628 111.98573,0.0625 H 87.891975 c -0.20758,-0.032 -0.41894,-0.048828 -0.6289,-0.048828 z"
fill="url(#k)"
id="path41"
style="fill:url(#k)" />
<path
d="M 18.001355,6 V 122 H 110.00137 V 50 L 66.001375,6 Z"
fill="url(#j)"
id="path43"
style="fill:url(#j)" />
<path
d="m 31.001355,55.996094 v 4 h 18 v -4 z m 21.99805,0.002 v 28 h 42 v -28 z M 56.001355,59 h 36 v 22 h -36 z m -25,4.996094 v 4 h 18 v -4 z m 0,8 v 4 h 18 v -4 z m 0,8 v 4 h 18 v -4 z m 0,8 v 4 h 64 v -4 z m 0,8 v 4 h 64 v -4 z m 0,7.999996 v 4 h 42 v -4 z"
fill="url(#i)"
id="path45"
style="fill:url(#i)" />
<path
d="m 56.001305,58.9987 h 35.99924 v 21.9999 h -35.99924 z"
fill="url(#h)"
id="path47"
style="fill:url(#h)" />
<path
d="m 82.400745,65.1097 c 2.39995,1.2223 6.5708,5.4785 9.59846,8.5556 v 3.6666 h -27.59877 c 4.80059,-6.111 12.00044,-9.7777 18.00031,-12.2222 z"
fill="url(#g)"
id="path49"
style="fill:url(#g)" />
<path
d="m 73.588425,72.2139 0.20971,-1.7259 3.15139,-1.3732 1.77234,-1.6867 3.11639,-1.287 -0.81326,2.0851 -1.21491,2.1676 -0.72316,2.3557 -0.50012,1.3573 z"
fill="#333333"
id="path51" />
<path
d="m 74.600905,70.6097 c -3.59197,-3.0353 -5.39988,-5.5 -7.79983,-9.1666 -0.70179,0.2159 -0.67498,0.1338 -1.19998,0 0,0 -3.21063,4.8582 -4.7999,7.3333 -1.58925,2.4752 -4.80059,6.1111 -4.80059,6.1111 v 2.4444 h 27.59878 c 0,0 -6.59344,-4.8509 -8.99848,-6.7221 z"
fill="url(#f)"
id="path53"
style="fill:url(#f)" />
<path
d="m 92.000545,74.8875 h -1.54688 l -6.85294,1.2222 c 0,0 -6.77196,-1.8333 -7.79068,-1.8333 -1.00092,0 -4.20908,0.6111 -4.80941,0.6111 -0.42074,0 -2.99959,-1.2222 -3.60943,-1.2222 -1.00619,0 -2.16569,1.2986 -5.16562,1.8333 0,0 -0.8619,-1.9478 -1.42439,-1.8333 -3.59992,1.4132 -4.80059,1.2222 -4.80059,1.2222 v 6.1111 h 35.9986 l 10e-4,-6.1111 h 1.4e-4 z"
fill="url(#e)"
id="path55"
style="fill:url(#e)" />
<path
d="m 56.001305,76.1097 -7e-4,4.8889 h 31.20004 l 1.19998,-1.2223 -1.19998,-1.2221 -2.39995,-1.2223 -5.99988,-1.2221 -5.99987,-0.6112 -5.39988,0.6112 h -7.19985 -4.19991 z"
fill="url(#d)"
id="path57"
style="fill:url(#d)" />
<path
d="m 58.401255,73.6653 1.70967,-2.7954 2.02641,-2.4427 1.54734,-2.8707 1.91642,-2.8912 -1.30074,3.6512 -0.95243,3.0079 -0.46065,1.8973 -0.85958,2.0216 c -0.34603,-0.2571 -0.78349,-0.2666 -1.17801,-0.397 l -1.12659,0.4498 z"
fill="#333333"
id="path59" />
<path
d="m 75.200895,73.6653 -1.74718,-2.6968 -3.09839,-3.4415 -2.56346,-3.4328 -0.99079,-1.4289 1.07384,3.7096 1.17772,2.2247 1.04471,3.3983 0.30366,1.6674 1.07862,0.3681 1.64879,-0.389 c 0.69217,-0.07 1.38438,0.013 2.07248,0.021 z"
fill="#808080"
id="path61" />
<path
d="m 62.803405,73.7194 1.29015,-3.3187 0.62925,-3.4258 0.91011,-2.115 0.56817,-2.1946 0.7887,2.2581 0.22406,2.1565 0.95403,1.9211 0.94577,2.2071 0.1768,1.5591 -1.58862,0.4542 -1.50905,-0.5992 -1.66818,1.1023 h -1.72119 v -0.01 z"
fill="#666666"
id="path63" />
<path
d="m 78.269745,74.2786 -2.10187,-1.5431 -1.34246,-1.0907 1.30382,2.0694 z"
fill="#808080"
id="path65" />
<path
d="m 80.030725,72.807 0.74175,-2.4329 0.91009,-2.115 0.56818,-2.1944 0.7887,2.2581 1.01154,1.9273 0.72905,1.9211 -0.10416,2.0544 1.00178,1.0243 -2.0623,-0.1136 -4.16225,-0.8773 0.57766,-1.4523 z"
fill="#666666"
id="path67" />
<path
d="m 91.513055,74.1618 -1.40969,-0.8635 -1.97342,-2.7541 -2.90095,-2.5543 -2.26576,-1.9252 0.43635,1.6088 2.0027,3.2177 0.21973,2.9019 1.20364,0.9416 2.69994,-0.5347 1.98746,-0.038 z"
fill="#808080"
id="path69" />
<path
d="m 57.201275,77.3319 -1.19997,3.6667 h 29.99936 v -1.2223 l -1.19997,-1.2221 -5.99988,-1.2223 -5.99987,-0.611 -5.99987,0.611 -6.4938,0.1823 z"
fill="#0369a3"
id="path71" />
<path
d="m 69.201025,79.7763 1.19998,-1.2221 h 4.79989 l 3.59992,1.2221 1.19998,1.2223 h -2.39995 z"
fill="#1c99e0"
opacity="0.5"
id="path73" />
<path
d="m 92.000605,65.00274 c -3.31371,0 -6,-2.686297 -6,-6.00001 h 6 z"
fill="url(#c)"
opacity="0.74"
id="path75"
style="fill:url(#c)" />
</g>
<g
id="g6608"
transform="matrix(1.393267,0,0,1.3867787,-4.1605106,-4.3727345)">
<path
id="path4945"
style="fill:#000000;stroke:none;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="M 6.9115255,4.1117374 A 2.5406649,2.4821629 0 0 0 4.3705953,6.5942731 2.5406649,2.4821629 0 0 0 6.9115255,9.0762921 2.5406649,2.4821629 0 0 0 8.4871398,8.5409244 L 9.0535135,9.109882 9.4219665,8.6845849 8.8902159,8.1507674 A 2.5406649,2.4821629 0 0 0 9.4519387,6.5942731 2.5406649,2.4821629 0 0 0 6.9115255,4.1117374 Z m 0,0.5539713 A 1.9739749,1.9285217 0 0 1 8.8850483,6.5942731 1.9739749,1.9285217 0 0 1 6.9115255,8.5223207 1.9739749,1.9285217 0 0 1 4.9374857,6.5942731 1.9739749,1.9285217 0 0 1 6.9115255,4.6657087 Z" />
<path
style="fill:#ff0000;stroke:none;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 9.7071636,8.4854359 2.9328084,2.9440821 c 0.0419,0.512292 -0.280235,0.819082 -0.875635,0.903687 L 8.8320954,9.3885382 C 9.117696,9.015001 9.3363405,8.7445068 9.7071636,8.4854359 Z"
id="path5444"
sodipodi:nodetypes="ccccc" />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 12 KiB

126
bin/open.svg Normal file
View File

@ -0,0 +1,126 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
version="1.1"
id="svg2"
width="48"
height="48"
viewBox="0 0 48 48"
sodipodi:docname="open.svg"
inkscape:version="1.1.2 (b8e25be833, 2022-02-05)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs6" />
<sodipodi:namedview
id="namedview4"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
showgrid="false"
showguides="false"
inkscape:guide-bbox="true"
inkscape:snap-global="true"
inkscape:object-paths="true"
inkscape:snap-smooth-nodes="true"
inkscape:snap-midpoints="true"
inkscape:snap-to-guides="false"
inkscape:snap-grids="false"
inkscape:zoom="11.559578"
inkscape:cx="13.322286"
inkscape:cy="14.360386"
inkscape:window-width="1920"
inkscape:window-height="1009"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
inkscape:current-layer="g8">
<sodipodi:guide
position="1.4674154,41.846322"
orientation="1,0"
id="guide903" />
<sodipodi:guide
position="1.4674154,41.846322"
orientation="0,-1"
id="guide905" />
<sodipodi:guide
position="6.5323654,41.846322"
orientation="1,0"
id="guide907" />
<sodipodi:guide
position="2.3667991,42.840378"
orientation="0,-1"
id="guide909" />
<sodipodi:guide
position="2.650815,28.402904"
orientation="0,-1"
id="guide911" />
<sodipodi:guide
position="17.040953,28.592248"
orientation="1,0"
id="guide913" />
<sodipodi:guide
position="6.4850294,40.378907"
orientation="0,-1"
id="guide915" />
<sodipodi:guide
position="2.3667991,42.840378"
orientation="1,0"
id="guide1088" />
<sodipodi:guide
position="17.372305,29.680975"
orientation="0,-1"
id="guide1166" />
<sodipodi:guide
position="15.810218,40.378907"
orientation="1,0"
id="guide1852" />
<sodipodi:guide
position="17.040953,39.100836"
orientation="0,-1"
id="guide1892" />
<sodipodi:guide
position="17.040953,28.402904"
orientation="-0.888472,0.45893083"
id="guide2160" />
<sodipodi:guide
position="17.040953,29.680975"
orientation="-0.888472,0.45893083"
id="guide2935" />
<sodipodi:guide
position="6.5323654,38.208448"
orientation="0,-1"
id="guide3053" />
</sodipodi:namedview>
<g
inkscape:groupmode="layer"
inkscape:label="Image"
id="g8">
<g
id="g24085"
transform="matrix(2.1133279,0,0,2.3437786,-24.515042,0.07257398)"
style="stroke-width:0.449322">
<path
style="fill:#b4ddff;fill-opacity:1;stroke:none;stroke-width:0.449322px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="M 26.450745,17.520896 H 13.007326 c -0.442673,-0.0974 -0.801107,-0.388557 -0.899383,-1.278071 V 4.0774776 c 0.163756,-0.4673901 0.392288,-0.8700044 0.899383,-0.994056 l 3.124175,-0.047336 c 0.647631,0.1267634 0.910636,0.5355859 1.041392,1.0413916 v 1.4674154 h 9.277852 c 0.844034,0.067676 1.182373,0.5531005 1.230735,1.278071 v 9.4198614 c -0.181441,0.334866 -0.269517,0.527928 -0.387687,0.696876 -0.244203,0.349136 -0.478767,0.462978 -0.843048,0.581195 z"
id="path901"
sodipodi:nodetypes="cccccccccccsc" />
<path
style="fill:#2f9fff;fill-opacity:1;stroke:none;stroke-width:0.449322px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="M 13.007326,17.520896 C 12.453794,17.343119 11.933625,16.863313 12.107943,16.242825 L 16.512719,7.7153516 H 32.086256 L 27.68148,16.242825 c -0.467452,0.851822 -0.534325,1.106575 -1.230735,1.278071 z"
id="path2824"
sodipodi:nodetypes="ccccccc" />
<path
style="fill:#ffffff;stroke:#000000;stroke-width:0.134797;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 18.87384,7.7153516 c 3.200315,-2.062357 6.695077,-3.1334078 7.576905,2.080592 l -2.872154,0.8453844 6.910102,5.601497 3.087492,-8.5274734 -2.646058,1.133638 C 25.891118,-0.91515901 19.52871,4.4623723 18.87384,7.7153516 Z"
id="path4019"
sodipodi:nodetypes="ccccccc" />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 4.6 KiB

BIN
bin/open2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
icons/fichierCSV.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

@ -0,0 +1,269 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
inkscape:export-ydpi="96"
inkscape:export-xdpi="96"
inkscape:export-filename="C:\Users\pabr6\git\analyseWriter\MEPTL\icons\fichierCSV.png"
sodipodi:docname="fichier_csv_student.svg"
inkscape:version="1.1.2 (b8e25be833, 2022-02-05)"
id="svg8"
version="1.1"
viewBox="0 0 12.7 12.7"
height="48"
width="48"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/">
<defs
id="defs2">
<linearGradient
id="k"
gradientTransform="matrix(7.3290847,0,0,7.3272888,-782.49722,-7149.5485)"
gradientUnits="userSpaceOnUse"
x1="122.75008"
x2="111.74973"
xlink:href="#b"
y1="991.62115"
y2="977.11713" />
<linearGradient
id="b">
<stop
offset="0"
stop-color="#0369a3"
id="stop7" />
<stop
offset="1"
stop-color="#1c99e0"
id="stop9" />
</linearGradient>
<linearGradient
id="j"
gradientUnits="userSpaceOnUse"
x1="108.00134"
x2="20.001341"
y1="122"
y2="6"
gradientTransform="translate(12)">
<stop
offset="0"
stop-color="#e6e6e6"
id="stop35" />
<stop
offset="1"
stop-color="#fff"
id="stop37" />
</linearGradient>
<linearGradient
id="i"
gradientUnits="userSpaceOnUse"
x1="108.00134"
x2="20.001341"
xlink:href="#b"
y1="130"
y2="14"
gradientTransform="translate(12)" />
<linearGradient
id="h"
gradientTransform="matrix(4.4999,0,0,3.66665,-930.97741,2199.6564)"
gradientUnits="userSpaceOnUse"
x2="0"
y1="-581.63782"
y2="-578.63782">
<stop
offset="0"
stop-color="#63bbee"
id="stop29" />
<stop
offset="1"
stop-color="#aadcf7"
id="stop31" />
</linearGradient>
<linearGradient
id="g"
gradientTransform="matrix(-4.19983,0,0,3.9111,1552.9405,-4523.1636)"
gradientUnits="userSpaceOnUse"
x2="0"
xlink:href="#a"
y1="1173"
y2="1178" />
<linearGradient
id="a">
<stop
offset="0"
stop-color="#666"
id="stop2" />
<stop
offset="1"
stop-color="#333"
id="stop4" />
</linearGradient>
<linearGradient
id="f"
gradientTransform="matrix(4.19983,0,0,3.9111,-1380.9394,-4521.9436)"
gradientUnits="userSpaceOnUse"
x2="0"
xlink:href="#a"
y1="1173"
y2="1178" />
<linearGradient
id="e"
gradientTransform="matrix(1.19997,0,0,1.22222,-269.19161,858.5534)"
gradientUnits="userSpaceOnUse"
x2="0"
y1="-629.66907"
y2="-635.54944">
<stop
offset="0"
stop-color="#18a303"
id="stop22" />
<stop
offset="1"
stop-color="#106802"
id="stop24" />
</linearGradient>
<linearGradient
id="d"
gradientTransform="matrix(4.19983,0,0,3.9111,-1380.9394,-4517.0536)"
gradientUnits="userSpaceOnUse"
x2="0"
y1="1173"
y2="1178">
<stop
offset="0"
stop-color="#0369a3"
id="stop17" />
<stop
offset="1"
stop-color="#023f62"
id="stop19" />
</linearGradient>
<linearGradient
id="c"
gradientTransform="matrix(0,0.791084,-1.28,0,1511.6005,-282.0136)"
gradientUnits="userSpaceOnUse"
x1="445.69522"
x2="441.38797"
y1="1103.5776"
y2="1099.8198">
<stop
offset="0"
stop-color="#e9b913"
id="stop12" />
<stop
offset="1"
stop-color="#ff0"
id="stop14" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#b"
id="linearGradient4157"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(7.9997394,0,0,7.9977793,-859.65065,-7810.3938)"
x1="122.75008"
y1="991.62115"
x2="111.74973"
y2="977.11713" />
</defs>
<sodipodi:namedview
inkscape:window-maximized="1"
inkscape:window-y="-8"
inkscape:window-x="-8"
inkscape:window-height="1009"
inkscape:window-width="1920"
inkscape:guide-bbox="true"
showguides="true"
units="px"
showgrid="false"
inkscape:document-rotation="0"
inkscape:current-layer="g4208"
inkscape:document-units="mm"
inkscape:cy="14.965968"
inkscape:cx="68.620557"
inkscape:zoom="9.421375"
inkscape:pageshadow="2"
inkscape:pageopacity="0.0"
borderopacity="1.0"
bordercolor="#666666"
pagecolor="#ffffff"
id="base"
inkscape:pagecheckerboard="0"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0"
inkscape:snap-bbox="true"
inkscape:bbox-paths="true"
inkscape:bbox-nodes="true"
inkscape:snap-midpoints="true"
inkscape:object-paths="true"
inkscape:snap-global="false">
<sodipodi:guide
id="guide14"
orientation="1,0"
position="-2.471617e-08,4.4381936" />
<sodipodi:guide
position="6.6200247,5.8336321"
orientation="-0.71816555,0.69587229"
id="guide5772" />
</sodipodi:namedview>
<metadata
id="metadata5">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<g
id="layer1"
inkscape:groupmode="layer"
inkscape:label="Calque 1"
transform="translate(-0.92013353,-0.34176359)">
<g
id="g923"
transform="matrix(0.08485361,0,0,0.08631596,0.60989086,1.0161972)">
<g
id="g4208"
transform="translate(-2.3167326,1.6267735)">
<g
id="g4179"
transform="matrix(1.091506,0,0,1.091506,-5.550275,-6.6190888)"
style="stroke-width:0.916165">
<path
style="fill:url(#k);stroke-width:0.916165"
d="m 33.356573,1.223906 c -0.25037,0 -0.50072,0.011156 -0.75,0.035156 -3.66708,0.6998 -4.56576,2.2662469 -4.5,5.9980469 V 123.22586 c 4e-4,4.1875 1.81149,5.99765 6,5.99805 h 91.998057 c 4.1885,-4e-4 5.99764,-1.81055 5.99804,-5.99805 V 51.4075 c 0.048,-2.1119 -0.78004,-4.230247 -2.25,-5.748047 L 87.692523,3.5090622 c -1.51819,-1.4691999 -3.63759,-2.2988999 -5.75,-2.25 h -47.83595 c -0.24919,-0.024 -0.49962,-0.035156 -0.75,-0.035156 z"
id="path41" />
<path
d="M 34.104633,7.2239059 V 123.22391 H 126.10465 V 51.223906 L 82.104653,7.2239059 Z"
fill="url(#j)"
id="path43"
style="fill:#000080;stroke-width:0.916165" />
</g>
<path
style="fill:url(#linearGradient4157);stroke-width:1"
d="m 131.22533,55.778801 c 0.38078,0 0.7607,-0.03052 1.13694,-0.08855 4.82817,-1.546485 6.45292,-8.894004 2.73075,-12.350381 L 91.397403,-0.58243478 C 87.360856,-4.4299678 79.32347,-1.1377203 79.110793,4.4505138 V 48.372824 c 4.36e-4,3.833024 3.469037,7.316888 7.281987,7.317433 h 43.69209 c 0.37643,0.05804 0.75972,0.08855 1.14046,0.08855 z"
id="path4056" />
<text
xml:space="preserve"
style="font-size:53.1628px;line-height:1.25;font-family:'C.A. Gatintas';-inkscape-font-specification:'C.A. Gatintas';text-align:center;text-anchor:middle;fill:#ffffff;stroke-width:3.0916"
x="88.898773"
y="96.537178"
id="text3199"
transform="scale(0.90538451,1.1045031)"><tspan
sodipodi:role="line"
id="tspan3197"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:arial;-inkscape-font-specification:arial;fill:#ffffff;stroke-width:3.0916"
x="88.898773"
y="96.537178">CSV</tspan></text>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 8.3 KiB

View File

@ -55,7 +55,7 @@ public class commandes {
public static String nameSVG =""; //le nom du nouveau logo public static String nameSVG =""; //le nom du nouveau logo
public static String contenuFichierSVG =""; // Le nouveau logo public static String contenuFichierSVG =""; // Le nouveau logo
public static String path =""; public static String path ="";
public static String pathDestination =""; public static String pathDestination =""; //Pour le mode console uniquement
public static String version ="3.6.1"; // La version actuelle public static String version ="3.6.1"; // La version actuelle
public static String Command =""; //récupère le texte de la commande dans la console public static String Command =""; //récupère le texte de la commande dans la console
@ -711,7 +711,14 @@ public class commandes {
System.out.println("\t\t│ (\")__(\") .. see you soon, analyseWriter. │"); System.out.println("\t\t│ (\")__(\") .. see you soon, analyseWriter. │");
System.out.println("\t\t└───────────────────────────────────────────────────────────┘"); System.out.println("\t\t└───────────────────────────────────────────────────────────┘");
System.out.println(); System.out.println();
System.exit(0);
commandes.message.append("\n");
commandes.message.append("\n*************************");
commandes.message.append("\nLe fichier \""+ filename + "\" n'existe pas.");
commandes.message.append("\n*************************");
commandes.message.append("\n");
if(commandes.console) System.exit(0);
} }

View File

@ -187,7 +187,7 @@ public class meptl {
//** Chargement et verification du CVS fourni ** //** Chargement et verification du CVS fourni **
//********************************************** //**********************************************
if(commandes.fourniCSV) { if(commandes.fourniCSV) {
nodeCSV = chargementFichierCSV(a, commandes.nameCSV); nodeCSV = chargementFichierCSV();
} }
}catch (Exception e) { }catch (Exception e) {
@ -1222,7 +1222,7 @@ public class meptl {
//********************************************** //**********************************************
node nodeCSV = null; node nodeCSV = null;
if(commandes.fourniCSV) { if(commandes.fourniCSV) {
nodeCSV = chargementFichierCSV(a, commandes.nameCSV); nodeCSV = chargementFichierCSV();
} }
@ -2899,20 +2899,24 @@ public class meptl {
/** /**
* Chargement dans un node du fichier CSV de la liset des étudiants.<br> * Chargement dans un node du fichier CSV de la liste des étudiants.<br>
* La liste des étudiants doit contenir les champs Prénom, Nom, Numéro d'identification, Adresse de courriel * La liste des étudiants doit contenir les champs Prénom, Nom, Numéro d'identification, Adresse de courriel
* Le séparateur doit être le point-virgule et l'encodage UTF-8 * Le séparateur doit être le point-virgule et l'encodage UTF-8.
* @param a * @param a
* @param nameCSV * @param nameCSV
* @return * @return
* @throws IOException * @throws IOException
*/ */
private static node chargementFichierCSV(Run a, String nameCSV) { private static node chargementFichierCSV() {
String targetString = ""; String targetString = "";
String cheminVersLeFichierCSV = "";
if(commandes.console) cheminVersLeFichierCSV = commandes.path + "/" + commandes.nameCSV;
try { try {
BufferedReader br = new BufferedReader( BufferedReader br = new BufferedReader(
new InputStreamReader( new InputStreamReader(
new FileInputStream(a.getPatch() + "/" + nameCSV), "UTF-8")); new FileInputStream(cheminVersLeFichierCSV), "UTF-8"));
String line; String line;
while ((line = br.readLine()) != null) { while ((line = br.readLine()) != null) {
@ -2921,7 +2925,7 @@ public class meptl {
br.close(); br.close();
} catch (IOException e) { } catch (IOException e) {
commandes.clotureWithErrorFile(nameCSV); commandes.clotureWithErrorFile(commandes.nameCSV);
e.printStackTrace(); e.printStackTrace();
} }

View File

@ -21,6 +21,7 @@ import javax.swing.JPanel;
import javax.swing.JTextPane; import javax.swing.JTextPane;
import javax.swing.JToolBar; import javax.swing.JToolBar;
import javax.swing.border.EmptyBorder; import javax.swing.border.EmptyBorder;
import javax.swing.filechooser.FileNameExtensionFilter;
import javax.xml.parsers.ParserConfigurationException; import javax.xml.parsers.ParserConfigurationException;
import org.xml.sax.SAXException; import org.xml.sax.SAXException;
@ -51,6 +52,7 @@ public class evaluate extends JFrame {
private JPanel contentPane; private JPanel contentPane;
private JLabel lblPath = new JLabel(); private JLabel lblPath = new JLabel();
private JLabel lblFileAnalyse = new JLabel(); private JLabel lblFileAnalyse = new JLabel();
private JLabel lblFichierCSV = new JLabel();
private JCheckBox chckbxfichiersEtudaints = new JCheckBox(); private JCheckBox chckbxfichiersEtudaints = new JCheckBox();
private JCheckBox chckbxZipfeedback = new JCheckBox(); private JCheckBox chckbxZipfeedback = new JCheckBox();
private JCheckBox chckbxnoFeedback = new JCheckBox(); private JCheckBox chckbxnoFeedback = new JCheckBox();
@ -61,6 +63,7 @@ public class evaluate extends JFrame {
private JButton btnSelectFileAnalyse = new JButton(); private JButton btnSelectFileAnalyse = new JButton();
private JButton btnSelectFolder = new JButton(); private JButton btnSelectFolder = new JButton();
private JButton btnEvaluerLesFichiers = new JButton(); private JButton btnEvaluerLesFichiers = new JButton();
private JButton btnFichierCSV = new JButton();
/** /**
* Create the frame. * Create the frame.
@ -90,6 +93,11 @@ public class evaluate extends JFrame {
btnSelectFileAnalyse.setToolTipText("Sélection du fichier d'analyse"); btnSelectFileAnalyse.setToolTipText("Sélection du fichier d'analyse");
btnSelectFileAnalyse.setIcon(new ImageIcon(evaluate.class.getResource("/resources/fichierAnalyse.png"))); btnSelectFileAnalyse.setIcon(new ImageIcon(evaluate.class.getResource("/resources/fichierAnalyse.png")));
toolBar.add(btnSelectFileAnalyse); toolBar.add(btnSelectFileAnalyse);
btnFichierCSV = new JButton("Sélection fichier CSV");
btnFichierCSV.setIcon(new ImageIcon(evaluate.class.getResource("/resources/fichierCSV.png")));
toolBar.add(btnFichierCSV);
btnEvaluerLesFichiers.setIcon(new ImageIcon(evaluate.class.getResource("/resources/evaluate.png"))); btnEvaluerLesFichiers.setIcon(new ImageIcon(evaluate.class.getResource("/resources/evaluate.png")));
toolBar.add(btnEvaluerLesFichiers); toolBar.add(btnEvaluerLesFichiers);
@ -99,13 +107,17 @@ public class evaluate extends JFrame {
lblFileAnalyse = new JLabel("<HTML><B><U>Fichier de l'analyse</U></B> : </HTML>"); lblFileAnalyse = new JLabel("<HTML><B><U>Fichier de l'analyse</U></B> : </HTML>");
lblFileAnalyse.setHorizontalAlignment(SwingConstants.LEFT); lblFileAnalyse.setHorizontalAlignment(SwingConstants.LEFT);
lblFileAnalyse.setFont(new Font("Tahoma", Font.PLAIN, 14)); lblFileAnalyse.setFont(new Font("Tahoma", Font.BOLD, 14));
panel.add(lblFileAnalyse); panel.add(lblFileAnalyse);
lblPath.setHorizontalAlignment(SwingConstants.LEFT); lblPath.setHorizontalAlignment(SwingConstants.LEFT);
lblPath.setFont(new Font("Tahoma", Font.PLAIN, 14)); lblPath.setFont(new Font("Tahoma", Font.BOLD, 14));
lblPath.setText("<HTML><B><U>Dossier de l'analyse</U></B> : " + commandes.path.substring(commandes.path.lastIndexOf("\\")+1,commandes.path.length()) + "</HTML>"); lblPath.setText("<HTML><B><U>Dossier de l'analyse</U></B> : " + commandes.path.substring(commandes.path.lastIndexOf("\\")+1,commandes.path.length()) + "</HTML>");
panel.add(lblPath); panel.add(lblPath);
lblFichierCSV = new JLabel("<HTML><B><U>Fichier CSV liste des étudiants</U></B></HTML> :");
lblFichierCSV.setFont(new Font("Tahoma", Font.BOLD, 14));
panel.add(lblFichierCSV);
chckbxfichiersEtudaints = new JCheckBox("Les fichiers ne sont pas dans des dossiers nominatifs"); chckbxfichiersEtudaints = new JCheckBox("Les fichiers ne sont pas dans des dossiers nominatifs");
chckbxfichiersEtudaints.setFont(new Font("Tahoma", Font.PLAIN, 12)); chckbxfichiersEtudaints.setFont(new Font("Tahoma", Font.PLAIN, 12));
chckbxfichiersEtudaints.setToolTipText("Cochez si les fichiers des étudiants ne sont pas dans des dossier nominatifs"); chckbxfichiersEtudaints.setToolTipText("Cochez si les fichiers des étudiants ne sont pas dans des dossier nominatifs");
@ -168,25 +180,29 @@ public class evaluate extends JFrame {
chckCSVNotes.setEnabled(true); chckCSVNotes.setEnabled(true);
StringBuilder text = new StringBuilder(); StringBuilder text = new StringBuilder();
text.append("Le titre de l'exercice est " + commandes.analyse_titre); text.append("\n***********************************************");
text.append("\n** INFORMATIONS **");
text.append("\n***********************************************");
text.append("\nLe titre de l'exercice est : " + commandes.analyse_titre);
text.append("\n"); text.append("\n");
text.append("Le sujet (metaSujet) est " + commandes.analyse_metaSujet); text.append("\nLe sujet (metaSujet) est : " + commandes.analyse_metaSujet);
text.append("\n");
text.append("L'auteur de l'exercice est " + commandes.analyse_auteur);
text.append("\n"); text.append("\n");
text.append("\nL'auteur de l'exercice est : " + commandes.analyse_auteur);
text.append("\n"); text.append("\n");
if(commandes.analyse_baremeABC==true) { if(commandes.analyse_baremeABC==true) {
text.append("La notation est sous la forme d'un barème alphabétique ABCDE."); text.append("\nLa notation est sous la forme d'un barème alphabétique ABCDE.");
text.append("\tLa progression est de " + String.valueOf(commandes.analyse_progression)); text.append("\n\tLa progression est de " + String.valueOf(commandes.analyse_progression));
}else { }else {
text.append("La notation est sous la forme d'une note numérique."); text.append("\nLa notation est sous la forme d'une note numérique.");
text.append("\tLe barème est sur " + String.valueOf(commandes.analyse_notefrom)); text.append("\n\tLe barème est sur " + String.valueOf(commandes.analyse_notefrom));
text.append("\tLa progression est de " + String.valueOf(commandes.analyse_progression)); text.append("\n\tLa progression est de " + String.valueOf(commandes.analyse_progression));
} }
text.append("\n"); text.append("\n");
text.append("\nLe hash de l'évaluation est : " + commandes.hash);
text.append("\n");
text.append("\n***********************************************");
progressBar.setVisible(false); progressBar.setVisible(false);
txtpnmessages.setText(text.toString()); txtpnmessages.setText(text.toString());
@ -195,7 +211,8 @@ public class evaluate extends JFrame {
lblPath.setText("<HTML><B><U>Dossier de l'analyse</U></B> : " + commandes.path.substring(commandes.path.lastIndexOf("\\")+1,commandes.path.length()) + "</HTML>"); lblPath.setText("<HTML><B><U>Dossier de l'analyse</U></B> : " + commandes.path.substring(commandes.path.lastIndexOf("\\")+1,commandes.path.length()) + "</HTML>");
lblFileAnalyse.setText("<HTML><B><U>Fichier de l'analyse</U></B> : " + commandes.filename + "</HTML>"); lblFileAnalyse.setText("<HTML><B><U>Fichier de l'analyse</U></B> : " + commandes.filename + "</HTML>");
lblFichierCSV.setText("<HTML><B><U>Fichier CSV liste des étudiants</U></B> :" + commandes.nameCSV.substring(commandes.nameCSV.lastIndexOf("\\")+1,commandes.nameCSV.length()) + "</HTML>");
} }
@ -211,7 +228,7 @@ public class evaluate extends JFrame {
JFileChooser chooser = new JFileChooser(); JFileChooser chooser = new JFileChooser();
chooser.setCurrentDirectory(new java.io.File(commandes.path)); chooser.setCurrentDirectory(new java.io.File(commandes.path));
chooser.setDialogTitle("choosertitle"); chooser.setDialogTitle("Sélectionner le dossier contenant les fichiers des étudiants.");
chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY); chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
chooser.setAcceptAllFileFilterUsed(false); chooser.setAcceptAllFileFilterUsed(false);
@ -247,6 +264,35 @@ public class evaluate extends JFrame {
} }
} }
}); });
// Sélectionne un fichier CSV
btnFichierCSV.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
JFileChooser chooser = new JFileChooser();
chooser.setDialogTitle("Choisir un fichier CSV");
chooser.setCurrentDirectory(new java.io.File(commandes.path));
chooser.setFileSelectionMode(JFileChooser.FILES_ONLY);
FileNameExtensionFilter filter = new FileNameExtensionFilter("Format CSV", "csv");
chooser.setFileFilter(filter);
chooser.setAcceptAllFileFilterUsed(true);
if (chooser.showOpenDialog(null) == JFileChooser.APPROVE_OPTION) {
System.out.println("getCurrentDirectory(): " + chooser.getCurrentDirectory());
System.out.println("getSelectedFile() : " + chooser.getSelectedFile().getAbsolutePath());
commandes.nameCSV = chooser.getSelectedFile().getAbsolutePath();
commandes.fourniCSV=true;
} else {
commandes.nameCSV = "";
commandes.fourniCSV=false;
System.out.println("No Selection ");
}
refreshLabel();
}
});
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB