diff --git a/bin/fenetres/evaluate$1.class b/bin/fenetres/evaluate$1.class index b133568..1132422 100644 Binary files a/bin/fenetres/evaluate$1.class and b/bin/fenetres/evaluate$1.class differ diff --git a/bin/fenetres/evaluate$10.class b/bin/fenetres/evaluate$10.class index 6b8227f..4226ed6 100644 Binary files a/bin/fenetres/evaluate$10.class and b/bin/fenetres/evaluate$10.class differ diff --git a/bin/fenetres/evaluate$11.class b/bin/fenetres/evaluate$11.class index afeff6d..1ec07e3 100644 Binary files a/bin/fenetres/evaluate$11.class and b/bin/fenetres/evaluate$11.class differ diff --git a/bin/fenetres/evaluate$12.class b/bin/fenetres/evaluate$12.class index ce80651..6ed0370 100644 Binary files a/bin/fenetres/evaluate$12.class and b/bin/fenetres/evaluate$12.class differ diff --git a/bin/fenetres/evaluate$13.class b/bin/fenetres/evaluate$13.class index 9931406..bf19f75 100644 Binary files a/bin/fenetres/evaluate$13.class and b/bin/fenetres/evaluate$13.class differ diff --git a/bin/fenetres/evaluate$14.class b/bin/fenetres/evaluate$14.class index 21d2baf..a6a519f 100644 Binary files a/bin/fenetres/evaluate$14.class and b/bin/fenetres/evaluate$14.class differ diff --git a/bin/fenetres/evaluate$15.class b/bin/fenetres/evaluate$15.class index 50e2fc7..43adeb1 100644 Binary files a/bin/fenetres/evaluate$15.class and b/bin/fenetres/evaluate$15.class differ diff --git a/bin/fenetres/evaluate$16.class b/bin/fenetres/evaluate$16.class index bb84f0b..056475c 100644 Binary files a/bin/fenetres/evaluate$16.class and b/bin/fenetres/evaluate$16.class differ diff --git a/bin/fenetres/evaluate$17.class b/bin/fenetres/evaluate$17.class index f60e8c1..470726a 100644 Binary files a/bin/fenetres/evaluate$17.class and b/bin/fenetres/evaluate$17.class differ diff --git a/bin/fenetres/evaluate$18.class b/bin/fenetres/evaluate$18.class index 570258a..2a9c11f 100644 Binary files a/bin/fenetres/evaluate$18.class and b/bin/fenetres/evaluate$18.class differ diff --git a/bin/fenetres/evaluate$19.class b/bin/fenetres/evaluate$19.class index d61d1b5..87793fe 100644 Binary files a/bin/fenetres/evaluate$19.class and b/bin/fenetres/evaluate$19.class differ diff --git a/bin/fenetres/evaluate$2.class b/bin/fenetres/evaluate$2.class index 65c6fa1..65da791 100644 Binary files a/bin/fenetres/evaluate$2.class and b/bin/fenetres/evaluate$2.class differ diff --git a/bin/fenetres/evaluate$20.class b/bin/fenetres/evaluate$20.class index a862b93..0005374 100644 Binary files a/bin/fenetres/evaluate$20.class and b/bin/fenetres/evaluate$20.class differ diff --git a/bin/fenetres/evaluate$21.class b/bin/fenetres/evaluate$21.class index b438332..0c8bf4a 100644 Binary files a/bin/fenetres/evaluate$21.class and b/bin/fenetres/evaluate$21.class differ diff --git a/bin/fenetres/evaluate$22.class b/bin/fenetres/evaluate$22.class index ce8fe7d..5aab643 100644 Binary files a/bin/fenetres/evaluate$22.class and b/bin/fenetres/evaluate$22.class differ diff --git a/bin/fenetres/evaluate$23.class b/bin/fenetres/evaluate$23.class index f7978c8..6336c8f 100644 Binary files a/bin/fenetres/evaluate$23.class and b/bin/fenetres/evaluate$23.class differ diff --git a/bin/fenetres/evaluate$24.class b/bin/fenetres/evaluate$24.class index c28247f..12e3b82 100644 Binary files a/bin/fenetres/evaluate$24.class and b/bin/fenetres/evaluate$24.class differ diff --git a/bin/fenetres/evaluate$25.class b/bin/fenetres/evaluate$25.class index 3eeebe0..8ba4601 100644 Binary files a/bin/fenetres/evaluate$25.class and b/bin/fenetres/evaluate$25.class differ diff --git a/bin/fenetres/evaluate$26.class b/bin/fenetres/evaluate$26.class index 3260d62..efe89d0 100644 Binary files a/bin/fenetres/evaluate$26.class and b/bin/fenetres/evaluate$26.class differ diff --git a/bin/fenetres/evaluate$27.class b/bin/fenetres/evaluate$27.class index 5b598dc..713309b 100644 Binary files a/bin/fenetres/evaluate$27.class and b/bin/fenetres/evaluate$27.class differ diff --git a/bin/fenetres/evaluate$28.class b/bin/fenetres/evaluate$28.class index 0653e11..c803ac3 100644 Binary files a/bin/fenetres/evaluate$28.class and b/bin/fenetres/evaluate$28.class differ diff --git a/bin/fenetres/evaluate$29.class b/bin/fenetres/evaluate$29.class index 05b919d..9eaede0 100644 Binary files a/bin/fenetres/evaluate$29.class and b/bin/fenetres/evaluate$29.class differ diff --git a/bin/fenetres/evaluate$3.class b/bin/fenetres/evaluate$3.class index e186ad0..b201949 100644 Binary files a/bin/fenetres/evaluate$3.class and b/bin/fenetres/evaluate$3.class differ diff --git a/bin/fenetres/evaluate$30.class b/bin/fenetres/evaluate$30.class index 7683159..2dfbbe6 100644 Binary files a/bin/fenetres/evaluate$30.class and b/bin/fenetres/evaluate$30.class differ diff --git a/bin/fenetres/evaluate$31.class b/bin/fenetres/evaluate$31.class index 26fdb1c..cb062e8 100644 Binary files a/bin/fenetres/evaluate$31.class and b/bin/fenetres/evaluate$31.class differ diff --git a/bin/fenetres/evaluate$32.class b/bin/fenetres/evaluate$32.class index 9cb468f..d1b5a25 100644 Binary files a/bin/fenetres/evaluate$32.class and b/bin/fenetres/evaluate$32.class differ diff --git a/bin/fenetres/evaluate$33.class b/bin/fenetres/evaluate$33.class index 3859207..bde498b 100644 Binary files a/bin/fenetres/evaluate$33.class and b/bin/fenetres/evaluate$33.class differ diff --git a/bin/fenetres/evaluate$4.class b/bin/fenetres/evaluate$4.class index 6247e88..6b2a64b 100644 Binary files a/bin/fenetres/evaluate$4.class and b/bin/fenetres/evaluate$4.class differ diff --git a/bin/fenetres/evaluate$5.class b/bin/fenetres/evaluate$5.class index 02e483c..5841501 100644 Binary files a/bin/fenetres/evaluate$5.class and b/bin/fenetres/evaluate$5.class differ diff --git a/bin/fenetres/evaluate$6.class b/bin/fenetres/evaluate$6.class index be03f50..0479e69 100644 Binary files a/bin/fenetres/evaluate$6.class and b/bin/fenetres/evaluate$6.class differ diff --git a/bin/fenetres/evaluate$7.class b/bin/fenetres/evaluate$7.class index 744fcfe..7d1c2e1 100644 Binary files a/bin/fenetres/evaluate$7.class and b/bin/fenetres/evaluate$7.class differ diff --git a/bin/fenetres/evaluate$8.class b/bin/fenetres/evaluate$8.class index e63de34..5529f10 100644 Binary files a/bin/fenetres/evaluate$8.class and b/bin/fenetres/evaluate$8.class differ diff --git a/bin/fenetres/evaluate$9.class b/bin/fenetres/evaluate$9.class index 44edb77..e1a16d4 100644 Binary files a/bin/fenetres/evaluate$9.class and b/bin/fenetres/evaluate$9.class differ diff --git a/bin/fenetres/evaluate.class b/bin/fenetres/evaluate.class index 01c61f1..ef26a28 100644 Binary files a/bin/fenetres/evaluate.class and b/bin/fenetres/evaluate.class differ diff --git a/bin/fenetres/evaluerLesFichiersEtudiants.class b/bin/fenetres/evaluerLesFichiersEtudiants.class deleted file mode 100644 index b5132b7..0000000 Binary files a/bin/fenetres/evaluerLesFichiersEtudiants.class and /dev/null differ diff --git a/bin/fenetres/proprieteFichierAnalyse$1.class b/bin/fenetres/proprieteFichierAnalyse$1.class index 07b711f..a4a4673 100644 Binary files a/bin/fenetres/proprieteFichierAnalyse$1.class and b/bin/fenetres/proprieteFichierAnalyse$1.class differ diff --git a/bin/fenetres/proprieteFichierAnalyse$10.class b/bin/fenetres/proprieteFichierAnalyse$10.class index 72a598c..3868e24 100644 Binary files a/bin/fenetres/proprieteFichierAnalyse$10.class and b/bin/fenetres/proprieteFichierAnalyse$10.class differ diff --git a/bin/fenetres/proprieteFichierAnalyse$11.class b/bin/fenetres/proprieteFichierAnalyse$11.class index 7f46eed..25d7830 100644 Binary files a/bin/fenetres/proprieteFichierAnalyse$11.class and b/bin/fenetres/proprieteFichierAnalyse$11.class differ diff --git a/bin/fenetres/proprieteFichierAnalyse$12.class b/bin/fenetres/proprieteFichierAnalyse$12.class index 2b63639..ccc3185 100644 Binary files a/bin/fenetres/proprieteFichierAnalyse$12.class and b/bin/fenetres/proprieteFichierAnalyse$12.class differ diff --git a/bin/fenetres/proprieteFichierAnalyse$13.class b/bin/fenetres/proprieteFichierAnalyse$13.class index e65e118..ecc0901 100644 Binary files a/bin/fenetres/proprieteFichierAnalyse$13.class and b/bin/fenetres/proprieteFichierAnalyse$13.class differ diff --git a/bin/fenetres/proprieteFichierAnalyse$14.class b/bin/fenetres/proprieteFichierAnalyse$14.class index 481a969..ef730cd 100644 Binary files a/bin/fenetres/proprieteFichierAnalyse$14.class and b/bin/fenetres/proprieteFichierAnalyse$14.class differ diff --git a/bin/fenetres/proprieteFichierAnalyse$15.class b/bin/fenetres/proprieteFichierAnalyse$15.class index 9e5cc60..a9ee4dc 100644 Binary files a/bin/fenetres/proprieteFichierAnalyse$15.class and b/bin/fenetres/proprieteFichierAnalyse$15.class differ diff --git a/bin/fenetres/proprieteFichierAnalyse$16.class b/bin/fenetres/proprieteFichierAnalyse$16.class index daae728..da6d102 100644 Binary files a/bin/fenetres/proprieteFichierAnalyse$16.class and b/bin/fenetres/proprieteFichierAnalyse$16.class differ diff --git a/bin/fenetres/proprieteFichierAnalyse$17.class b/bin/fenetres/proprieteFichierAnalyse$17.class index 6bae9bb..b67565f 100644 Binary files a/bin/fenetres/proprieteFichierAnalyse$17.class and b/bin/fenetres/proprieteFichierAnalyse$17.class differ diff --git a/bin/fenetres/proprieteFichierAnalyse$18.class b/bin/fenetres/proprieteFichierAnalyse$18.class index cb5dc26..15c7336 100644 Binary files a/bin/fenetres/proprieteFichierAnalyse$18.class and b/bin/fenetres/proprieteFichierAnalyse$18.class differ diff --git a/bin/fenetres/proprieteFichierAnalyse$19.class b/bin/fenetres/proprieteFichierAnalyse$19.class index 8c76422..ddbb790 100644 Binary files a/bin/fenetres/proprieteFichierAnalyse$19.class and b/bin/fenetres/proprieteFichierAnalyse$19.class differ diff --git a/bin/fenetres/proprieteFichierAnalyse$2.class b/bin/fenetres/proprieteFichierAnalyse$2.class index 6cbcb7d..314bc1f 100644 Binary files a/bin/fenetres/proprieteFichierAnalyse$2.class and b/bin/fenetres/proprieteFichierAnalyse$2.class differ diff --git a/bin/fenetres/proprieteFichierAnalyse$20.class b/bin/fenetres/proprieteFichierAnalyse$20.class index 25f2a51..4df2a12 100644 Binary files a/bin/fenetres/proprieteFichierAnalyse$20.class and b/bin/fenetres/proprieteFichierAnalyse$20.class differ diff --git a/bin/fenetres/proprieteFichierAnalyse$21.class b/bin/fenetres/proprieteFichierAnalyse$21.class index 8270861..2f28381 100644 Binary files a/bin/fenetres/proprieteFichierAnalyse$21.class and b/bin/fenetres/proprieteFichierAnalyse$21.class differ diff --git a/bin/fenetres/proprieteFichierAnalyse$22.class b/bin/fenetres/proprieteFichierAnalyse$22.class index 0011b18..fac4464 100644 Binary files a/bin/fenetres/proprieteFichierAnalyse$22.class and b/bin/fenetres/proprieteFichierAnalyse$22.class differ diff --git a/bin/fenetres/proprieteFichierAnalyse$3.class b/bin/fenetres/proprieteFichierAnalyse$3.class index 15541bf..b4ffcf0 100644 Binary files a/bin/fenetres/proprieteFichierAnalyse$3.class and b/bin/fenetres/proprieteFichierAnalyse$3.class differ diff --git a/bin/fenetres/proprieteFichierAnalyse$4.class b/bin/fenetres/proprieteFichierAnalyse$4.class index ebbfc56..276d83d 100644 Binary files a/bin/fenetres/proprieteFichierAnalyse$4.class and b/bin/fenetres/proprieteFichierAnalyse$4.class differ diff --git a/bin/fenetres/proprieteFichierAnalyse$5.class b/bin/fenetres/proprieteFichierAnalyse$5.class index eaf8568..f55c40d 100644 Binary files a/bin/fenetres/proprieteFichierAnalyse$5.class and b/bin/fenetres/proprieteFichierAnalyse$5.class differ diff --git a/bin/fenetres/proprieteFichierAnalyse$6.class b/bin/fenetres/proprieteFichierAnalyse$6.class index 23d8551..d617b5b 100644 Binary files a/bin/fenetres/proprieteFichierAnalyse$6.class and b/bin/fenetres/proprieteFichierAnalyse$6.class differ diff --git a/bin/fenetres/proprieteFichierAnalyse$7.class b/bin/fenetres/proprieteFichierAnalyse$7.class index 8b8c23e..5dd480d 100644 Binary files a/bin/fenetres/proprieteFichierAnalyse$7.class and b/bin/fenetres/proprieteFichierAnalyse$7.class differ diff --git a/bin/fenetres/proprieteFichierAnalyse$8.class b/bin/fenetres/proprieteFichierAnalyse$8.class index 2d496e3..f087931 100644 Binary files a/bin/fenetres/proprieteFichierAnalyse$8.class and b/bin/fenetres/proprieteFichierAnalyse$8.class differ diff --git a/bin/fenetres/proprieteFichierAnalyse$9.class b/bin/fenetres/proprieteFichierAnalyse$9.class index 0fa8c56..944fe0b 100644 Binary files a/bin/fenetres/proprieteFichierAnalyse$9.class and b/bin/fenetres/proprieteFichierAnalyse$9.class differ diff --git a/bin/fenetres/proprieteFichierAnalyse.class b/bin/fenetres/proprieteFichierAnalyse.class index f3803ae..f5b2056 100644 Binary files a/bin/fenetres/proprieteFichierAnalyse.class and b/bin/fenetres/proprieteFichierAnalyse.class differ diff --git a/src/fenetres/evaluerLesFichiersEtudiants.java b/src/evaluer/evaluerLesFichiersEtudiants.java similarity index 97% rename from src/fenetres/evaluerLesFichiersEtudiants.java rename to src/evaluer/evaluerLesFichiersEtudiants.java index b591607..e10eb3a 100644 --- a/src/fenetres/evaluerLesFichiersEtudiants.java +++ b/src/evaluer/evaluerLesFichiersEtudiants.java @@ -1,4 +1,4 @@ -package fenetres; +package evaluer; import java.io.IOException; import java.text.ParseException; @@ -16,7 +16,7 @@ import MEPTL.verificationFichierAnalyse; import cXML.Run; import cXML.node; import calcul.calculIntervalleBaremeABCDE; -import evaluer.analyseFichier; +import fenetres.baliseStyle; import net.lingala.zip4j.exception.ZipException; public class evaluerLesFichiersEtudiants implements Runnable{ diff --git a/src/fenetres/evaluate.java b/src/fenetres/evaluate.java index 7afdc84..313a119 100644 --- a/src/fenetres/evaluate.java +++ b/src/fenetres/evaluate.java @@ -43,6 +43,7 @@ import action.actLicence; import action.actTutoriels; import cXML.Run; import cXML.node; +import evaluer.evaluerLesFichiersEtudiants; import net.miginfocom.swing.MigLayout; /** diff --git a/src/fenetres/proprieteFichierAnalyse.java b/src/fenetres/proprieteFichierAnalyse.java index f0486f8..9d22cab 100644 --- a/src/fenetres/proprieteFichierAnalyse.java +++ b/src/fenetres/proprieteFichierAnalyse.java @@ -1,6 +1,7 @@ package fenetres; +import java.awt.Color; import java.awt.Font; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; @@ -73,6 +74,11 @@ public final class proprieteFichierAnalyse extends JFrame { private JLabel lblNewLabel_14; private JTextField textField_dateModificationMini; private JLabel lblNewLabel_15; + private JLabel lblNewLabel_16; + private JLabel lblNewLabel_17; + private JLabel lblNewLabel_18; + private JLabel lblNewLabel_19; + private JLabel lblNewLabel_20; @@ -86,7 +92,7 @@ public final class proprieteFichierAnalyse extends JFrame { setTitle("Propriétés du fichier d'analyse - " + commandes.version + " " + commandes.branch); setIconImage(img.getImage()); - setBounds(0, 0, 1200, 583); + setBounds(0, 0, 1220, 680); setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); int screenWidth = (int) java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWindowBounds().getWidth(); @@ -95,105 +101,18 @@ public final class proprieteFichierAnalyse extends JFrame { contentPane = new JPanel(); setContentPane(contentPane); - contentPane.setLayout(new MigLayout("", "[260px][260px,grow][10,grow 20][10px:10px:10px][260px][260px][10,grow 20]", "[18px][18px][18px][30px][18px][18px][18px][30px][45px][18px][18px][60px:60px:120px]")); + contentPane.setLayout(new MigLayout("", "[260px][260px,grow][10,grow 20][2px:12px:24px][260px][260px][10,grow 20]", "[18px][18px][18px][30px][18px][18px][64px:64px:100px][18px][18px][16px:16px:16px][18px][18px][18px][][]")); + - JLabel lblNewLabel = new JLabel("Titre de l'exercice"); - lblNewLabel.setFont(new Font("Tahoma", Font.PLAIN, 12)); - contentPane.add(lblNewLabel, "cell 0 0,alignx left,aligny center"); + lblNewLabel_17 = new JLabel("INFORMATIONS"); + lblNewLabel_17.setForeground(new Color(0, 0, 255)); + lblNewLabel_17.setFont(new Font("Tahoma", Font.BOLD, 16)); + contentPane.add(lblNewLabel_17, "cell 0 0,alignx left,aligny bottom"); - textFieldTitre = new JTextField(); - textFieldTitre.setFont(new Font("Tahoma", Font.PLAIN, 12)); - contentPane.add(textFieldTitre, "cell 1 0,grow"); - textFieldTitre.setColumns(10); - if(commandes.sujet.getAttributs().get("titre")!=null){ - textFieldTitre.setText(commandes.sujet.getAttributs().get("titre")); - } - - btnAideTitre = new JButton(""); - btnAideTitre.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent e) { - JOptionPane.showInternalMessageDialog(null, "Le titre de l'exercice apparaît
dans les feedbacks des étudiants."); - } - }); - btnAideTitre.setIcon(new ImageIcon(proprieteFichierAnalyse.class.getResource("/resources/whatmini.png"))); - contentPane.add(btnAideTitre, "cell 2 0"); - - JLabel lblNewLabel_6 = new JLabel("Le suivi des modifications doit être activé dans les fichiers des étudiants."); - lblNewLabel_6.setFont(new Font("Tahoma", Font.PLAIN, 12)); - contentPane.add(lblNewLabel_6, "cell 4 0,alignx left"); - - comboBoxhistoriquePresent = new JComboBox(); - comboBoxhistoriquePresent.setModel(new DefaultComboBoxModel(new String[] {"false", "true"})); - comboBoxhistoriquePresent.setFont(new Font("Tahoma", Font.BOLD, 12)); - contentPane.add(comboBoxhistoriquePresent, "cell 5 0,growx,aligny top"); - - btnAideHistoriquePresent = new JButton(""); - btnAideHistoriquePresent.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent e) { - JOptionPane.showInternalMessageDialog(null, "Si VRAI alors le suivi des modifications doit être activé dans les fichiers des étudiants.
" - + "Si ce n'est pas le cas alors l'étudiant aura une note nulle.

" - + "L'étudiant doit utiliser le fichier remis par l'enseignant.
" - + "L'enseignant aura activé le suivi des modifications et protégé le suivi par un mot de passe.

" - + "Cette technique peut être utilisée durant les contrôles.
" - + "Elle permettra de rechercher les fichiers échangés entre les étudiants en comparant les modifications."); - } - }); - btnAideHistoriquePresent.setIcon(new ImageIcon(proprieteFichierAnalyse.class.getResource("/resources/whatmini.png"))); - contentPane.add(btnAideHistoriquePresent, "cell 6 0"); - - JLabel lblNewLabel_1 = new JLabel("Auteur"); - lblNewLabel_1.setFont(new Font("Tahoma", Font.PLAIN, 12)); - contentPane.add(lblNewLabel_1, "cell 0 1,alignx left,aligny center"); - - textFieldAuteur = new JTextField(); - textFieldAuteur.setFont(new Font("Tahoma", Font.PLAIN, 12)); - contentPane.add(textFieldAuteur, "cell 1 1,grow"); - textFieldAuteur.setColumns(10); - if(commandes.sujet.getAttributs().get("auteur")!=null){ - textFieldAuteur.setText(commandes.sujet.getAttributs().get("auteur")); - } - - btnAideAuteur = new JButton(""); - btnAideAuteur.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent e) { - JOptionPane.showInternalMessageDialog(null, "L'auteur de l'exercice apparaît
dans les feedbacks des étudiants."); - } - }); - btnAideAuteur.setIcon(new ImageIcon(proprieteFichierAnalyse.class.getResource("/resources/whatmini.png"))); - contentPane.add(btnAideAuteur, "cell 2 1"); - - - JLabel lblNewLabel_7 = new JLabel("La date de création du fichier transmis aux étudiants."); - lblNewLabel_7.setFont(new Font("Tahoma", Font.PLAIN, 12)); - contentPane.add(lblNewLabel_7, "cell 4 1,alignx left"); - - textFieldDateCreation = new JTextField(); - textFieldDateCreation.setFont(new Font("Tahoma", Font.PLAIN, 12)); - contentPane.add(textFieldDateCreation, "cell 5 1,growx"); - textFieldDateCreation.setColumns(10); - - btnAideDateCreation = new JButton(""); - btnAideDateCreation.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent e) { - JOptionPane.showInternalMessageDialog(null, "Ne modifier pas cette date.
" - + "Sauf, si vous avez remis aux étudiants un nouveau fichier."); - } - }); - btnAideDateCreation.setIcon(new ImageIcon(proprieteFichierAnalyse.class.getResource("/resources/whatmini.png"))); - contentPane.add(btnAideDateCreation, "cell 6 1"); - - JLabel lblNewLabel_2 = new JLabel("metaSujet"); - lblNewLabel_2.setFont(new Font("Tahoma", Font.PLAIN, 12)); - contentPane.add(lblNewLabel_2, "cell 0 2,alignx left,aligny center"); - - // Meta - textFieldMetaSujet = new JTextField(); - textFieldMetaSujet.setFont(new Font("Tahoma", Font.PLAIN, 12)); - contentPane.add(textFieldMetaSujet, "cell 1 2,grow"); - textFieldMetaSujet.setColumns(10); - if(commandes.sujet.getAttributs().get("metaSujet")!=null){ - textFieldMetaSujet.setText(commandes.sujet.getAttributs().get("metaSujet")); - } + lblNewLabel_16 = new JLabel("VERIFICATIONS FICHIER TRANSMIS"); + lblNewLabel_16.setForeground(new Color(255, 0, 0)); + lblNewLabel_16.setFont(new Font("Tahoma", Font.BOLD, 16)); + contentPane.add(lblNewLabel_16, "cell 4 0,alignx left,aligny bottom"); btnAideMetaSujet = new JButton(""); btnAideMetaSujet.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { @@ -203,43 +122,64 @@ public final class proprieteFichierAnalyse extends JFrame { + "alors il peut y avoir comparaison avec cet valeur (voir la valeur logique suivante)."); } }); - btnAideMetaSujet.setIcon(new ImageIcon(proprieteFichierAnalyse.class.getResource("/resources/whatmini.png"))); - contentPane.add(btnAideMetaSujet, "cell 2 2"); - lblNewLabel_8 = new JLabel("La date de création dans les fichers des étudiants doit être le même que celui du fichier fourni."); - lblNewLabel_8.setFont(new Font("Tahoma", Font.PLAIN, 12)); - contentPane.add(lblNewLabel_8, "cell 4 2,alignx trailing"); + JLabel lblNewLabel = new JLabel("Titre de l'exercice"); + lblNewLabel.setFont(new Font("Tahoma", Font.PLAIN, 12)); + contentPane.add(lblNewLabel, "cell 0 1,alignx left,aligny center"); - comboBoxcontroleDateCreation = new JComboBox(); - comboBoxcontroleDateCreation.setModel(new DefaultComboBoxModel(new String[] {"false", "true"})); - comboBoxcontroleDateCreation.setFont(new Font("Tahoma", Font.BOLD, 12)); - contentPane.add(comboBoxcontroleDateCreation, "cell 5 2,growx,aligny top"); + textFieldTitre = new JTextField(); + textFieldTitre.setFont(new Font("Tahoma", Font.PLAIN, 12)); + contentPane.add(textFieldTitre, "cell 1 1,grow"); + textFieldTitre.setColumns(10); - btnAideControleDateCreation = new JButton(""); - btnAideControleDateCreation.addActionListener(new ActionListener() { + btnAideTitre = new JButton(""); + btnAideTitre.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { - JOptionPane.showInternalMessageDialog(null, "Si VRAI alors la date de création du fichier de l'étudiant doit être identique à celle-ci.
" - + "Si ce n'est pas le cas alors l'étudiant aura une note nulle.

" - + "L'étudiant doit utiliser le fichier remis par l'enseignant.

" - + "Cette technique peut être utilisée durant les contrôles.
" - + "Elle permettra de rechercher les fichiers réïnitialisés pour effacer l'historique."); + JOptionPane.showInternalMessageDialog(null, "Le titre de l'exercice apparaît
dans les feedbacks des étudiants."); } }); - btnAideControleDateCreation.setIcon(new ImageIcon(proprieteFichierAnalyse.class.getResource("/resources/whatmini.png"))); - contentPane.add(btnAideControleDateCreation, "cell 6 2,aligny top"); + btnAideTitre.setIcon(new ImageIcon(proprieteFichierAnalyse.class.getResource("/resources/whatmini.png"))); + contentPane.add(btnAideTitre, "cell 2 1,aligny top"); + + JLabel lblNewLabel_2 = new JLabel("La propriété Sujet dans le fichier transmis."); + lblNewLabel_2.setFont(new Font("Tahoma", Font.PLAIN, 12)); + contentPane.add(lblNewLabel_2, "cell 4 1,alignx left,aligny center"); + + // Meta + textFieldMetaSujet = new JTextField(); + textFieldMetaSujet.setFont(new Font("Tahoma", Font.PLAIN, 12)); + contentPane.add(textFieldMetaSujet, "cell 5 1,grow"); + textFieldMetaSujet.setColumns(10); + btnAideMetaSujet.setIcon(new ImageIcon(proprieteFichierAnalyse.class.getResource("/resources/whatmini.png"))); + contentPane.add(btnAideMetaSujet, "cell 6 1,aligny top"); + + + JLabel lblNewLabel_1 = new JLabel("Auteur"); + lblNewLabel_1.setFont(new Font("Tahoma", Font.PLAIN, 12)); + contentPane.add(lblNewLabel_1, "cell 0 2,alignx left,aligny center"); + + textFieldAuteur = new JTextField(); + textFieldAuteur.setFont(new Font("Tahoma", Font.PLAIN, 12)); + contentPane.add(textFieldAuteur, "cell 1 2,grow"); + textFieldAuteur.setColumns(10); + + btnAideAuteur = new JButton(""); + btnAideAuteur.addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent e) { + JOptionPane.showInternalMessageDialog(null, "L'auteur de l'exercice apparaît
dans les feedbacks des étudiants."); + } + }); + btnAideAuteur.setIcon(new ImageIcon(proprieteFichierAnalyse.class.getResource("/resources/whatmini.png"))); + contentPane.add(btnAideAuteur, "cell 2 2,aligny top"); JLabel lblNewLabel_3 = new JLabel("

Propriété personnalisé Sujet obligatoire
dans les fichiers des étudiants.

" ); lblNewLabel_3.setFont(new Font("Tahoma", Font.PLAIN, 12)); - contentPane.add(lblNewLabel_3, "cell 0 3,alignx left,aligny center"); - + contentPane.add(lblNewLabel_3, "cell 4 2,alignx left,aligny center"); comboBoxPresenceMetaSujet = new JComboBox(); comboBoxPresenceMetaSujet.setFont(new Font("Tahoma", Font.BOLD, 12)); comboBoxPresenceMetaSujet.setModel(new DefaultComboBoxModel(new String[] {"false", "true"})); - contentPane.add(comboBoxPresenceMetaSujet, "cell 1 3,growx,aligny top"); - if(commandes.sujet.getAttributs().get("presenceMetaSujet")!=null){ - comboBoxPresenceMetaSujet.setSelectedItem(commandes.sujet.getAttributs().get("presenceMetaSujet").toLowerCase()); - } + contentPane.add(comboBoxPresenceMetaSujet, "cell 5 2,growx,aligny top"); btnAidePresenceMetaSujet = new JButton(""); btnAidePresenceMetaSujet.addActionListener(new ActionListener() { @@ -252,15 +192,119 @@ public final class proprieteFichierAnalyse extends JFrame { } }); btnAidePresenceMetaSujet.setIcon(new ImageIcon(proprieteFichierAnalyse.class.getResource("/resources/whatmini.png"))); - contentPane.add(btnAidePresenceMetaSujet, "cell 2 3"); + contentPane.add(btnAidePresenceMetaSujet, "cell 6 2,aligny top"); + + lblNewLabel_11 = new JLabel("Lien URL de l'aide"); + lblNewLabel_11.setFont(new Font("Tahoma", Font.PLAIN, 12)); + contentPane.add(lblNewLabel_11, "cell 0 4,alignx left"); + + textFieldlink_help = new JTextField(); + textFieldlink_help.setFont(new Font("Tahoma", Font.PLAIN, 12)); + contentPane.add(textFieldlink_help, "cell 1 4,grow"); + textFieldlink_help.setColumns(10); + btnAidecontrole_URLAide = new JButton(""); + btnAidecontrole_URLAide.addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent e) { + JOptionPane.showInternalMessageDialog(null, "Si vous indiquez une URL alors elle apparaîtra dans" + + "le feedback des étudiants."); + } + }); + btnAidecontrole_URLAide.setIcon(new ImageIcon(proprieteFichierAnalyse.class.getResource("/resources/whatmini.png"))); + contentPane.add(btnAidecontrole_URLAide, "cell 2 4,aligny top"); + + + JLabel lblNewLabel_7 = new JLabel("La date de création du fichier transmis aux étudiants."); + lblNewLabel_7.setFont(new Font("Tahoma", Font.PLAIN, 12)); + contentPane.add(lblNewLabel_7, "cell 4 4,alignx left"); + + textFieldDateCreation = new JTextField(); + textFieldDateCreation.setFont(new Font("Tahoma", Font.PLAIN, 12)); + contentPane.add(textFieldDateCreation, "cell 5 4,grow"); + textFieldDateCreation.setColumns(10); + + btnAideDateCreation = new JButton(""); + btnAideDateCreation.addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent e) { + JOptionPane.showInternalMessageDialog(null, "Ne modifier pas cette date.
" + + "Sauf, si vous avez remis aux étudiants un nouveau fichier."); + } + }); + btnAideDateCreation.setIcon(new ImageIcon(proprieteFichierAnalyse.class.getResource("/resources/whatmini.png"))); + contentPane.add(btnAideDateCreation, "cell 6 4,aligny top"); + + // URL Aide + lblNewLabel_12 = new JLabel("Lien URL du sujet"); + lblNewLabel_12.setFont(new Font("Tahoma", Font.PLAIN, 12)); + contentPane.add(lblNewLabel_12, "cell 0 5,alignx left"); + + + + // URL Sujet Ligne 13 + textFieldlink_sujet = new JTextField(); + contentPane.add(textFieldlink_sujet, "cell 1 5,grow"); + textFieldlink_sujet.setColumns(10); + btnAidecontrole_URLSujet = new JButton(""); + btnAidecontrole_URLSujet.addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent e) { + JOptionPane.showInternalMessageDialog(null, "Si vous indiquez une URL alors elle apparaîtra dans" + + "le feedback des étudiants."); + } + }); + btnAidecontrole_URLSujet.setIcon(new ImageIcon(proprieteFichierAnalyse.class.getResource("/resources/whatmini.png"))); + contentPane.add(btnAidecontrole_URLSujet, "cell 2 5,aligny top"); + + lblNewLabel_8 = new JLabel("La date de création dans les fichers des étudiants doit être le même que celui du fichier transmis."); + lblNewLabel_8.setFont(new Font("Tahoma", Font.PLAIN, 12)); + contentPane.add(lblNewLabel_8, "cell 4 5,alignx trailing"); + + comboBoxcontroleDateCreation = new JComboBox(); + comboBoxcontroleDateCreation.setModel(new DefaultComboBoxModel(new String[] {"false", "true"})); + comboBoxcontroleDateCreation.setFont(new Font("Tahoma", Font.BOLD, 12)); + contentPane.add(comboBoxcontroleDateCreation, "cell 5 5,growx,aligny top"); + + btnAideControleDateCreation = new JButton(""); + btnAideControleDateCreation.addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent e) { + JOptionPane.showInternalMessageDialog(null, "Si VRAI alors la date de création du fichier de l'étudiant doit être identique à celle-ci.
" + + "Si ce n'est pas le cas alors l'étudiant aura une note nulle.

" + + "L'étudiant doit utiliser le fichier remis par l'enseignant.

" + + "Cette technique peut être utilisée durant les contrôles.
" + + "Elle permettra de rechercher les fichiers réïnitialisés pour effacer l'historique."); + } + }); + btnAideControleDateCreation.setIcon(new ImageIcon(proprieteFichierAnalyse.class.getResource("/resources/whatmini.png"))); + contentPane.add(btnAideControleDateCreation, "cell 6 5,aligny top"); + + // Commentaire exercice Ligne 14 + lblNewLabel_13 = new JLabel("Commentaire sur l'exercice"); + lblNewLabel_13.setFont(new Font("Tahoma", Font.PLAIN, 12)); + contentPane.add(lblNewLabel_13, "cell 0 6,alignx left"); + + textAreaCommentaire = new JTextArea(); + textAreaCommentaire.setFont(new Font("Tahoma", Font.PLAIN, 12)); + contentPane.add(textAreaCommentaire, "cell 1 6,grow"); + btnAidecontrole_Commentaire = new JButton(""); + btnAidecontrole_Commentaire.addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent e) { + JOptionPane.showInternalMessageDialog(null, "Si vous tapez un commentaire, " + + "il apparaîtra dans les feedbacks des étudiants."); + } + }); + btnAidecontrole_Commentaire.setIcon(new ImageIcon(proprieteFichierAnalyse.class.getResource("/resources/whatmini.png"))); + contentPane.add(btnAidecontrole_Commentaire, "cell 2 6,aligny top"); + + lblNewLabel_18 = new JLabel("NOTATIONS"); + lblNewLabel_18.setForeground(new Color(0, 128, 128)); + lblNewLabel_18.setFont(new Font("Tahoma", Font.BOLD, 16)); + contentPane.add(lblNewLabel_18, "cell 0 7,aligny bottom"); lblNewLabel_9 = new JLabel("Auteur du fichier transmis aux étudiants."); lblNewLabel_9.setFont(new Font("Tahoma", Font.PLAIN, 12)); - contentPane.add(lblNewLabel_9, "cell 4 3,alignx left"); + contentPane.add(lblNewLabel_9, "cell 4 7,alignx left"); textFieldInitial_Creator = new JTextField(); textFieldInitial_Creator.setFont(new Font("Tahoma", Font.PLAIN, 12)); - contentPane.add(textFieldInitial_Creator, "cell 5 3,growx"); + contentPane.add(textFieldInitial_Creator, "cell 5 7,grow"); textFieldInitial_Creator.setColumns(10); btnAideInitial_Creator = new JButton(""); @@ -271,38 +315,26 @@ public final class proprieteFichierAnalyse extends JFrame { } }); btnAideInitial_Creator.setIcon(new ImageIcon(proprieteFichierAnalyse.class.getResource("/resources/whatmini.png"))); - contentPane.add(btnAideInitial_Creator, "cell 6 3"); - + contentPane.add(btnAideInitial_Creator, "cell 6 7,aligny top"); + JLabel lblNewLabel_4 = new JLabel("Barème alphabétique ABCDE"); lblNewLabel_4.setFont(new Font("Tahoma", Font.PLAIN, 12)); - contentPane.add(lblNewLabel_4, "cell 0 4,alignx left"); + contentPane.add(lblNewLabel_4, "cell 0 8,alignx left"); comboBoxBaremeABC = new JComboBox(); comboBoxBaremeABC.setModel(new DefaultComboBoxModel(new String[] {"false", "true"})); comboBoxBaremeABC.setFont(new Font("Tahoma", Font.BOLD, 12)); - contentPane.add(comboBoxBaremeABC, "cell 1 4,growx"); - if(commandes.sujet.getAttributs().get("baremeABC")!=null){ - comboBoxBaremeABC.setSelectedItem(commandes.sujet.getAttributs().get("baremeABC").toLowerCase()); - } + contentPane.add(comboBoxBaremeABC, "cell 1 8,growx"); - btnAideBaremeABC = new JButton(""); - btnAideBaremeABC.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent e) { - JOptionPane.showMessageDialog(null, "Permet d'utiliser une notation alphabétique à 5 niveaux (de A à E).
" - + "Si le coefficient de progression est de 1 alors la largeur des intervalles est de 20%."); - } - }); - btnAideBaremeABC.setIcon(new ImageIcon(proprieteFichierAnalyse.class.getResource("/resources/whatmini.png"))); - contentPane.add(btnAideBaremeABC, "flowx,cell 2 4"); - - lblNewLabel_10 = new JLabel("L'auteur des fichiers des étudiants doit être celui du fichier transmis."); - lblNewLabel_10.setFont(new Font("Tahoma", Font.PLAIN, 12)); - contentPane.add(lblNewLabel_10, "cell 4 4,alignx trailing"); + + lblNewLabel_10 = new JLabel("L'auteur des fichiers des étudiants doit être celui du fichier transmis."); + lblNewLabel_10.setFont(new Font("Tahoma", Font.PLAIN, 12)); + contentPane.add(lblNewLabel_10, "cell 4 8,alignx trailing"); comboBoxcontrole_Initial_Creator = new JComboBox(); comboBoxcontrole_Initial_Creator.setModel(new DefaultComboBoxModel(new String[] {"false", "true"})); comboBoxcontrole_Initial_Creator.setFont(new Font("Tahoma", Font.BOLD, 12)); - contentPane.add(comboBoxcontrole_Initial_Creator, "cell 5 4,growx,aligny top"); + contentPane.add(comboBoxcontrole_Initial_Creator, "cell 5 8,growx,aligny top"); btnAidecontrole_Initial_Creator = new JButton(""); btnAidecontrole_Initial_Creator.addActionListener(new ActionListener() { @@ -313,256 +345,11 @@ public final class proprieteFichierAnalyse extends JFrame { } }); btnAidecontrole_Initial_Creator.setIcon(new ImageIcon(proprieteFichierAnalyse.class.getResource("/resources/whatmini.png"))); - contentPane.add(btnAidecontrole_Initial_Creator, "cell 6 4"); - - + contentPane.add(btnAidecontrole_Initial_Creator, "cell 6 8,aligny top"); JLabel lblNoteFrom = new JLabel("Barème"); lblNoteFrom.setFont(new Font("Tahoma", Font.PLAIN, 12)); - contentPane.add(lblNoteFrom, "cell 0 5,alignx left"); - - textFieldNoteFrom = new JTextField(); - textFieldNoteFrom.setFont(new Font("Tahoma", Font.PLAIN, 12)); - contentPane.add(textFieldNoteFrom, "cell 1 5,growx,aligny center"); - textFieldNoteFrom.setColumns(10); - if(commandes.sujet.getAttributs().get("notefrom")!=null){ - textFieldNoteFrom.setText(commandes.sujet.getAttributs().get("notefrom")); - } - - btnAideNoteFrom = new JButton(""); - btnAideNoteFrom.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent e) { - JOptionPane.showMessageDialog(null, "La notation par défaut est numérique.
" - + "La note maximale est par défaut de 20 points.
" - + "La note maximale doit être une valeur supérieur strictement 0 point.

" - + "Si le coefficient de progression est de 1 alors un exercice à 50% correct
" - + "aura la note (maximale/2)."); - } - }); - btnAideNoteFrom.setIcon(new ImageIcon(proprieteFichierAnalyse.class.getResource("/resources/whatmini.png"))); - contentPane.add(btnAideNoteFrom, "flowx,cell 2 5"); - - lblNewLabel_14 = new JLabel("La date et heure du début du contrôle.
C'est la date de modification qui doit être la plus ancienne dans le fichier des étudiants."); - lblNewLabel_14.setFont(new Font("Tahoma", Font.PLAIN, 12)); - contentPane.add(lblNewLabel_14, "cell 4 5,alignx left"); - textField_dateModificationMini = new JTextField(); - textField_dateModificationMini.setFont(new Font("Tahoma", Font.PLAIN, 12)); - contentPane.add(textField_dateModificationMini, "cell 5 5,growx,aligny center"); - textField_dateModificationMini.setColumns(10); - btnAidecontrole_dateModificationMini = new JButton(""); - btnAidecontrole_dateModificationMini.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent e) { - JOptionPane.showInternalMessageDialog(null, "Si vous indiquez une date, alors toutes les dates" - + "
de modification dans un fichier doivent être postérieures à la date indiquée."); - } - }); - btnAidecontrole_dateModificationMini.setIcon(new ImageIcon(proprieteFichierAnalyse.class.getResource("/resources/whatmini.png"))); - contentPane.add(btnAidecontrole_dateModificationMini, "cell 6 5"); - - JLabel lblNewLabel_5 = new JLabel("Coefficient de progression"); - lblNewLabel_5.setFont(new Font("Tahoma", Font.PLAIN, 12)); - contentPane.add(lblNewLabel_5, "cell 0 6,alignx left"); - - textFieldProgression = new JTextField(); - contentPane.add(textFieldProgression, "cell 1 6,growx"); - textFieldProgression.setColumns(10); - if(commandes.sujet.getAttributs().get("progression")!=null){ - textFieldProgression.setText(commandes.sujet.getAttributs().get("progression")); - } - if(commandes.sujet.getAttributs().get("historiquePresent")!=null){ - comboBoxhistoriquePresent.setSelectedItem(commandes.sujet.getAttributs().get("historiquePresent").toLowerCase()); - } - - btnAideProgression = new JButton(""); - btnAideProgression.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent e) { - JOptionPane.showMessageDialog(null, "Le coefficient de progression permet de régler la difficulté de l'exercice.

" - + "Le coefficient de progression d'affiche dans les feedbacks des étudiants.

" - + "Le coefficient de progression doit être compris entre ]0 et 10[.
" - + " Un coef. inférieur à 1 signifie qu'il est facile d'atteindre la note maximale
" - + " Un coef. supérieur à 1 signifie qu'il est difficile d'atteindre la note maximale."); - } - }); - btnAideProgression.setIcon(new ImageIcon(proprieteFichierAnalyse.class.getResource("/resources/whatmini.png"))); - contentPane.add(btnAideProgression, "cell 2 6"); - if(commandes.sujet.getAttributs().get("creationDate")!=null){ - textFieldDateCreation.setText(commandes.sujet.getAttributs().get("creationDate")); - } - if(commandes.sujet.getAttributs().get("controleDateCreation")!=null){ - comboBoxcontroleDateCreation.setSelectedItem(commandes.sujet.getAttributs().get("controleDateCreation").toLowerCase()); - } - if(commandes.sujet.getAttributs().get("Initial_Creator")!=null){ - textFieldInitial_Creator.setText(commandes.sujet.getAttributs().get("Initial_Creator")); - } - if(commandes.sujet.getAttributs().get("controle_Initial_Creator")!=null){ - comboBoxcontrole_Initial_Creator.setSelectedItem(commandes.sujet.getAttributs().get("controle_Initial_Creator").toLowerCase()); - } - if(commandes.sujet.getAttributs().get("modificationDateMini")!=null){ - textField_dateModificationMini.setText(commandes.sujet.getAttributs().get("modificationDateMini")); - } - - lblNewLabel_15 = new JLabel("La date des modifications doit être postérieures à la date du début du contrôle."); - lblNewLabel_15.setFont(new Font("Tahoma", Font.PLAIN, 12)); - contentPane.add(lblNewLabel_15, "cell 4 6,alignx left"); - if(commandes.sujet.getAttributs().get("controleDateModificationMini")!=null){ - comboBoxcontrole_modificationDateMini.setSelectedItem(commandes.sujet.getAttributs().get("controleDateModificationMini").toLowerCase()); - } - comboBoxcontrole_modificationDateMini = new JComboBox(); - comboBoxcontrole_modificationDateMini.setModel(new DefaultComboBoxModel(new String[] {"false", "true"})); - comboBoxcontrole_modificationDateMini.setFont(new Font("Tahoma", Font.BOLD, 12)); - contentPane.add(comboBoxcontrole_modificationDateMini, "cell 5 6,growx"); - btnAidecontrole_dateModificationMini = new JButton(""); - btnAidecontrole_dateModificationMini.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent e) { - JOptionPane.showInternalMessageDialog(null, "Si vrai, alors les dates" - + "des modifications dans un fichier
doivent être postérieures à la date indiquée."); - } - }); - btnAidecontrole_dateModificationMini.setIcon(new ImageIcon(proprieteFichierAnalyse.class.getResource("/resources/whatmini.png"))); - contentPane.add(btnAidecontrole_dateModificationMini, "cell 6 6"); - - - lblNewLabel_11 = new JLabel("Lien URL de l'aide"); - lblNewLabel_11.setFont(new Font("Tahoma", Font.PLAIN, 12)); - contentPane.add(lblNewLabel_11, "cell 0 8,alignx left"); - - textFieldlink_help = new JTextField(); - textFieldlink_help.setFont(new Font("Tahoma", Font.PLAIN, 12)); - contentPane.add(textFieldlink_help, "cell 1 8,growx"); - textFieldlink_help.setColumns(10); - btnAidecontrole_URLAide = new JButton(""); - btnAidecontrole_URLAide.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent e) { - JOptionPane.showInternalMessageDialog(null, "Si vous indiquez une URL alors elle apparaîtra dans" - + "le feedback des étudiants."); - } - }); - btnAidecontrole_URLAide.setIcon(new ImageIcon(proprieteFichierAnalyse.class.getResource("/resources/whatmini.png"))); - contentPane.add(btnAidecontrole_URLAide, "cell 2 8"); - if(commandes.sujet.getAttributs().get("link_help")!=null){ - textFieldlink_help.setText(commandes.sujet.getAttributs().get("link_help")); - } - - - - btnVoirBaremeABC = new JButton(""); - btnVoirBaremeABC.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent e) { - double progression = Double.valueOf(textFieldProgression.getText()); - calcul.calculIntervalleBaremeABCDE C = new calcul.calculIntervalleBaremeABCDE(progression); - JOptionPane.showMessageDialog(null, C.getMessageHTMLColonne()); - } - }); - btnVoirBaremeABC.setIcon(new ImageIcon(proprieteFichierAnalyse.class.getResource("/resources/voirmini.png"))); - contentPane.add(btnVoirBaremeABC, "cell 2 4"); - - - // URL Aide - lblNewLabel_12 = new JLabel("Lien URL du sujet"); - lblNewLabel_12.setFont(new Font("Tahoma", Font.PLAIN, 12)); - contentPane.add(lblNewLabel_12, "cell 0 9,alignx left"); - - - - // URL Sujet Ligne 13 - textFieldlink_sujet = new JTextField(); - contentPane.add(textFieldlink_sujet, "cell 1 9,growx"); - textFieldlink_sujet.setColumns(10); - if(commandes.sujet.getAttributs().get("link_sujet")!=null){ - textFieldlink_sujet.setText(commandes.sujet.getAttributs().get("link_sujet")); - } - btnAidecontrole_URLSujet = new JButton(""); - btnAidecontrole_URLSujet.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent e) { - JOptionPane.showInternalMessageDialog(null, "Si vous indiquez une URL alors elle apparaîtra dans" - + "le feedback des étudiants."); - } - }); - btnAidecontrole_URLSujet.setIcon(new ImageIcon(proprieteFichierAnalyse.class.getResource("/resources/whatmini.png"))); - contentPane.add(btnAidecontrole_URLSujet, "cell 2 9"); - - // Commentaire exercice Ligne 14 - lblNewLabel_13 = new JLabel("Commentaire sur l'exercice"); - lblNewLabel_13.setFont(new Font("Tahoma", Font.PLAIN, 12)); - contentPane.add(lblNewLabel_13, "cell 0 11,alignx left"); - - textAreaCommentaire = new JTextArea(); - textAreaCommentaire.setFont(new Font("Tahoma", Font.PLAIN, 12)); - contentPane.add(textAreaCommentaire, "cell 1 11,grow"); - if(!commandes.sujet.getContenu().isEmpty()) { - if(commandes.sujet.getContenu().get(0)!=null) { - String textCommentaire = commandes.sujet.getContenu().get(0).replace("-NewLine-", "\n"); - textAreaCommentaire.setText(textCommentaire); - } - } - - - // Bouton de calcul de la base numérique - btnVoirBaremeNumeric = new JButton(""); - btnVoirBaremeNumeric.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent e) { - double progression = Double.valueOf(textFieldProgression.getText()); - double noteFrom = Double.valueOf(textFieldNoteFrom.getText()); - calculNotesProgression C = new calculNotesProgression(progression,noteFrom); - JOptionPane.showMessageDialog(null, C.getMessageHTMLColonne()); - } - }); - btnVoirBaremeNumeric.setIcon(new ImageIcon(proprieteFichierAnalyse.class.getResource("/resources/voirmini.png"))); - contentPane.add(btnVoirBaremeNumeric, "cell 2 5"); - btnAidecontrole_Commentaire = new JButton(""); - btnAidecontrole_Commentaire.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent e) { - JOptionPane.showInternalMessageDialog(null, "Si vous tapez un commentaire, " - + "il apparaîtra dans les feedbacks des étudiants."); - } - }); - btnAidecontrole_Commentaire.setIcon(new ImageIcon(proprieteFichierAnalyse.class.getResource("/resources/whatmini.png"))); - contentPane.add(btnAidecontrole_Commentaire, "cell 2 11"); - - - // Bouton pour validation - JButton btnNewButton = new JButton("Valider"); - btnNewButton.setFont(new Font("Tahoma", Font.BOLD, 14)); - contentPane.add(btnNewButton, "cell 5 11,grow"); - btnNewButton.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent e) { - - if(verifCoefProgression()&&verifBareme()&&formatDateWriter.isCorrect(textFieldDateCreation.getText()) - &&VerificationDateDuControle()){ - commandes.sujet.getAttributs().put("titre", textFieldTitre.getText() ); - commandes.sujet.getAttributs().put("auteur", textFieldAuteur.getText() ); - commandes.sujet.getAttributs().put("metaSujet", textFieldMetaSujet.getText() ); - commandes.sujet.getAttributs().put("presenceMetaSujet", comboBoxPresenceMetaSujet.getSelectedItem().toString() ); - commandes.sujet.getAttributs().put("baremeABC", comboBoxBaremeABC.getSelectedItem().toString() ); - commandes.sujet.getAttributs().put("notefrom", textFieldNoteFrom.getText() ); - commandes.sujet.getAttributs().put("progression", textFieldProgression.getText() ); - commandes.sujet.getAttributs().put("historiquePresent", comboBoxhistoriquePresent.getSelectedItem().toString() ); - commandes.sujet.getAttributs().put("creationDate", textFieldDateCreation.getText() ); - commandes.sujet.getAttributs().put("modificationDateMini", textField_dateModificationMini.getText() ); - commandes.sujet.getAttributs().put("controleDateCreation", comboBoxcontroleDateCreation.getSelectedItem().toString() ); - commandes.sujet.getAttributs().put("controleDateModificationMini", comboBoxcontrole_modificationDateMini.getSelectedItem().toString() ); - commandes.sujet.getAttributs().put("Initial_Creator", textFieldInitial_Creator.getText() ); - commandes.sujet.getAttributs().put("controle_Initial_Creator", comboBoxcontrole_Initial_Creator.getSelectedItem().toString() ); - commandes.sujet.getAttributs().put("link_help", textFieldlink_help.getText() ); - commandes.sujet.getAttributs().put("link_sujet", textFieldlink_sujet.getText() ); - - String textCommentaire = textAreaCommentaire.getText().replace("\n", "-NewLine-"); - if(!commandes.sujet.getContenu().isEmpty()) { - commandes.sujet.getContenu().remove(0); - commandes.sujet.getContenu().add(0, textCommentaire); - } - - - meptl.chargementParametresFichierAnalyse(); - fenetres.create.getTextNodeSelect().afficheChargementFichierAnalyse(); - - dispose(); - } - - - } - }); - + contentPane.add(lblNoteFrom, "cell 0 9,alignx left"); comboBoxBaremeABC.addActionListener(new ActionListener() { @@ -580,6 +367,252 @@ public final class proprieteFichierAnalyse extends JFrame { } } }); + + btnAideBaremeABC = new JButton(""); + btnAideBaremeABC.addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent e) { + JOptionPane.showMessageDialog(null, "Permet d'utiliser une notation alphabétique à 5 niveaux (de A à E).
" + + "Si le coefficient de progression est de 1 alors la largeur des intervalles est de 20%."); + } + }); + btnAideBaremeABC.setIcon(new ImageIcon(proprieteFichierAnalyse.class.getResource("/resources/whatmini.png"))); + contentPane.add(btnAideBaremeABC, "flowx,cell 2 8,aligny top"); + + textFieldNoteFrom = new JTextField(); + textFieldNoteFrom.setFont(new Font("Tahoma", Font.PLAIN, 12)); + contentPane.add(textFieldNoteFrom, "cell 1 9,grow"); + textFieldNoteFrom.setColumns(10); + + btnAideNoteFrom = new JButton(""); + btnAideNoteFrom.addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent e) { + JOptionPane.showMessageDialog(null, "La notation par défaut est numérique.
" + + "La note maximale est par défaut de 20 points.
" + + "La note maximale doit être une valeur supérieur strictement 0 point.

" + + "Si le coefficient de progression est de 1 alors un exercice à 50% correct
" + + "aura la note (maximale/2)."); + } + }); + btnAideNoteFrom.setIcon(new ImageIcon(proprieteFichierAnalyse.class.getResource("/resources/whatmini.png"))); + contentPane.add(btnAideNoteFrom, "flowx,cell 2 9,aligny top"); + if(!commandes.sujet.getContenu().isEmpty()) { + if(commandes.sujet.getContenu().get(0)!=null) { + String textCommentaire = commandes.sujet.getContenu().get(0).replace("-NewLine-", "\n"); + textAreaCommentaire.setText(textCommentaire); + } + } + + lblNewLabel_19 = new JLabel("VERIFICATION AVEC SUIVI DES MODIFIACTIONS"); + lblNewLabel_19.setForeground(new Color(255, 128, 0)); + lblNewLabel_19.setFont(new Font("Tahoma", Font.BOLD, 16)); + lblNewLabel_19.setToolTipText(""); + contentPane.add(lblNewLabel_19, "cell 4 10"); + + lblNewLabel_20 = new JLabel("L'activation du suivi des modifications permettra de vérifier les échnages des fichiers entres les étudiants et les copiés et collés dans les fichiers."); + lblNewLabel_20.setFont(new Font("Tahoma", Font.PLAIN, 10)); + lblNewLabel_20.setForeground(new Color(232, 116, 0)); + contentPane.add(lblNewLabel_20, "cell 5 10"); + + JLabel lblNewLabel_5 = new JLabel("Coefficient de progression"); + lblNewLabel_5.setFont(new Font("Tahoma", Font.PLAIN, 12)); + contentPane.add(lblNewLabel_5, "cell 0 11,alignx left"); + + textFieldProgression = new JTextField(); + contentPane.add(textFieldProgression, "cell 1 11,grow"); + textFieldProgression.setColumns(10); + + btnAideProgression = new JButton(""); + btnAideProgression.addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent e) { + JOptionPane.showMessageDialog(null, "Le coefficient de progression permet de régler la difficulté de l'exercice.

" + + "Le coefficient de progression d'affiche dans les feedbacks des étudiants.

" + + "Le coefficient de progression doit être compris entre ]0 et 10[.
" + + " Un coef. inférieur à 1 signifie qu'il est facile d'atteindre la note maximale
" + + " Un coef. supérieur à 1 signifie qu'il est difficile d'atteindre la note maximale."); + } + }); + btnAideProgression.setIcon(new ImageIcon(proprieteFichierAnalyse.class.getResource("/resources/whatmini.png"))); + contentPane.add(btnAideProgression, "cell 2 11,aligny top"); + + JLabel lblNewLabel_6 = new JLabel("Le suivi des modifications doit être activé dans les fichiers des étudiants."); + lblNewLabel_6.setFont(new Font("Tahoma", Font.PLAIN, 12)); + contentPane.add(lblNewLabel_6, "cell 4 11,alignx left"); + + comboBoxhistoriquePresent = new JComboBox(); + comboBoxhistoriquePresent.setModel(new DefaultComboBoxModel(new String[] {"false", "true"})); + comboBoxhistoriquePresent.setFont(new Font("Tahoma", Font.BOLD, 12)); + contentPane.add(comboBoxhistoriquePresent, "cell 5 11,growx,aligny top"); + + btnAideHistoriquePresent = new JButton(""); + btnAideHistoriquePresent.addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent e) { + JOptionPane.showInternalMessageDialog(null, "Si VRAI alors le suivi des modifications doit être activé dans les fichiers des étudiants.
" + + "Si ce n'est pas le cas alors l'étudiant aura une note nulle.

" + + "L'étudiant doit utiliser le fichier remis par l'enseignant.
" + + "L'enseignant aura activé le suivi des modifications et protégé le suivi par un mot de passe.

" + + "Cette technique peut être utilisée durant les contrôles.
" + + "Elle permettra de rechercher les fichiers échangés entre les étudiants en comparant les modifications."); + } + }); + btnAideHistoriquePresent.setIcon(new ImageIcon(proprieteFichierAnalyse.class.getResource("/resources/whatmini.png"))); + contentPane.add(btnAideHistoriquePresent, "cell 6 11,aligny top"); + + + + if(commandes.sujet.getAttributs().get("creationDate")!=null){ + textFieldDateCreation.setText(commandes.sujet.getAttributs().get("creationDate")); + } + if(commandes.sujet.getAttributs().get("controleDateCreation")!=null){ + comboBoxcontroleDateCreation.setSelectedItem(commandes.sujet.getAttributs().get("controleDateCreation").toLowerCase()); + } + if(commandes.sujet.getAttributs().get("Initial_Creator")!=null){ + textFieldInitial_Creator.setText(commandes.sujet.getAttributs().get("Initial_Creator")); + } + if(commandes.sujet.getAttributs().get("controle_Initial_Creator")!=null){ + comboBoxcontrole_Initial_Creator.setSelectedItem(commandes.sujet.getAttributs().get("controle_Initial_Creator").toLowerCase()); + } + if(commandes.sujet.getAttributs().get("modificationDateMini")!=null){ + textField_dateModificationMini.setText(commandes.sujet.getAttributs().get("modificationDateMini")); + } + if(commandes.sujet.getAttributs().get("controleDateModificationMini")!=null){ + comboBoxcontrole_modificationDateMini.setSelectedItem(commandes.sujet.getAttributs().get("controleDateModificationMini").toLowerCase()); + } + if(commandes.sujet.getAttributs().get("metaSujet")!=null){ + textFieldMetaSujet.setText(commandes.sujet.getAttributs().get("metaSujet")); + } + if(commandes.sujet.getAttributs().get("link_help")!=null){ + textFieldlink_help.setText(commandes.sujet.getAttributs().get("link_help")); + } + if(commandes.sujet.getAttributs().get("link_sujet")!=null){ + textFieldlink_sujet.setText(commandes.sujet.getAttributs().get("link_sujet")); + } + if(commandes.sujet.getAttributs().get("notefrom")!=null){ + textFieldNoteFrom.setText(commandes.sujet.getAttributs().get("notefrom")); + } + if(commandes.sujet.getAttributs().get("progression")!=null){ + textFieldProgression.setText(commandes.sujet.getAttributs().get("progression")); + } + if(commandes.sujet.getAttributs().get("historiquePresent")!=null){ + comboBoxhistoriquePresent.setSelectedItem(commandes.sujet.getAttributs().get("historiquePresent").toLowerCase()); + } + if(commandes.sujet.getAttributs().get("titre")!=null){ + textFieldTitre.setText(commandes.sujet.getAttributs().get("titre")); + } + if(commandes.sujet.getAttributs().get("auteur")!=null){ + textFieldAuteur.setText(commandes.sujet.getAttributs().get("auteur")); + } + if(commandes.sujet.getAttributs().get("presenceMetaSujet")!=null){ + comboBoxPresenceMetaSujet.setSelectedItem(commandes.sujet.getAttributs().get("presenceMetaSujet").toLowerCase()); + } + if(commandes.sujet.getAttributs().get("baremeABC")!=null){ + comboBoxBaremeABC.setSelectedItem(commandes.sujet.getAttributs().get("baremeABC").toLowerCase()); + } + + + // Bouton de calcul de la base numérique + btnVoirBaremeNumeric = new JButton(""); + btnVoirBaremeNumeric.addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent e) { + double progression = Double.valueOf(textFieldProgression.getText()); + double noteFrom = Double.valueOf(textFieldNoteFrom.getText()); + calculNotesProgression C = new calculNotesProgression(progression,noteFrom); + JOptionPane.showMessageDialog(null, C.getMessageHTMLColonne()); + } + }); + btnVoirBaremeNumeric.setIcon(new ImageIcon(proprieteFichierAnalyse.class.getResource("/resources/voirmini.png"))); + contentPane.add(btnVoirBaremeNumeric, "cell 2 9"); + + + + btnVoirBaremeABC = new JButton(""); + btnVoirBaremeABC.addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent e) { + double progression = Double.valueOf(textFieldProgression.getText()); + calcul.calculIntervalleBaremeABCDE C = new calcul.calculIntervalleBaremeABCDE(progression); + JOptionPane.showMessageDialog(null, C.getMessageHTMLColonne()); + } + }); + btnVoirBaremeABC.setIcon(new ImageIcon(proprieteFichierAnalyse.class.getResource("/resources/voirmini.png"))); + contentPane.add(btnVoirBaremeABC, "cell 2 8"); + + + + // Bouton pour validation + JButton btnNewButton = new JButton("Valider"); + btnNewButton.setFont(new Font("Tahoma", Font.BOLD, 14)); + contentPane.add(btnNewButton, "cell 1 13,grow"); + btnNewButton.addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent e) { + + if(verifCoefProgression()&&verifBareme()&&formatDateWriter.isCorrect(textFieldDateCreation.getText()) + &&VerificationDateDuControle()){ + commandes.sujet.getAttributs().put("titre", textFieldTitre.getText() ); + commandes.sujet.getAttributs().put("auteur", textFieldAuteur.getText() ); + commandes.sujet.getAttributs().put("metaSujet", textFieldMetaSujet.getText() ); + commandes.sujet.getAttributs().put("presenceMetaSujet", comboBoxPresenceMetaSujet.getSelectedItem().toString() ); + commandes.sujet.getAttributs().put("baremeABC", comboBoxBaremeABC.getSelectedItem().toString() ); + commandes.sujet.getAttributs().put("notefrom", textFieldNoteFrom.getText() ); + commandes.sujet.getAttributs().put("progression", textFieldProgression.getText() ); + commandes.sujet.getAttributs().put("historiquePresent", comboBoxhistoriquePresent.getSelectedItem().toString() ); + commandes.sujet.getAttributs().put("creationDate", textFieldDateCreation.getText() ); + commandes.sujet.getAttributs().put("modificationDateMini", textField_dateModificationMini.getText() ); + commandes.sujet.getAttributs().put("controleDateCreation", comboBoxcontroleDateCreation.getSelectedItem().toString() ); + commandes.sujet.getAttributs().put("controleDateModificationMini", comboBoxcontrole_modificationDateMini.getSelectedItem().toString() ); + commandes.sujet.getAttributs().put("Initial_Creator", textFieldInitial_Creator.getText() ); + commandes.sujet.getAttributs().put("controle_Initial_Creator", comboBoxcontrole_Initial_Creator.getSelectedItem().toString() ); + commandes.sujet.getAttributs().put("link_help", textFieldlink_help.getText() ); + commandes.sujet.getAttributs().put("link_sujet", textFieldlink_sujet.getText() ); + + String textCommentaire = textAreaCommentaire.getText().replace("\n", "-NewLine-"); + if(!commandes.sujet.getContenu().isEmpty()) { + commandes.sujet.getContenu().remove(0); + commandes.sujet.getContenu().add(0, textCommentaire); + } + + + meptl.chargementParametresFichierAnalyse(); + fenetres.create.getTextNodeSelect().afficheChargementFichierAnalyse(); + + dispose(); + } + + + } + }); + + lblNewLabel_14 = new JLabel("La date et heure du début du contrôle.
C'est la date de modification qui doit être la plus ancienne dans le fichier des étudiants."); + lblNewLabel_14.setFont(new Font("Tahoma", Font.PLAIN, 12)); + contentPane.add(lblNewLabel_14, "cell 4 13,alignx left"); + textField_dateModificationMini = new JTextField(); + textField_dateModificationMini.setFont(new Font("Tahoma", Font.PLAIN, 12)); + contentPane.add(textField_dateModificationMini, "cell 5 13,grow"); + textField_dateModificationMini.setColumns(10); + btnAidecontrole_dateModificationMini = new JButton(""); + btnAidecontrole_dateModificationMini.addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent e) { + JOptionPane.showInternalMessageDialog(null, "Si vous indiquez une date, alors toutes les dates" + + "
de modification dans un fichier doivent être postérieures à la date indiquée."); + } + }); + btnAidecontrole_dateModificationMini.setIcon(new ImageIcon(proprieteFichierAnalyse.class.getResource("/resources/whatmini.png"))); + contentPane.add(btnAidecontrole_dateModificationMini, "cell 6 13,aligny top"); + + lblNewLabel_15 = new JLabel("La date des modifications doit être postérieures à la date du début du contrôle."); + lblNewLabel_15.setFont(new Font("Tahoma", Font.PLAIN, 12)); + contentPane.add(lblNewLabel_15, "cell 4 14,alignx left"); + comboBoxcontrole_modificationDateMini = new JComboBox(); + comboBoxcontrole_modificationDateMini.setModel(new DefaultComboBoxModel(new String[] {"false", "true"})); + comboBoxcontrole_modificationDateMini.setFont(new Font("Tahoma", Font.BOLD, 12)); + contentPane.add(comboBoxcontrole_modificationDateMini, "cell 5 14,growx"); + btnAidecontrole_dateModificationMini = new JButton(""); + btnAidecontrole_dateModificationMini.addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent e) { + JOptionPane.showInternalMessageDialog(null, "Si vrai, alors les dates" + + "des modifications dans un fichier
doivent être postérieures à la date indiquée."); + } + }); + btnAidecontrole_dateModificationMini.setIcon(new ImageIcon(proprieteFichierAnalyse.class.getResource("/resources/whatmini.png"))); + contentPane.add(btnAidecontrole_dateModificationMini, "cell 6 14"); /** * Fermeture de la fenêtre.