MAJ V4.5.0

This commit is contained in:
pablo rodriguez 2024-04-27 14:04:30 +02:00
parent 2e6dbad506
commit 5e483e29d6
15 changed files with 429 additions and 27896 deletions

File diff suppressed because one or more lines are too long

154
bin/.gitignore vendored
View File

@ -7,10 +7,163 @@
/fenetres/
/list/
/menucontextuel/
/oustrict.svg
/oustrictmini.png
/oustrictseps.png
/oustrictseps.svg
/oustrictsepsmini.png
/paragraphe_source.svg
/paste.png
/piedpagenon.png
/piedpagenon.svg
/piedpagenonmini.png
/piedpageoui.png
/piedpageoui.svg
/piedpageouimini.png
/poids.svg
/poidsmini.png
/premierenfant.png
/premierenfant.svg
/premierenfantmini.png
/property.png
/property.svg
/quitteEvaluation.png
/quitteEvaluation.svg
/quitteEvaluationmini.png
/recherche.png
/recherche.svg
/rechercheDoublon.png
/rechercheDoublon.svg
/rechercheDoublonmini.png
/rechercheancragepage.png
/rechercheancragepage.svg
/rechercheancragepagemini.png
/recherchecontenu.png
/recherchecontenu.svg
/recherchecontenumini.png
/recherchecontenuplusprochevoisin.png
/recherchecontenuplusprochevoisin.svg
/recherchecontenuplusprochevoisinmini.png
/rechercheindex.png
/rechercheindex.svg
/rechercheindexmini.png
/recherchemini.png
/redo.png
/removeEvaluation.svg
/removeEvaluaton.png
/removeEvaluatonmini.png
/renommeEvaluation.svg
/renommeEvaluaton.png
/renommeEvaluatonmini.png
/renommeFichierAnalyse.svg
/saut.svg
/sautmini.png
/sautmultiple.png
/sautmultiple.svg
/sautmultiplemini.png
/sautpageColonne.svg
/sautpagecolonne.png
/sautpagecolonnefalse.png
/sautpagecolonnefalsemini.png
/sautpagecolonnemini.png
/sautpagecolonnetrue.png
/sautpagecolonnetruemini.png
/sauvegardeHistoriqueEvaluation.svg
/sauvegardehistoriqueevaluation.png
/sauvegardehistoriqueevaluationmini.png
/save.png
/save.svg
/saveEvaluation.png
/saveEvaluation.svg
/saveEvaluationmini.png
/saveZipEvaluation.png
/saveZipEvaluation.svg
/saveZipEvaluationmini.png
/save_as.png
/saveas.svg
/saveasmini.png
/savemini.png
/savepreference.png
/savepreference.svg
/savepreferencemini.png
/section.png
/section.svg
/sequence.png
/sequence.svg
/setting.png
/setting.svg
/settingmini.png
/similitude.png
/similitude.svg
/similitudemini.png
/sousmenuArbre/
/sousmenuEvaluation/
/sousmenuRecherche/
/sousmenuRepresentation/
/structurepage.png
/structurepage.svg
/stylepage.png
/stylepage.svg
/styleparagraphe.png
/styleparagraphe.svg
/supprime.svg
/supprimeAttribut.png
/supprimeAttribut.svg
/supprimeAttributmini.png
/supprimemini.png
/textclean.png
/textclean.svg
/textcleanmini.png
/titre.svg
/titremini.png
/totalpoint.png
/totalpoint.svg
/totalpointmini.png
/totalpointnode.png
/totalpointnode.svg
/totalpointnodemini.png
/touslesnodes.png
/touslesnodes.svg
/touslesnodesmini.png
/toutext.png
/toutext.svg
/toutextmini.png
/traduction.png
/traduction.svg
/traductionmini.png
/treeClose.png
/treeClose.svg
/treeLeaf.png
/treeLeaf.svg
/treeOpen.png
/treeOpen.svg
/triche.png
/triche.svg
/trichemini.png
/true.png
/true.svg
/truemini.png
/tutoriel.png
/tutoriel.svg
/tutorielmini.png
/undo.png
/upnode.png
/upnode.svg
/upnodemini.png
/verifhistorique.png
/verifhistoriquemax.png
/verifhistoriquemini.png
/verifhistoriquestudent.png
/verifhistoriquestudent.svg
/verifhistoriquestudentmini.png
/versevaluate.png
/versevaluate.svg
/versevaluatemini.png
/versfichierAnalyse.png
/versfichierAnalyseModifmax.svg
/voir.svg
/voirmini.png
/voirtouteslescolonnes.png
/what.svg
/whatmini.png
/zip.png
@ -19,3 +172,4 @@
/zipstudent.png
/zipstudent.svg
/zipstudentmini.png
/baseListesEtudiants/

BIN
bin/baselisteetudiant.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

108
bin/baselisteetudiant.svg Normal file
View File

@ -0,0 +1,108 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="45"
height="45"
viewBox="0 0 11.90625 11.90625"
version="1.1"
id="svg1"
inkscape:version="1.3 (0e150ed6c4, 2023-07-21)"
sodipodi:docname="baselisteetudiant.svg"
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">
<sodipodi:namedview
id="namedview1"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:document-units="mm"
inkscape:zoom="11.188001"
inkscape:cx="22.524132"
inkscape:cy="22.524132"
inkscape:window-width="1920"
inkscape:window-height="1009"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
inkscape:current-layer="layer1" />
<defs
id="defs1">
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient1534"
id="linearGradient1536"
x1="-28.89456"
y1="79.43959"
x2="-28.613434"
y2="168.68048"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0.10627944,0,0,0.10627944,10.850063,-7.2293938)" />
<linearGradient
inkscape:collect="always"
id="linearGradient1534">
<stop
style="stop-color:#00ff00;stop-opacity:1"
offset="0"
id="stop1530" />
<stop
style="stop-color:#008080;stop-opacity:1"
offset="1"
id="stop1532" />
</linearGradient>
</defs>
<g
inkscape:label="Calque 1"
inkscape:groupmode="layer"
id="layer1">
<path
id="path482"
style="fill:url(#linearGradient1536);fill-opacity:1;stroke:none;stroke-width:0.430337;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1;stop-color:#000000"
d="M 5.9479503,4.6473708e-7 C 5.6334359,-6.0825263e-5 5.3201539,0.00623174 5.1420976,0.01907127 3.3291495,0.14981628 1.8105881,0.67646755 1.0926722,1.4237282 0.89800085,1.6263576 0.74632475,1.8716081 0.69655655,2.0639421 c -0.03848,0.1487142 -0.040365,0.413496 -0.00382,0.5503123 C 0.84579885,3.1871714 1.4708417,3.7218511 2.4324868,4.102822 3.200771,4.4071917 3.98185,4.5713884 5.1627966,4.6771077 5.4881331,4.7062337 6.4652342,4.7021407 6.8213604,4.6700377 7.5221197,4.6068417 8.0271374,4.5282365 8.537681,4.4030527 8.7906979,4.3410157 9.3376538,4.1665468 9.4862882,4.1006533 9.5427682,4.0756163 9.6214652,4.0425343 9.6606432,4.0270973 9.8159082,3.9659223 10.161897,3.778594 10.348805,3.6549553 11.279461,3.0393342 11.49855,2.2605425 10.938347,1.5577703 10.295344,0.75112665 8.6763943,0.15527075 6.7603355,0.01962194 6.5779603,0.00671181 6.2624579,6.7424737e-5 5.9479436,7.1747371e-6 Z M 0.69546675,3.2877051 0.73742125,5.1985438 c 0.74747225,2.5594279 9.55426875,2.5779714 10.50060775,0 V 3.2877051 c -1.2554298,2.680569 -9.3607816,2.8637563 -10.54256225,0 z m 0.018525,2.5041928 0.041955,1.9108351 c 0.74747215,2.559429 9.55372425,2.577973 10.50006025,0 V 5.7918979 c -1.255427,2.6805666 -9.3602343,2.8637576 -10.54201525,0 z m -0.063749,2.2775296 0.041954,1.910292 c 0.74747235,2.5594275 9.55372225,2.5779695 10.50006025,0 v -1.910292 c -1.2554278,2.6805665 -9.3602342,2.8637575 -10.54201425,0 z" />
<g
id="g2"
transform="matrix(0.82699238,0,0,0.82699238,-1.3733465,2.6462791)">
<path
style="fill:#ffccaa;stroke:none;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 4.4649331,3.6987471 2.1436896,0.299894 2.0437247,-0.4887164 -0.033322,0.8996834 0.3554304,0.488717 v 1.032969 L 8.5968114,6.2645101 7.9637011,7.4529811 6.8863027,8.1971631 5.6422961,8.0527701 4.8314707,7.1864081 4.3427538,6.2311891 4.0317523,6.0534731 3.7762867,5.3981491 4.0317523,4.7428241 4.2316817,4.4762511 4.2427887,3.6987471 Z"
id="path455" />
<g
id="g379"
transform="matrix(0.01113254,0,0,0.01113254,0.33749402,1.6862516)"
style="fill:#000000;stroke-width:23.7666">
<g
transform="matrix(0.08797553,0,0,-0.08797553,110.05744,434.06317)"
id="g377"
style="fill:#000000;stroke-width:27.0149">
<path
d="M 3122.6,4604.2 C 2231.7,4380.5 1476.5,4187.4 1444,4174 c -68.8,-28.7 -114.7,-107.1 -114.7,-193.1 0,-42.1 19.1,-76.5 63.1,-120.4 l 61.2,-61.2 554.4,-63.1 c 305.9,-34.4 1152.8,-128.1 1883.1,-210.3 l 1328.7,-149.1 1508.4,380.5 c 827.8,208.4 1514.1,378.5 1523.7,378.5 9.6,0 17.2,-275.3 17.2,-636.6 V 2864.5 L 8078,2673.3 c -286.8,-284.9 -286.8,-237.1 -3.8,-804.9 191.2,-382.4 242.8,-470.3 290.6,-495.2 78.4,-40.1 158.7,-36.3 217.9,11.5 68.8,53.5 489.4,892.8 489.4,973.1 0,89.9 -40.1,147.2 -227.5,334.6 l -174,172.1 v 806.8 808.7 l -53.5,59.3 -53.5,61.2 L 6690,4807 c -1028.6,114.7 -1888.9,206.5 -1909.9,206.5 -21,-0.2 -766.6,-185.6 -1657.5,-409.3 z"
id="path367"
style="fill:#000000;stroke-width:27.0149" />
<path
d="m 6340.2,3243 -1099.3,-275.3 -1344,149.1 -1344,149.1 v -569.7 -569.7 l -103.2,-99.4 C 2260.4,1839.7 2170.6,1596.9 2157.2,1218.4 2140,816.9 2229.9,493.8 2411.5,293.1 2484,212.7 2642.7,121 2711.5,121 c 17.2,0 32.5,-15.3 32.5,-32.5 0,-63.1 191.2,-510.5 298.2,-697.8 369,-651.9 892.8,-1091.7 1491.2,-1248.4 290.6,-76.5 642.4,-76.5 933,0 728.4,191.2 1345.9,803 1693.9,1676.7 51.7,133.7 95.7,256.1 95.7,273.3 0,15.3 15.3,28.7 34.4,28.7 66.9,0 225.6,91.8 298.3,172.1 181.6,200.7 271.5,523.8 256.2,925.3 -15.3,380.5 -110.9,629 -307.8,808.7 l -80.3,70.7 -9.6,709.3 -9.6,709.3 z M 3222,2375 c 229.4,-65 602.2,-135.7 908.1,-174 137.7,-15.3 435.9,-24.8 869.9,-24.8 694,0 869.9,13.4 1328.7,97.5 216,38.2 575.5,130 686.4,172.1 34.4,13.4 36.3,3.8 22.9,-273.4 l -13.4,-286.8 49.7,-59.3 c 32.5,-40.1 76.5,-65 130,-74.6 70.7,-15.3 86,-26.8 133.8,-114.7 149.1,-277.2 135.8,-812.5 -22.9,-1036.2 -40.1,-57.4 -45.9,-57.4 -154.9,-45.9 -107.1,9.6 -114.7,7.6 -170.2,-45.9 -30.6,-32.5 -65,-95.6 -78.4,-141.5 -239,-948.3 -887.1,-1692 -1604,-1844.9 -166.3,-34.4 -443.6,-34.4 -613.7,1.9 -671,141.5 -1267.5,774.3 -1540.9,1634.6 -38.2,120.4 -78.4,244.7 -89.9,275.3 -36.3,99.4 -187.4,156.8 -281,107.1 -51.6,-28.7 -124.3,66.9 -175.9,235.2 -63.1,196.9 -61.2,560.2 1.9,739.9 61.2,174 99.4,221.8 191.2,237.1 51.6,7.6 89.9,30.6 124.3,70.7 l 49.7,59.3 -11.5,288.7 c -13.4,277.2 -13.4,286.8 22.9,273.4 19.3,-7.7 126.3,-40.2 237.2,-70.8 z"
id="path369"
style="fill:#000000;stroke-width:27.0149" />
<path
d="m 3841.4,1279.5 c -72.6,-72.7 -84.1,-147.2 -38.2,-239 44,-82.2 103.2,-97.5 391.9,-97.5 233.2,0 269.6,3.8 311.6,38.2 114.7,89.9 109,254.3 -11.5,326.9 -51.6,30.6 -97.5,36.3 -323.1,36.3 h -265.7 z"
id="path371"
style="fill:#000000;stroke-width:27.0149" />
<path
d="m 5504.7,1308.2 c -68.8,-42.1 -110.9,-143.4 -91.7,-219.9 5.7,-26.8 38.2,-70.7 68.8,-97.5 53.5,-45.9 66.9,-47.8 321.2,-47.8 288.7,0 340.3,13.4 388.1,95.6 53.5,87.9 42.1,166.3 -32.5,240.9 l -65,65 h -263.8 c -227.6,0 -273.5,-5.7 -325.1,-36.3 z"
id="path373"
style="fill:#000000;stroke-width:27.0149" />
<path
d="m 2352.1,-1601.6 c -326.9,-114.7 -663.4,-242.8 -749.4,-282.9 -265.7,-128.1 -478,-281 -713.1,-518.1 C 576,-2714.3 381,-3025.9 251,-3415.9 145.9,-3735.2 122.9,-3869 111.4,-4270.5 l -11.4,-367.1 68.8,-68.8 66.9,-66.9 H 5000 9764.3 l 66.9,66.9 68.8,68.8 -11.5,367.1 c -9.6,296.3 -19.1,405.3 -57.4,567.8 -128.1,535.3 -344.1,927.2 -728.4,1309.6 -233.2,233.3 -420.6,367.1 -709.3,506.6 -214.1,103.3 -1332.5,497.1 -1412.8,497.1 -36.3,0 -95.6,-42 -227.5,-166.3 -409.1,-384.3 -759,-585 -1229.3,-705.5 -183.5,-47.8 -244.7,-53.5 -504.7,-55.4 -424.4,0 -674.9,57.4 -1061.1,248.5 -242.8,120.5 -462.7,277.2 -711.2,512.4 -151,141.5 -187.4,166.3 -239,164.4 -34.3,-1.9 -328.8,-95.6 -655.7,-210.3 z"
id="path375"
style="fill:#000000;stroke-width:27.0149" />
</g>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@ -30,6 +30,9 @@ public class commandes {
public static node evaluationsBase = null;
public static node evaluationChargeEnMemoire = null;
//** Le node contenant les listes des étudiants
public static node listesEtudiants = null;
//** L'arbre
public static JTree tree = new JTree();

View File

@ -1924,7 +1924,7 @@ public class meptl {
* @return
* @throws IOException
*/
public static void chargementFichierCSV() {
public static void chargementFichierCSV(String nameListStudent, String Year) {
String targetString = "";
@ -1953,16 +1953,29 @@ public class meptl {
e.printStackTrace();
}
String[] target = targetString.split("\\n");
node csv = commandes.sujet.retourneFirstEnfantsByName("csv");
String separator = csv.getAttributs().get("separator");
String encoding = csv.getAttributs().get("encoding");
node import_csv = csv.retourneFirstEnfantsByName("import_moodle");
String nameid = import_csv.getAttributs().get("id");
String nameemail = import_csv.getAttributs().get("email");
String nameStudent = import_csv.getAttributs().get("name");
String firstnameStudent = import_csv.getAttributs().get("firstname");
if(nameListStudent.isBlank()) nameListStudent=commandes.nameCSV;
if(Year.isBlank()) Year="2024";
commandes.nodeCSV.getAttributs().put("nameListStudent", nameListStudent);
commandes.nodeCSV.getAttributs().put("name", nameStudent);
commandes.nodeCSV.getAttributs().put("firstname", firstnameStudent);
commandes.nodeCSV.getAttributs().put("email", nameemail);
commandes.nodeCSV.getAttributs().put("id", nameid);
commandes.nodeCSV.getAttributs().put("separator", separator);
commandes.nodeCSV.getAttributs().put("encoding", encoding);
commandes.nodeCSV.getAttributs().put("year", Year);
if(!target[0].contains(separator)||!target[0].contains(nameid)
||!target[0].contains(nameemail)||!target[0].contains(nameStudent)

View File

@ -12,7 +12,13 @@ import java.util.Date;
import MEPTL.commandes;
public class CreerBaseParDefaut {
/**
* Création de la base de données des évaluations.<br>
* Et/Ou vérification de la présence de de la base de données.
* @author pabr6
*
*/
public class CreerBaseParDefautEvaluation {
public Boolean isExist() throws IOException {

View File

@ -58,8 +58,8 @@ public class recupeNodeBaseEvaluations {
if(evaluations.getNodes().size()>0) HasEvaluation=true;
}catch (Exception e) {
JLabel texte = new JLabel("<html><p>La base de données n'est pas située dans le même répertoire que celui de l'application.</p><br>"
+"<p>Vous pouvez charger ou créer une base de données depuis la fenêtre \"<b>base de données d'évaluation</b>\" de l'application.</p></html>");
JLabel texte = new JLabel("<html><p>La base de données des évaluations n'est pas située dans le même répertoire que celui de l'application.</p><br>"
+"<p>Vous pouvez charger ou créer une base de données depuis la fenêtre \"<b>base de données d'évaluation</b>\".</p></html>");
JOptionPane.showMessageDialog(null, texte);
}
}

View File

@ -0,0 +1,43 @@
package baseListesEtudiants;
import java.io.BufferedWriter;
import java.io.File;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.text.ParseException;
import java.util.Date;
import MEPTL.commandes;
public class CreerBaseParDefautListesEtudiants {
public Boolean isExist() throws IOException {
File file = null;
String directoryName = Paths.get("").toAbsolutePath().toString();
if(commandes.os.contains("Win")) {
file = new File(directoryName + "\\" + "base_listes_etudiants.xml");
}else {
file = new File(directoryName + "/" + "base_listes_etudiants.xml");
}
if(!file.exists()) {
Date aujourdhui = new Date();
Path outputFilePath = file.toPath();
BufferedWriter fichier = Files.newBufferedWriter(outputFilePath, StandardCharsets.UTF_8);
try {
fichier.write("<ListesEtudiants date=\""+ calcul.formatDateWriter.DateLibreOffice(aujourdhui) +"\" version=\""+commandes.version +"\"></ListesEtudiants>");
} catch (IOException e) {
e.printStackTrace();
} catch (ParseException e) {
e.printStackTrace();
}
fichier.close();
return false;
}
return new recupeNodeBaseListesEtudiants().isHasliste();
}
}

View File

@ -0,0 +1,66 @@
package baseListesEtudiants;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStreamReader;
import java.nio.file.Paths;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import MEPTL.commandes;
import cXML.node;
public class recupeNodeBaseListesEtudiants {
private boolean Hasliste = false;
public recupeNodeBaseListesEtudiants() {
File file = null;
String directoryName = Paths.get("").toAbsolutePath().toString();
if(commandes.os.contains("Win")) {
file = new File(directoryName + "\\" + "base_listes_etudiants.xml");
}else {
file = new File(directoryName + "/" + "base_listes_etudiants.xml");
}
if(file!=null) {
BufferedReader br;
try {
br = new BufferedReader(
new InputStreamReader(
new FileInputStream(file.getAbsoluteFile()), "UTF-8"));
String line;
StringBuilder targetString = new StringBuilder();
while ((line = br.readLine()) != null) {
targetString.append(line);
}
String codeTexte = "<!-- A -->" + targetString.toString().replace("\t","").replace("\r", "").replace("\n", "");
node nodRetourne = new node(codeTexte.replaceAll(">/{1,}<", "><")); //Le node A est nécessaire.
if(nodRetourne.getNomElt().equals("fichier")) {
nodRetourne.setNomElt("ListesEtudiants");
}
commandes.listesEtudiants = nodRetourne;
if(nodRetourne.getNodes().size()>0) Hasliste=true;
}catch (Exception e) {
JLabel texte = new JLabel("<html><p>La base de données des listes des étudiants<br>n'est pas située dans le même répertoire que celui de l'application.</p></html>");
JOptionPane.showMessageDialog(null, texte);
}
}
}
public boolean isHasliste() {
return Hasliste;
}
public void setHasliste(boolean hasliste) {
Hasliste = hasliste;
}
}

View File

@ -14,7 +14,11 @@ import javax.swing.filechooser.FileNameExtensionFilter;
import MEPTL.commandes;
import MEPTL.meptl;
import cXML.node;
/**
*
* @author pabr6
*
*/
public class CustomInputDialogListeEtudiant {
public static String showCustominputDialog() {
String separateur ="";
@ -71,14 +75,17 @@ public class CustomInputDialogListeEtudiant {
textField.setFont(new Font("Tahoma", Font.BOLD, 14));
textField.setHorizontalAlignment(SwingConstants.LEFT);
ImageIcon icon = new ImageIcon(create.class.getResource("/resources/fichierCSV.png"));
JTextField textFieldYear = new JTextField("2024");
Object[] message = {
lblTitre,
lblExpliaction,
"<html><p><b>Le nom d'une liste d'étudiant doit être unique.</b><br>"
+ "Sinon, les étudiants seront ajoutés à la liste existante.</p><br>"
+ "<p>Quel doit être le nom de cette liste ?</p>",
textField
+ "<p>Quel doit être le nom de cette liste ?</p></html>",
textField,
"<html><p>Quel est l'année ?</p></html>",
textFieldYear
};
String[] options = {"Importer la liste", "Annuler"};
@ -93,7 +100,7 @@ public class CustomInputDialogListeEtudiant {
options,
options[0]);
if (optionSelected == 0) { // Bouton "Valiser" sélectionné
if (optionSelected == 0) { // Bouton "Importer la liste" sélectionné
JFileChooser chooser = new JFileChooser();
chooser.setDialogTitle("Choisir un fichier CSV");
@ -108,15 +115,7 @@ public class CustomInputDialogListeEtudiant {
System.out.println("getSelectedFile() : " + chooser.getSelectedFile().getAbsolutePath());
commandes.nameCSV = chooser.getSelectedFile().getAbsolutePath();
meptl.chargementFichierCSV();
commandes.nodeCSV.getAttributs().put("nameListStudent", nameListStudent);
commandes.nodeCSV.getAttributs().put("encoding", encodage);
commandes.nodeCSV.getAttributs().put("separator", separateur);
commandes.nodeCSV.getAttributs().put("name", name);
commandes.nodeCSV.getAttributs().put("firstname", firstname);
commandes.nodeCSV.getAttributs().put("email", email);
commandes.nodeCSV.getAttributs().put("id", id);
meptl.chargementFichierCSV(nameListStudent, textFieldYear.getText());
if(commandes.nodeCSV.getNbrEnfants()>=1) commandes.fourniCSV=true;

View File

@ -1146,11 +1146,11 @@ public class evaluate extends JFrame {
private static final long serialVersionUID = 1L;
{
putValue( Action.NAME, "Charge la liste des étudiants" );
putValue( Action.NAME, "Ajoute une liste ou des étudiants à une liste" );
putValue( Action.SMALL_ICON, new ImageIcon(evaluate.class.getResource("/resources/fichierCSVmini.png")) );
putValue( Action.LARGE_ICON_KEY, 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.SHORT_DESCRIPTION, "Ajoute une liste ou des étudiants à une liste (CTRL+L)" );
putValue( Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_L, InputEvent.CTRL_DOWN_MASK) );
}

View File

@ -14,8 +14,9 @@ import javax.swing.SwingConstants;
import MEPTL.commandes;
import OnLineVersions.verificationNewVersion;
import baseEvaluations.CreerBaseParDefaut;
import baseEvaluations.CreerBaseParDefautEvaluation;
import baseEvaluations.recupeNodeBaseEvaluations;
import baseListesEtudiants.CreerBaseParDefautListesEtudiants;
public class mainApp extends JFrame implements ActionListener{
@ -41,7 +42,8 @@ public class mainApp extends JFrame implements ActionListener{
}
/**
* Create the application.
* Initalise la fenêtre de démarrage<br>
* Initalise l'application.<br>
*/
public mainApp() {
initialize();
@ -57,18 +59,21 @@ public class mainApp extends JFrame implements ActionListener{
System.out.println("Pas de connexion internet.");
}
Boolean LaBaseExiste = false;
Boolean LaBaseEvaluationsExiste = false;
Boolean LabaseListesEtudiantsExiste = false;
try {
LaBaseExiste = new CreerBaseParDefaut().isExist();
LaBaseEvaluationsExiste = new CreerBaseParDefautEvaluation().isExist();
LabaseListesEtudiantsExiste = new CreerBaseParDefautListesEtudiants().isExist();
} catch (IOException e) {
System.out.println("Problème au moment du charge de la base d'évaluation.");
e.printStackTrace();
}
frmEvalwriter = new JFrame();
frmEvalwriter.setResizable(false);
frmEvalwriter.setBounds(100, 100, 500, 380);
frmEvalwriter.setBounds(100, 100, 500, 360);
int screenWidth = (int) java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWindowBounds().getWidth();
int screenHeight = (int) java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWindowBounds().getHeight();
frmEvalwriter.setLocation(( (screenWidth) - frmEvalwriter.getWidth()) / 2, (screenHeight - frmEvalwriter.getHeight()) / 2);
@ -85,17 +90,18 @@ public class mainApp extends JFrame implements ActionListener{
btnCreate.setFont(new Font("Arial", Font.BOLD, 16));
btnCreate.addActionListener(this);
btnCreate.setBounds(34, 180, 420, 60);
btnCreate.setBounds(34, 181, 420, 60);
frmEvalwriter.getContentPane().add(btnCreate);
actCharge = new JButton("Evaluer les fichiers des étudiants");
if(!LabaseListesEtudiantsExiste) actCharge.setText("Evaluer les fichiers des étudiants*");
actCharge.setHorizontalAlignment(SwingConstants.LEFT);
actCharge.setIcon(new ImageIcon(mainApp.class.getResource("/resources/evaluate.png")));
actCharge.setBackground(SystemColor.inactiveCaption);
actCharge.setFont(new Font("Arial", Font.BOLD, 16));
actCharge.setBounds(34, 110, 420, 60);
frmEvalwriter.getContentPane().add(actCharge);
actCharge.setEnabled(LaBaseExiste);
actCharge.setEnabled(LaBaseEvaluationsExiste);
JLabel lblNewLabel = new JLabel();
ImageIcon img2 = new ImageIcon(getClass().getResource("/accueil.png") );
@ -111,14 +117,9 @@ public class mainApp extends JFrame implements ActionListener{
JButton btnNewButton = new JButton("Verif. version");
btnNewButton.setHorizontalAlignment(SwingConstants.LEFT);
btnNewButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
about.getInstance();
}
});
btnNewButton.setFont(new Font("Arial", Font.PLAIN, 14));
btnNewButton.setIcon(new ImageIcon(mainApp.class.getResource("/resources/apropos.png")));
btnNewButton.setBounds(34, 270, 200, 60);
btnNewButton.setBounds(34, 252, 200, 60);
frmEvalwriter.getContentPane().add(btnNewButton);
JButton btnTutoriels = new JButton("Documentations");
@ -137,7 +138,7 @@ public class mainApp extends JFrame implements ActionListener{
btnTutoriels.setIcon(new ImageIcon(mainApp.class.getResource("/resources/documentation.png")));
btnTutoriels.setHorizontalAlignment(SwingConstants.LEFT);
btnTutoriels.setFont(new Font("Arial", Font.PLAIN, 14));
btnTutoriels.setBounds(254, 270, 200, 60);
btnTutoriels.setBounds(254, 252, 200, 60);
frmEvalwriter.getContentPane().add(btnTutoriels);