MAJ
This commit is contained in:
parent
8858b05744
commit
3e31d554e1
@ -14,6 +14,6 @@
|
||||
<classpathentry kind="lib" path="C:/Users/pabr6/eclipse-workspace/zip4j-1.2.7.jar"/>
|
||||
<classpathentry kind="lib" path="C:/Users/pabr6/git/analyseWriter/MEPTL/miglayout15-swing.jar"/>
|
||||
<classpathentry kind="lib" path="jgoodies-forms-1.8.0.jar" sourcepath="jgoodies-forms-1.8.0-sources.jar"/>
|
||||
<classpathentry kind="lib" path="C:/Users/pabr6/eclipse-workspace/cXML.jar"/>
|
||||
<classpathentry kind="lib" path="C:/Users/pabr6/eclipse-workspace/cXML.jar" sourcepath="/cXML"/>
|
||||
<classpathentry kind="output" path="bin"/>
|
||||
</classpath>
|
||||
|
1
bin/.gitignore
vendored
1
bin/.gitignore
vendored
@ -1 +1,2 @@
|
||||
/fenetres/
|
||||
/MEPTL/
|
||||
|
Binary file not shown.
@ -36,7 +36,7 @@ public class verificationFichierAnalyse {
|
||||
|
||||
if(commandes.fichierAnalyseValide) if(!commandes.sujet.getNomElt().equals("fichier")) {
|
||||
commandes.fichierAnalyseValide=false;
|
||||
JOptionPane.showMessageDialog(null, "<html><h1 style=\"text-align:center;\">Ce fichier n'est pas un fichier<br>d'analyseCalc</h1></html>", "Erreur", JOptionPane.ERROR_MESSAGE );
|
||||
JOptionPane.showMessageDialog(null, "<html><h1 style=\"text-align:center;\">Ce fichier n'est pas un fichier<br>d'analyseWriter</h1></html>", "Erreur", JOptionPane.ERROR_MESSAGE );
|
||||
}
|
||||
|
||||
//** Vérification des attributs du node fichier
|
||||
@ -158,7 +158,11 @@ public class verificationFichierAnalyse {
|
||||
|
||||
// Mise à jour de la variable fichierAnalyseValide
|
||||
if(erreur) {
|
||||
System.out.println( "Erreur dans le fichier d'analyse" );
|
||||
commandes.fichierAnalyseValide = false;
|
||||
}else {
|
||||
System.out.println( "Pas d'erreur dans le fichier d'analyse" );
|
||||
commandes.fichierAnalyseValide = true;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -48,7 +48,7 @@ public class MyTreeCellRenderer extends DefaultTreeCellRenderer {
|
||||
|
||||
if(data!=null) {
|
||||
if(data.isEvaluate()) {
|
||||
setForeground(new Color(120, 30 ,30));
|
||||
setForeground(new Color(230, 20 ,30));
|
||||
setFont(new Font("Tahoma", Font.BOLD, 14));
|
||||
}else {
|
||||
setForeground(new Color(0, 0 ,0));
|
||||
|
@ -99,7 +99,6 @@ public class afficheText extends JEditorPane {
|
||||
|
||||
|
||||
|
||||
|
||||
if(nod.getAttributs().size()>0) {
|
||||
if(nod.getAttributs().size()==1) sb.append("<br><h4><u>L'ATTRIBUT DU NODE</u></h4>");
|
||||
if(nod.getAttributs().size()>1) sb.append("<br><h4><u>LES ATTRIBUTS DU NODE</u></h4>");
|
||||
@ -344,6 +343,7 @@ public class afficheText extends JEditorPane {
|
||||
*/
|
||||
public void afficheChargementFichierAnalyse(){
|
||||
|
||||
System.out.println( "Affichage information du fichier d'analyse" );
|
||||
|
||||
StringBuilder text = new StringBuilder();
|
||||
text.append(baliseStyle.balise());
|
||||
|
@ -41,6 +41,7 @@ import java.awt.Color;
|
||||
|
||||
import javax.swing.event.ChangeListener;
|
||||
import javax.swing.event.ChangeEvent;
|
||||
import java.awt.event.ActionListener;
|
||||
|
||||
|
||||
|
||||
@ -61,7 +62,7 @@ public class evaluate extends JFrame {
|
||||
private JLabel lblFileAnalyse;
|
||||
private JLabel lblFichierCSV;
|
||||
private JLabel lblFichierSVG;
|
||||
private JCheckBox chckbxfichiersEtudaints;
|
||||
private JCheckBox chckbxfichiersEtudiants;
|
||||
private JCheckBox chckbxZipfeedback;
|
||||
private JCheckBox chckbxnoFeedback;
|
||||
private JCheckBox chckbxNoNote;
|
||||
@ -114,19 +115,19 @@ public class evaluate extends JFrame {
|
||||
lblFileAnalyse.setFont(new Font("Tahoma", Font.BOLD, 14));
|
||||
panelWest.add(lblFileAnalyse, "flowy,cell 0 1,alignx left,growy");
|
||||
|
||||
chckbxfichiersEtudaints = new JCheckBox("Les fichiers ne sont pas dans des dossiers nominatifs");
|
||||
chckbxfichiersEtudaints.addChangeListener(new ChangeListener() {
|
||||
chckbxfichiersEtudiants = new JCheckBox("Les fichiers ne sont pas dans des dossiers nominatifs");
|
||||
chckbxfichiersEtudiants.addChangeListener(new ChangeListener() {
|
||||
public void stateChanged(ChangeEvent e) {
|
||||
if(chckbxfichiersEtudaints.isSelected()) {
|
||||
if(chckbxfichiersEtudiants.isSelected()) {
|
||||
commandes.fichierStudentMoodle=true;
|
||||
}else {
|
||||
commandes.fichierStudentMoodle=false;
|
||||
}
|
||||
}
|
||||
});
|
||||
chckbxfichiersEtudaints.setFont(new Font("Tahoma", Font.PLAIN, 12));
|
||||
chckbxfichiersEtudaints.setToolTipText("Cochez si les fichiers des étudiants ne sont pas dans des dossier nominatifs");
|
||||
panelWest.add(chckbxfichiersEtudaints, "flowy,cell 0 2,grow");
|
||||
chckbxfichiersEtudiants.setFont(new Font("Tahoma", Font.PLAIN, 12));
|
||||
chckbxfichiersEtudiants.setToolTipText("Cochez si les fichiers des étudiants ne sont pas dans des dossier nominatifs");
|
||||
panelWest.add(chckbxfichiersEtudiants, "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));
|
||||
@ -337,6 +338,10 @@ public class evaluate extends JFrame {
|
||||
private void createToolBar() {
|
||||
toolBar = new JToolBar();
|
||||
JButton btnSelectFileAnalyse = toolBar.add( actOpen );
|
||||
btnSelectFileAnalyse.addActionListener(new ActionListener() {
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
}
|
||||
});
|
||||
btnSelectFileAnalyse.setHideActionText( true );
|
||||
btnSelectFileAnalyse.setIcon(new ImageIcon(evaluate.class.getResource("/resources/fichierAnalyse.png")));
|
||||
|
||||
@ -423,9 +428,10 @@ public class evaluate extends JFrame {
|
||||
*/
|
||||
private void refreshLabel() {
|
||||
if(!commandes.fichierAnalyseValide) {
|
||||
System.out.println( "Erreur du fichier d'analyse" );
|
||||
if(!MEPTL.verificationFichierAnalyse.messageErreur.toString().isEmpty()) txtpnmessages.setText(MEPTL.verificationFichierAnalyse.messageErreur.toString());
|
||||
|
||||
chckbxfichiersEtudaints.setEnabled(false);
|
||||
chckbxfichiersEtudiants.setEnabled(false);
|
||||
chckbxZipfeedback.setEnabled(false);
|
||||
chckbxnoFeedback.setEnabled(false);
|
||||
chckbxNoNote.setEnabled(false);
|
||||
@ -434,7 +440,7 @@ public class evaluate extends JFrame {
|
||||
chckbxNoLogo.setEnabled(false);
|
||||
chckbxVerif.setEnabled(false);
|
||||
}else {
|
||||
chckbxfichiersEtudaints.setEnabled(true);
|
||||
chckbxfichiersEtudiants.setEnabled(true);
|
||||
chckbxZipfeedback.setEnabled(true);
|
||||
chckbxnoFeedback.setEnabled(true);
|
||||
chckbxNoNote.setEnabled(true);
|
||||
@ -496,9 +502,11 @@ public class evaluate extends JFrame {
|
||||
|
||||
@Override
|
||||
public void actionPerformed( ActionEvent e ) {
|
||||
System.out.println( "Open" );
|
||||
new filechooserXML();
|
||||
System.out.println( "Rafraichissement du label informations" );
|
||||
refreshLabel();
|
||||
System.out.println( "Open" );
|
||||
System.out.println( "Open close" );
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -48,6 +48,7 @@ public class filechooserXML extends JFileChooser {
|
||||
String ext = file.getName().substring(file.getName().lastIndexOf("."));
|
||||
|
||||
if(ext.equals(".xml")){
|
||||
System.out.println( "Open file .xml" );
|
||||
openFileXML(file);
|
||||
}
|
||||
}
|
||||
@ -87,9 +88,11 @@ public class filechooserXML extends JFileChooser {
|
||||
if(!fichierSujetValide()) JOptionPane.showMessageDialog(null, "Le fichier d'analyse n'est pas valide.");
|
||||
|
||||
//Chargement des paramètres du fichier d'analyse
|
||||
System.out.println( "Chargement des paramètres du fichier d'analyse");
|
||||
meptl.chargementParametresFichierAnalyse();
|
||||
|
||||
// Rechercher des erreurs dans le fichier d'analyse
|
||||
System.out.println( "Vérification du fichier d'analyse" );
|
||||
new verificationFichierAnalyse();
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user