Nouvelle version avec interface graphique V4.0.0

This commit is contained in:
pablo rodriguez 2022-05-27 15:02:18 +02:00
parent 87f2636ef5
commit ac22be24c5
19 changed files with 1096 additions and 20 deletions

Binary file not shown.

1
bin/.gitignore vendored
View File

@ -1,3 +1,2 @@
/MEPTL/
/app/
/resources/

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

80
bin/exit.svg Normal file
View File

@ -0,0 +1,80 @@
<?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="exit.svg"
inkscape:version="1.1.2 (b8e25be833, 2022-02-05)"
inkscape:export-filename="C:\Users\pabr6\git\analyseWriter\MEPTL\icons\exit.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90"
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="true"
inkscape:guide-bbox="true"
inkscape:zoom="7.7604167"
inkscape:cx="9.9221476"
inkscape:cy="11.983893"
inkscape:window-width="1920"
inkscape:window-height="1009"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
inkscape:current-layer="g2698">
<sodipodi:guide
position="15.221444,36.823994"
orientation="1,0"
id="guide2780" />
</sodipodi:namedview>
<g
inkscape:groupmode="layer"
inkscape:label="Image"
id="g8">
<g
id="g2698"
transform="matrix(2.2242512,0,0,2.2242512,-2.3614406,-0.54630895)"
style="stroke-width:0.449589">
<rect
style="fill:#4d4d4d;stroke-width:0.134877;stroke-linecap:round;stroke-linejoin:round;paint-order:fill markers stroke;stop-color:#000000"
id="rect886"
width="12.143694"
height="17.48241"
x="10.020643"
y="1.6505069"
ry="0"
rx="0" />
<path
style="fill:#ff0e0e;fill-opacity:1;stroke:#920000;stroke-width:0.449589px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="M 14.154744,11.101102 7.9050802,5.2702298 7.8728655,8.5239211 1.7198453,8.4272768 l 0.06443,5.1543622 h 6.1208053 l -2e-7,3.170568 z"
id="path1147"
sodipodi:nodetypes="cccccccc" />
<rect
style="fill:#999999;stroke-width:0.139238;stroke-linecap:round;stroke-linejoin:round;paint-order:fill markers stroke;stop-color:#000000"
id="rect986"
width="9.135273"
height="17.48241"
x="14.485444"
y="9.8163137"
ry="0"
rx="0"
transform="matrix(0.93834311,-0.34570538,0,1,0,0)" />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.6 KiB

BIN
bin/fichierAnalyseInfo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

BIN
bin/fichierCSVInfo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

@ -0,0 +1,270 @@
<?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\fichierAnalyseInfo.png"
sodipodi:docname="fichier_analyseXML info.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,-863.30581,-7811.3988)"
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(10.661607,-2.6314354)">
<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="12.018475"
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.7234583,1.2433321)">
<path
d="m 34.652398,1.9735766 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 123.97553 c 4e-4,4.1875 1.81149,5.99765 6,5.99805 h 91.998062 c 4.1885,-4e-4 5.99764,-1.81055 5.99804,-5.99805 V 52.157171 c 0.048,-2.1119 -0.78004,-4.230247 -2.25,-5.748047 L 88.988348,4.2587328 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 m 70.009782,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 24.0957,24.2207034 c 2.22593,2.1217 6.6581,0.306209 6.77538,-2.775391 V 6.0712326 c -2.4e-4,-2.1136998 -1.91298,-4.034856 -4.01561,-4.035156 h -24.09376 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 35.400458,7.9735766 V 123.97358 H 127.40048 V 51.973577 L 83.400478,7.9735766 Z"
fill="url(#j)"
id="path43"
style="fill:url(#j)" />
<text
xml:space="preserve"
style="font-size:35.6383px;line-height:1.25;font-family:'C.A. Gatintas';-inkscape-font-specification:'C.A. Gatintas';text-align:center;text-anchor:middle;stroke-width:3.09159"
x="77.788284"
y="121.28213"
id="text2174"
transform="scale(1.0649026,0.93905301)"><tspan
sodipodi:role="line"
id="tspan2172"
style="font-style:normal;font-variant:normal;font-weight:900;font-stretch:normal;font-family:arial;-inkscape-font-specification:'arial Heavy';stroke-width:3.09159"
x="77.788284"
y="121.28213">XML</tspan></text>
</g>
<g
id="g6608"
transform="matrix(1.1011477,0,0,1.0960197,-0.92133887,-2.779724)"
style="stroke-width:1.26529">
<path
id="path4945"
style="fill:#000000;stroke:none;stroke-width:0.334773px;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.334773px;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>
<path
style="fill:#ffffff;stroke:#000000;stroke-width:0.0793751;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m -10.634184,4.3401818 c 1.7894605,-1.278918 3.7435614,-1.943103 4.2366367,1.290227 l -1.6059687,0.524244 3.8637927,3.473627 1.7263753,-5.288098 -1.4795468,0.702997 c -2.8175687,-6.05499 -6.3751172,-2.720249 -6.7412892,-0.702997 z"
id="path4019"
sodipodi:nodetypes="ccccccc" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 9.3 KiB

View File

@ -0,0 +1,283 @@
<?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\fichierCSVInfo.png"
sodipodi:docname="fichier_csv_student_info.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="15.921243"
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
id="g6608"
transform="matrix(13.490989,0,0,13.200666,-17.319663,-52.327875)"
style="stroke-width:1.21708">
<path
id="path4945"
style="fill:#000000;stroke:none;stroke-width:0.322019px;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.322019px;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>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 9.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

@ -0,0 +1,350 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
inkscape:export-ydpi="90"
inkscape:export-xdpi="90"
inkscape:export-filename="C:\Users\pabr6\git\analyseWriter\MEPTL\icons\fichierAnalyseInfo2.png"
sodipodi:docname="fichier_analyseXML info1.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,-863.30581,-7811.3988)"
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(10.661607,-2.6314354)">
<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>
<filter
height="1.0241135"
y="-0.012056753"
width="1.0238876"
x="-0.011943778"
id="filter900"
style="color-interpolation-filters:sRGB"
inkscape:collect="always">
<feGaussianBlur
id="feGaussianBlur902"
stdDeviation="0.33651028"
inkscape:collect="always" />
</filter>
<filter
height="1.0525725"
y="-0.026286236"
width="1.0789646"
x="-0.039482275"
id="filter1018"
style="color-interpolation-filters:sRGB"
inkscape:collect="always">
<feGaussianBlur
id="feGaussianBlur1020"
stdDeviation="0.19016387"
inkscape:collect="always" />
</filter>
</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="-15.881557"
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.7234583,1.2433321)">
<path
d="m 34.652398,1.9735766 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 123.97553 c 4e-4,4.1875 1.81149,5.99765 6,5.99805 h 91.998062 c 4.1885,-4e-4 5.99764,-1.81055 5.99804,-5.99805 V 52.157171 c 0.048,-2.1119 -0.78004,-4.230247 -2.25,-5.748047 L 88.988348,4.2587328 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 m 70.009782,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 24.0957,24.2207034 c 2.22593,2.1217 6.6581,0.306209 6.77538,-2.775391 V 6.0712326 c -2.4e-4,-2.1136998 -1.91298,-4.034856 -4.01561,-4.035156 h -24.09376 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 35.400458,7.9735766 V 123.97358 H 127.40048 V 51.973577 L 83.400478,7.9735766 Z"
fill="url(#j)"
id="path43"
style="fill:url(#j)" />
<text
xml:space="preserve"
style="font-size:35.6383px;line-height:1.25;font-family:'C.A. Gatintas';-inkscape-font-specification:'C.A. Gatintas';text-align:center;text-anchor:middle;stroke-width:3.09159"
x="77.788284"
y="121.28213"
id="text2174"
transform="scale(1.0649026,0.93905301)"><tspan
sodipodi:role="line"
id="tspan2172"
style="font-style:normal;font-variant:normal;font-weight:900;font-stretch:normal;font-family:arial;-inkscape-font-specification:'arial Heavy';stroke-width:3.09159"
x="77.788284"
y="121.28213">XML</tspan></text>
</g>
<g
id="g6608"
transform="matrix(1.1011477,0,0,1.0960197,-17.388617,-15.612844)"
style="stroke-width:1.26529">
<path
id="path4945"
style="fill:#000000;stroke:none;stroke-width:0.334773px;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.334773px;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
id="g933"
transform="matrix(0.09825882,0,0,0.09825235,4.673639,-7.9102001)"
style="fill:#0000ff;stroke-width:1.25319">
<path
d="M 3.4888109,100.90592 A 33.81118,33.492559 0 0 0 -30.152746,134.3964 33.81118,33.492559 0 0 0 3.6566829,167.89107 33.81118,33.492559 0 0 0 37.466112,134.3964 33.81118,33.492559 0 0 0 3.6566829,100.90592 a 33.81118,33.492559 0 0 0 -0.167872,0 z m 0.167872,3.03429 A 30.454897,30.454897 0 0 1 34.112867,134.3964 30.454897,30.454897 0 0 1 3.6566829,164.85258 30.454897,30.454897 0 0 1 -26.799502,134.3964 30.454897,30.454897 0 0 1 3.6566829,103.94021 Z"
style="fill:#b3b3b3;fill-opacity:0.576433;fill-rule:evenodd;stroke:none;stroke-width:1.42633;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;filter:url(#filter900)"
id="path19"
transform="matrix(0.99070113,0,0,0.99070113,0.03400303,1.249753)" />
<g
transform="matrix(0.92159474,0,0,0.92159474,0.29152559,10.550702)"
id="g1038"
style="stroke-width:1.25319">
<g
style="fill:#b3b3b3;fill-opacity:0.576471;stroke-width:1.25319;filter:url(#filter1018)"
id="g908"
transform="matrix(2.1077061,0,0,2.1077061,-0.86641942,-150.48426)">
<path
style="fill:#b3b3b3;fill-opacity:0.576471;stroke:none;stroke-width:1.25319;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m -3.1073783,132.12572 -0.4971804,1.49154 c 4.01707299,-1.34867 4.47435491,0.36301 3.98475557,1.79863 -0.48959933,1.43561 -2.18480447,7.64534 -2.29580417,9.48299 -0.1109998,1.83765 2.11214326,3.22993 4.525805,3.38521 2.4136617,0.15528 4.5989199,-1.24295 4.5989199,-1.24295 l 0.7457709,-1.69627 c -1.2357175,0.60442 -2.1544693,1.11545 -3.1073785,0.8262 -0.9529092,-0.28925 -1.6157491,-1.49912 -1.3672462,-2.98308 0.2485029,-1.48396 1.4931646,-4.73206 2.3616073,-7.7063 0.8684427,-2.97424 -1.9935919,-4.57168 -3.8458376,-4.54774 -1.85224566,0.0239 -5.1034118,1.19177 -5.1034118,1.19177 z"
id="path904"
sodipodi:nodetypes="cczzzcczzzzc" />
<ellipse
style="fill:#b3b3b3;fill-opacity:0.576471;fill-rule:evenodd;stroke:none;stroke-width:1.25319;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
id="ellipse906"
cx="4.7876372"
cy="125.15446"
rx="3.0603328"
ry="2.9664576" />
</g>
<g
transform="matrix(2.1077061,0,0,2.1077061,-1.8232797,-149.84635)"
id="g17"
style="stroke-width:1.25319">
<path
sodipodi:nodetypes="cczzzcczzzzc"
id="path25"
d="m -3.1073783,132.12572 -0.4971804,1.49154 c 4.01707299,-1.34867 4.47435491,0.36301 3.98475557,1.79863 -0.48959933,1.43561 -2.18480447,7.64534 -2.29580417,9.48299 -0.1109998,1.83765 2.11214326,3.22993 4.525805,3.38521 2.4136617,0.15528 4.5989199,-1.24295 4.5989199,-1.24295 l 0.7457709,-1.69627 c -1.2357175,0.60442 -2.1544693,1.11545 -3.1073785,0.8262 -0.9529092,-0.28925 -1.6157491,-1.49912 -1.3672462,-2.98308 0.2485029,-1.48396 1.4931646,-4.73206 2.3616073,-7.7063 0.8684427,-2.97424 -1.9935919,-4.57168 -3.8458376,-4.54774 -1.85224566,0.0239 -5.1034118,1.19177 -5.1034118,1.19177 z"
style="fill:#0000ff;stroke:none;stroke-width:1.25319;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<ellipse
ry="2.9664576"
rx="3.0603328"
cy="125.15446"
cx="4.7876372"
id="path27"
style="fill:#0000ff;fill-rule:evenodd;stroke:none;stroke-width:1.25319;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1" />
</g>
</g>
<path
id="path852"
style="fill:#0000ff;fill-rule:evenodd;stroke:none;stroke-width:0.663793;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 15.921875,0.265625 A 15.73519,15.586909 0 0 0 0.265625,15.851562 15.73519,15.586909 0 0 0 16,31.439453 15.73519,15.586909 0 0 0 31.734375,15.851562 15.73519,15.586909 0 0 0 16,0.265625 a 15.73519,15.586909 0 0 0 -0.07813,0 z M 16,1.6777344 A 14.173229,14.173229 0 0 1 30.173828,15.851562 14.173229,14.173229 0 0 1 16,30.025391 14.173229,14.173229 0 0 1 1.8261719,15.851562 14.173229,14.173229 0 0 1 16,1.6777344 Z"
transform="matrix(2.1487621,0,0,2.1487621,-31.618865,101.14089)" />
</g>
<path
style="fill:#ffffff;stroke:#000000;stroke-width:0.0793751;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m -10.634184,4.3401818 c 1.7894605,-1.278918 3.7435614,-1.943103 4.2366367,1.290227 l -1.6059687,0.524244 3.8637927,3.473627 1.7263753,-5.288098 -1.4795468,0.702997 c -2.8175687,-6.05499 -6.3751172,-2.720249 -6.7412892,-0.702997 z"
id="path4019"
sodipodi:nodetypes="ccccccc" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 14 KiB

