MAJ inteface graphique

This commit is contained in:
pablo rodriguez 2022-05-26 20:10:24 +02:00
parent a3fcc46c55
commit 5d67dfe080
43 changed files with 1498 additions and 516 deletions

View File

@ -5,5 +5,6 @@
<classpathentry kind="src" path="icons"/>
<classpathentry kind="lib" path="C:/Users/pabr6/eclipse-workspace/zip4j-1.2.7.jar"/>
<classpathentry kind="lib" path="C:/Users/pabr6/eclipse-workspace/cXML.jar" sourcepath="/cXML"/>
<classpathentry kind="lib" path="miglayout15-swing.jar" sourcepath="miglayout-src.zip"/>
<classpathentry kind="output" path="bin"/>
</classpath>

3
bin/.gitignore vendored
View File

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

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@ -1,29 +1,29 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
inkscape:export-ydpi="72.000008"
inkscape:export-xdpi="72.000008"
inkscape:export-filename="C:\Users\pabr6\OneDrive\Desktop\apropos.png"
inkscape:export-filename="C:\Users\pabr6\git\analyseWriter\MEPTL\icons\apropos.png"
sodipodi:docname="apropos.svg"
inkscape:version="1.0 (4035a4fb49, 2020-05-01)"
inkscape:version="1.1.2 (b8e25be833, 2022-02-05)"
id="svg8"
version="1.1"
viewBox="0 0 8.4666665 8.4666669"
height="32"
width="32">
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="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">
<filter
height="1.0241135"
y="-0.012056753"
width="1.0238876"
x="-0.011943779"
x="-0.011943778"
id="filter900"
style="color-interpolation-filters:sRGB"
inkscape:collect="always">
@ -33,10 +33,10 @@
inkscape:collect="always" />
</filter>
<filter
height="1.0349618"
y="-0.017480889"
height="1.0525725"
y="-0.026286236"
width="1.0789646"
x="-0.039482276"
x="-0.039482275"
id="filter1018"
style="color-interpolation-filters:sRGB"
inkscape:collect="always">
@ -51,7 +51,7 @@
inkscape:window-maximized="1"
inkscape:window-y="-8"
inkscape:window-x="-8"
inkscape:window-height="1017"
inkscape:window-height="1009"
inkscape:window-width="1920"
inkscape:object-nodes="false"
inkscape:bbox-nodes="true"
@ -63,15 +63,16 @@
inkscape:document-rotation="0"
inkscape:current-layer="g1030"
inkscape:document-units="mm"
inkscape:cy="18.019069"
inkscape:cx="16.217162"
inkscape:zoom="20.210745"
inkscape:cy="18.053125"
inkscape:cx="13.015043"
inkscape:zoom="7.1455774"
inkscape:pageshadow="2"
inkscape:pageopacity="0.0"
borderopacity="1.0"
bordercolor="#666666"
pagecolor="#ffffff"
id="base" />
id="base"
inkscape:pagecheckerboard="0" />
<metadata
id="metadata5">
<rdf:RDF>
@ -80,7 +81,6 @@
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
@ -94,53 +94,60 @@
style="fill:#0000ff">
<g
id="g1030">
<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-rule:evenodd;stroke:none;stroke-width:1.13816;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;filter:url(#filter900);fill-opacity:0.57643312"
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">
id="g933"
transform="matrix(1.3514497,0,0,1.3514946,14.981214,-29.986317)"
style="stroke-width:0.739934">
<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:0.842163;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
style="fill:#b3b3b3;fill-opacity:0.576471;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;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;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">
<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;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;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1" />
transform="matrix(0.92159474,0,0,0.92159474,0.29152559,10.550702)"
id="g1038"
style="stroke-width:0.739934">
<g
style="fill:#b3b3b3;fill-opacity:0.576471;stroke-width:0.739934;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:0.739934;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:0.739934;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:0.739934">
<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:0.739934;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:0.739934;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.39193;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
id="path852"
style="fill:#0000ff;fill-rule:evenodd;stroke:none;stroke-width:0.529682;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 A 15.73519 15.586909 0 0 0 16 31.439453 A 15.73519 15.586909 0 0 0 31.734375 15.851562 A 15.73519 15.586909 0 0 0 16 0.265625 A 15.73519 15.586909 0 0 0 15.921875 0.265625 z M 16 1.6777344 A 14.173229 14.173229 0 0 1 30.173828 15.851562 A 14.173229 14.173229 0 0 1 16 30.025391 A 14.173229 14.173229 0 0 1 1.8261719 15.851562 A 14.173229 14.173229 0 0 1 16 1.6777344 z "
transform="matrix(2.1487621,0,0,2.1487621,-31.618865,101.14089)" />
</g>
</g>
</g>

Before

Width:  |  Height:  |  Size: 7.1 KiB

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

BIN
bin/fichierCSV.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

269
bin/fichier_csv_student.svg Normal file
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

BIN
bin/resources/apropos.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

BIN
bin/resources/open2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@ -1,29 +1,29 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
inkscape:export-ydpi="72.000008"
inkscape:export-xdpi="72.000008"
inkscape:export-filename="C:\Users\pabr6\OneDrive\Desktop\apropos.png"
inkscape:export-filename="C:\Users\pabr6\git\analyseWriter\MEPTL\icons\apropos.png"
sodipodi:docname="apropos.svg"
inkscape:version="1.0 (4035a4fb49, 2020-05-01)"
inkscape:version="1.1.2 (b8e25be833, 2022-02-05)"
id="svg8"
version="1.1"
viewBox="0 0 8.4666665 8.4666669"
height="32"
width="32">
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="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">
<filter
height="1.0241135"
y="-0.012056753"
width="1.0238876"
x="-0.011943779"
x="-0.011943778"
id="filter900"
style="color-interpolation-filters:sRGB"
inkscape:collect="always">
@ -33,10 +33,10 @@
inkscape:collect="always" />
</filter>
<filter
height="1.0349618"
y="-0.017480889"
height="1.0525725"
y="-0.026286236"
width="1.0789646"
x="-0.039482276"
x="-0.039482275"
id="filter1018"
style="color-interpolation-filters:sRGB"
inkscape:collect="always">
@ -51,7 +51,7 @@
inkscape:window-maximized="1"
inkscape:window-y="-8"
inkscape:window-x="-8"
inkscape:window-height="1017"
inkscape:window-height="1009"
inkscape:window-width="1920"
inkscape:object-nodes="false"
inkscape:bbox-nodes="true"
@ -63,15 +63,16 @@
inkscape:document-rotation="0"
inkscape:current-layer="g1030"
inkscape:document-units="mm"
inkscape:cy="18.019069"
inkscape:cx="16.217162"
inkscape:zoom="20.210745"
inkscape:cy="18.053125"
inkscape:cx="13.015043"
inkscape:zoom="7.1455774"
inkscape:pageshadow="2"
inkscape:pageopacity="0.0"
borderopacity="1.0"
bordercolor="#666666"
pagecolor="#ffffff"
id="base" />
id="base"
inkscape:pagecheckerboard="0" />
<metadata
id="metadata5">
<rdf:RDF>
@ -80,7 +81,6 @@
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
@ -94,53 +94,60 @@
style="fill:#0000ff">
<g
id="g1030">
<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-rule:evenodd;stroke:none;stroke-width:1.13816;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;filter:url(#filter900);fill-opacity:0.57643312"
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">
id="g933"
transform="matrix(1.3514497,0,0,1.3514946,14.981214,-29.986317)"
style="stroke-width:0.739934">
<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:0.842163;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
style="fill:#b3b3b3;fill-opacity:0.576471;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;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;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">
<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;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;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1" />
transform="matrix(0.92159474,0,0,0.92159474,0.29152559,10.550702)"
id="g1038"
style="stroke-width:0.739934">
<g
style="fill:#b3b3b3;fill-opacity:0.576471;stroke-width:0.739934;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:0.739934;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:0.739934;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:0.739934">
<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:0.739934;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:0.739934;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.39193;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
id="path852"
style="fill:#0000ff;fill-rule:evenodd;stroke:none;stroke-width:0.529682;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 A 15.73519 15.586909 0 0 0 16 31.439453 A 15.73519 15.586909 0 0 0 31.734375 15.851562 A 15.73519 15.586909 0 0 0 16 0.265625 A 15.73519 15.586909 0 0 0 15.921875 0.265625 z M 16 1.6777344 A 14.173229 14.173229 0 0 1 30.173828 15.851562 A 14.173229 14.173229 0 0 1 16 30.025391 A 14.173229 14.173229 0 0 1 1.8261719 15.851562 A 14.173229 14.173229 0 0 1 16 1.6777344 z "
transform="matrix(2.1487621,0,0,2.1487621,-31.618865,101.14089)" />
</g>
</g>
</g>

Before

Width:  |  Height:  |  Size: 7.1 KiB

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

BIN
icons/fichierODF.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

BIN
icons/fichierSVG.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 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\fichierAnalyse.png"
sodipodi:docname="fichier_analyseXML.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="g923"
inkscape:document-units="mm"
inkscape:cy="19.744638"
inkscape:cx="25.861183"
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.393267,0,0,1.3867787,10.603256,-5.5651926)">
<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>
<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 1.6878831,3.4316423 c 1.7894603,-1.278918 3.7435612,-1.943103 4.2366365,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.3751176,-2.720249 -6.741289,-0.702997 z"
id="path4019"
sodipodi:nodetypes="ccccccc" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 9.3 KiB

259
icons/fichier_svg.svg Normal file
View File

@ -0,0 +1,259 @@
<?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\fichierSVG.png"
sodipodi:docname="fichier_svg.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>
</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="22.92659"
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:#008000;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:#1bc365;fill-opacity:1;stroke-width:0.916165" />
</g>
<path
style="fill:#008000;stroke-width:1"
d="m 132.3971,57.080222 c 0.40828,0 0.81564,-0.03205 1.21905,-0.09302 5.17683,-1.624524 6.91891,-9.342818 2.92795,-12.973612 L 89.693051,-2.1251468 C 85.36501,-6.1668363 76.747213,-2.7084534 76.519177,3.1617775 V 49.300521 c 4.68e-4,4.026448 3.719551,7.686117 7.807848,7.68669 h 46.847265 c 0.40361,0.06097 0.81458,0.09302 1.22281,0.09302 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="89.629868"
y="103.90145"
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="89.629868"
y="103.90145">SVG</tspan></text>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 7.9 KiB

BIN
miglayout-src.zip Normal file

Binary file not shown.

BIN
miglayout15-swing.jar Normal file

Binary file not shown.

View File

@ -30,7 +30,7 @@ public class commandes {
//***************************************************
//** Les commandes par défaut à travers la console **
//***************************************************
static String nameSujet = ""; //sujet par défaut
public static String nameSujet = ""; //sujet par défaut
public static boolean analyse = false; //analyse des fichiers étudiants
public static boolean ecritCode = false; // -write : ecriture du code du sujet
public static boolean ecritSujet = false; // -sujet : ecriture 2 du code du sujet, uniquement les nodes évalués
@ -104,6 +104,7 @@ public class commandes {
public static long analyse_size = 48000000;
public static String analyse_nameZip = "feedbackMoodle";
public static String analyse_hash = "";
public static String analysis_filename = "";
//** Variables pour l'interface du logiciel
@ -704,7 +705,7 @@ public class commandes {
if (nbespace<0) nbespace=1;
System.out.println();
System.out.println("\t\t┌───────────────────────────────────────────────────────────┐");
System.out.println("\t\t│ The file \""+ filename + "\" does not exist." + new String(new char[nbespace]).replace("\0", " ") +"" );
System.out.println("\t\t│ Le fichier \""+ filename + "\" n'existe pas." + new String(new char[nbespace]).replace("\0", " ") +"" );
System.out.println("\t\t│ │");
System.out.println("\t\t│ (')_(') │");
System.out.println("\t\t│ ( `.° ) │");
@ -714,7 +715,7 @@ public class commandes {
commandes.message.append("\n");
commandes.message.append("\n*************************");
commandes.message.append("\nLe fichier \""+ filename + "\" n'existe pas.");
commandes.message.append("\nERREUR Le fichier \""+ filename + "\" n'existe pas.");
commandes.message.append("\n*************************");
commandes.message.append("\n");

View File

@ -180,7 +180,7 @@ public class meptl {
//** -newlogo file.svg **
//***********************
if(commandes.newLogo && !commandes.nameSVG.isEmpty()) {
commandes.contenuFichierSVG= chargementFichierSVG(a,commandes.nameSVG);
commandes.contenuFichierSVG= chargementFichierSVG();
}
//**********************************************
@ -416,44 +416,49 @@ public class meptl {
menu.getNodes().add(newnode);
}
if(nod.getAttributs().get("addmenu").equals("false") && niv==1) {
System.out.println();
System.out.println("** WARNING -- L'attribut \"addmenu\" n'est pas associé au node principal \"" + nod.getNomElt() + "\" dans le fichier d'analyse.");
System.out.println("** -- Changer la valeur de l'attribut \"addmenu\" à TRUE.");
System.out.println();
erreur =true;
if(nod.getAttributs().get("evaluer")!=null) {
if(nod.getAttributs().get("evaluer").equalsIgnoreCase("true")) {
if(nod.getAttributs().get("addmenu").equals("false") && niv==1) {
System.out.println();
System.out.println("** ERREUR -- L'attribut \"addmenu\" n'est pas associé au node principal \"" + nod.getNomElt() + "\" dans le fichier d'analyse.");
System.out.println("** -- Changer la valeur de l'attribut \"addmenu\" à TRUE.");
System.out.println();
erreur =true;
}
if(nod.getAttributs().get("addmenu").equals("true") && nod.getAttributs().get("titre")==null && nod.getAttributs().get("titre1")==null && nod.getAttributs().get("titre2")==null && nod.getAttributs().get("titre3")==null) {
System.out.println();
System.out.println("** WARNING -- L'attribut \"addmenu\" n'est pas associé à un titre dans le node \"" + nod.getNomElt() + "\", dans le fichier d'analyse.");
if(nod.getAttributs().get("titre")==null && nod.getAttributs().get("titre1")==null && nod.getAttributs().get("titre2")==null && nod.getAttributs().get("titre3")==null){
System.out.println("** -- Ajouter l'attribut \"titre\" à ce node.");
}
if(nod.getAttributs().get("titre").isEmpty()){
System.out.println("** -- Ajouter l'attribut \"titre\" une valeur.");
}
if(nod.getAttributs().get("titre1").isEmpty()){
System.out.println("** -- Ajouter l'attribut \"titre1\" une valeur.");
}
if(nod.getAttributs().get("titre2").isEmpty()){
System.out.println("** -- Ajouter l'attribut \"titre2\" une valeur.");
}
if(nod.getAttributs().get("titre3").isEmpty()){
System.out.println("** -- Ajouter l'attribut \"titre2\" une valeur.");
}
System.out.println();
erreur =true;
}
//***************************
//** bye bye analyseWriter **
//***************************
if(commandes.console) if(erreur) commandes.clotureApplicationAvecErreur();
}
}
if(nod.getAttributs().get("addmenu").equals("true") && nod.getAttributs().get("titre")==null && nod.getAttributs().get("titre1")==null && nod.getAttributs().get("titre2")==null && nod.getAttributs().get("titre3")==null) {
System.out.println();
System.out.println("** WARNING -- L'attribut \"addmenu\" n'est pas associé à un titre dans le node \"" + nod.getNomElt() + "\", dans le fichier d'analyse.");
if(nod.getAttributs().get("titre")==null && nod.getAttributs().get("titre1")==null && nod.getAttributs().get("titre2")==null && nod.getAttributs().get("titre3")==null){
System.out.println("** -- Ajouter l'attribut \"titre\" à ce node.");
}
if(nod.getAttributs().get("titre").isEmpty()){
System.out.println("** -- Ajouter l'attribut \"titre\" une valeur.");
}
if(nod.getAttributs().get("titre1").isEmpty()){
System.out.println("** -- Ajouter l'attribut \"titre1\" une valeur.");
}
if(nod.getAttributs().get("titre2").isEmpty()){
System.out.println("** -- Ajouter l'attribut \"titre2\" une valeur.");
}
if(nod.getAttributs().get("titre3").isEmpty()){
System.out.println("** -- Ajouter l'attribut \"titre2\" une valeur.");
}
System.out.println();
erreur =true;
}
//***************************
//** bye bye analyseWriter **
//***************************
if(erreur) commandes.clotureApplicationAvecErreur();
}
@ -1100,12 +1105,12 @@ public class meptl {
// Chargement du Initial_Creator
if(commandes.sujet.getAttributs().get("Initial_Creator")!=null) {
commandes.analyse_auteur= commandes.sujet.getAttributs().get("Initial_Creator");
commandes.analyse_Initial_Creator= commandes.sujet.getAttributs().get("Initial_Creator");
}
// Chargement du filename
if(commandes.sujet.getAttributs().get("filename")!=null) {
commandes.analyse_auteur= commandes.sujet.getAttributs().get("filename");
commandes.filename= commandes.sujet.getAttributs().get("filename");
}
// Chargement du date
@ -1118,6 +1123,11 @@ public class meptl {
commandes.analyse_hash= commandes.sujet.getAttributs().get("hash");
}
//Charge le analysis_filename
if(commandes.sujet.getAttributs().get("analysis_filename")!=null) {
commandes.analysis_filename= commandes.sujet.getAttributs().get("analysis_filename");
}
//*****************************************************************
//** chargement de la culture qui se trouve dans le node setting **
@ -1128,21 +1138,12 @@ public class meptl {
}
}
//********************************************
//** Charge pour la taille de l'archive ZIP **
//********************************************
//*******************************************************************
//** Charge pour la taille et le nom de l'archive de l'archive ZIP **
//*******************************************************************
if(commandes.sujet.containElementByName("zip")) {
node zip = commandes.sujet.retourneFirstEnfantsByName("zip");
if(zip.getAttributs().get("size")!=null) commandes.analyse_size = Long.valueOf(zip.getAttributs().get("size"));
if(zip.getAttributs().get("size")!=null) commandes.analyse_size = Long.valueOf(zip.getAttributs().get("size"));
}
//************************************
//** Charge du nom de l'archive ZIP **
//************************************
if(commandes.sujet.containElementByName("zip")) {
node zip = commandes.sujet.retourneFirstEnfantsByName("zip");
if(zip.getAttributs().get("nameZip")!=null) commandes.analyse_nameZip = zip.getAttributs().get("nameZip");
if(zip.getAttributs().get("nameZip")!=null) commandes.analyse_nameZip = zip.getAttributs().get("nameZip");
}
@ -2098,7 +2099,7 @@ public class meptl {
/**
* Retourne le nom du fichier de l'étudiant pour le Zip de Moodle.<br>
* Retourne le nom du fichier de l'étudiant pour le Zip pour Moodle.<br>
* </br>
* @param filename
* @param nodana
@ -2837,7 +2838,7 @@ public class meptl {
fichier.close();
commandes.message.append("\n");
commandes.message.append("*************************");
commandes.message.append("*-***********************");
commandes.message.append("\n");
commandes.message.append("\nLe fichier au format CSV a été généré.");
commandes.message.append("\n" + outputFilePath.toString());
@ -2907,12 +2908,18 @@ public class meptl {
* @return
* @throws IOException
*/
private static node chargementFichierCSV() {
public static node chargementFichierCSV() {
String targetString = "";
String cheminVersLeFichierCSV = "";
if(commandes.console) cheminVersLeFichierCSV = commandes.path + "/" + commandes.nameCSV;
if(!commandes.console) {
commandes.nameCSV = commandes.nameCSV.replace("\\", "/");
cheminVersLeFichierCSV = commandes.nameCSV;
}
try {
BufferedReader br = new BufferedReader(
new InputStreamReader(
@ -2925,7 +2932,7 @@ public class meptl {
br.close();
} catch (IOException e) {
commandes.clotureWithErrorFile(commandes.nameCSV);
commandes.clotureWithErrorFile(cheminVersLeFichierCSV);
e.printStackTrace();
}
@ -2942,6 +2949,7 @@ public class meptl {
}
nodeCVS.getNodes().add(nodeEtudiant);
}
//a.ecritureNodeEnXML(nodeCVS, "nodeCVS"); //écriture du node du node CSV
return nodeCVS;
}
@ -2952,12 +2960,15 @@ public class meptl {
* @param nameSVG
* @return
*/
private static String chargementFichierSVG(Run a, String nameSVG) {
public static String chargementFichierSVG() {
String targetString = "";
String cheminVersFichier = commandes.nameSVG;
if(commandes.console) cheminVersFichier =commandes.path + "/" + commandes.nameSVG;
try {
BufferedReader br = new BufferedReader(
new InputStreamReader(
new FileInputStream(a.getPatch() + "/" + nameSVG), "UTF-8"));
new FileInputStream(cheminVersFichier), "UTF-8"));
String line;
while ((line = br.readLine()) != null) {
@ -2966,7 +2977,7 @@ public class meptl {
br.close();
} catch (IOException e) {
commandes.clotureWithErrorFile(nameSVG);
commandes.clotureWithErrorFile(commandes.nameSVG);
e.printStackTrace();
}
return targetString;

View File

@ -24,7 +24,7 @@ public class verificationFichierAnalyse {
public verificationFichierAnalyse() throws CloneNotSupportedException{
if(!commandes.console) System.out.println("Début de la vérification.");
erreur=false; //réïnitialise la variable erreur.
if(commandes.sujet==null) {
messageErreur.append("\n**-** Erreur, le fichier d'analyse est null.\n");
@ -186,42 +186,58 @@ public class verificationFichierAnalyse {
// le node fichier doit avoir l'attribut evaluer=true
if(attribut.get("evaluer")==null) {
messageErreur.append("\n**-** Erreur dans le fichier d'analyse, dans le node <fichier>.");
messageErreur.append("\nLe node \"fichier\" doit contenir evaluer=\"true\".");
messageErreur.append("\nL'attribut \"evaluer\" a été supprimé.");
messageErreur.append("\n");
System.out.println(messageErreur.toString());
System.out.println();
System.out.println("**-** ERREUR dans le fichier d'analyse, dans le node <fichier>.");
System.out.println("Le node \"fichier\" doit contenir evaluer=\"true\".");
System.out.println("L'attribut \"evaluer\" a été supprimé.");
System.out.println();
commandes.message.append("\n**************************************************");
commandes.message.append("\nERREUR dans le fichier d'analyse, dans le node <fichier>.");
commandes.message.append("\nLe node \"fichier\" doit contenir evaluer=\"true\".");
commandes.message.append("\nL'attribut \"evaluer\" a été supprimé.");
commandes.message.append("\n**************************************************");
erreurManqueAttributEvaluerPremierNodeFichier = true;
erreur=true;
}else {
if(!attribut.get("evaluer").equalsIgnoreCase("true")) {
messageErreur.append("\n**-** Erreur dans le fichier d'analyse, dans le node <fichier>.");
messageErreur.append("\nLe node \"fichier\" doit contenir evaluer=\"true\".");
messageErreur.append("\nLa valeur doit être true.");
messageErreur.append("\n");
System.out.println(messageErreur.toString());
System.out.println();
System.out.println("**-** ERREUR dans le fichier d'analyse, dans le node <fichier>.");
System.out.println("Le node \"fichier\" doit contenir evaluer=\"true\".");
System.out.println();
commandes.message.append("\n**************************************************");
commandes.message.append("\nERREUR dans le fichier d'analyse, dans le node <fichier>.");
commandes.message.append("\nLe node \"fichier\" doit contenir evaluer=\"true\".");
commandes.message.append("\n**************************************************");
erreur=true;
}
}
// le node fichier doit contenir l'attribut metaSujet et une valeur non vide
if(attribut.get("metaSujet")==null) {
messageErreur.append("\n**-** Erreur dans le fichier d'analyse, dans le node <fichier>.");
messageErreur.append("\nLe node \"fichier\" doit contenir l'attribut \"sujetMeta\".");
messageErreur.append("\nL'attribut \"sujetMeta\" a été supprimé.");
messageErreur.append("\nCet attribut doit contenir une valeur.");
messageErreur.append("\n");
System.out.println(messageErreur);
System.out.println();
System.out.println("**-** ERREUR dans le fichier d'analyse, dans le node <fichier>.");
System.out.println("Le node \"fichier\" doit contenir l'attribut \"sujetMeta\".");
System.out.println("L'attribut \"sujetMeta\" a été supprimé. Cet attribut doit contenir une valeur.");
System.out.println();
commandes.message.append("\n**************************************************");
commandes.message.append("\nERREUR dans le fichier d'analyse, dans le node <fichier>.");
commandes.message.append("\nLe node \"fichier\" doit contenir l'attribut \"sujetMeta\".");
commandes.message.append("\nL'attribut \"sujetMeta\" a été supprimé. Cet attribut doit contenir une valeur.");
commandes.message.append("\n**************************************************");
erreurPasAttributMetaSujetAuPremierNodeFichier=true;
erreur=true;
}
if(attribut.get("metaSujet")!=null)if(attribut.get("metaSujet").isEmpty() ) {
messageErreur.append("\n**-** Erreur dans le fichier d'analyse, dans le node <fichier>.");
messageErreur.append("\nL'attribut \"sujetMeta\" doit contenir une valeur autre que vide.");
messageErreur.append("\nDans les propriétés personnalisées des fichiers ODF, vous pouvez ajouter la propriété \"Sujet\" et faire correspondre avec cette valeur.");
messageErreur.append("\nVoir la documentation d'analyseWriter.");
messageErreur.append("\n");
System.out.println(messageErreur.toString());
System.out.println();
System.out.println("**-** ERREUR dans le fichier d'analyse, dans le node <fichier>.");
System.out.println("L'attribut \"sujetMeta\" doit contenir une valeur autre que vide.");
System.out.println("Dans les propriétés personnalisées des fichiers ODF, vous pouvez ajouter la propriété \"Sujet\" et faire correspondre avec cette valeur.");
System.out.println();
commandes.message.append("\n**************************************************");
commandes.message.append("\nERREUR dans le fichier d'analyse, dans le node <fichier>.");
commandes.message.append("\nL'attribut \"sujetMeta\" doit contenir une valeur autre que vide.");
commandes.message.append("\nDans les propriétés personnalisées des fichiers ODF, vous pouvez ajouter la propriété \"Sujet\" et faire correspondre avec cette valeur.");
commandes.message.append("\n**************************************************");
erreurValeurVideAttributMetaSujetAuPremierNodeFichier=true;
erreur=true;
}
@ -233,11 +249,14 @@ public class verificationFichierAnalyse {
try {
Double.valueOf(p);
} catch (Exception e) {
messageErreur.append("\n**-** Erreur dans le fichier d'analyse, dans le node <fichier>.");
messageErreur.append("\nL'attribut \"progression\" n'a pas une valeur numérique.");
messageErreur.append("\nVoir la documentation d'analyseWriter.");
messageErreur.append("\n");
System.out.println(messageErreur.toString());
System.out.println();
System.out.println("**-** ERREUR dans le fichier d'analyse, dans le node <fichier>.");
System.out.println("L'attribut \"progression\" n'a pas une valeur numérique.");
System.out.println();
commandes.message.append("\n**************************************************");
commandes.message.append("\nERREUR dans le fichier d'analyse, dans le node <fichier>.");
commandes.message.append("\nL'attribut \"progression\" n'a pas une valeur numérique.");
commandes.message.append("\n**************************************************");
erreur=true;
erreurValeurAttributProgressionNonConvertibleEnDouble=true;
}
@ -249,11 +268,14 @@ public class verificationFichierAnalyse {
try {
Double.valueOf(p);
} catch (Exception e) {
messageErreur.append("\n**-** Erreur dans le fichier d'analyse, dans le node <fichier>.");
messageErreur.append("\nL'attribut \"noteFrom\" n'a pas une valeur numérique.");
messageErreur.append("\nVoir la documentation d'analyseWriter.");
messageErreur.append("\n");
System.out.println(messageErreur.toString());
System.out.println();
System.out.println("**-** ERREUR dans le fichier d'analyse, dans le node <fichier>.");
System.out.println("L'attribut \"noteFrom\" n'a pas une valeur numérique.");
System.out.println();
commandes.message.append("\n**************************************************");
commandes.message.append("\nERREUR dans le fichier d'analyse, dans le node <fichier>.");
commandes.message.append("\nL'attribut \"noteFrom\" n'a pas une valeur numérique.");
commandes.message.append("\n**************************************************");
erreur=true;
erreurValeurAttributNoteFromNonConvertibleEnDouble=true;
}
@ -263,11 +285,14 @@ public class verificationFichierAnalyse {
if(attribut.get("baremeABC")!=null) {
String p = attribut.get("baremeABC");
if(!(p.equalsIgnoreCase("true")||p.equalsIgnoreCase("false"))) {
messageErreur.append("\n**-** Erreur dans le fichier d'analyse, dans le node <fichier>.");
messageErreur.append("\nL'attribut \"baremeABC\" n'a pas une valeur logique.");
messageErreur.append("\nVoir la documentation d'analyseWriter.");
messageErreur.append("\n");
System.out.println(messageErreur.toString());
System.out.println();
System.out.println("**-** ERREUR dans le fichier d'analyse, dans le node <fichier>.");
System.out.println("L'attribut \"baremeABC\" n'a pas une valeur logique.");
System.out.println();
commandes.message.append("\n**************************************************");
commandes.message.append("\nERREUR dans le fichier d'analyse, dans le node <fichier>.");
commandes.message.append("\nL'attribut \"baremeABC\" n'a pas une valeur logique.");
commandes.message.append("\n**************************************************");
erreur=true;
erreurValeurAttributBaremeABCNonConvertibleEnLogique=true;
}
@ -276,11 +301,14 @@ public class verificationFichierAnalyse {
if(attribut.get("controleDateCreation")!=null) {
String p = attribut.get("controleDateCreation");
if(!(p.equalsIgnoreCase("true")||p.equalsIgnoreCase("false"))) {
messageErreur.append("\n**-** Erreur dans le fichier d'analyse, dans le node <fichier>.");
messageErreur.append("\nL'attribut \"controleDateCreation\" n'a pas une valeur logique.");
messageErreur.append("\nVoir la documentation d'analyseWriter.");
messageErreur.append("\n");
System.out.println(messageErreur.toString());
System.out.println();
System.out.println("**-** ERREUR dans le fichier d'analyse, dans le node <fichier>.");
System.out.println("L'attribut \"controleDateCreation\" n'a pas une valeur logique.");
System.out.println();
commandes.message.append("\n**************************************************");
commandes.message.append("\nERREUR dans le fichier d'analyse, dans le node <fichier>.");
commandes.message.append("\nL'attribut \"controleDateCreation\" n'a pas une valeur logique.");
commandes.message.append("\n**************************************************");
erreur=true;
erreurValeurAttributcontroleDateCreationNonConvertibleEnLogique=true;
}
@ -289,11 +317,14 @@ public class verificationFichierAnalyse {
if(attribut.get("presenceMetaSujet")!=null) {
String p = attribut.get("presenceMetaSujet");
if(!(p.equalsIgnoreCase("true")||p.equalsIgnoreCase("false"))) {
messageErreur.append("\n**-** Erreur dans le fichier d'analyse, dans le node <fichier>.");
messageErreur.append("\nL'attribut \"presenceMetaSujet\" n'a pas une valeur logique.");
messageErreur.append("\nVoir la documentation d'analyseWriter.");
messageErreur.append("\n");
System.out.println(messageErreur.toString());
System.out.println();
System.out.println("**-** ERREUR dans le fichier d'analyse, dans le node <fichier>.");
System.out.println("L'attribut \"presenceMetaSujet\" n'a pas une valeur logique.");
System.out.println();
commandes.message.append("\n**************************************************");
commandes.message.append("\nERREUR dans le fichier d'analyse, dans le node <fichier>.");
commandes.message.append("\nL'attribut \"presenceMetaSujet\" n'a pas une valeur logique.");
commandes.message.append("\n**************************************************");
erreur=true;
erreurValeurAttributpresenceMetaSujetConvertibleEnLogique=true;
}
@ -302,11 +333,14 @@ public class verificationFichierAnalyse {
if(attribut.get("controle_Initial_Creator")!=null) {
String p = attribut.get("controle_Initial_Creator");
if(!(p.equalsIgnoreCase("true")||p.equalsIgnoreCase("false"))) {
messageErreur.append("\n**-** Erreur dans le fichier d'analyse, dans le node <fichier>.");
messageErreur.append("\nL'attribut \"controle_Initial_Creator\" n'a pas une valeur logique.");
messageErreur.append("\nVoir la documentation d'analyseWriter.");
messageErreur.append("\n");
System.out.println(messageErreur.toString());
System.out.println();
System.out.println("**-** ERREUR dans le fichier d'analyse, dans le node <fichier>.");
System.out.println("L'attribut \"controle_Initial_Creator\" n'a pas une valeur logique.");
System.out.println();
commandes.message.append("\n**************************************************");
commandes.message.append("\nERREUR dans le fichier d'analyse, dans le node <fichier>.");
commandes.message.append("\nL'attribut \"controle_Initial_Creator\" n'a pas une valeur logique.");
commandes.message.append("\n**************************************************");
erreur=true;
erreurValeurAttributcontrole_Initial_CreatorConvertibleEnLogique=true;
}
@ -315,11 +349,14 @@ public class verificationFichierAnalyse {
if(attribut.get("historiquePresent")!=null) {
String p = attribut.get("historiquePresent");
if(!(p.equalsIgnoreCase("true")||p.equalsIgnoreCase("false"))) {
messageErreur.append("\n**-** Erreur dans le fichier d'analyse, dans le node <fichier>.");
messageErreur.append("\nL'attribut \"historiquePresent\" n'a pas une valeur logique.");
messageErreur.append("\nVoir la documentation d'analyseWriter.");
messageErreur.append("\n");
System.out.println(messageErreur.toString());
System.out.println();
System.out.println("**-** ERREUR dans le fichier d'analyse, dans le node <fichier>.");
System.out.println("L'attribut \"historiquePresent\" n'a pas une valeur logique.");
System.out.println();
commandes.message.append("\n**************************************************");
commandes.message.append("\nERREUR dans le fichier d'analyse, dans le node <fichier>.");
commandes.message.append("\nL'attribut \"historiquePresent\" n'a pas une valeur logique.");
commandes.message.append("\n**************************************************");
erreur=true;
erreurValeurAttributhistoriquePresentConvertibleEnLogique=true;
}
@ -361,18 +398,28 @@ public class verificationFichierAnalyse {
if(attribut.get("addmenu")!=null) {
if(!attribut.get("addmenu").equals("true")) {
System.out.println();
System.out.println("**-** Erreur dans le fichier d'analyse. Dans le node \""+ nameNode +"\".");
System.out.println("Le node principal \"" + nameNode +"\" doit contenir l'attribut \"addmenu=true\".");
System.out.println("Pour cette version, Il est necessaire de créer un lien de menu du node principal,(tableau de syntèse des feedback).");
System.out.println("**-** ERREUR dans le fichier d'analyse, dans le node <"+ nameNode +">.");
System.out.println("Le node principal <" + nameNode +"> doit contenir l'attribut \"addmenu=true\".");
System.out.println("Pour cette version, Il est necessaire de créer un lien de menu du node principal.");
System.out.println();
commandes.message.append("\n**************************************************");
commandes.message.append("\nERREUR dans le fichier d'analyse, dans le node <"+ nameNode +">.");
commandes.message.append("\nLe node principal <" + nameNode +"> doit contenir l'attribut \"addmenu=true\".");
commandes.message.append("\nPour cette version, Il est necessaire de créer un lien de menu du node principal.");
commandes.message.append("\n**************************************************");
erreur=true;
}
}else {
System.out.println();
System.out.println("**-** Erreur dans le fichier d'analyse. Dans le node \""+ nameNode +"\".");
System.out.println("Le node principal \"" + nameNode +"\" doit contenir l'attribut \"addmenu=true\". Cet attribut a été supprimé.");
System.out.println("Pour cette version, Il est necessaire de créer un lien de menu du node principal,(tableau de syntèse des feedback).");
System.out.println("**-** ERREUR dans le fichier d'analyse, dans le node <"+ nameNode +">.");
System.out.println("Le node principal <" + nameNode +"> doit contenir l'attribut \"addmenu=true\". Cet attribut a été supprimé.");
System.out.println("Pour cette version, Il est necessaire de créer un lien de menu du node principal.");
System.out.println();
commandes.message.append("\n**************************************************");
commandes.message.append("\nERREUR dans le fichier d'analyse, dans le node <"+ nameNode +">.");
commandes.message.append("\nLe node principal <" + nameNode +"> doit contenir l'attribut \"addmenu=true\". Cet attribut a été supprimé.");
commandes.message.append("\nPour cette version, Il est necessaire de créer un lien de menu du node principal.");
commandes.message.append("\n**************************************************");
erreur=true;
}
}
@ -399,10 +446,15 @@ public class verificationFichierAnalyse {
String k = key.nextElement();
if(structure.getAttributs().get(k).contains("")) {
System.out.println();
System.out.println("**-** Erreur dans le fichier d'analyse le node \"structurepage\".");
System.out.println("**-** ERREUR dans le fichier d'analyse, dans le node <structurepage>.");
System.out.println("Le node " + nom + " ne peut pas contenir des attributs évalués.");
System.out.println("Le node " + nom + " peut contenir l'attribut \"evaluer=true\" ce qui permettra l'évaluation des nodes enfants mais aucun attribut de ce node sera évalué.");
System.out.println("Mais, le node " + nom + " peut contenir l'attribut \"evaluer=true\" ce qui permettra l'évaluation des nodes enfants mais aucun attribut de ce node sera évalué.");
System.out.println();
commandes.message.append("\n**************************************************");
commandes.message.append("\nERREUR dans le fichier d'analyse, dans le node <structurepage>.");
commandes.message.append("Le node " + nom + " ne peut pas contenir des attributs évalués.");
commandes.message.append("\nMais, le node " + nom + " peut contenir l'attribut \"evaluer=true\" ce qui permettra l'évaluation des nodes enfants mais aucun attribut de ce node sera évalué.");
commandes.message.append("\n**************************************************");
erreur= true;
}
}
@ -425,10 +477,15 @@ public class verificationFichierAnalyse {
String k = key.nextElement();
if(structure.getNodes().get(i).getAttributs().get(k).contains("")) {
System.out.println();
System.out.println("**-** Erreur dans le fichier d'analyse le node \"structurepage\".");
System.out.println("**-** ERREUR dans le fichier d'analyse, dans le node <structurepage>.");
System.out.println("Le node " + nom + " ne peut pas contenir des attributs évalués.");
System.out.println("Le node " + nom + " peut contenir l'attribut \"evaluer=true\" ce qui permettra l'évaluation des nodes enfants mais aucun attribut de ce node sera évalué.");
System.out.println("Mais, le node " + nom + " peut contenir l'attribut \"evaluer=true\" ce qui permettra l'évaluation des nodes enfants mais aucun attribut de ce node sera évalué.");
System.out.println();
commandes.message.append("\n**************************************************");
commandes.message.append("\nERREUR dans le fichier d'analyse, dans le node <structurepage>.");
commandes.message.append("Le node " + nom + " ne peut pas contenir des attributs évalués.");
commandes.message.append("\nMais, le node " + nom + " peut contenir l'attribut \"evaluer=true\" ce qui permettra l'évaluation des nodes enfants mais aucun attribut de ce node sera évalué.");
commandes.message.append("\n**************************************************");
erreur= true;
}
}
@ -447,9 +504,13 @@ public class verificationFichierAnalyse {
if(setting.getAttributs().get("culture") != null) {
if(!setting.getAttributs().get("culture").equals("FR")) {
System.out.println();
System.out.println("**-** Avertissement dans le fichier d'analyse le node \"setting\".");
System.out.println("La culture ne peutr pas être différent de \"FR\".");
System.out.println("**-** AVERTISSEMENT dans le fichier d'analyse, dans le node <setting>.");
System.out.println("La culture ne peut pas être différent de \"FR\".");
System.out.println();
commandes.message.append("\n**************************************************");
commandes.message.append("\nAVERTISSEMENT dans le fichier d'analyse, dans le node <setting>.");
commandes.message.append("\nLa culture ne peut pas être différent de \"FR\".");
commandes.message.append("\n**************************************************");
}
}
@ -459,9 +520,13 @@ public class verificationFichierAnalyse {
if(!csv.getAttributs().get("encoding").equals("UTF-8") && !csv.getAttributs().get("encoding").equals("US-ASCII") && !csv.getAttributs().get("encoding").equals("ISO-8859-1")
&& !csv.getAttributs().get("encoding").equals("UTF-16BE") && !csv.getAttributs().get("encoding").equals("UTF-16LE") && !csv.getAttributs().get("encoding").equals("UTF-16")) {
System.out.println();
System.out.println("**-** WARNING in analysis file at node \"setting\".");
System.out.println("The encoding cannot be "+ csv.getAttributs().get("encoding") +"in csv node.");
System.out.println("**-** AVERTISSEMENT dans le fichier d'analyse, dans le node <setting>.");
System.out.println("L'encodage ne peut pas être "+ csv.getAttributs().get("encoding") );
System.out.println();
commandes.message.append("\n**************************************************");
commandes.message.append("\nAVERTISSEMENT dans le fichier d'analyse, dans le node <setting>.");
commandes.message.append("\nL'encodage ne peut pas être "+ csv.getAttributs().get("encoding"));
commandes.message.append("\n**************************************************");
}
}
}
@ -473,23 +538,35 @@ public class verificationFichierAnalyse {
try {
size = Long.valueOf(zip.getAttributs().get("size"));
}catch (Exception e) {
messageErreur.append("\n**-** Erreur dans le fichier d'analyse, dans le node <setting>.");
messageErreur.append("\nLa taille du fichier doit être une valeur numérique.");
System.out.println(messageErreur.toString());
System.out.println("**-** ERREUR dans le fichier d'analyse, dans le node <setting>.");
System.out.println("\nLa taille du fichier doit être une valeur numérique (sans décimales).");
System.out.println();
commandes.message.append("\n**************************************************");
commandes.message.append("\nERREUR dans le fichier d'analyse, dans le node <setting>.");
commandes.message.append("\nLa taille du fichier doit être une valeur numérique (sans décimales).");
commandes.message.append("\n**************************************************");
verifSujet.getAttributs().put("erreurTailleSize","true");
erreur=true;
}
if(size<1000000) {
messageErreur.append("\n**-** Erreur dans le fichier d'analyse, dans le node <setting>.");
messageErreur.append("\nLa taille de l'archive ZIP est trop faible (supérieure à 1 000 000).");
System.out.println(messageErreur.toString());
System.out.println("**-** ERREUR dans le fichier d'analyse, dans le node <setting>.");
System.out.println("La taille de l'archive ZIP est trop faible (supérieure à 1 000 000).");
System.out.println();
commandes.message.append("\n**************************************************");
commandes.message.append("\nERREUR dans le fichier d'analyse, dans le node <setting>.");
commandes.message.append("\nLa taille de l'archive ZIP est trop faible (supérieure à 1 000 000).");
commandes.message.append("\n**************************************************");
verifSujet.getAttributs().put("erreurTailleSize","true");
erreur=true;
}
if(size>100000000) {
messageErreur.append("\n**-** Erreur dans le fichier d'analyse, dans le node <setting>.");
messageErreur.append("\nLa taille de l'archive ZIP est trop grande (inférieur à 100 000 000).");
System.out.println(messageErreur.toString());
System.out.println("**-** ERREUR dans le fichier d'analyse, dans le node <setting>.");
System.out.println("La taille de l'archive ZIP est trop grande (inférieur à 100 000 000).");
System.out.println();
commandes.message.append("\n**************************************************");
commandes.message.append("\nERREUR dans le fichier d'analyse, dans le node <setting>.");
commandes.message.append("\nLa taille de l'archive ZIP est trop grande (inférieur à 100 000 000).");
commandes.message.append("\n**************************************************");
verifSujet.getAttributs().put("erreurTailleSize","true");
erreur=true;
}
@ -500,9 +577,14 @@ public class verificationFichierAnalyse {
Pattern pt = Pattern.compile("[^a-zA-Z0-9]"); // avec les chiffres "[^a-zA-Z0-9]"
Matcher match= pt.matcher(name);
if(match.find()) {
messageErreur.append("\n**-** Erreur dans le fichier d'analyse, dans le node <setting>.");
messageErreur.append("\nLe nom de l'archive ne doit pas contenir de caractères spéciaux.");
System.out.println(messageErreur.toString());
System.out.println();
System.out.println("**-** ERREUR dans le fichier d'analyse, dans le node <setting>.");
System.out.println("Le nom de l'archive \"nameZip\n ne doit pas contenir de caractères spéciaux.");
System.out.println();
commandes.message.append("\n**************************************************");
commandes.message.append("\nERREUR dans le fichier d'analyse, dans le node <setting>.");
commandes.message.append("\nLe nom de l'archive \"nameZip\n ne doit pas contenir de caractères spéciaux.");
commandes.message.append("\n**************************************************");
verifSujet.getAttributs().put("erreurNameArchive","true");
erreur=true;
}
@ -518,16 +600,24 @@ public class verificationFichierAnalyse {
number_match = Integer.valueOf(plagiarism.getAttributs().get("number_match"));
}catch (Exception e) {
System.out.println();
System.out.println("**-** Erreur dans le fichier d'analyse le node \"setting\".");
System.out.println("**-** ERREUR dans le fichier d'analyse, dans le node <setting>.");
System.out.println("Le nombre de correspondance \"number_match\" doit être une valeur numérique.");
System.out.println();
commandes.message.append("\n**************************************************");
commandes.message.append("\nERREUR dans le fichier d'analyse, dans le node <setting>.");
commandes.message.append("\nLe nombre de correspondance \"number_match\" doit être une valeur numérique.");
commandes.message.append("\n**************************************************");
erreur=true;
}
if(number_match<0) {
System.out.println();
System.out.println("**-** Erreur dans le fichier d'analyse le node \"setting\".");
System.out.println("**-** ERREUR dans le fichier d'analyse, dans le node <setting>.");
System.out.println("Le nombre de correspondance \"number_match\" doit être unevaleur positive.");
System.out.println();
commandes.message.append("\n**************************************************");
commandes.message.append("\nERREUR dans le fichier d'analyse, dans le node <setting>.");
commandes.message.append("\nLe nombre de correspondance \"number_match\" doit être unevaleur positive.");
commandes.message.append("\n**************************************************");
erreur=true;
}
@ -538,16 +628,24 @@ public class verificationFichierAnalyse {
mini_number_modification = Integer.valueOf(plagiarism.getAttributs().get("mini_number_modification"));
}catch (Exception e) {
System.out.println();
System.out.println("**-** Erreur dans le fichier d'analyse le node \"setting\".");
System.out.println("**-** ERREUR dans le fichier d'analyse, dans le node <setting>.");
System.out.println("Le nombre minimum de modification \"mini_number_modification\" doit être une valeur numérique.");
System.out.println();
commandes.message.append("\n**************************************************");
commandes.message.append("\nERREUR dans le fichier d'analyse, dans le node <setting>.");
commandes.message.append("\nLe nombre minimum de modification \"mini_number_modification\" doit être une valeur numérique.");
commandes.message.append("\n**************************************************");
erreur=true;
}
if(mini_number_modification<-1) {
System.out.println();
System.out.println("**-** Erreur dans le fichier d'analyse le node \"setting\".");
System.out.println("**-** ERREUR dans le fichier d'analyse, dans le node <setting>.");
System.out.println("Le nombre minimum de modification \"mini_number_modification\" doit être une valeur positive.");
System.out.println();
commandes.message.append("\n**************************************************");
commandes.message.append("\nERREUR dans le fichier d'analyse, dans le node <setting>.");
commandes.message.append("\nLe nombre minimum de modification \"mini_number_modification\" doit être une valeur positive.");
commandes.message.append("\n**************************************************");
erreur=true;
}
@ -558,16 +656,24 @@ public class verificationFichierAnalyse {
nombres_modifications_simultané_maxi = Integer.valueOf(plagiarism.getAttributs().get("nombres_modifications_simultané_maxi"));
}catch (Exception e) {
System.out.println();
System.out.println("**-** Erreur dans le fichier d'analyse le node \"setting\".");
System.out.println("**-** ERREUR dans le fichier d'analyse, dans le node <setting>.");
System.out.println("Le nombre de modifications simultanées \"nombres_modifications_simultané_maxi\" doit être une valeur numérique.");
System.out.println();
commandes.message.append("\n**************************************************");
commandes.message.append("\nERREUR dans le fichier d'analyse, dans le node <setting>.");
commandes.message.append("\nLe nombre de modifications simultanées \"nombres_modifications_simultané_maxi\" doit être une valeur numérique.");
commandes.message.append("\n**************************************************");
erreur=true;
}
if(nombres_modifications_simultané_maxi<0) {
System.out.println();
System.out.println("**-** Erreur dans le fichier d'analyse le node \"setting\".");
System.out.println("**-** ERREUR dans le fichier d'analyse, dans le node <setting>.");
System.out.println("Le nombre de modifications simultanées \"nombres_modifications_simultané_maxi\" doit être une valeur positive.");
System.out.println();
commandes.message.append("\n**************************************************");
commandes.message.append("\nERREUR dans le fichier d'analyse, dans le node <setting>.");
commandes.message.append("\nLe nombre de modifications simultanées \"nombres_modifications_simultané_maxi\" doit être une valeur positive.");
commandes.message.append("\n**************************************************");
erreur=true;
}
@ -584,16 +690,24 @@ public class verificationFichierAnalyse {
tolerance_characters = Integer.valueOf(similarity.getAttributs().get("tolerance_characters"));
}catch (Exception e) {
System.out.println();
System.out.println("**-** Erreur dans le fichier d'analyse le node \"setting\".");
System.out.println("**-** ERREUR dans le fichier d'analyse, dans le node <setting>.");
System.out.println("La tolérance de catactère \"tolerance_characters\" n'est pas un entier.");
System.out.println();
commandes.message.append("\n**************************************************");
commandes.message.append("\nERREUR dans le fichier d'analyse, dans le node <setting>.");
commandes.message.append("\nLa tolérance de catactère \"tolerance_characters\" n'est pas un entier.");
commandes.message.append("\n**************************************************");
erreur=true;
}
if(tolerance_characters<0) {
System.out.println();
System.out.println("**-** Erreur dans le fichier d'analyse le node \"setting\".");
System.out.println("**-** ERREUR dans le fichier d'analyse, dans le node <setting>.");
System.out.println("La tolérance de catactère \"tolerance_characters\" doit être une valeur positive.");
System.out.println();
commandes.message.append("\n**************************************************");
commandes.message.append("\nERREUR dans le fichier d'analyse, dans le node <setting>.");
commandes.message.append("\nLa tolérance de catactère \"tolerance_characters\" doit être une valeur positive.");
commandes.message.append("\n**************************************************");
erreur=true;
}
}
@ -603,16 +717,24 @@ public class verificationFichierAnalyse {
tolerance_text = Double.valueOf(similarity.getAttributs().get("tolerance_text"));
}catch (Exception e) {
System.out.println();
System.out.println("**-** Erreur dans le fichier d'analyse le node \"setting\".");
System.out.println("**-** ERREUR dans le fichier d'analyse, dans le node <setting>.");
System.out.println("La tolérance sur le texte (similitude) \"tolerance_text\" doit être un numérique compris entre 0.01 et 0.99.");
System.out.println();
erreur=true;
commandes.message.append("\n**************************************************");
commandes.message.append("\nERREUR dans le fichier d'analyse, dans le node <setting>.");
commandes.message.append("\nLa tolérance sur le texte (similitude) \"tolerance_text\" doit être un numérique compris entre 0.01 et 0.99.");
commandes.message.append("\n**************************************************");
erreur=true;
}
if(tolerance_text<0 || tolerance_text>1) {
System.out.println();
System.out.println("**-** Erreur dans le fichier d'analyse le node \"setting\".");
System.out.println("**-** ERREUR dans le fichier d'analyse, dans le node <setting>.");
System.out.println("La tolérance sur le texte (similitude) \"tolerance_text\" doit être un numérique compris entre 0.01 et 0.99.");
System.out.println();
commandes.message.append("\n**************************************************");
commandes.message.append("\nERREUR dans le fichier d'analyse, dans le node <setting>.");
commandes.message.append("\nLa tolérance sur le texte (similitude) \"tolerance_text\" doit être un numérique compris entre 0.01 et 0.99.");
commandes.message.append("\n**************************************************");
erreur=true;
}
@ -633,11 +755,15 @@ public class verificationFichierAnalyse {
if(styleParagraphDefault.getAttributs().get("evaluer")!=null) {
if(styleParagraphDefault.getAttributs().get("evaluer").equals("true")) {
System.out.println();
System.out.println("**-** AVERTISSEMENT dans le fichier d'analyse, le node \"style:default-style\".");
System.out.println("**-** AVERTISSEMENT dans le fichier d'analyse, dans le node <style:default-style>.");
System.out.println("Le node \"style:default-style\" ne doit pas contenir l'attribut \"evaluer=true\".");
System.out.println("Les valeurs par défaut dans les styles de paragraphe (les nodes \"style:style\") ont été ajouté.");
System.out.println("Lisez dans la documentation, les caractéristique du node principal \"style:paragraph\".");
System.out.println();
commandes.message.append("\n**************************************************");
commandes.message.append("\nAVERTISSEMENT dans le fichier d'analyse, dans le node <style:default-style>.");
commandes.message.append("\nLe node <style:default-style> ne doit pas contenir l'attribut evaluer=\"true\".");
commandes.message.append("\n**************************************************");
}
}
}
@ -657,6 +783,12 @@ public class verificationFichierAnalyse {
System.out.println("Le contenu du node est : " + nod.getContenu());
System.out.println("Le contenu du node doit avoir plus de 3 caractères pour qu'il puisse être évalué.");
System.out.println();
commandes.message.append("\n**************************************************");
commandes.message.append("\nERREUR dans le fichier d'analyse, dans le node <" + nod.getNomElt() + ">.");
commandes.message.append("\nLe contenu du node est : " + nod.getContenu());
commandes.message.append("\nLe contenu du node doit avoir plus de 3 caractères pour qu'il puisse être évalué.");
commandes.message.append("\n**************************************************");
erreur=true;
}
}
@ -671,10 +803,16 @@ public class verificationFichierAnalyse {
if(match.find()) {
if(nod.retourneLesContenusEnfants("").contains("")){
System.out.println();
System.out.println("**-** ERREUR dans le fichier d'analyse, le node \"" + nod.getNomElt() + "\".");
System.out.println("**-** ERREUR dans le fichier d'analyse, dans le node <" + nod.getNomElt() + ">.");
System.out.println("Le node possède l'attribut allContent=\"" + nod.getAttributs().get("allContent")+"\"");
System.out.println("Et un des nodes enfants possède un contenu évalué directement par l'évaluateur ‽");
System.out.println();
commandes.message.append("\n**************************************************");
commandes.message.append("\nERREUR dans le fichier d'analyse, dans le node <" + nod.getNomElt() + ">.");
commandes.message.append("\nLe node possède l'attribut allContent=\"" + nod.getAttributs().get("allContent")+"\"");
commandes.message.append("\nEt un des nodes enfants possède un contenu évalué directement par l'évaluateur ‽");
commandes.message.append("\n**************************************************");
erreur=true;
}
}
@ -730,14 +868,13 @@ public class verificationFichierAnalyse {
nodeCalculHash.getAttributs().put("analysis_filename", commandes.nameSujet);
commandes.message.append("\n");
commandes.message.append("\n┌────────────────────────────────────────────────────────────────────┐");
commandes.message.append("\n│ Le hash du code de l'évaluation ou le nom du fichier d'analyse │");
commandes.message.append("\n│ a été mise à jour dans le fichier d'analyse. │");
commandes.message.append("\n│ │");
commandes.message.append("\n│ Le hash du code de l'évaluation est : " + commandes.hash + new String(new char[nbespace]).replace("\0", " ") +"" );
commandes.message.append("\n│ Le nom du fichier d'analyse est : " + commandes.nameSujet + new String(new char[nbespace2]).replace("\0", " ") +"" );
commandes.message.append("\n│ │");
commandes.message.append("\n└────────────────────────────────────────────────────────────────────┘");
commandes.message.append("\n*********************************************************************");
commandes.message.append("\n Le hash du code de l'évaluation ou le nom du fichier d'analyse");
commandes.message.append("\n a été mise à jour dans le fichier d'analyse.");
commandes.message.append("\n");
commandes.message.append("\n Le hash du code de l'évaluation est : " + commandes.hash );
commandes.message.append("\n Le nom du fichier d'analyse est : " + commandes.nameSujet);
commandes.message.append("\n*********************************************************************");
commandes.message.append("\n");
if(commandes.nameSujet.contains(".")) {
@ -750,10 +887,10 @@ public class verificationFichierAnalyse {
System.out.println("\t\t│ Vérification du hash et du nom du fichier correct. │");
System.out.println("\t\t└─────────────────────────────────────────────────────┘");
System.out.println();
commandes.message.append("\n┌─────────────────────────────────────────────────────┐");
commandes.message.append("\n Vérification du hash et du nom du fichier correct.");
commandes.message.append("\n└─────────────────────────────────────────────────────┘");
commandes.message.append("\n");
commandes.message.append("\n**********************************************************");
commandes.message.append("\n Vérification du hash et du nom du fichier correct.");
commandes.message.append("\n**********************************************************");
}
//** bye bye analyseWriter
if(commandes.console) commandes.clotureApplication();

View File

@ -36,12 +36,17 @@ import javax.swing.SwingConstants;
import javax.swing.Timer;
import java.awt.GridLayout;
import java.awt.Image;
import javax.swing.JTextArea;
import javax.swing.JScrollPane;
import java.awt.Component;
import javax.swing.Box;
import javax.swing.JEditorPane;
import javax.swing.JProgressBar;
import javax.swing.JSeparator;
import net.miginfocom.swing.MigLayout;
import java.awt.Label;
public class evaluate extends JFrame {
@ -53,24 +58,31 @@ public class evaluate extends JFrame {
private JLabel lblPath = new JLabel();
private JLabel lblFileAnalyse = new JLabel();
private JLabel lblFichierCSV = new JLabel();
private JLabel lblFichierSVG = new JLabel();
private JCheckBox chckbxfichiersEtudaints = new JCheckBox();
private JCheckBox chckbxZipfeedback = new JCheckBox();
private JCheckBox chckbxnoFeedback = new JCheckBox();
private JCheckBox chckbxNoNote = new JCheckBox();
private JCheckBox chckCSVNotes = new JCheckBox();
private JCheckBox chckbxNoLogo = new JCheckBox();
JCheckBox chckbxNewLogo = new JCheckBox();
private JTextPane txtpnmessages = new JTextPane();
private JProgressBar progressBar = new JProgressBar();
private JButton btnSelectFileAnalyse = new JButton();
private JButton btnSelectFolder = new JButton();
private JButton btnEvaluerLesFichiers = new JButton();
private JButton btnFichierCSV = new JButton();
private JButton btnAbout = new JButton();
private JButton btnFichierSVG = new JButton();
/**
* Create the frame.
*/
public evaluate() {
setIconImage(Toolkit.getDefaultToolkit().getImage(evaluate.class.getResource("/resources/evalwriter.ico")));
ImageIcon img = new ImageIcon(getClass().getResource("/evalwriter.png") );
this.setIconImage(img.getImage());
this.setTitle(commandes.Titre);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setBounds(100, 100, 960, 677);
@ -81,62 +93,98 @@ public class evaluate extends JFrame {
JToolBar toolBar = new JToolBar();
contentPane.add(toolBar, BorderLayout.NORTH);
btnSelectFolder = new JButton("Selection dossier d'analyse");
btnSelectFolder.setIcon(new ImageIcon(evaluate.class.getResource("/resources/open2.png")));
btnSelectFolder.setSelectedIcon(new ImageIcon(evaluate.class.getResource("/resources/evalwriter.png")));
btnSelectFolder.setToolTipText("Sélectionner le dossier d'analyse (CTRL+O)");
toolBar.add(btnSelectFolder);
btnEvaluerLesFichiers = new JButton("Evaluer les fichiers des étudiants");
btnSelectFileAnalyse = new JButton("Selection fichier analyse");
btnSelectFileAnalyse = new JButton("");
btnSelectFileAnalyse.setToolTipText("Sélection du fichier d'analyse");
btnSelectFileAnalyse.setIcon(new ImageIcon(evaluate.class.getResource("/resources/fichierAnalyse.png")));
toolBar.add(btnSelectFileAnalyse);
btnFichierCSV = new JButton("Sélection fichier CSV");
btnSelectFolder = new JButton("");
btnSelectFolder.setIcon(new ImageIcon(evaluate.class.getResource("/resources/open2.png")));
btnSelectFolder.setSelectedIcon(new ImageIcon(evaluate.class.getResource("/resources/evalwriter.png")));
btnSelectFolder.setToolTipText("Sélectionner le dossier contenant les fichiers des étudiants");
toolBar.add(btnSelectFolder);
toolBar.addSeparator();
btnEvaluerLesFichiers = new JButton("");
btnEvaluerLesFichiers.setToolTipText("Evaluer les fichiers des étudiants");
btnFichierCSV = new JButton("");
btnFichierCSV.setToolTipText("Sélectionner la liste des étudiants");
btnFichierCSV.setIcon(new ImageIcon(evaluate.class.getResource("/resources/fichierCSV.png")));
toolBar.add(btnFichierCSV);
btnFichierSVG = new JButton("");
btnFichierSVG.setToolTipText("Sélectionner le fichier Logo");
btnFichierSVG.setIcon(new ImageIcon(evaluate.class.getResource("/resources/fichierSVG.png")));
toolBar.add(btnFichierSVG);
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);
toolBar.addSeparator();
btnEvaluerLesFichiers.setIcon(new ImageIcon(evaluate.class.getResource("/resources/evaluate.png")));
toolBar.add(btnEvaluerLesFichiers);
toolBar.addSeparator();
btnAbout = new JButton("");
btnAbout.setIcon(new ImageIcon(evaluate.class.getResource("/resources/apropos.png")));
btnAbout.setToolTipText("Informations");
toolBar.add(btnAbout);
JPanel panel = new JPanel();
contentPane.add(panel, BorderLayout.WEST);
panel.setLayout(new GridLayout(0, 1, 0, 0));
panel.setLayout(new MigLayout("", "[309px]", "[71px][71px][][71px][][74.00][][]"));
lblFileAnalyse = new JLabel("<HTML><B><U>Fichier de l'analyse</U></B> : </HTML>");
lblFileAnalyse.setHorizontalAlignment(SwingConstants.LEFT);
lblFileAnalyse.setFont(new Font("Tahoma", Font.BOLD, 14));
panel.add(lblFileAnalyse);
lblPath.setHorizontalAlignment(SwingConstants.LEFT);
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>");
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);
panel.add(lblFileAnalyse, "flowy,cell 0 0,alignx left,growy");
chckbxfichiersEtudaints = new JCheckBox("Les fichiers ne sont pas dans des dossiers nominatifs");
chckbxfichiersEtudaints.setFont(new Font("Tahoma", Font.PLAIN, 12));
chckbxfichiersEtudaints.setToolTipText("Cochez si les fichiers des étudiants ne sont pas dans des dossier nominatifs");
panel.add(chckbxfichiersEtudaints);
panel.add(chckbxfichiersEtudaints, "flowy,cell 0 1,grow");
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, "flowy,cell 0 3,grow");
lblFichierSVG = new JLabel("<HTML><B><U>Fichier SVG</U></B> :</HTML>");
lblFichierSVG.setFont(new Font("Tahoma", Font.BOLD, 14));
panel.add(lblFichierSVG, "flowy,cell 0 5,growx");
chckCSVNotes = new JCheckBox("Créer un fichier CSV des notes");
panel.add(chckCSVNotes, "cell 0 3,grow");
lblPath.setHorizontalAlignment(SwingConstants.LEFT);
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>");
panel.add(lblPath, "cell 0 0,grow");
chckbxnoFeedback = new JCheckBox("Pas de feedback");
chckbxnoFeedback.setFont(new Font("Tahoma", Font.PLAIN, 12));
panel.add(chckbxnoFeedback);
panel.add(chckbxnoFeedback, "cell 0 1,grow");
chckbxZipfeedback = new JCheckBox("Zip les feedbacks");
chckbxZipfeedback.setFont(new Font("Tahoma", Font.PLAIN, 12));
panel.add(chckbxZipfeedback);
panel.add(chckbxZipfeedback, "cell 0 1,grow");
chckbxNoNote = new JCheckBox("Pas de note dans les feedbacks");
chckbxNoNote.setFont(new Font("Tahoma", Font.PLAIN, 12));
panel.add(chckbxNoNote);
panel.add(chckbxNoNote, "cell 0 1,grow");
chckCSVNotes = new JCheckBox("Créer un fichier CSV des notes");
panel.add(chckCSVNotes);
chckbxNewLogo = new JCheckBox("Nouveau logo");
chckbxNewLogo.setFont(new Font("Tahoma", Font.PLAIN, 11));
panel.add(chckbxNewLogo, "cell 0 5");
chckbxNoLogo = new JCheckBox("Pas de logo");
panel.add(chckbxNoLogo, "cell 0 5");
JPanel panel_1 = new JPanel();
@ -151,7 +199,8 @@ public class evaluate extends JFrame {
scrollPane.setColumnHeaderView(progressBar);
txtpnmessages = new JTextPane();
txtpnmessages.setText("Messages");
txtpnmessages.setFont(new Font("Tahoma", Font.PLAIN, 12));
txtpnmessages.setText("Charger un fichier d'analyse.");
scrollPane.setViewportView(txtpnmessages);
@ -172,17 +221,22 @@ public class evaluate extends JFrame {
chckbxnoFeedback.setEnabled(false);
chckbxNoNote.setEnabled(false);
chckCSVNotes.setEnabled(false);
chckbxNewLogo.setEnabled(false);
chckbxNoLogo.setEnabled(false);
}else {
chckbxfichiersEtudaints.setEnabled(true);
chckbxZipfeedback.setEnabled(true);
chckbxnoFeedback.setEnabled(true);
chckbxNoNote.setEnabled(true);
chckCSVNotes.setEnabled(true);
chckbxNewLogo.setEnabled(true);
chckbxNoLogo.setEnabled(true);
StringBuilder text = new StringBuilder();
text.append("\n***********************************************");
text.append("\n** INFORMATIONS **");
text.append("\n INFORMATIONS");
text.append("\n***********************************************");
text.append("\nLe titre de l'exercice est : " + commandes.analyse_titre);
text.append("\n");
@ -199,9 +253,17 @@ public class evaluate extends JFrame {
text.append("\n\tLe barème est sur " + String.valueOf(commandes.analyse_notefrom));
text.append("\n\tLa progression est de " + String.valueOf(commandes.analyse_progression));
}
text.append("\n");
text.append("\n______");
text.append("\nLe nom du fichier : " + commandes.analysis_filename);
text.append("\nLe hash de l'évaluation est : " + commandes.hash);
text.append("\n");
text.append("\n______");
text.append("\nHistoriques des modifications present : " + commandes.analyse_historiquePresent);
text.append("\n______");
text.append("\nVerification de la presence metaSujet : " + commandes.analyse_presenceMetaSujet);
text.append("\n______");
text.append("\nContrôle la date de céation : " + commandes.analyse_controleDateCreation);
text.append("\n______");
text.append("\nContrôle l'auteur initial du fichier : " + commandes.analyse_controle_Initial_Creator);
text.append("\n***********************************************");
progressBar.setVisible(false);
@ -210,8 +272,9 @@ 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>");
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>");
lblFileAnalyse.setText("<HTML><B><U>Fichier de l'analyse</U></B> : " + commandes.analysis_filename + "</HTML>");
lblFichierSVG.setText("<HTML><B><U>Fichier SVG</U></B> : " + commandes.nameSVG.substring(commandes.nameSVG.lastIndexOf("\\")+1,commandes.nameSVG.length()) + "</HTML>");
lblFichierCSV.setText("<HTML><B><U>Fichier CSV</U></B> : " + commandes.nameCSV + "</HTML>");
}
@ -256,12 +319,22 @@ public class evaluate extends JFrame {
// Analyse le contenu du dossier
btnEvaluerLesFichiers.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
try {
evaluerLesFichiersEtudiants();
} catch (ParserConfigurationException | SAXException | IOException | CloneNotSupportedException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
if(commandes.fichierAnalyseValide) {
try {
msgBox V = new msgBox("Je travaille dure.",false,false,"Attendez");
Thread.sleep(500);
evaluerLesFichiersEtudiants();
V.close();
} catch (ParserConfigurationException | SAXException | IOException | CloneNotSupportedException e1) {
e1.printStackTrace();
} catch (InterruptedException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
}else {
new msgBox("Le fichier d'analyse n'est pas valide.",true,false,"Avertissement");
}
}
});
@ -288,17 +361,63 @@ public class evaluate extends JFrame {
commandes.fourniCSV=false;
System.out.println("No Selection ");
}
refreshLabel();
}
});
// Bouton SVG
btnFichierSVG.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
JFileChooser chooser = new JFileChooser();
chooser.setDialogTitle("Choisir un fichier SVG");
chooser.setCurrentDirectory(new java.io.File(commandes.path));
chooser.setFileSelectionMode(JFileChooser.FILES_ONLY);
FileNameExtensionFilter filter = new FileNameExtensionFilter("Format SVG", "svg");
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.nameSVG = chooser.getSelectedFile().getAbsolutePath();
commandes.contenuFichierSVG= meptl.chargementFichierSVG();
txtpnmessages.setText(commandes.contenuFichierSVG);
} else {
commandes.nameSVG = "";
commandes.contenuFichierSVG="";
System.out.println("No Selection ");
}
refreshLabel();
}
});
// Bouton About
btnAbout.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
new about();
}
});
}
/**
* Permet l'évaluation des fichiers des étudaints.
* @throws ParserConfigurationException
* @throws SAXException
* @throws IOException
* @throws CloneNotSupportedException
*/
private void evaluerLesFichiersEtudiants() throws ParserConfigurationException, SAXException, IOException, CloneNotSupportedException {
commandes.analyse=true;
@ -309,157 +428,14 @@ public class evaluate extends JFrame {
if(chckbxnoFeedback.isSelected()) commandes.sansFeeback=true;
if(chckbxNoNote.isSelected()) commandes.noNote=true;
if(chckCSVNotes.isSelected()) commandes.ecritNoteCSV=true;
if(chckbxNewLogo.isSelected()) commandes.newLogo=true;
if(chckbxNoLogo.isSelected()) commandes.noLogo = true;
meptl.analyseVerifieHistoriqueLesFichiersEtudiantsEtExportNoteCSV();
txtpnmessages.setText(commandes.message.toString());
progressBar.setVisible(false);
// Run a = new Run(commandes.path,commandes.Profil, commandes.fichierStudentMoodle);
//
// //** Nouveau node qui permet de convertir le fichier contenant la liste des étudiants en node.
// node nodeCSV = null;
//
// //*****************************************
// //** Nombre de fichier writer à analyser **
// //*****************************************
// int nbFichierWriter = a.getLectDossiers().getEC().getListeContentWriter().size();
//
//
//
// //***************************************
// //** -verif ou -use file.xml -verifcsv **
// //***************************************
// node verif = new node();
// if(commandes.verifHisto || commandes.verifHisto2) {
// node verification = new node();
// verification.setNomElt("verification");
// verification.getAttributs().put("nombre_fichier", String.valueOf(a.getLectDossiers().getEC().getListeFichierodt().size()));
// for(int i = 0 ; i < nbFichierWriter ; i++) {
// node nod = Run.XMLContent(a.getLectDossiers().getEC().getListeContentWriter().get(i));
// node nodStudent = meptl.LectureFichierEtudiantPourVerification(nod,a,i);
// verification.getNodes().add(nodStudent);
// }
// //a.ecritureNodeEnXML(verification, "VerificationHistorique","",false); //écriture du node de l'étudiant
// verif = meptl.verificationHistorique(verification, a); // vérification des correspondances entre les fichiers
//
// //********************************
// //** Ecriture du node verif.xml **
// //********************************
// Run.ecritureNodeEnXML(verif, "Verif",commandes.pathDestination,commandes.fourniDossierDestination, "Verif"); //écriture du node de vérification
// if(!commandes.analyse) {
// //** bye bye analyseWriter
// commandes.clotureApplication();
// }
// }
//
//
//
// System.getProperty("file.encoding","UTF-8");
//
// //*********************************************************
// //** Node contenant l'ensemble des analyses des étudiants **
// //*********************************************************
// node ensembleanalyse = new node();
// ensembleanalyse.setNomElt("analyses");
//
//
// StringBuilder textMessage = new StringBuilder();
//
// //*****************************************************
// //** Parcours l'ensemble des fichiers des étudiants ***
// //*****************************************************
// for(int i = 0 ; i < nbFichierWriter ; i++) {
//
// //** Ne prends pas en compte le dossier destination créé par la commande -dest
// //** Si pas d'analyse alors le nom doit contenir le caractère $ dans le nom du dossier.
// if(commandes.fourniDossierDestination)if(a.getLectDossiers().getEC().getListeNomDossier().get(i).equals(commandes.pathDestination)) continue;
//
// //***********************************************************
// //** Lecture et transformation en node du fichier étudiant **
// //***********************************************************
// node nod = Run.XMLContent(a.getLectDossiers().getEC().getListeContentWriter().get(i));
// node nodStudent = meptl.LectureFichierEtudiantSousFormeDeNode(nod,a,i);
// //a.ecritureNodeEnXML(nodStudent, a.getLectDossiers().getEC().getListeNomDossier().get(i),"",false,""); //écriture du node de l'étudiant
//
// //**********************************
// //** Analyse des fichiers student **
// //**********************************
// if(commandes.analyse||commandes.ecritNodeAnalyse) {
//
//// Run.ecritureNodeEnXML(nodStudent, "fichier student","",false,""); //écriture du node nodStudent de l'étudiant
// node ana = meptl.analyse(nodStudent, commandes.sujet, i, a);
//
// //**************************************************
// //** Ecriture des fichiers d'analyse des students **
// //**************************************************
// if(commandes.ecritNodeAnalyse) {
// Run.ecritureNodeEnXML(ana, "nodana"+ana.retourneFirstEnfantsByName("ouverture").getAttributs().get("dossier"),"",false,""); //écriture du node analyse de l'étudiant
// }
//
// //****************************
// //** Création des feedbacks **
// //****************************
// if(!commandes.sansFeeback&&!commandes.ecritNodeAnalyse) {
// if(!commandes.zipfeedback) {
// //feedback(ana, verif); //classique directement dans le répertoire
// feedbacks.feedback(ana,verif, false);
// }
// if(commandes.zipfeedback) { // Dans une archive pour Moodle
// try {
// a.AddStreamToZip(feedbacks.feedback(ana, verif, true), meptl.retourneLeNomDuFeedback(a.getLectDossiers().getEC().getListeNomFichierFeedBack().get(i),ana, verif),commandes.analyse_size,commandes.analyse_nameZip);
// } catch (ZipException e) {
// e.printStackTrace();
// } catch (IOException e) {
// e.printStackTrace();
// }
// }
// }
//
// //********************************************************************************
// //** Ajoute au node ensembleanalyse lorsque -csv file.csv ou -verifcsv file.scv **
// //********************************************************************************
// if(commandes.ecritNoteCSV) ensembleanalyse.addNode(ana);
//
// //*********************************************************
// //** Message dans la console sur l'analyse de l'étudiant **
// //*********************************************************
// textMessage.append(meptl.messageSystem(ana).toString());
// textAreaMessage.setText(textMessage.toString());
//
// }
// }
// if(commandes.sujet!=null) {
// //*****************************************************
// //** Exportation au format CSV si -csv ou -verifcsv **
// //*****************************************************
// if(commandes.ecritNoteCSV && !commandes.fourniCSV) {
// if(!commandes.verifHisto2) meptl.ecritureCSV(ensembleanalyse);
// if(commandes.verifHisto2) meptl.ecritureCSV(ensembleanalyse,verif,a,commandes.sujet.retourneFirstEnfantsByName("setting"));
// //a.ecritureNodeEnXML(ensembleanalyse, "ensembleAnalyse"); //écriture du node de l'étudiant
// }
//
// //***********************************************************************
// //** Exportation au format CSV si -csv file.csv ou -verifcsv file.csv **
// //***********************************************************************
// if(commandes.ecritNoteCSV && commandes.fourniCSV) {
// meptl.ecritureCSV(ensembleanalyse,verif,a,nodeCSV, commandes.sujet.retourneFirstEnfantsByName("setting"));
// //a.ecritureNodeEnXML(ensembleanalyse, "ensembleAnalyse"); //écriture du node de l'étudiant
// }
//
// //**************************************
// //** Mise à jour du fichier d'analyse **
// //**************************************
//// if(commandes.MAJFichierAnalyse||commandes.MAJnameAnalysisFile) {
//// verificationFichierAnalyse.MiseAJourFichierAnalyse();
//// verificationFichierAnalyse.messagMiseAJourFichierAnalyseAprèsAnalyse();
//// }
// }
}

View File

@ -85,6 +85,7 @@ public class filechooserXML extends JFileChooser {
private void openFileXML(File file) {
commandes.path = file.getPath().substring(0,file.getPath().lastIndexOf("\\"));
commandes.filename = file.getName().substring(0,file.getName().lastIndexOf("."));
commandes.nameSujet = file.getName().toString();
BufferedReader br;
try {

View File

@ -29,8 +29,6 @@ public class mainApp extends JFrame implements ActionListener{
JButton btnCreate;
JButton actCharge;
JButton aPropos;
private JButton btnCrerUnFichier;
/**
* Launch the application.
@ -61,15 +59,16 @@ public class mainApp extends JFrame implements ActionListener{
*/
private void initialize() {
frmEvalwriter = new JFrame();
frmEvalwriter.setIconImage(Toolkit.getDefaultToolkit().getImage(mainApp.class.getResource("/resources/evalwriter.ico")));
frmEvalwriter.setResizable(false);
frmEvalwriter.setTitle("analyseWriter");
frmEvalwriter.setBounds(100, 100, 555, 457);
frmEvalwriter.setBounds(100, 100, 555, 295);
frmEvalwriter.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
frmEvalwriter.getContentPane().setLayout(null);
ImageIcon img = new ImageIcon(getClass().getResource("/evalwriter.png") );
setIconImage(img.getImage());
frmEvalwriter.setIconImage(img.getImage());
btnCreate = new JButton("Modifier un fichier d'analyse");
btnCreate.setFont(new Font("Tahoma", Font.PLAIN, 14));
@ -78,7 +77,7 @@ public class mainApp extends JFrame implements ActionListener{
btnCreate.setBounds(34, 163, 470, 50);
frmEvalwriter.getContentPane().add(btnCreate);
actCharge = new JButton("Charge le fichier d'analyse pour évaluer les fichiers des étudiants");
actCharge = new JButton("Evaluer les fichiers des étudiants - Créer un fichier d'analyse");
actCharge.setBackground(Color.PINK);
actCharge.addActionListener(this);
actCharge.setFont(new Font("Tahoma", Font.PLAIN, 14));
@ -92,21 +91,6 @@ public class mainApp extends JFrame implements ActionListener{
lblNewLabel.setFont(new Font("Pacifico", Font.PLAIN, 26));
lblNewLabel.setBounds(34, 11, 470, 74);
frmEvalwriter.getContentPane().add(lblNewLabel);
aPropos = new JButton("A Propos");
aPropos.addActionListener(this);
aPropos.setFont(new Font("Tahoma", Font.PLAIN, 14));
aPropos.setBounds(34, 326, 161, 50);
frmEvalwriter.getContentPane().add(aPropos);
btnCrerUnFichier = new JButton("Créer un fichier d'analyse à partir d'un fichier ODF");
btnCrerUnFichier.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
}
});
btnCrerUnFichier.setFont(new Font("Tahoma", Font.PLAIN, 14));
btnCrerUnFichier.setBounds(34, 235, 470, 50);
frmEvalwriter.getContentPane().add(btnCrerUnFichier);
}
@ -114,20 +98,15 @@ public class mainApp extends JFrame implements ActionListener{
public void actionPerformed(ActionEvent e) {
if(e.getSource()==btnCreate) {
// Creer = new create();
frmEvalwriter.dispose();
// frmEvalwriter.dispose();
}
if(e.getSource()==actCharge) {
if(!commandes.console) System.out.println( "Début chargement du fichier d'analyse." );
new filechooserXML();
new evaluate();
frmEvalwriter.dispose();
}
if(e.getSource()==aPropos) {
new about();
}
}
}

66
src/app/msgBox.java Normal file
View File

@ -0,0 +1,66 @@
package app;
import java.awt.BorderLayout;
import java.awt.FlowLayout;
import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
public class msgBox extends JDialog {
private final JPanel contentPanel = new JPanel();
/**
* Create the dialog.
*/
public msgBox(String message, Boolean AfficheOK, Boolean AfficheCancel, String Titre) {
setTitle(Titre);
JLabel lblMessage = new JLabel(message);
setBounds(100, 100, 437, 180);
getContentPane().setLayout(new BorderLayout());
contentPanel.setLayout(new FlowLayout());
contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
getContentPane().add(contentPanel, BorderLayout.CENTER);
{
contentPanel.add(lblMessage);
}
{
JPanel buttonPane = new JPanel();
buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
getContentPane().add(buttonPane, BorderLayout.SOUTH);
{
JButton okButton = new JButton("OK");
okButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
dispose();
}
});
okButton.setActionCommand("OK");
okButton.setVisible(AfficheOK);
buttonPane.add(okButton);
getRootPane().setDefaultButton(okButton);
}
{
JButton cancelButton = new JButton("Cancel");
cancelButton.setActionCommand("Cancel");
buttonPane.add(cancelButton);
cancelButton.setVisible(AfficheCancel);
}
}
setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
setVisible(true);
}
public void close() {
dispose();
}
}

BIN
src/resources/apropos.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB