MAJ inteface graphique modification fichier analyse

This commit is contained in:
pablo rodriguez 2022-05-28 19:13:25 +02:00
parent ac22be24c5
commit b430cefe35
30 changed files with 2297 additions and 302 deletions

View File

@ -5,6 +5,6 @@
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="lib" path="C:/Users/pabr6/eclipse-workspace/zip4j-1.2.7.jar"/>
<classpathentry kind="lib" path="miglayout15-swing.jar" sourcepath="miglayout-src.zip"/>
<classpathentry kind="lib" path="C:/Users/pabr6/eclipse-workspace/cXML.jar" sourcepath="/cXML"/>
<classpathentry kind="lib" path="C:/Users/pabr6/eclipse-workspace/cXML.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>

1
bin/.gitignore vendored
View File

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

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
bin/fichierAnalyseInfo2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

@ -0,0 +1,371 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
inkscape:export-ydpi="90"
inkscape:export-xdpi="90"
inkscape:export-filename="C:\Users\pabr6\git\analyseWriter\MEPTL\icons\fichierAnalyseModif.png"
sodipodi:docname="fichier_analyseXML info1.svg"
inkscape:version="1.1.2 (b8e25be833, 2022-02-05)"
id="svg8"
version="1.1"
viewBox="0 0 12.7 12.7"
height="48"
width="48"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/">
<defs
id="defs2">
<linearGradient
id="k"
gradientTransform="matrix(7.99974,0,0,7.9977797,-863.30581,-7811.3988)"
gradientUnits="userSpaceOnUse"
x1="122.75008"
x2="111.74973"
xlink:href="#b"
y1="991.62115"
y2="977.11713" />
<linearGradient
id="b">
<stop
offset="0"
stop-color="#0369a3"
id="stop7" />
<stop
offset="1"
stop-color="#1c99e0"
id="stop9" />
</linearGradient>
<linearGradient
id="j"
gradientUnits="userSpaceOnUse"
x1="108.00134"
x2="20.001341"
y1="122"
y2="6"
gradientTransform="translate(10.661607,-2.6314354)">
<stop
offset="0"
stop-color="#e6e6e6"
id="stop35" />
<stop
offset="1"
stop-color="#fff"
id="stop37" />
</linearGradient>
<linearGradient
id="i"
gradientUnits="userSpaceOnUse"
x1="108.00134"
x2="20.001341"
xlink:href="#b"
y1="130"
y2="14"
gradientTransform="translate(12)" />
<linearGradient
id="h"
gradientTransform="matrix(4.4999,0,0,3.66665,-930.97741,2199.6564)"
gradientUnits="userSpaceOnUse"
x2="0"
y1="-581.63782"
y2="-578.63782">
<stop
offset="0"
stop-color="#63bbee"
id="stop29" />
<stop
offset="1"
stop-color="#aadcf7"
id="stop31" />
</linearGradient>
<linearGradient
id="g"
gradientTransform="matrix(-4.19983,0,0,3.9111,1552.9405,-4523.1636)"
gradientUnits="userSpaceOnUse"
x2="0"
xlink:href="#a"
y1="1173"
y2="1178" />
<linearGradient
id="a">
<stop
offset="0"
stop-color="#666"
id="stop2" />
<stop
offset="1"
stop-color="#333"
id="stop4" />
</linearGradient>
<linearGradient
id="f"
gradientTransform="matrix(4.19983,0,0,3.9111,-1380.9394,-4521.9436)"
gradientUnits="userSpaceOnUse"
x2="0"
xlink:href="#a"
y1="1173"
y2="1178" />
<linearGradient
id="e"
gradientTransform="matrix(1.19997,0,0,1.22222,-269.19161,858.5534)"
gradientUnits="userSpaceOnUse"
x2="0"
y1="-629.66907"
y2="-635.54944">
<stop
offset="0"
stop-color="#18a303"
id="stop22" />
<stop
offset="1"
stop-color="#106802"
id="stop24" />
</linearGradient>
<linearGradient
id="d"
gradientTransform="matrix(4.19983,0,0,3.9111,-1380.9394,-4517.0536)"
gradientUnits="userSpaceOnUse"
x2="0"
y1="1173"
y2="1178">
<stop
offset="0"
stop-color="#0369a3"
id="stop17" />
<stop
offset="1"
stop-color="#023f62"
id="stop19" />
</linearGradient>
<linearGradient
id="c"
gradientTransform="matrix(0,0.791084,-1.28,0,1511.6005,-282.0136)"
gradientUnits="userSpaceOnUse"
x1="445.69522"
x2="441.38797"
y1="1103.5776"
y2="1099.8198">
<stop
offset="0"
stop-color="#e9b913"
id="stop12" />
<stop
offset="1"
stop-color="#ff0"
id="stop14" />
</linearGradient>
<filter
height="1.0241135"
y="-0.012056753"
width="1.0238876"
x="-0.011943778"
id="filter900"
style="color-interpolation-filters:sRGB"
inkscape:collect="always">
<feGaussianBlur
id="feGaussianBlur902"
stdDeviation="0.33651028"
inkscape:collect="always" />
</filter>
<filter
height="1.0525725"
y="-0.026286236"
width="1.0789646"
x="-0.039482275"
id="filter1018"
style="color-interpolation-filters:sRGB"
inkscape:collect="always">
<feGaussianBlur
id="feGaussianBlur1020"
stdDeviation="0.19016387"
inkscape:collect="always" />
</filter>
</defs>
<sodipodi:namedview
inkscape:window-maximized="1"
inkscape:window-y="-8"
inkscape:window-x="-8"
inkscape:window-height="1009"
inkscape:window-width="1920"
inkscape:guide-bbox="true"
showguides="true"
units="px"
showgrid="false"
inkscape:document-rotation="0"
inkscape:current-layer="layer1"
inkscape:document-units="mm"
inkscape:cy="23.591295"
inkscape:cx="13.698171"
inkscape:zoom="6.5702202"
inkscape:pageshadow="2"
inkscape:pageopacity="0.0"
borderopacity="1.0"
bordercolor="#666666"
pagecolor="#ffffff"
id="base"
inkscape:pagecheckerboard="0"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0"
inkscape:snap-bbox="true"
inkscape:bbox-paths="true"
inkscape:bbox-nodes="true"
inkscape:snap-midpoints="true"
inkscape:object-paths="true"
inkscape:snap-global="false">
<sodipodi:guide
id="guide14"
orientation="1,0"
position="-2.471617e-08,4.4381936" />
<sodipodi:guide
position="6.6200247,5.8336321"
orientation="0.70860014,0.70561026"
id="guide2079" />
<sodipodi:guide
position="6.6200247,5.8336321"
orientation="-0.71816555,0.69587229"
id="guide5772" />
</sodipodi:namedview>
<metadata
id="metadata5">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<g
id="layer1"
inkscape:groupmode="layer"
inkscape:label="Calque 1"
transform="translate(-0.92013353,-0.34176359)">
<g
id="g923"
transform="matrix(0.08485361,0,0,0.08631596,0.7234583,1.2433321)">
<path
d="m 34.652398,1.9735766 c -0.25037,0 -0.50072,0.011156 -0.75,0.035156 -3.66708,0.6998 -4.56576,2.2662469 -4.5,5.9980468 V 123.97553 c 4e-4,4.1875 1.81149,5.99765 6,5.99805 h 91.998062 c 4.1885,-4e-4 5.99764,-1.81055 5.99804,-5.99805 V 52.157171 c 0.048,-2.1119 -0.78004,-4.230247 -2.25,-5.748047 L 88.988348,4.2587328 c -1.51819,-1.4691999 -3.63759,-2.2988999 -5.75,-2.25 h -47.83595 c -0.24919,-0.024 -0.49962,-0.035156 -0.75,-0.035156 z m 70.009782,0.013672 c -0.20997,0 -0.41948,0.016828 -0.62695,0.048828 -2.66247,0.8528 -3.55843,4.904547 -1.50586,6.810547 l 24.0957,24.2207034 c 2.22593,2.1217 6.6581,0.306209 6.77538,-2.775391 V 6.0712326 c -2.4e-4,-2.1136998 -1.91298,-4.034856 -4.01561,-4.035156 h -24.09376 c -0.20758,-0.032 -0.41894,-0.048828 -0.6289,-0.048828 z"
fill="url(#k)"
id="path41"
style="fill:url(#k)" />
<path
d="M 35.400458,7.9735766 V 123.97358 H 127.40048 V 51.973577 L 83.400478,7.9735766 Z"
fill="url(#j)"
id="path43"
style="fill:url(#j)" />
<text
xml:space="preserve"
style="font-size:35.6383px;line-height:1.25;font-family:'C.A. Gatintas';-inkscape-font-specification:'C.A. Gatintas';text-align:center;text-anchor:middle;stroke-width:3.09159"
x="77.788284"
y="121.28213"
id="text2174"
transform="scale(1.0649026,0.93905301)"><tspan
sodipodi:role="line"
id="tspan2172"
style="font-style:normal;font-variant:normal;font-weight:900;font-stretch:normal;font-family:arial;-inkscape-font-specification:'arial Heavy';stroke-width:3.09159"
x="77.788284"
y="121.28213">XML</tspan></text>
</g>
<g
id="g6608"
transform="matrix(1.1011477,0,0,1.0960197,-17.388617,-15.612844)"
style="stroke-width:1.26529">
<path
id="path4945"
style="fill:#000000;stroke:none;stroke-width:0.334773px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="M 6.9115255,4.1117374 A 2.5406649,2.4821629 0 0 0 4.3705953,6.5942731 2.5406649,2.4821629 0 0 0 6.9115255,9.0762921 2.5406649,2.4821629 0 0 0 8.4871398,8.5409244 L 9.0535135,9.109882 9.4219665,8.6845849 8.8902159,8.1507674 A 2.5406649,2.4821629 0 0 0 9.4519387,6.5942731 2.5406649,2.4821629 0 0 0 6.9115255,4.1117374 Z m 0,0.5539713 A 1.9739749,1.9285217 0 0 1 8.8850483,6.5942731 1.9739749,1.9285217 0 0 1 6.9115255,8.5223207 1.9739749,1.9285217 0 0 1 4.9374857,6.5942731 1.9739749,1.9285217 0 0 1 6.9115255,4.6657087 Z" />
<path
style="fill:#ff0000;stroke:none;stroke-width:0.334773px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 9.7071636,8.4854359 2.9328084,2.9440821 c 0.0419,0.512292 -0.280235,0.819082 -0.875635,0.903687 L 8.8320954,9.3885382 C 9.117696,9.015001 9.3363405,8.7445068 9.7071636,8.4854359 Z"
id="path5444"
sodipodi:nodetypes="ccccc" />
</g>
<g
id="g933"
transform="matrix(0.09825882,0,0,0.09825235,-10.226293,0.98948892)"
style="fill:#0000ff;stroke-width:1.25319">
<path
d="M 3.4888109,100.90592 A 33.81118,33.492559 0 0 0 -30.152746,134.3964 33.81118,33.492559 0 0 0 3.6566829,167.89107 33.81118,33.492559 0 0 0 37.466112,134.3964 33.81118,33.492559 0 0 0 3.6566829,100.90592 a 33.81118,33.492559 0 0 0 -0.167872,0 z m 0.167872,3.03429 A 30.454897,30.454897 0 0 1 34.112867,134.3964 30.454897,30.454897 0 0 1 3.6566829,164.85258 30.454897,30.454897 0 0 1 -26.799502,134.3964 30.454897,30.454897 0 0 1 3.6566829,103.94021 Z"
style="fill:#b3b3b3;fill-opacity:0.576433;fill-rule:evenodd;stroke:none;stroke-width:1.42633;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;filter:url(#filter900)"
id="path19"
transform="matrix(0.99070113,0,0,0.99070113,0.03400303,1.249753)" />
<g
transform="matrix(0.92159474,0,0,0.92159474,0.29152559,10.550702)"
id="g1038"
style="stroke-width:1.25319">
<g
style="fill:#b3b3b3;fill-opacity:0.576471;stroke-width:1.25319;filter:url(#filter1018)"
id="g908"
transform="matrix(2.1077061,0,0,2.1077061,-0.86641942,-150.48426)">
<path
style="fill:#b3b3b3;fill-opacity:0.576471;stroke:none;stroke-width:1.25319;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m -3.1073783,132.12572 -0.4971804,1.49154 c 4.01707299,-1.34867 4.47435491,0.36301 3.98475557,1.79863 -0.48959933,1.43561 -2.18480447,7.64534 -2.29580417,9.48299 -0.1109998,1.83765 2.11214326,3.22993 4.525805,3.38521 2.4136617,0.15528 4.5989199,-1.24295 4.5989199,-1.24295 l 0.7457709,-1.69627 c -1.2357175,0.60442 -2.1544693,1.11545 -3.1073785,0.8262 -0.9529092,-0.28925 -1.6157491,-1.49912 -1.3672462,-2.98308 0.2485029,-1.48396 1.4931646,-4.73206 2.3616073,-7.7063 0.8684427,-2.97424 -1.9935919,-4.57168 -3.8458376,-4.54774 -1.85224566,0.0239 -5.1034118,1.19177 -5.1034118,1.19177 z"
id="path904"
sodipodi:nodetypes="cczzzcczzzzc" />
<ellipse
style="fill:#b3b3b3;fill-opacity:0.576471;fill-rule:evenodd;stroke:none;stroke-width:1.25319;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
id="ellipse906"
cx="4.7876372"
cy="125.15446"
rx="3.0603328"
ry="2.9664576" />
</g>
<g
transform="matrix(2.1077061,0,0,2.1077061,-1.8232797,-149.84635)"
id="g17"
style="stroke-width:1.25319">
<path
sodipodi:nodetypes="cczzzcczzzzc"
id="path25"
d="m -3.1073783,132.12572 -0.4971804,1.49154 c 4.01707299,-1.34867 4.47435491,0.36301 3.98475557,1.79863 -0.48959933,1.43561 -2.18480447,7.64534 -2.29580417,9.48299 -0.1109998,1.83765 2.11214326,3.22993 4.525805,3.38521 2.4136617,0.15528 4.5989199,-1.24295 4.5989199,-1.24295 l 0.7457709,-1.69627 c -1.2357175,0.60442 -2.1544693,1.11545 -3.1073785,0.8262 -0.9529092,-0.28925 -1.6157491,-1.49912 -1.3672462,-2.98308 0.2485029,-1.48396 1.4931646,-4.73206 2.3616073,-7.7063 0.8684427,-2.97424 -1.9935919,-4.57168 -3.8458376,-4.54774 -1.85224566,0.0239 -5.1034118,1.19177 -5.1034118,1.19177 z"
style="fill:#0000ff;stroke:none;stroke-width:1.25319;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<ellipse
ry="2.9664576"
rx="3.0603328"
cy="125.15446"
cx="4.7876372"
id="path27"
style="fill:#0000ff;fill-rule:evenodd;stroke:none;stroke-width:1.25319;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1" />
</g>
</g>
<path
id="path852"
style="fill:#0000ff;fill-rule:evenodd;stroke:none;stroke-width:0.663793;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 15.921875,0.265625 A 15.73519,15.586909 0 0 0 0.265625,15.851562 15.73519,15.586909 0 0 0 16,31.439453 15.73519,15.586909 0 0 0 31.734375,15.851562 15.73519,15.586909 0 0 0 16,0.265625 a 15.73519,15.586909 0 0 0 -0.07813,0 z M 16,1.6777344 A 14.173229,14.173229 0 0 1 30.173828,15.851562 14.173229,14.173229 0 0 1 16,30.025391 14.173229,14.173229 0 0 1 1.8261719,15.851562 14.173229,14.173229 0 0 1 16,1.6777344 Z"
transform="matrix(2.1487621,0,0,2.1487621,-31.618865,101.14089)" />
</g>
<path
style="fill:#ffffff;stroke:#000000;stroke-width:0.0793751;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m -10.634184,4.3401818 c 1.7894605,-1.278918 3.7435614,-1.943103 4.2366367,1.290227 l -1.6059687,0.524244 3.8637927,3.473627 1.7263753,-5.288098 -1.4795468,0.702997 c -2.8175687,-6.05499 -6.3751172,-2.720249 -6.7412892,-0.702997 z"
id="path4019"
sodipodi:nodetypes="ccccccc" />
<g
id="g1015"
transform="matrix(0.33047799,0,0,0.33047799,0.31070053,1.930253)"
style="stroke-width:3.02592">
<path
d="M 25.843028,-1.609462 V -1.63592 c -0.396875,-0.529167 -0.873125,-0.9789587 -1.42875,-1.402292 v 0.026458 c -0.449792,0.3439584 -0.899584,0.714375 -1.322917,1.0847917 -0.185208,-0.1058333 -0.343958,-0.1852083 -0.502708,-0.2645833 -0.211667,-0.1058334 -0.423334,-0.2116667 -0.661459,-0.2645834 -0.07937,-0.026458 -0.15875,-0.052917 -0.238125,-0.052917 -0.05292,-0.5820833 -0.105833,-1.1641667 -0.185208,-1.74625 -0.264583,-0.052917 -0.529166,-0.052917 -0.820208,-0.079375 H 20.26032 c -0.264584,0.026458 -0.502709,0.026458 -0.740834,0.079375 -0.07937,0.555625 -0.132291,1.1377083 -0.15875,1.7197916 -0.105833,0 -0.185208,0.026458 -0.291041,0.052917 -0.02646,0 -0.05292,0 -0.07937,0.026458 -0.211667,0.052917 -0.423334,0.15875 -0.635,0.2645834 -0.185209,0.079375 -0.343959,0.15875 -0.502709,0.2645833 -0.449791,-0.3704167 -0.873125,-0.714375 -1.322916,-1.0847917 l -0.02646,-0.026458 c -0.105833,0.079375 -0.211666,0.15875 -0.291041,0.238125 -0.185209,0.1322917 -0.343959,0.2910417 -0.47625,0.4497917 -0.238125,0.2116666 -0.423334,0.47625 -0.635,0.7408333 h 0.02646 c 0.343958,0.4497917 0.714375,0.87312499 1.084792,1.32291665 -0.105834,0.15875 -0.211667,0.34395833 -0.291042,0.50270833 -0.105833,0.21166666 -0.185208,0.44979166 -0.238125,0.66145832 -0.05292,0.10583333 -0.07938,0.2116667 -0.07938,0.2910417 -0.582083,0.052917 -1.164167,0.1058333 -1.719792,0.1852083 -0.05292,0.2645833 -0.07937,0.5291667 -0.07937,0.8202083 0,0.396875 0.02646,0.79375 0.105834,1.1641667 0.555625,0.052917 1.11125,0.1058333 1.693333,0.15875 0,0.1058333 0.02646,0.2116666 0.07938,0.2910416 0.05292,0.238125 0.132292,0.4497917 0.238125,0.6879167 0.105833,0.1852083 0.185208,0.3704167 0.3175,0.5291666 -0.370417,0.4497917 -0.740833,0.873125 -1.084792,1.3229167 0.396875,0.555625 0.873125,1.031875 1.42875,1.42875 V 7.7303295 C 17.005945,7.3863712 17.455736,7.0159546 17.87907,6.6455379 h 0.02646 c 0.132292,0.079375 0.291042,0.15875 0.423333,0.238125 0.238125,0.1058333 0.502709,0.2116667 0.740834,0.2645833 0.105833,0.026458 0.185208,0.052917 0.264583,0.079375 0.05292,0.555625 0.105833,1.1377083 0.185208,1.7197917 0.238125,0.026458 0.47625,0.052917 0.740834,0.052917 h 0.396875 c 0.291041,0 0.582083,-0.026458 0.873124,-0.079375 0.05292,-0.555625 0.105834,-1.1377083 0.15875,-1.7197916 0.07937,-0.026458 0.15875,-0.052917 0.238125,-0.079375 0.238125,-0.052917 0.449792,-0.1322917 0.661459,-0.238125 0.185208,-0.079375 0.370416,-0.1852083 0.555625,-0.3175 0,0.026458 0,0.026458 0.02646,0.026458 0.423333,0.3704167 0.873125,0.7408334 1.322917,1.0847917 0.07938,-0.052917 0.15875,-0.1058333 0.264583,-0.1852083 0.15875,-0.1322917 0.3175,-0.2910417 0.449792,-0.4497917 0.238125,-0.238125 0.47625,-0.5027083 0.687916,-0.79375 -0.370416,-0.4497917 -0.740833,-0.8995833 -1.11125,-1.3229166 v -0.026458 c 0.07938,-0.1322916 0.15875,-0.2910416 0.238125,-0.4497916 0.07938,-0.2116667 0.185209,-0.4233334 0.238125,-0.635 0,-0.026458 0,-0.052917 0.02646,-0.052917 0,-0.1058333 0.02646,-0.1852083 0.05292,-0.238125 0.582084,-0.052917 1.164167,-0.1058333 1.719792,-0.15875 0.05292,-0.2645833 0.05292,-0.5291667 0.07938,-0.79375 V 2.121163 C 27.11304,1.8565796 27.11304,1.5919963 27.06012,1.327413 26.504495,1.274496 25.922412,1.2215796 25.340328,1.168663 c -0.02646,-0.079375 -0.05292,-0.15875 -0.05292,-0.23812503 -0.07938,-0.238125 -0.15875,-0.47625 -0.264584,-0.71437499 -0.07937,-0.15875 -0.185208,-0.34395833 -0.264583,-0.50270833 0.343958,-0.42333333 0.714375,-0.87312495 1.084792,-1.32291665 z m -7.064375,2.19604164 c 0.47625,-0.50270833 1.058333,-0.74083333 1.719792,-0.71437499 0.687916,-0.0264583 1.243541,0.21166666 1.746249,0.71437499 0.47625,0.47624996 0.714375,1.05833336 0.714375,1.71979166 0,0.6879166 -0.238125,1.2435416 -0.714375,1.74625 -0.502708,0.47625 -1.058333,0.714375 -1.746249,0.714375 -0.661459,0 -1.243542,-0.238125 -1.719792,-0.714375 -0.47625,-0.5027084 -0.714375,-1.0583334 -0.714375,-1.74625 0,-0.6614583 0.238125,-1.2435417 0.714375,-1.71979166 z"
id="path2"
style="stroke-width:0.800607" />
<path
d="m 20.524903,0.21616298 c -0.582083,0 -1.058333,0.21166666 -1.481667,0.60854165 C 18.646361,1.248038 18.434695,1.724288 18.434695,2.3063713 c 0,0.5820833 0.211666,1.0583333 0.608541,1.4816666 0.423334,0.4233334 0.899584,0.635 1.481667,0.635 0.582083,0 1.058333,-0.2116666 1.481666,-0.635 0.423334,-0.4233333 0.608542,-0.8995833 0.608542,-1.4816666 0,-0.5820833 -0.185208,-1.0583333 -0.608542,-1.48166667 C 21.583236,0.42782964 21.106986,0.21616298 20.524903,0.21616298 Z m -1.11125,0.97895832 c 0.3175,-0.29104167 0.687917,-0.44979166 1.11125,-0.44979166 0.423333,0 0.79375,0.15874999 1.11125,0.44979166 0.3175,0.3175 0.449791,0.6614583 0.449791,1.11125 0,0.4497916 -0.132291,0.8202083 -0.449791,1.11125 -0.3175,0.3175 -0.687917,0.47625 -1.11125,0.47625 -0.423333,0 -0.79375,-0.15875 -1.11125,-0.47625 -0.291042,-0.2910417 -0.449792,-0.6614584 -0.449792,-1.11125 0,-0.4233333 0.15875,-0.79375 0.449792,-1.11125 z"
id="path4"
style="stroke-width:0.800607" />
<path
d="m 13.725111,4.5553296 c -0.105833,-0.052917 -0.185208,-0.079375 -0.264583,-0.079375 -0.3175,-0.079375 -0.635,-0.1322917 -0.9525,-0.1852083 -0.291042,0.7143749 -0.529167,1.4022916 -0.767292,2.0902083 h -0.47625 c -0.3175,0.026458 -0.608541,0.052917 -0.899583,0.1058333 C 10.126778,6.5132462 9.888653,6.5926212 9.650528,6.6719962 9.2271947,6.0634546 8.777403,5.4549129 8.3540697,4.8728296 l -0.026458,-0.026458 c -0.15875,0.052917 -0.3175,0.1058333 -0.4497916,0.1852083 C 7.6132363,5.1374129 7.3751113,5.2697046 7.1369863,5.4284546 6.7665697,5.6136629 6.4226114,5.8517879 6.1051114,6.1428296 v 0.026458 C 6.4226114,6.8307462 6.713653,7.4922046 7.031153,8.1536629 6.8459447,8.3388712 6.6871947,8.4976212 6.5284447,8.7092879 6.316778,8.9209545 6.1315697,9.1855379 5.9728197,9.4501212 5.8934447,9.5559545 5.840528,9.6617879 5.7876114,9.7940795 5.046778,9.6617879 4.3059447,9.5294962 3.5651114,9.4236629 3.4328197,9.7411629 3.3005281,10.058663 3.1946947,10.402621 3.0888614,10.931788 2.9830281,11.434496 2.9301114,11.937204 l 2.06375,0.79375 v 0.370417 c 0,0.291042 0.026458,0.608542 0.1058333,0.926042 0.026458,0.264583 0.1058333,0.529166 0.1852083,0.79375 -0.6085416,0.423333 -1.1906249,0.846666 -1.7991666,1.296458 0.3175,0.79375 0.7672916,1.534583 1.2964583,2.2225 h 0.026458 c 0.6614584,-0.3175 1.3229167,-0.608542 2.0108334,-0.926042 0.1587499,0.15875 0.3174999,0.291042 0.4762499,0.449792 0.238125,0.211667 0.5291667,0.396875 0.8466667,0.582083 0.079375,0.05292 0.1852083,0.105834 0.2910417,0.185209 -0.1322917,0.714375 -0.238125,1.455208 -0.3439584,2.196041 0.2910417,0.132292 0.5820834,0.238125 0.8995834,0.3175 0.079375,0.02646 0.238125,0.07937 0.5027083,0.132292 0.3704166,0.105833 0.7408333,0.15875 1.0847923,0.211667 0.291041,-0.714375 0.555625,-1.402292 0.79375,-2.116667 h 0.343958 c 0.3175,0 0.608542,-0.02646 0.899583,-0.07937 0.264584,-0.05292 0.529167,-0.132292 0.79375,-0.211667 0,0 0,0.02646 0.02646,0.02646 0.423333,0.608541 0.873125,1.217083 1.296458,1.825625 0.132292,-0.07937 0.264583,-0.132292 0.370417,-0.185209 0.264583,-0.105833 0.502708,-0.238125 0.740833,-0.370416 0.396875,-0.238125 0.767292,-0.502709 1.11125,-0.79375 -0.291042,-0.687917 -0.608542,-1.349375 -0.926042,-2.037292 0.15875,-0.15875 0.291042,-0.3175 0.449792,-0.47625 0.185208,-0.238125 0.370417,-0.502708 0.529167,-0.740833 0,-0.02646 0.02646,-0.05292 0.02646,-0.07937 0.05292,-0.07937 0.105833,-0.185209 0.15875,-0.264584 0.740833,0.132292 1.481667,0.238125 2.2225,0.370417 0.132292,-0.3175 0.238125,-0.635 0.343958,-0.978958 0.02646,-0.07937 0.05292,-0.15875 0.07937,-0.264584 0.02646,-0.07938 0.02646,-0.15875 0.07937,-0.264583 0.05292,-0.343958 0.132292,-0.687917 0.15875,-1.005417 -0.687916,-0.291041 -1.402291,-0.529166 -2.090208,-0.79375 v -0.3175 c 0,-0.3175 -0.02646,-0.661458 -0.105833,-0.978958 -0.02646,-0.238125 -0.105834,-0.47625 -0.15875,-0.714375 0.608541,-0.423333 1.217083,-0.873125 1.799166,-1.3229165 h 0.02646 C 19.228445,8.9209545 18.805111,8.1801212 18.223028,7.4922046 17.535111,7.7832462 16.873653,8.1007462 16.212195,8.4182462 16.026986,8.2330379 15.841778,8.0478295 15.65657,7.8890795 15.418445,7.7038712 15.18032,7.5186629 14.915736,7.3863712 14.836361,7.3069962 14.730528,7.2540796 14.651153,7.2011629 14.756986,6.4603296 14.889278,5.7194962 14.995111,4.9786629 14.677611,4.8463713 14.333653,4.7140796 13.989695,4.6082463 13.91032,4.5817879 13.804486,4.5553296 13.725111,4.5553296 Z M 8.8038613,14.450746 c -0.4497916,-0.767292 -0.555625,-1.561042 -0.3175,-2.407708 0.2116667,-0.846667 0.714375,-1.481667 1.4816667,-1.931458 0.740833,-0.4233338 1.561042,-0.5291671 2.38125,-0.3175005 0.846667,0.2381255 1.508125,0.7143755 1.931458,1.4816665 0.449792,0.767292 0.555625,1.561042 0.3175,2.407708 -0.211666,0.846667 -0.714375,1.481667 -1.455208,1.905 -0.79375,0.449792 -1.5875,0.555625 -2.407708,0.3175 C 9.888653,15.694288 9.2271947,15.191579 8.8038613,14.450746 Z"
id="path6"
style="stroke-width:0.800607" />
<path
d="m 8.9626113,12.175329 c -0.2116666,0.714375 -0.1322916,1.402292 0.238125,2.037292 h 0.026458 c 0.3704166,0.661458 0.9260417,1.058333 1.6404167,1.27 0.714375,0.185208 1.402292,0.105833 2.06375,-0.264583 0.661459,-0.396875 1.058334,-0.926042 1.27,-1.640417 v -0.02646 c 0.185209,-0.714375 0.07937,-1.402292 -0.291041,-2.037292 -0.370417,-0.661458 -0.926042,-1.084791 -1.640417,-1.27 -0.714375,-0.211666 -1.42875,-0.105833 -2.06375,0.264584 -0.6614588,0.370416 -1.0583337,0.926041 -1.2435421,1.666874 z m 1.5874997,-1.058333 c 0.502709,-0.291041 1.005417,-0.370416 1.534584,-0.211666 0.529166,0.132291 0.9525,0.449791 1.243541,0.952499 0.291042,0.47625 0.343959,1.005417 0.211667,1.534584 -0.15875,0.529166 -0.47625,0.9525 -0.9525,1.217083 v 0.02646 c -0.502708,0.264584 -1.005417,0.343959 -1.534583,0.185209 -0.555625,-0.132292 -0.9525,-0.449792 -1.243542,-0.9525 -0.2645833,-0.47625 -0.3439583,-0.978959 -0.2116667,-1.534584 0.15875,-0.529166 0.4762497,-0.926041 0.9524997,-1.217083 z"
id="path8"
style="stroke-width:0.800607" />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 24 KiB

BIN
bin/resources/exit.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

BIN
bin/resources/treeOpen.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 483 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

@ -2,7 +2,7 @@
<svg
inkscape:export-ydpi="90"
inkscape:export-xdpi="90"
inkscape:export-filename="C:\Users\pabr6\git\analyseWriter\MEPTL\icons\fichierAnalyseInfo2.png"
inkscape:export-filename="C:\Users\pabr6\git\analyseWriter\MEPTL\icons\fichierAnalyseModif.png"
sodipodi:docname="fichier_analyseXML info1.svg"
inkscape:version="1.1.2 (b8e25be833, 2022-02-05)"
id="svg8"
@ -198,9 +198,9 @@
inkscape:document-rotation="0"
inkscape:current-layer="layer1"
inkscape:document-units="mm"
inkscape:cy="19.744638"
inkscape:cx="-15.881557"
inkscape:zoom="4.6594929"
inkscape:cy="23.591295"
inkscape:cx="13.698171"
inkscape:zoom="6.5702202"
inkscape:pageshadow="2"
inkscape:pageopacity="0.0"
borderopacity="1.0"
@ -289,7 +289,7 @@
</g>
<g
id="g933"
transform="matrix(0.09825882,0,0,0.09825235,4.673639,-7.9102001)"
transform="matrix(0.09825882,0,0,0.09825235,-10.226293,0.98948892)"
style="fill:#0000ff;stroke-width:1.25319">
<path
d="M 3.4888109,100.90592 A 33.81118,33.492559 0 0 0 -30.152746,134.3964 33.81118,33.492559 0 0 0 3.6566829,167.89107 33.81118,33.492559 0 0 0 37.466112,134.3964 33.81118,33.492559 0 0 0 3.6566829,100.90592 a 33.81118,33.492559 0 0 0 -0.167872,0 z m 0.167872,3.03429 A 30.454897,30.454897 0 0 1 34.112867,134.3964 30.454897,30.454897 0 0 1 3.6566829,164.85258 30.454897,30.454897 0 0 1 -26.799502,134.3964 30.454897,30.454897 0 0 1 3.6566829,103.94021 Z"
@ -346,5 +346,26 @@
d="m -10.634184,4.3401818 c 1.7894605,-1.278918 3.7435614,-1.943103 4.2366367,1.290227 l -1.6059687,0.524244 3.8637927,3.473627 1.7263753,-5.288098 -1.4795468,0.702997 c -2.8175687,-6.05499 -6.3751172,-2.720249 -6.7412892,-0.702997 z"
id="path4019"
sodipodi:nodetypes="ccccccc" />
<g
id="g1015"
transform="matrix(0.33047799,0,0,0.33047799,0.31070053,1.930253)"
style="stroke-width:3.02592">
<path
d="M 25.843028,-1.609462 V -1.63592 c -0.396875,-0.529167 -0.873125,-0.9789587 -1.42875,-1.402292 v 0.026458 c -0.449792,0.3439584 -0.899584,0.714375 -1.322917,1.0847917 -0.185208,-0.1058333 -0.343958,-0.1852083 -0.502708,-0.2645833 -0.211667,-0.1058334 -0.423334,-0.2116667 -0.661459,-0.2645834 -0.07937,-0.026458 -0.15875,-0.052917 -0.238125,-0.052917 -0.05292,-0.5820833 -0.105833,-1.1641667 -0.185208,-1.74625 -0.264583,-0.052917 -0.529166,-0.052917 -0.820208,-0.079375 H 20.26032 c -0.264584,0.026458 -0.502709,0.026458 -0.740834,0.079375 -0.07937,0.555625 -0.132291,1.1377083 -0.15875,1.7197916 -0.105833,0 -0.185208,0.026458 -0.291041,0.052917 -0.02646,0 -0.05292,0 -0.07937,0.026458 -0.211667,0.052917 -0.423334,0.15875 -0.635,0.2645834 -0.185209,0.079375 -0.343959,0.15875 -0.502709,0.2645833 -0.449791,-0.3704167 -0.873125,-0.714375 -1.322916,-1.0847917 l -0.02646,-0.026458 c -0.105833,0.079375 -0.211666,0.15875 -0.291041,0.238125 -0.185209,0.1322917 -0.343959,0.2910417 -0.47625,0.4497917 -0.238125,0.2116666 -0.423334,0.47625 -0.635,0.7408333 h 0.02646 c 0.343958,0.4497917 0.714375,0.87312499 1.084792,1.32291665 -0.105834,0.15875 -0.211667,0.34395833 -0.291042,0.50270833 -0.105833,0.21166666 -0.185208,0.44979166 -0.238125,0.66145832 -0.05292,0.10583333 -0.07938,0.2116667 -0.07938,0.2910417 -0.582083,0.052917 -1.164167,0.1058333 -1.719792,0.1852083 -0.05292,0.2645833 -0.07937,0.5291667 -0.07937,0.8202083 0,0.396875 0.02646,0.79375 0.105834,1.1641667 0.555625,0.052917 1.11125,0.1058333 1.693333,0.15875 0,0.1058333 0.02646,0.2116666 0.07938,0.2910416 0.05292,0.238125 0.132292,0.4497917 0.238125,0.6879167 0.105833,0.1852083 0.185208,0.3704167 0.3175,0.5291666 -0.370417,0.4497917 -0.740833,0.873125 -1.084792,1.3229167 0.396875,0.555625 0.873125,1.031875 1.42875,1.42875 V 7.7303295 C 17.005945,7.3863712 17.455736,7.0159546 17.87907,6.6455379 h 0.02646 c 0.132292,0.079375 0.291042,0.15875 0.423333,0.238125 0.238125,0.1058333 0.502709,0.2116667 0.740834,0.2645833 0.105833,0.026458 0.185208,0.052917 0.264583,0.079375 0.05292,0.555625 0.105833,1.1377083 0.185208,1.7197917 0.238125,0.026458 0.47625,0.052917 0.740834,0.052917 h 0.396875 c 0.291041,0 0.582083,-0.026458 0.873124,-0.079375 0.05292,-0.555625 0.105834,-1.1377083 0.15875,-1.7197916 0.07937,-0.026458 0.15875,-0.052917 0.238125,-0.079375 0.238125,-0.052917 0.449792,-0.1322917 0.661459,-0.238125 0.185208,-0.079375 0.370416,-0.1852083 0.555625,-0.3175 0,0.026458 0,0.026458 0.02646,0.026458 0.423333,0.3704167 0.873125,0.7408334 1.322917,1.0847917 0.07938,-0.052917 0.15875,-0.1058333 0.264583,-0.1852083 0.15875,-0.1322917 0.3175,-0.2910417 0.449792,-0.4497917 0.238125,-0.238125 0.47625,-0.5027083 0.687916,-0.79375 -0.370416,-0.4497917 -0.740833,-0.8995833 -1.11125,-1.3229166 v -0.026458 c 0.07938,-0.1322916 0.15875,-0.2910416 0.238125,-0.4497916 0.07938,-0.2116667 0.185209,-0.4233334 0.238125,-0.635 0,-0.026458 0,-0.052917 0.02646,-0.052917 0,-0.1058333 0.02646,-0.1852083 0.05292,-0.238125 0.582084,-0.052917 1.164167,-0.1058333 1.719792,-0.15875 0.05292,-0.2645833 0.05292,-0.5291667 0.07938,-0.79375 V 2.121163 C 27.11304,1.8565796 27.11304,1.5919963 27.06012,1.327413 26.504495,1.274496 25.922412,1.2215796 25.340328,1.168663 c -0.02646,-0.079375 -0.05292,-0.15875 -0.05292,-0.23812503 -0.07938,-0.238125 -0.15875,-0.47625 -0.264584,-0.71437499 -0.07937,-0.15875 -0.185208,-0.34395833 -0.264583,-0.50270833 0.343958,-0.42333333 0.714375,-0.87312495 1.084792,-1.32291665 z m -7.064375,2.19604164 c 0.47625,-0.50270833 1.058333,-0.74083333 1.719792,-0.71437499 0.687916,-0.0264583 1.243541,0.21166666 1.746249,0.71437499 0.47625,0.47624996 0.714375,1.05833336 0.714375,1.71979166 0,0.6879166 -0.238125,1.2435416 -0.714375,1.74625 -0.502708,0.47625 -1.058333,0.714375 -1.746249,0.714375 -0.661459,0 -1.243542,-0.238125 -1.719792,-0.714375 -0.47625,-0.5027084 -0.714375,-1.0583334 -0.714375,-1.74625 0,-0.6614583 0.238125,-1.2435417 0.714375,-1.71979166 z"
id="path2"
style="stroke-width:0.800607" />
<path
d="m 20.524903,0.21616298 c -0.582083,0 -1.058333,0.21166666 -1.481667,0.60854165 C 18.646361,1.248038 18.434695,1.724288 18.434695,2.3063713 c 0,0.5820833 0.211666,1.0583333 0.608541,1.4816666 0.423334,0.4233334 0.899584,0.635 1.481667,0.635 0.582083,0 1.058333,-0.2116666 1.481666,-0.635 0.423334,-0.4233333 0.608542,-0.8995833 0.608542,-1.4816666 0,-0.5820833 -0.185208,-1.0583333 -0.608542,-1.48166667 C 21.583236,0.42782964 21.106986,0.21616298 20.524903,0.21616298 Z m -1.11125,0.97895832 c 0.3175,-0.29104167 0.687917,-0.44979166 1.11125,-0.44979166 0.423333,0 0.79375,0.15874999 1.11125,0.44979166 0.3175,0.3175 0.449791,0.6614583 0.449791,1.11125 0,0.4497916 -0.132291,0.8202083 -0.449791,1.11125 -0.3175,0.3175 -0.687917,0.47625 -1.11125,0.47625 -0.423333,0 -0.79375,-0.15875 -1.11125,-0.47625 -0.291042,-0.2910417 -0.449792,-0.6614584 -0.449792,-1.11125 0,-0.4233333 0.15875,-0.79375 0.449792,-1.11125 z"
id="path4"
style="stroke-width:0.800607" />
<path
d="m 13.725111,4.5553296 c -0.105833,-0.052917 -0.185208,-0.079375 -0.264583,-0.079375 -0.3175,-0.079375 -0.635,-0.1322917 -0.9525,-0.1852083 -0.291042,0.7143749 -0.529167,1.4022916 -0.767292,2.0902083 h -0.47625 c -0.3175,0.026458 -0.608541,0.052917 -0.899583,0.1058333 C 10.126778,6.5132462 9.888653,6.5926212 9.650528,6.6719962 9.2271947,6.0634546 8.777403,5.4549129 8.3540697,4.8728296 l -0.026458,-0.026458 c -0.15875,0.052917 -0.3175,0.1058333 -0.4497916,0.1852083 C 7.6132363,5.1374129 7.3751113,5.2697046 7.1369863,5.4284546 6.7665697,5.6136629 6.4226114,5.8517879 6.1051114,6.1428296 v 0.026458 C 6.4226114,6.8307462 6.713653,7.4922046 7.031153,8.1536629 6.8459447,8.3388712 6.6871947,8.4976212 6.5284447,8.7092879 6.316778,8.9209545 6.1315697,9.1855379 5.9728197,9.4501212 5.8934447,9.5559545 5.840528,9.6617879 5.7876114,9.7940795 5.046778,9.6617879 4.3059447,9.5294962 3.5651114,9.4236629 3.4328197,9.7411629 3.3005281,10.058663 3.1946947,10.402621 3.0888614,10.931788 2.9830281,11.434496 2.9301114,11.937204 l 2.06375,0.79375 v 0.370417 c 0,0.291042 0.026458,0.608542 0.1058333,0.926042 0.026458,0.264583 0.1058333,0.529166 0.1852083,0.79375 -0.6085416,0.423333 -1.1906249,0.846666 -1.7991666,1.296458 0.3175,0.79375 0.7672916,1.534583 1.2964583,2.2225 h 0.026458 c 0.6614584,-0.3175 1.3229167,-0.608542 2.0108334,-0.926042 0.1587499,0.15875 0.3174999,0.291042 0.4762499,0.449792 0.238125,0.211667 0.5291667,0.396875 0.8466667,0.582083 0.079375,0.05292 0.1852083,0.105834 0.2910417,0.185209 -0.1322917,0.714375 -0.238125,1.455208 -0.3439584,2.196041 0.2910417,0.132292 0.5820834,0.238125 0.8995834,0.3175 0.079375,0.02646 0.238125,0.07937 0.5027083,0.132292 0.3704166,0.105833 0.7408333,0.15875 1.0847923,0.211667 0.291041,-0.714375 0.555625,-1.402292 0.79375,-2.116667 h 0.343958 c 0.3175,0 0.608542,-0.02646 0.899583,-0.07937 0.264584,-0.05292 0.529167,-0.132292 0.79375,-0.211667 0,0 0,0.02646 0.02646,0.02646 0.423333,0.608541 0.873125,1.217083 1.296458,1.825625 0.132292,-0.07937 0.264583,-0.132292 0.370417,-0.185209 0.264583,-0.105833 0.502708,-0.238125 0.740833,-0.370416 0.396875,-0.238125 0.767292,-0.502709 1.11125,-0.79375 -0.291042,-0.687917 -0.608542,-1.349375 -0.926042,-2.037292 0.15875,-0.15875 0.291042,-0.3175 0.449792,-0.47625 0.185208,-0.238125 0.370417,-0.502708 0.529167,-0.740833 0,-0.02646 0.02646,-0.05292 0.02646,-0.07937 0.05292,-0.07937 0.105833,-0.185209 0.15875,-0.264584 0.740833,0.132292 1.481667,0.238125 2.2225,0.370417 0.132292,-0.3175 0.238125,-0.635 0.343958,-0.978958 0.02646,-0.07937 0.05292,-0.15875 0.07937,-0.264584 0.02646,-0.07938 0.02646,-0.15875 0.07937,-0.264583 0.05292,-0.343958 0.132292,-0.687917 0.15875,-1.005417 -0.687916,-0.291041 -1.402291,-0.529166 -2.090208,-0.79375 v -0.3175 c 0,-0.3175 -0.02646,-0.661458 -0.105833,-0.978958 -0.02646,-0.238125 -0.105834,-0.47625 -0.15875,-0.714375 0.608541,-0.423333 1.217083,-0.873125 1.799166,-1.3229165 h 0.02646 C 19.228445,8.9209545 18.805111,8.1801212 18.223028,7.4922046 17.535111,7.7832462 16.873653,8.1007462 16.212195,8.4182462 16.026986,8.2330379 15.841778,8.0478295 15.65657,7.8890795 15.418445,7.7038712 15.18032,7.5186629 14.915736,7.3863712 14.836361,7.3069962 14.730528,7.2540796 14.651153,7.2011629 14.756986,6.4603296 14.889278,5.7194962 14.995111,4.9786629 14.677611,4.8463713 14.333653,4.7140796 13.989695,4.6082463 13.91032,4.5817879 13.804486,4.5553296 13.725111,4.5553296 Z M 8.8038613,14.450746 c -0.4497916,-0.767292 -0.555625,-1.561042 -0.3175,-2.407708 0.2116667,-0.846667 0.714375,-1.481667 1.4816667,-1.931458 0.740833,-0.4233338 1.561042,-0.5291671 2.38125,-0.3175005 0.846667,0.2381255 1.508125,0.7143755 1.931458,1.4816665 0.449792,0.767292 0.555625,1.561042 0.3175,2.407708 -0.211666,0.846667 -0.714375,1.481667 -1.455208,1.905 -0.79375,0.449792 -1.5875,0.555625 -2.407708,0.3175 C 9.888653,15.694288 9.2271947,15.191579 8.8038613,14.450746 Z"
id="path6"
style="stroke-width:0.800607" />
<path
d="m 8.9626113,12.175329 c -0.2116666,0.714375 -0.1322916,1.402292 0.238125,2.037292 h 0.026458 c 0.3704166,0.661458 0.9260417,1.058333 1.6404167,1.27 0.714375,0.185208 1.402292,0.105833 2.06375,-0.264583 0.661459,-0.396875 1.058334,-0.926042 1.27,-1.640417 v -0.02646 c 0.185209,-0.714375 0.07937,-1.402292 -0.291041,-2.037292 -0.370417,-0.661458 -0.926042,-1.084791 -1.640417,-1.27 -0.714375,-0.211666 -1.42875,-0.105833 -2.06375,0.264584 -0.6614588,0.370416 -1.0583337,0.926041 -1.2435421,1.666874 z m 1.5874997,-1.058333 c 0.502709,-0.291041 1.005417,-0.370416 1.534584,-0.211666 0.529166,0.132291 0.9525,0.449791 1.243541,0.952499 0.291042,0.47625 0.343959,1.005417 0.211667,1.534584 -0.15875,0.529166 -0.47625,0.9525 -0.9525,1.217083 v 0.02646 c -0.502708,0.264584 -1.005417,0.343959 -1.534583,0.185209 -0.555625,-0.132292 -0.9525,-0.449792 -1.243542,-0.9525 -0.2645833,-0.47625 -0.3439583,-0.978959 -0.2116667,-1.534584 0.15875,-0.529166 0.4762497,-0.926041 0.9524997,-1.217083 z"
id="path8"
style="stroke-width:0.800607" />
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 24 KiB

BIN
icons/treeOpen.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 483 B

249
icons/treeOpen.svg Normal file
View File

@ -0,0 +1,249 @@
<?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\treeOpen.png"
sodipodi:docname="treeOpen.svg"
inkscape:version="1.1.2 (b8e25be833, 2022-02-05)"
id="svg8"
version="1.1"
viewBox="0 0 5.436443 3.415486"
height="12.908923"
width="20.547186"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/">
<defs
id="defs2">
<linearGradient
id="k"
gradientTransform="matrix(7.99974,0,0,7.9977797,-863.30581,-7811.3988)"
gradientUnits="userSpaceOnUse"
x1="122.75008"
x2="111.74973"
xlink:href="#b"
y1="991.62115"
y2="977.11713" />
<linearGradient
id="b">
<stop
offset="0"
stop-color="#0369a3"
id="stop7" />
<stop
offset="1"
stop-color="#1c99e0"
id="stop9" />
</linearGradient>
<linearGradient
id="j"
gradientUnits="userSpaceOnUse"
x1="108.00134"
x2="20.001341"
y1="122"
y2="6"
gradientTransform="translate(10.661607,-2.6314354)">
<stop
offset="0"
stop-color="#e6e6e6"
id="stop35" />
<stop
offset="1"
stop-color="#fff"
id="stop37" />
</linearGradient>
<linearGradient
id="i"
gradientUnits="userSpaceOnUse"
x1="108.00134"
x2="20.001341"
xlink:href="#b"
y1="130"
y2="14"
gradientTransform="translate(12)" />
<linearGradient
id="h"
gradientTransform="matrix(4.4999,0,0,3.66665,-930.97741,2199.6564)"
gradientUnits="userSpaceOnUse"
x2="0"
y1="-581.63782"
y2="-578.63782">
<stop
offset="0"
stop-color="#63bbee"
id="stop29" />
<stop
offset="1"
stop-color="#aadcf7"
id="stop31" />
</linearGradient>
<linearGradient
id="g"
gradientTransform="matrix(-4.19983,0,0,3.9111,1552.9405,-4523.1636)"
gradientUnits="userSpaceOnUse"
x2="0"
xlink:href="#a"
y1="1173"
y2="1178" />
<linearGradient
id="a">
<stop
offset="0"
stop-color="#666"
id="stop2" />
<stop
offset="1"
stop-color="#333"
id="stop4" />
</linearGradient>
<linearGradient
id="f"
gradientTransform="matrix(4.19983,0,0,3.9111,-1380.9394,-4521.9436)"
gradientUnits="userSpaceOnUse"
x2="0"
xlink:href="#a"
y1="1173"
y2="1178" />
<linearGradient
id="e"
gradientTransform="matrix(1.19997,0,0,1.22222,-269.19161,858.5534)"
gradientUnits="userSpaceOnUse"
x2="0"
y1="-629.66907"
y2="-635.54944">
<stop
offset="0"
stop-color="#18a303"
id="stop22" />
<stop
offset="1"
stop-color="#106802"
id="stop24" />
</linearGradient>
<linearGradient
id="d"
gradientTransform="matrix(4.19983,0,0,3.9111,-1380.9394,-4517.0536)"
gradientUnits="userSpaceOnUse"
x2="0"
y1="1173"
y2="1178">
<stop
offset="0"
stop-color="#0369a3"
id="stop17" />
<stop
offset="1"
stop-color="#023f62"
id="stop19" />
</linearGradient>
<linearGradient
id="c"
gradientTransform="matrix(0,0.791084,-1.28,0,1511.6005,-282.0136)"
gradientUnits="userSpaceOnUse"
x1="445.69522"
x2="441.38797"
y1="1103.5776"
y2="1099.8198">
<stop
offset="0"
stop-color="#e9b913"
id="stop12" />
<stop
offset="1"
stop-color="#ff0"
id="stop14" />
</linearGradient>
</defs>
<sodipodi:namedview
inkscape:window-maximized="1"
inkscape:window-y="-8"
inkscape:window-x="-8"
inkscape:window-height="1009"
inkscape:window-width="1920"
inkscape:guide-bbox="true"
showguides="true"
units="px"
showgrid="false"
inkscape:document-rotation="0"
inkscape:current-layer="layer1"
inkscape:document-units="mm"
inkscape:cy="-0.067207399"
inkscape:cx="-0.87369619"
inkscape:zoom="14.879314"
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="-0.26024984,-3.5581931" />
<sodipodi:guide
position="0.48659243,3.8856433"
orientation="0.70710678,-0.70710678"
id="guide3385" />
<sodipodi:guide
position="-1.4160772,5.1837263"
orientation="0,-1"
id="guide3467" />
<sodipodi:guide
position="0.59328418,2.5519965"
orientation="-0.70710678,-0.70710678"
id="guide3469" />
</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(-1.1803834,-2.0081471)">
<text
xml:space="preserve"
style="font-size:1.766px;line-height:1.25;font-family:'C.A. Gatintas';-inkscape-font-specification:'C.A. Gatintas';text-align:center;text-anchor:middle;fill:#0000ff;stroke-width:0.264583"
x="5.0152144"
y="3.4880216"
id="text1762"
transform="scale(0.79421941,1.2590979)"><tspan
sodipodi:role="line"
id="tspan1760"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1.766px;font-family:arial;-inkscape-font-specification:arial;fill:#0000ff;stroke-width:0.264583"
x="5.0152144"
y="3.4880216">XML</tspan></text>
<path
style="fill:none;stroke:#000000;stroke-width:0.264583px;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
d="M 2.9459252,2.2115664 1.312669,3.7782346 2.8900872,5.2913414"
id="path3504" />
<path
style="fill:none;stroke:#000000;stroke-width:0.264583px;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
d="M 4.8512845,2.1404386 6.4845407,3.7071068 4.9071225,5.2202136"
id="path996" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 7.1 KiB

View File

@ -8,6 +8,8 @@ import java.io.InputStreamReader;
import java.io.Reader;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.swing.JTree;
import cXML.*;
import cXML.Run.UserStatus;
@ -26,6 +28,7 @@ public class commandes {
//** Le node du fichier d'analyse
public static node sujet = new node();
public static JTree tree = new JTree();
public static node nodeCSV = null;
//***************************************************
@ -736,5 +739,10 @@ public class commandes {
public static void CLS() throws InterruptedException, IOException {
new ProcessBuilder("cmd", "/c", "cls").inheritIO().start().waitFor();
}
}

View File

@ -92,7 +92,7 @@ public class about extends JFrame {
lblNewLabelAuteur.setBounds(20, 271, 240, 20);
contentPane.add(lblNewLabelAuteur);
JLabel lblInformationEnseignant = new JLabel("Enseignants d'informatique à l'université d'Artois");
JLabel lblInformationEnseignant = new JLabel("Enseignants à l'université d'Artois");
lblInformationEnseignant.setFont(new Font("Tahoma", Font.PLAIN, 12));
lblInformationEnseignant.setBounds(20, 285, 296, 20);
getContentPane().add(lblInformationEnseignant);

1081
src/app/create.java Normal file

File diff suppressed because it is too large Load Diff

View File

@ -4,8 +4,11 @@ import java.awt.BorderLayout;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.io.IOException;
import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JCheckBox;
@ -15,6 +18,7 @@ import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextPane;
import javax.swing.JToolBar;
import javax.swing.KeyStroke;
import javax.swing.border.EmptyBorder;
import javax.swing.filechooser.FileNameExtensionFilter;
import javax.xml.parsers.ParserConfigurationException;
@ -32,39 +36,39 @@ import java.awt.GridLayout;
import javax.swing.JScrollPane;
import javax.swing.JProgressBar;
import net.miginfocom.swing.MigLayout;
import java.awt.event.InputEvent;
import javax.swing.JMenuBar;
import javax.swing.JMenu;
import javax.swing.JMenuItem;
import javax.swing.JOptionPane;
import java.awt.Color;
import javax.swing.JToggleButton;
import java.awt.FlowLayout;
public class evaluate extends JFrame {
/**
*
*/
private static final long serialVersionUID = 1L;
private JPanel contentPane;
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();
private JCheckBox chckbxVerif = 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();
private JButton btnExit = new JButton();
private JButton btnInformationAnalyse = new JButton();
private JButton btnNewFichierAnalyse = new JButton();
private JButton btnInfoListeEtudiant = new JButton();
private JButton btnAfficheCodeFichierAnalyse = new JButton();
@SuppressWarnings("unused")
private final long serialVersionUID = 1L;
private JToolBar toolBar = new JToolBar();
private JPanel contentPane;
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();
private JCheckBox chckbxVerif = new JCheckBox();
private JCheckBox chckbxNewLogo = new JCheckBox();
private JTextPane txtpnmessages = new JTextPane();
private JProgressBar progressBar = new JProgressBar();
/**
* Create the frame.
@ -76,146 +80,200 @@ public class evaluate extends JFrame {
this.setTitle(commandes.Titre);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setBounds(100, 100, 960, 677);
setBounds(100, 100, 980, 700);
JMenuBar menuBar = new JMenuBar();
menuBar.setFont(new Font("Segoe UI", Font.BOLD, 14));
setJMenuBar(menuBar);
JMenu mnNewMenu = new JMenu("Fichier");
mnNewMenu.setMnemonic( 'F' );
menuBar.add(mnNewMenu);
mnNewMenu.add( actExit );
JMenu mnMenu_Fichier = new JMenu("Fichier d'analyse");
menuBar.add(mnMenu_Fichier);
mnMenu_Fichier.add( actOpen );
mnMenu_Fichier.addSeparator();
mnMenu_Fichier.add( actAboutFichierAnalyse );
mnMenu_Fichier.add( actCodeFichierAnalyse );
mnMenu_Fichier.add( actModifierFichierAnalyse );
mnMenu_Fichier.addSeparator();
mnMenu_Fichier.add( actNewFichierAnalyse );
JMenu mnMenu_Liste_Etudiant = new JMenu("Liste des étudiants");
menuBar.add(mnMenu_Liste_Etudiant);
mnMenu_Liste_Etudiant.add(actChargeListeEtudiantCSV);
mnMenu_Liste_Etudiant.addSeparator();
mnMenu_Liste_Etudiant.add(actAfficheListeEtudiant );
JMenu mnMenu_Logo = new JMenu("Logo");
menuBar.add(mnMenu_Logo);
mnMenu_Logo.add(actChargeLogo);
JMenu mnMenu_Evaluation = new JMenu("Evaluation des étudiants");
menuBar.add(mnMenu_Evaluation);
mnMenu_Evaluation.add(actSelectFolder);
mnMenu_Fichier.addSeparator();
mnMenu_Evaluation.add(actEvaluate);
JMenu mnMenu_Informations = new JMenu("Informations");
menuBar.add(mnMenu_Informations);
mnMenu_Informations.add( actAbout );
contentPane = new JPanel();
contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
setContentPane(contentPane);
contentPane.setLayout(new BorderLayout(0, 0));
JToolBar toolBar = new JToolBar();
contentPane.add(toolBar, BorderLayout.NORTH);
btnSelectFileAnalyse = new JButton("");
btnSelectFileAnalyse.setToolTipText("Sélection du fichier d'analyse");
btnSelectFileAnalyse.setIcon(new ImageIcon(evaluate.class.getResource("/resources/fichierAnalyse.png")));
toolBar.add(btnSelectFileAnalyse);
btnInformationAnalyse = new JButton("");
btnInformationAnalyse.setToolTipText("Information sur l'analyse");
btnInformationAnalyse.setIcon(new ImageIcon(evaluate.class.getResource("/resources/fichierAnalyseInfo2.png")));
toolBar.add(btnInformationAnalyse);
btnAfficheCodeFichierAnalyse = new JButton("");
btnAfficheCodeFichierAnalyse.setToolTipText("Afficher le code XML du fichier d'analyse");
btnAfficheCodeFichierAnalyse.setIcon(new ImageIcon(evaluate.class.getResource("/resources/fichierAnalyseInfo.png")));
toolBar.add(btnAfficheCodeFichierAnalyse);
btnSelectFolder = new JButton("");
btnSelectFolder.setIcon(new ImageIcon(evaluate.class.getResource("/resources/open2.png")));
btnSelectFolder.setSelectedIcon(new ImageIcon(evaluate.class.getResource("/resources/evalwriter.png")));
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);
btnInfoListeEtudiant = new JButton("");
btnInfoListeEtudiant.setIcon(new ImageIcon(evaluate.class.getResource("/resources/fichierCSVInfo.png")));
btnInfoListeEtudiant.setToolTipText("Affichage liste des étudiants");
toolBar.add(btnInfoListeEtudiant);
toolBar.addSeparator();
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();
btnNewFichierAnalyse = new JButton("");
btnNewFichierAnalyse.setToolTipText("Créer un fichier d'analyse à partir d'un fichier ODF");
btnNewFichierAnalyse.setIcon(new ImageIcon(evaluate.class.getResource("/resources/fichierODF.png")));
toolBar.add(btnNewFichierAnalyse);
toolBar.addSeparator();
btnEvaluerLesFichiers.setIcon(new ImageIcon(evaluate.class.getResource("/resources/evaluate.png")));
toolBar.add(btnEvaluerLesFichiers);
toolBar.addSeparator();
toolBar.addSeparator();
btnAbout = new JButton("");
btnAbout.setIcon(new ImageIcon(evaluate.class.getResource("/resources/apropos.png")));
btnAbout.setToolTipText("Informations");
toolBar.add(btnAbout);
toolBar.addSeparator();
toolBar.addSeparator();
btnExit = new JButton("");
btnExit.setIcon(new ImageIcon(evaluate.class.getResource("/resources/exit.png")));
btnExit.setToolTipText("Fermer l'application");
toolBar.add(btnExit);
toolBar = new JToolBar();
contentPane.add(toolBar, BorderLayout.NORTH);
JButton btnSelectFileAnalyse = toolBar.add( actOpen );
btnSelectFileAnalyse.setHideActionText( true );
btnSelectFileAnalyse.setIcon(new ImageIcon(evaluate.class.getResource("/resources/fichierAnalyse.png")));
JButton btnInformationAnalyse = toolBar.add( actCodeFichierAnalyse );
btnInformationAnalyse.setHideActionText(true);
btnInformationAnalyse.setIcon(new ImageIcon(evaluate.class.getResource("/resources/fichierAnalyseInfo2.png")));
JButton btnAfficheCodeFichierAnalyse = toolBar.add( actAboutFichierAnalyse );
btnAfficheCodeFichierAnalyse.setHideActionText(true);
btnAfficheCodeFichierAnalyse.setIcon(new ImageIcon(evaluate.class.getResource("/resources/fichierAnalyseInfo.png")));
toolBar.add(btnAfficheCodeFichierAnalyse);
JButton btnModifierFichierAnalyse = toolBar.add(actModifierFichierAnalyse);
btnModifierFichierAnalyse.setIcon(new ImageIcon(evaluate.class.getResource("/resources/fichierAnalyseModif.png")));
btnModifierFichierAnalyse.setHideActionText(true);
toolBar.add(btnModifierFichierAnalyse);
toolBar.addSeparator();
JButton btnNewFichierAnalyse = toolBar.add(actNewFichierAnalyse);
btnNewFichierAnalyse.setHideActionText(true);
btnNewFichierAnalyse.setIcon(new ImageIcon(evaluate.class.getResource("/resources/fichierODF.png")));
toolBar.add(btnNewFichierAnalyse);
toolBar.addSeparator();
JButton btnEvaluerLesFichiers = toolBar.add(actEvaluate);
btnEvaluerLesFichiers.setHideActionText(true);
JButton btnFichierCSV = toolBar.add(actChargeListeEtudiantCSV );
btnFichierCSV.setHideActionText(true);
btnFichierCSV.setIcon(new ImageIcon(evaluate.class.getResource("/resources/fichierCSV.png")));
toolBar.add(btnFichierCSV);
JButton btnInfoListeEtudiant = toolBar.add(actAfficheListeEtudiant);
btnInfoListeEtudiant.setIcon(new ImageIcon(evaluate.class.getResource("/resources/fichierCSVInfo.png")));
btnInfoListeEtudiant.setHideActionText(true);
toolBar.add(btnInfoListeEtudiant);
toolBar.addSeparator();
JButton btnFichierSVG = toolBar.add(actChargeLogo);
btnFichierSVG.setHideActionText(true);
btnFichierSVG.setIcon(new ImageIcon(evaluate.class.getResource("/resources/fichierSVG.png")));
toolBar.add(btnFichierSVG);
toolBar.addSeparator();
JButton btnSelectFolder = toolBar.add(actSelectFolder);
btnSelectFolder.setIcon(new ImageIcon(evaluate.class.getResource("/resources/open2.png")));
btnSelectFolder.setHideActionText(true);
toolBar.add(btnSelectFolder);
btnEvaluerLesFichiers.setIcon(new ImageIcon(evaluate.class.getResource("/resources/evaluate.png")));
toolBar.add(btnEvaluerLesFichiers);
toolBar.addSeparator();
toolBar.addSeparator();
JButton btnAbout = toolBar.add(actAbout);
btnAbout.setIcon(new ImageIcon(evaluate.class.getResource("/resources/apropos.png")));
btnAbout.setHideActionText(true);
toolBar.add(btnAbout);
toolBar.addSeparator();
toolBar.addSeparator();
JButton btnExit = toolBar.add(actExit);
btnExit.setIcon(new ImageIcon(evaluate.class.getResource("/resources/exit.png")));
btnExit.setHideActionText(true);
toolBar.add(btnExit);
JPanel panel = new JPanel();
contentPane.add(panel, BorderLayout.WEST);
panel.setLayout(new MigLayout("", "[309px]", "[71px][71px][][71px][][74.00][][]"));
panel.setLayout(new MigLayout("", "[309px][]", "[38.00][71px][71px][][71px][][74.00][][]"));
JLabel lblTITRE = new JLabel("<HTML><U>PARAMETRES</U></HTML>");
lblTITRE.setForeground(Color.RED);
lblTITRE.setFont(new Font("Tahoma", Font.BOLD, 16));
lblTITRE.setHorizontalAlignment(SwingConstants.CENTER);
panel.add(lblTITRE, "cell 0 0,alignx left,aligny center");
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, "flowy,cell 0 0,alignx left,growy");
panel.add(lblFileAnalyse, "flowy,cell 0 1,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, "flowy,cell 0 1,grow");
panel.add(chckbxfichiersEtudaints, "flowy,cell 0 2,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");
panel.add(lblFichierCSV, "flowy,cell 0 4,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");
panel.add(lblFichierSVG, "flowy,cell 0 6,growx");
chckCSVNotes = new JCheckBox("Créer un fichier CSV des notes");
chckCSVNotes.setToolTipText("Cochez si vous voulez importer les notes dans un fichier CSV.");
panel.add(chckCSVNotes, "cell 0 3,grow");
panel.add(chckCSVNotes, "cell 0 4,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");
panel.add(lblPath, "cell 0 1,grow");
chckbxnoFeedback = new JCheckBox("Pas de feedback");
chckbxnoFeedback.setToolTipText("Cochez si vous ne voulez pas générer des feedbacks");
chckbxnoFeedback.setFont(new Font("Tahoma", Font.PLAIN, 12));
panel.add(chckbxnoFeedback, "cell 0 1,grow");
panel.add(chckbxnoFeedback, "cell 0 2,grow");
chckbxZipfeedback = new JCheckBox("Zip les feedbacks");
chckbxZipfeedback.setToolTipText("Cochez si vous voulez placer tous les feedbacks dans une archive ZIP");
chckbxZipfeedback.setFont(new Font("Tahoma", Font.PLAIN, 12));
panel.add(chckbxZipfeedback, "cell 0 1,grow");
panel.add(chckbxZipfeedback, "cell 0 2,grow");
chckbxNoNote = new JCheckBox("Pas de note dans les feedbacks");
chckbxNoNote.setToolTipText("Cochez si vous voulez pas faire apparaître les notes dans les feedbacks");
chckbxNoNote.setFont(new Font("Tahoma", Font.PLAIN, 12));
panel.add(chckbxNoNote, "cell 0 1,grow");
panel.add(chckbxNoNote, "cell 0 2,grow");
chckbxVerif = new JCheckBox("Vérification des historiques avant analyse");
chckbxVerif.setToolTipText("Cochez si vous voulez vérifier les échanges de fichiers entre les étudiants.");
chckbxVerif.setFont(new Font("Tahoma", Font.PLAIN, 12));
panel.add(chckbxVerif, "cell 0 1, grow");
panel.add(chckbxVerif, "cell 0 2,grow");
chckbxNewLogo = new JCheckBox("Nouveau logo");
chckbxNewLogo.setToolTipText("Cochez si vous voulez remplacer le logo par celui au-dessus.");
chckbxNewLogo.setFont(new Font("Tahoma", Font.PLAIN, 12));
panel.add(chckbxNewLogo, "cell 0 5");
panel.add(chckbxNewLogo, "cell 0 6");
chckbxNoLogo = new JCheckBox("Pas de logo");
chckbxNoLogo.setToolTipText("Cochez si vous voulez pas de logo dans les feedbacks.");
chckbxNoLogo.setFont(new Font("Tahoma", Font.PLAIN, 12));
panel.add(chckbxNoLogo, "cell 0 5");
panel.add(chckbxNoLogo, "cell 0 6");
JPanel panel_1 = new JPanel();
@ -235,7 +293,7 @@ public class evaluate extends JFrame {
scrollPane.setViewportView(txtpnmessages);
CommandeListener();
refreshLabel();
setVisible(true);
}
@ -318,51 +376,32 @@ public class evaluate extends JFrame {
}
/**
* Les actionListener
*/
private void CommandeListener() {
// Sélectionne un dossier pour analyser le contenu
btnSelectFolder.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
JFileChooser chooser = new JFileChooser();
chooser.setCurrentDirectory(new java.io.File(commandes.path));
chooser.setDialogTitle("Sélectionner le dossier contenant les fichiers des étudiants.");
chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
chooser.setAcceptAllFileFilterUsed(false);
if (chooser.showOpenDialog(null) == JFileChooser.APPROVE_OPTION) {
System.out.println("getCurrentDirectory(): " + chooser.getCurrentDirectory());
System.out.println("getSelectedFile() : " + chooser.getSelectedFile().getAbsolutePath());
commandes.path = chooser.getSelectedFile().getAbsolutePath();
} else {
System.out.println("No Selection ");
}
refreshLabel();
}
});
// Sélectionne un fichier d'analyse
btnSelectFileAnalyse.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
new filechooserXML();
refreshLabel();
}
});
// Analyse le contenu du dossier
btnEvaluerLesFichiers.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if(commandes.fichierAnalyseValide) {
/**
* Evaluer et analayser les fichiers des étudiants
*/
private AbstractAction actEvaluate = new AbstractAction() {
private static final long serialVersionUID = 1L;
{
putValue(LARGE_ICON_KEY, new ImageIcon(evaluate.class.getResource("/resources/evaluate.png")));
putValue( Action.NAME, "Evaluer les fichiers (CTRL+E)" );
putValue( Action.SMALL_ICON, new ImageIcon(evaluate.class.getResource("/resources/evaluate.png")) );
putValue( Action.MNEMONIC_KEY, KeyEvent.VK_E );
putValue( Action.SHORT_DESCRIPTION, "Evaluer les fichiers (CTRL+E)" );
putValue( Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_E, InputEvent.CTRL_DOWN_MASK) );
}
@Override
public void actionPerformed( ActionEvent e ) {
if(commandes.fichierAnalyseValide) {
try {
msgBox V = new msgBox("Je travaille dure.",false,false,"Attendez");
Thread.sleep(200);
Thread.sleep(100);
evaluerLesFichiersEtudiants();
V.close();
} catch (ParserConfigurationException | SAXException | IOException | CloneNotSupportedException e1) {
@ -371,49 +410,57 @@ public class evaluate extends JFrame {
e1.printStackTrace();
}
}else {
txtpnmessages.setText("*** Veuillez charger un fichier d'analyse ***");
new msgBox("Le fichier d'analyse n'est pas valide.",true,false,"Avertissement");
}
}
};
}
});
// Sélectionne un fichier CSV
btnFichierCSV.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
JFileChooser chooser = new JFileChooser();
chooser.setDialogTitle("Choisir un fichier CSV");
chooser.setCurrentDirectory(new java.io.File(commandes.path));
chooser.setFileSelectionMode(JFileChooser.FILES_ONLY);
FileNameExtensionFilter filter = new FileNameExtensionFilter("Format CSV", "csv");
chooser.setFileFilter(filter);
chooser.setAcceptAllFileFilterUsed(true);
/**
* Ouvre et affiche un node dans le composant JTree
*/
private AbstractAction actOpen = new AbstractAction() {
if (chooser.showOpenDialog(null) == JFileChooser.APPROVE_OPTION) {
System.out.println("getCurrentDirectory(): " + chooser.getCurrentDirectory());
System.out.println("getSelectedFile() : " + chooser.getSelectedFile().getAbsolutePath());
commandes.nameCSV = chooser.getSelectedFile().getAbsolutePath();
commandes.fourniCSV=true;
commandes.nodeCSV = meptl.chargementFichierCSV();
txtpnmessages.setText(Run.ecritureNode(commandes.nodeCSV, 0).toString());
} else {
commandes.nameCSV = "";
commandes.fourniCSV=false;
System.out.println("No Selection ");
commandes.nodeCSV = new node();
refreshLabel();
}
}
});
// Bouton SVG
btnFichierSVG.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
JFileChooser chooser = new JFileChooser();
private static final long serialVersionUID = 1L;
{
putValue(LARGE_ICON_KEY, new ImageIcon(evaluate.class.getResource("/resources/fichierAnalyse.png")));
putValue( Action.NAME, "Ouvrir un fichier d'analyse" );
putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/fichierAnalyse.png")) );
putValue( Action.MNEMONIC_KEY, KeyEvent.VK_O );
putValue( Action.SHORT_DESCRIPTION, "Ouvrir un nouveau fichier d'analyse (CTRL+O)" );
putValue( Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_O, InputEvent.CTRL_DOWN_MASK) );
}
@Override
public void actionPerformed( ActionEvent e ) {
new filechooserXML();
refreshLabel();
System.out.println( "Open" );
}
};
/**
* Charge un logo SVG
*/
private AbstractAction actChargeLogo = new AbstractAction() {
private static final long serialVersionUID = 1L;
{
putValue(LARGE_ICON_KEY, new ImageIcon(evaluate.class.getResource("/resources/fichierSVG.png")));
putValue( Action.NAME, "Charge un logo SVG (CTRL+G)" );
putValue( Action.SMALL_ICON, new ImageIcon(evaluate.class.getResource("/resources/fichierSVG.png")));
putValue( Action.MNEMONIC_KEY, KeyEvent.VK_G );
putValue( Action.SHORT_DESCRIPTION, "Charge un logo SVG (CTRL+G)" );
putValue( Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_G, InputEvent.CTRL_DOWN_MASK) );
}
@Override
public void actionPerformed( ActionEvent e ) {
JFileChooser chooser = new JFileChooser();
chooser.setDialogTitle("Choisir un fichier SVG");
chooser.setCurrentDirectory(new java.io.File(commandes.path));
@ -435,57 +482,66 @@ public class evaluate extends JFrame {
}
refreshLabel();
}
};
/**
* Sélectionne le dossier courant contenant les fichiers des étudiants
*/
private AbstractAction actSelectFolder = new AbstractAction() {
private static final long serialVersionUID = 1L;
{
putValue(LARGE_ICON_KEY, new ImageIcon(evaluate.class.getResource("/resources/open2.png")));
putValue( Action.NAME, "Dossier des étudiants (CTRL+U)" );
putValue( Action.SMALL_ICON, new ImageIcon(evaluate.class.getResource("/resources/open2.png")) );
putValue( Action.MNEMONIC_KEY, KeyEvent.VK_U );
putValue( Action.SHORT_DESCRIPTION, "Dossier des étudiants (CTRL+U)" );
putValue( Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_U, InputEvent.CTRL_DOWN_MASK) );
}
@Override
public void actionPerformed( ActionEvent e ) {
JFileChooser chooser = new JFileChooser();
chooser.setCurrentDirectory(new java.io.File(commandes.path));
chooser.setDialogTitle("Sélectionner le dossier contenant les fichiers des étudiants.");
chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
chooser.setAcceptAllFileFilterUsed(false);
if (chooser.showOpenDialog(null) == JFileChooser.APPROVE_OPTION) {
System.out.println("getCurrentDirectory(): " + chooser.getCurrentDirectory());
System.out.println("getSelectedFile() : " + chooser.getSelectedFile().getAbsolutePath());
commandes.path = chooser.getSelectedFile().getAbsolutePath();
} else {
System.out.println("No Selection ");
}
}
});
// Bouton About
btnAbout.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
new about();
}
});
// Exit
btnExit.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
dispose();
}
});
// Information
btnInformationAnalyse.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if(commandes.fichierAnalyseValide) {
refreshLabel();
}else {
txtpnmessages.setText("*** Veuillez charger un fichier d'analyse ***");
}
}
});
// liste des étudiants
btnInfoListeEtudiant.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if(commandes.fourniCSV) {
txtpnmessages.setText(Run.ecritureNode(commandes.nodeCSV, 0).toString());
}else {
txtpnmessages.setText("*** Veuillez sélectionner un fichier CSV contenant la liste des étudiants ***");
}
}
});
// création d'un nouveau fichier d'analyse
btnNewFichierAnalyse.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
JFileChooser chooser = new JFileChooser();
refreshLabel();
}
};
/**
* Gènère un nouveau fichier d'analyse à partir d'un fichier ODF
*/
private AbstractAction actNewFichierAnalyse = new AbstractAction() {
private static final long serialVersionUID = 1L;
{
putValue(LARGE_ICON_KEY, new ImageIcon(evaluate.class.getResource("/resources/fichierODF.png")));
putValue( Action.NAME, "Génère un nouveau fichier d'analyse (CTRL+N)" );
putValue( Action.SMALL_ICON, new ImageIcon(evaluate.class.getResource("/resources/fichierODF.png")) );
putValue( Action.MNEMONIC_KEY, KeyEvent.VK_N );
putValue( Action.SHORT_DESCRIPTION, "Génère un nouveau fichier d'analyse (CTRL+N)" );
putValue( Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_N, InputEvent.CTRL_DOWN_MASK) );
}
@Override
public void actionPerformed( ActionEvent e ) {
JFileChooser chooser = new JFileChooser();
chooser.setDialogTitle("Choisir un fichier ODF");
chooser.setCurrentDirectory(new java.io.File(commandes.path));
@ -531,26 +587,212 @@ public class evaluate extends JFrame {
commandes.ecritCode = true;
}
});
// Affiche le code XML du node sujet
btnAfficheCodeFichierAnalyse.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
}
};
/**
* Information sur le fichier d'analyse
*/
private AbstractAction actAboutFichierAnalyse = new AbstractAction() {
private static final long serialVersionUID = 1L;
{
putValue( Action.NAME, "Informations du fichier d'analyse (CTRL+I)" );
putValue( Action.SMALL_ICON, new ImageIcon(evaluate.class.getResource("/resources/fichierAnalyseInfo2.png")));
putValue( Action.MNEMONIC_KEY, KeyEvent.VK_K );
putValue( Action.SHORT_DESCRIPTION, "Informations du fichier d'analyse (CTRL+I)" );
putValue( Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_K, InputEvent.CTRL_DOWN_MASK) );
}
@Override public void actionPerformed( ActionEvent e ) {
if(commandes.fichierAnalyseValide) {
refreshLabel();
}else {
txtpnmessages.setText("*** Veuillez charger un fichier d'analyse ***");
}
System.out.println( "Refresh Labels and texts" );
}
};
/**
* Quitter l'application
*/
private AbstractAction actExit = new AbstractAction() {
private static final long serialVersionUID = 1L;
{
putValue( Action.NAME, "Quitter (CTRL+Q)" );
putValue( Action.SMALL_ICON, new ImageIcon( getClass().getResource("/exit.png") ) );
putValue( Action.MNEMONIC_KEY, KeyEvent.VK_Q );
putValue( Action.SHORT_DESCRIPTION, "Quitter (CRTL+Q)" );
putValue( Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_Q, KeyEvent.CTRL_DOWN_MASK ) );
}
@Override public void actionPerformed( ActionEvent e ) {
int a = JOptionPane.showConfirmDialog(null,"Voulez-vous quitter l'application?", "Sélectionner un choix", JOptionPane.YES_NO_OPTION);
if(a == JOptionPane.YES_NO_OPTION) {
System.out.println( "Le choix : " + a);
System.out.println( "Exit" + e.getSource().toString());
dispose();
}
}
};
/**
* Affiche la fenêtre d'information sur analyseWriter
*/
private AbstractAction actAbout = new AbstractAction() {
private static final long serialVersionUID = 1L;
{
putValue( Action.NAME, "Informations (CTRL+I)" );
putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/apropos.png")) );
putValue( Action.MNEMONIC_KEY, KeyEvent.VK_I );
putValue( Action.SHORT_DESCRIPTION, "Informations (CTRL+I)" );
putValue( Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_I, InputEvent.CTRL_DOWN_MASK) );
}
@Override public void actionPerformed( ActionEvent e ) {
new about();
System.out.println( "About" );
}
};
/**
* Affiche le code XMl du fichier d'analyse
*/
private AbstractAction actCodeFichierAnalyse = new AbstractAction() {
private static final long serialVersionUID = 1L;
{
putValue( Action.NAME, "Affiche le code XML (CTRL+J)" );
putValue( Action.SMALL_ICON, new ImageIcon(evaluate.class.getResource("/resources/fichierAnalyseInfo.png")) );
putValue( Action.MNEMONIC_KEY, KeyEvent.VK_J );
putValue( Action.SHORT_DESCRIPTION, "Affiche le code XML (CTRL+J)" );
putValue( Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_J, InputEvent.CTRL_DOWN_MASK) );
}
@Override public void actionPerformed( ActionEvent e ) {
if(commandes.fichierAnalyseValide) {
txtpnmessages.setText(Run.ecritureNode(commandes.sujet, 0).toString());
}else {
txtpnmessages.setText("*** Veuillez charger un fichier d'analyse ***");
}
}
});
}
System.out.println( "Affiche le code XML du fichier d'analyse." );
}
};
/**
* Affiche le code XMl du fichier d'analyse
*/
private AbstractAction actModifierFichierAnalyse = new AbstractAction() {
private static final long serialVersionUID = 1L;
{
putValue( Action.NAME, "Modifier le fichier d'analyse (CTRL+M)" );
putValue( Action.SMALL_ICON, new ImageIcon(evaluate.class.getResource("/resources/fichierAnalyseModif.png")) );
putValue( Action.MNEMONIC_KEY, KeyEvent.VK_M );
putValue( Action.SHORT_DESCRIPTION, "Modifier le fichier d'analyse (CTRL+M)" );
putValue( Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_M, InputEvent.CTRL_DOWN_MASK) );
}
@Override public void actionPerformed( ActionEvent e ) {
if(commandes.fichierAnalyseValide) {
new create();
dispose();
}else {
txtpnmessages.setText("*** Veuillez sélectionner un fichier d'analyse pour le modifier ***");
}
System.out.println( "Affiche la fenêtre pour la modification." );
}
};
/**
* Charge la liste des étudiants sous la frome d'un fichier XML.
*/
private AbstractAction actChargeListeEtudiantCSV = new AbstractAction() {
private static final long serialVersionUID = 1L;
{
putValue( Action.NAME, "Charge la liste des étudiants (CTRL+L)" );
putValue( Action.SMALL_ICON, new ImageIcon(evaluate.class.getResource("/resources/fichierCSV.png")) );
putValue( Action.MNEMONIC_KEY, KeyEvent.VK_L );
putValue( Action.SHORT_DESCRIPTION, "Charge la liste des étudiants (CTRL+L)" );
putValue( Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_L, InputEvent.CTRL_DOWN_MASK) );
}
@Override public void actionPerformed( ActionEvent e ) {
JFileChooser chooser = new JFileChooser();
chooser.setDialogTitle("Choisir un fichier CSV");
chooser.setCurrentDirectory(new java.io.File(commandes.path));
chooser.setFileSelectionMode(JFileChooser.FILES_ONLY);
FileNameExtensionFilter filter = new FileNameExtensionFilter("Format CSV", "csv");
chooser.setFileFilter(filter);
chooser.setAcceptAllFileFilterUsed(true);
if (chooser.showOpenDialog(null) == JFileChooser.APPROVE_OPTION) {
System.out.println("getCurrentDirectory(): " + chooser.getCurrentDirectory());
System.out.println("getSelectedFile() : " + chooser.getSelectedFile().getAbsolutePath());
commandes.nameCSV = chooser.getSelectedFile().getAbsolutePath();
commandes.fourniCSV=true;
commandes.nodeCSV = meptl.chargementFichierCSV();
txtpnmessages.setText(Run.ecritureNode(commandes.nodeCSV, 0).toString());
} else {
commandes.nameCSV = "";
commandes.fourniCSV=false;
System.out.println("No Selection ");
commandes.nodeCSV = new node();
refreshLabel();
}
System.out.println( "Charge la liste des étudiants." );
}
};
/**
* Affiche le code XMl du fichier d'analyse
*/
private AbstractAction actAfficheListeEtudiant = new AbstractAction() {
private static final long serialVersionUID = 1L;
{
putValue( Action.NAME, "Affiche la liste des étudiants (ALT+L)" );
putValue( Action.SMALL_ICON, new ImageIcon(evaluate.class.getResource("/resources/fichierCSVInfo.png")) );
putValue( Action.MNEMONIC_KEY, KeyEvent.VK_L );
putValue( Action.SHORT_DESCRIPTION, "Affiche la liste des étudiants (ALT+L)" );
putValue( Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_L, InputEvent.ALT_DOWN_MASK) );
}
@Override public void actionPerformed( ActionEvent e ) {
if(commandes.fourniCSV) {
txtpnmessages.setText(Run.ecritureNode(commandes.nodeCSV, 0).toString());
}else {
txtpnmessages.setText("*** Veuillez sélectionner un fichier CSV contenant la liste des étudiants. ***");
}
System.out.println( "Affiche la liste des étudaints déjà en mémoire." );
}
};
/**
* Permet l'évaluation des fichiers des étudaints.
* @throws ParserConfigurationException

View File

@ -15,6 +15,7 @@ import javax.swing.filechooser.FileNameExtensionFilter;
import MEPTL.commandes;
import MEPTL.meptl;
import MEPTL.verificationFichierAnalyse;
import cXML.Run;
import cXML.node;
public class filechooserXML extends JFileChooser {
@ -52,35 +53,13 @@ public class filechooserXML extends JFileChooser {
System.out.println(file.getPath() + "\n" + file.getName());
String ext = file.getName().substring(file.getName().lastIndexOf("."));
if(ext.equals(".odt")){
openFileODF(file);
}else {
if(ext.equals(".xml")){
openFileXML(file);
}
}
}
}
private void openFileODF(File file) {
// Run analize = new Run();
// commandes.path = file.getPath().substring(0,file.getPath().lastIndexOf("\\"));
// commandes.filename = file.getName().substring(0,file.getName().lastIndexOf("."));
//
// commandes.sujet = analize.RunWithOneFileODT(file);
// try {
// utils.sujet = utils.LectureFichierEtudiantSousFormeDeNode(utils.sujet,analize,0,true);
// } catch (IOException e1) {
// e1.printStackTrace();
// }
// utils.sujet = utils.nodePourEcritureSujet(utils.sujet);
//
// if(!utils.fichierSujetValide()) {
// JOptionPane.showMessageDialog(null, "Le fichier n'est pas valide.");
// }else {
// utils.setTree();
// }
}
private void openFileXML(File file) {
@ -113,6 +92,12 @@ public class filechooserXML extends JFileChooser {
// Rechercher des erreurs dans le fichier d'analyse
new verificationFichierAnalyse();
if(commandes.fichierAnalyseValide) {
// Run.parentAndLevel(commandes.sujet, commandes.sujet.getNomElt(), 0);
// create.setTree();
}
// Affiche les erreurs dans une message box
//if(!commandes.fichierAnalyseValide) JOptionPane.showMessageDialog(null, verificationFichierAnalyse.messageErreur.toString());
@ -134,7 +119,8 @@ public class filechooserXML extends JFileChooser {
*/
public static boolean fichierSujetValide () {
if(commandes.sujet==null) {System.out.println("Le fichier est null."); return false;}
if(!commandes.sujet.getNomElt().equals("fichier")) {System.out.println("Pas de node fichier."); return false;}
if(!commandes.sujet.getNomElt().equals("fichier")) {System.out.println("Pas de node fichier."); return false;}
commandes.fichierAnalyseValide=false;
return true;
}

View File

@ -63,24 +63,28 @@ public class mainApp extends JFrame implements ActionListener{
frmEvalwriter = new JFrame();
frmEvalwriter.setResizable(false);
frmEvalwriter.setTitle("analyseWriter");
frmEvalwriter.setBounds(100, 100, 555, 295);
frmEvalwriter.setBounds(100, 100, 555, 315);
frmEvalwriter.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
frmEvalwriter.getContentPane().setLayout(null);
ImageIcon img = new ImageIcon(getClass().getResource("/evalwriter.png") );
frmEvalwriter.setIconImage(img.getImage());
btnCreate = new JButton("Modifier un fichier d'analyse");
btnCreate.setHorizontalAlignment(SwingConstants.LEFT);
btnCreate.setIcon(new ImageIcon(mainApp.class.getResource("/resources/fichierAnalyseModif.png")));
btnCreate.setFont(new Font("Tahoma", Font.PLAIN, 14));
btnCreate.addActionListener(this);
btnCreate.setBounds(34, 163, 470, 50);
btnCreate.setBounds(34, 180, 470, 58);
frmEvalwriter.getContentPane().add(btnCreate);
actCharge = new JButton("Evaluer les fichiers des étudiants - Créer un fichier d'analyse");
actCharge.setHorizontalAlignment(SwingConstants.LEFT);
actCharge.setIcon(new ImageIcon(mainApp.class.getResource("/resources/evaluate.png")));
actCharge.setBackground(Color.PINK);
actCharge.addActionListener(this);
actCharge.setFont(new Font("Tahoma", Font.PLAIN, 14));
actCharge.setBounds(34, 96, 470, 45);
actCharge.setBounds(34, 110, 470, 58);
frmEvalwriter.getContentPane().add(actCharge);
JLabel lblNewLabel = new JLabel();
@ -96,8 +100,8 @@ public class mainApp extends JFrame implements ActionListener{
@Override
public void actionPerformed(ActionEvent e) {
if(e.getSource()==btnCreate) {
// Creer = new create();
// frmEvalwriter.dispose();
new create();
frmEvalwriter.dispose();
}
if(e.getSource()==actCharge) {

View File

@ -9,6 +9,10 @@ import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import java.awt.event.ActionListener;
//import java.awt.event.ComponentEvent;
//import java.awt.event.ComponentListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.awt.event.ActionEvent;
public class msgBox extends JDialog {
@ -19,7 +23,9 @@ public class msgBox extends JDialog {
private static final long serialVersionUID = 1L;
private final JPanel contentPanel = new JPanel();
private JButton okButton = new JButton();
/**
* Create the dialog.
*/
@ -39,7 +45,7 @@ public class msgBox extends JDialog {
buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
getContentPane().add(buttonPane, BorderLayout.SOUTH);
{
JButton okButton = new JButton("OK");
okButton = new JButton("OK");
okButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
dispose();
@ -52,14 +58,37 @@ public class msgBox extends JDialog {
}
{
JButton cancelButton = new JButton("Cancel");
cancelButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
dispose();
}
});
cancelButton.setActionCommand("Cancel");
buttonPane.add(cancelButton);
cancelButton.setVisible(AfficheCancel);
}
}
addWindowListener(new WindowAdapter()
{
public void windowClosed(WindowEvent e)
{
System.out.println("jdialog window closed event received");
}
public void windowClosing(WindowEvent e)
{
System.out.println("jdialog window closing event received");
}
});
setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
setVisible(true);
}
@ -67,4 +96,9 @@ public class msgBox extends JDialog {
dispose();
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

BIN
src/resources/treeOpen.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 483 B