View File

@ -57,7 +57,8 @@ public class commandes {
public static String contenuFichierSVG =""; // Le nouveau logo
public static String path ="";
public static String pathDestination =""; //Pour le mode console uniquement
public static String version ="3.6.1"; // La version actuelle
public static String version ="4.0.0"; // La version actuelle
public static String nomDeLaBranch = "Origin"; //Branche de développement
public static String Command =""; //récupère le texte de la commande dans la console
//** setting valeur par défaut

View File

@ -8,8 +8,12 @@ import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.SwingConstants;
import javax.swing.filechooser.FileView;
import MEPTL.commandes;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
public class about extends JFrame {
@ -50,7 +54,7 @@ public class about extends JFrame {
setResizable(false);
setTitle(commandes.Titre);
setLocation(100, 100);
setSize(383,415);
setSize(418,415);
// setBounds(100, 100, 426, 486);
setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
getContentPane().setLayout(null);
@ -67,30 +71,30 @@ public class about extends JFrame {
lblNewLabelTitre.setBounds(10, 10, 357, 90);
contentPane.add(lblNewLabelTitre);
JLabel lblNewLabelVersion = new JLabel("<HTML><B><U>Version :</U></B> " + commandes.version + "</HTML>");
JLabel lblNewLabelVersion = new JLabel("<HTML><B><U>Version :</U></B> " + commandes.version + " "+ commandes.nomDeLaBranch + "</HTML>");
lblNewLabelVersion.setFont(new Font("Tahoma", Font.PLAIN, 16));
lblNewLabelVersion.setBounds(20, 90, 240, 20);
lblNewLabelVersion.setBounds(20, 100, 240, 20);
contentPane.add(lblNewLabelVersion);
JLabel lblNewLabelAnnee = new JLabel("<HTML><B><U>Année :</U></B> " + commandes.Annee + "</HTML>");
lblNewLabelAnnee.setFont(new Font("Tahoma", Font.PLAIN, 16));
lblNewLabelAnnee.setBounds(20, 110, 240, 20);
lblNewLabelAnnee.setBounds(20, 120, 240, 20);
contentPane.add(lblNewLabelAnnee);
JLabel lblCredit = new JLabel("Crédit");
lblCredit.setFont(new Font("Tahoma", Font.BOLD | Font.ITALIC, 14));
lblCredit.setBounds(20, 230, 60, 20);
lblCredit.setBounds(20, 254, 60, 20);
getContentPane().add(lblCredit);
JLabel lblNewLabelAuteur = new JLabel("Auteur : P. Rodriguez");
lblNewLabelAuteur.setFont(new Font("Tahoma", Font.PLAIN, 14));
lblNewLabelAuteur.setBounds(20, 250, 240, 20);
lblNewLabelAuteur.setBounds(20, 271, 240, 20);
contentPane.add(lblNewLabelAuteur);
JLabel lblInformationEnseignant = new JLabel("Enseignants d'informatique à l'université d'Artois");
lblInformationEnseignant.setFont(new Font("Tahoma", Font.PLAIN, 12));
lblInformationEnseignant.setBounds(20, 270, 296, 20);
lblInformationEnseignant.setBounds(20, 285, 296, 20);
getContentPane().add(lblInformationEnseignant);
JLabel lblCommentaire = new JLabel("<HTML>Outil permettant lévaluation des fichiers réalisés avec un traitement de texte au format ODF.<br><br>"
@ -98,16 +102,31 @@ public class about extends JFrame {
lblCommentaire.setFont(new Font("Tahoma", Font.PLAIN, 14));
lblCommentaire.setHorizontalAlignment(SwingConstants.LEFT);
lblCommentaire.setVerticalAlignment(SwingConstants.TOP);
lblCommentaire.setBounds(20, 144, 326, 75);
lblCommentaire.setBounds(20, 155, 326, 88);
getContentPane().add(lblCommentaire);
JLabel lblLicence = new JLabel("<HTML><B><U>Licence :</U></B> GNU GLP 3.0</HTML>");
lblLicence.setFont(new Font("Tahoma", Font.PLAIN, 16));
lblLicence.setBounds(20, 305, 296, 35);
JLabel lblLicence = new JLabel("<HTML><B><U>Licence : GNU GLP 3.0</U></B> </HTML>");
lblLicence.setFont(new Font("Tahoma", Font.PLAIN, 14));
lblLicence.setBounds(20, 316, 296, 35);
getContentPane().add(lblLicence);
JButton btnNewButton = new JButton("Vérifier la version");
btnNewButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
try {
String url = "https://forge.chapril.org/pablo/analyseWriter/releases";
java.awt.Desktop.getDesktop().browse(java.net.URI.create(url));
}
catch (java.io.IOException e1) {
System.out.println(e1.getMessage());
}
}
});
btnNewButton.setBounds(246, 101, 138, 23);
getContentPane().add(btnNewButton);
}
}

View File

@ -22,6 +22,7 @@ import javax.xml.parsers.ParserConfigurationException;
import org.xml.sax.SAXException;
import MEPTL.commandes;
import MEPTL.ecritureSujet;
import MEPTL.meptl;
import cXML.Run;
import cXML.node;
@ -61,7 +62,9 @@ public class evaluate extends JFrame {
private JButton btnFichierSVG = new JButton();
private JButton btnExit = new JButton();
private JButton btnInformationAnalyse = new JButton();
private JButton btnInfoListeEtudiant;
private JButton btnNewFichierAnalyse = new JButton();
private JButton btnInfoListeEtudiant = new JButton();
private JButton btnAfficheCodeFichierAnalyse = new JButton();
/**
* Create the frame.
@ -88,9 +91,14 @@ public class evaluate extends JFrame {
btnInformationAnalyse = new JButton("");
btnInformationAnalyse.setToolTipText("Information sur l'analyse");
btnInformationAnalyse.setIcon(new ImageIcon(evaluate.class.getResource("/resources/fichierAnalyseInfo.png")));
btnInformationAnalyse.setIcon(new ImageIcon(evaluate.class.getResource("/resources/fichierAnalyseInfo2.png")));
toolBar.add(btnInformationAnalyse);
btnAfficheCodeFichierAnalyse = new JButton("");
btnAfficheCodeFichierAnalyse.setToolTipText("Afficher le code XML du fichier d'analyse");
btnAfficheCodeFichierAnalyse.setIcon(new ImageIcon(evaluate.class.getResource("/resources/fichierAnalyseInfo.png")));
toolBar.add(btnAfficheCodeFichierAnalyse);
btnSelectFolder = new JButton("");
btnSelectFolder.setIcon(new ImageIcon(evaluate.class.getResource("/resources/open2.png")));
btnSelectFolder.setSelectedIcon(new ImageIcon(evaluate.class.getResource("/resources/evalwriter.png")));
@ -121,10 +129,10 @@ public class evaluate extends JFrame {
toolBar.addSeparator();
JButton btnNewButton_1 = new JButton("");
btnNewButton_1.setToolTipText("Créer un fichier d'analyse à partir d'un fichier ODF");
btnNewButton_1.setIcon(new ImageIcon(evaluate.class.getResource("/resources/fichierODF.png")));
toolBar.add(btnNewButton_1);
btnNewFichierAnalyse = new JButton("");
btnNewFichierAnalyse.setToolTipText("Créer un fichier d'analyse à partir d'un fichier ODF");
btnNewFichierAnalyse.setIcon(new ImageIcon(evaluate.class.getResource("/resources/fichierODF.png")));
toolBar.add(btnNewFichierAnalyse);
toolBar.addSeparator();
@ -347,6 +355,7 @@ public class evaluate extends JFrame {
}
});
// Analyse le contenu du dossier
btnEvaluerLesFichiers.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
@ -471,7 +480,72 @@ public class evaluate extends JFrame {
}
});
// création d'un nouveau fichier d'analyse
btnNewFichierAnalyse.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
JFileChooser chooser = new JFileChooser();
chooser.setDialogTitle("Choisir un fichier ODF");
chooser.setCurrentDirectory(new java.io.File(commandes.path));
chooser.setFileSelectionMode(JFileChooser.FILES_ONLY);
FileNameExtensionFilter filter = new FileNameExtensionFilter("Format ODF", "odt");
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.path = chooser.getCurrentDirectory().getAbsolutePath();
commandes.PathFilenameAnalysis = chooser.getSelectedFile().getAbsolutePath();
commandes.nameSujet = chooser.getSelectedFile().getName();
Run b = null;
try {
b = new Run(commandes.PathFilenameAnalysis);
node nodSujet = Run.XMLContent(b.getLectDossiers().getEC().getListeContentWriter().get(0));
nodSujet = meptl.LectureFichierEtudiantSousFormeDeNode(nodSujet,b,0);
nodSujet.getAttributs().put("analysis_filename","sujet.xml");
nodSujet = ecritureSujet.nodePourEcritureSujet(nodSujet,b,0);
Run.ecritureNodeEnXML(nodSujet, "sujet",commandes.path,"Sujet");
txtpnmessages.setText(Run.ecritureNode(nodSujet, 0).toString()
+ "\n\n"
+"\n*************************"
+"\nLe fichier sujet.xml a été généré dans le dossier :"
+"\n" + commandes.path
+"\n*************************");
commandes.fichierAnalyseValide=true;
} catch (ParserConfigurationException | SAXException | IOException | CloneNotSupportedException e1) {
e1.printStackTrace();
}
} else {
commandes.nameSujet = "";
commandes.PathFilenameAnalysis = "";
System.out.println("No Selection ");
commandes.fichierAnalyseValide=false;
refreshLabel();
}
commandes.ecritCode = true;
}
});
// Affiche le code XML du node sujet
btnAfficheCodeFichierAnalyse.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if(commandes.fichierAnalyseValide) {
txtpnmessages.setText(Run.ecritureNode(commandes.sujet, 0).toString());
}else {
txtpnmessages.setText("*** Veuillez charger un fichier d'analyse ***");
}
}
});
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB