MAJ V4.4.1 (Correction bug et ++)
This commit is contained in:
parent
321d957e10
commit
5706a9e686
Binary file not shown.
Binary file not shown.
2
bin/.gitignore
vendored
2
bin/.gitignore
vendored
@ -4,3 +4,5 @@
|
|||||||
/fenetres/
|
/fenetres/
|
||||||
/list/
|
/list/
|
||||||
/resources/
|
/resources/
|
||||||
|
/nocsvstudent.png
|
||||||
|
/nocsvstudentmini.png
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -898,10 +898,10 @@ public class evaluationAttribut {
|
|||||||
node item = null;
|
node item = null;
|
||||||
if(nodStudent!=null) {
|
if(nodStudent!=null) {
|
||||||
//compare la même valeur "contenuParagraph" pour obtenir les points mais si un voisinage du contenu.
|
//compare la même valeur "contenuParagraph" pour obtenir les points mais si un voisinage du contenu.
|
||||||
item = retourneNoteAvecResultatsAnalyse("Placement","avant", contenuParagraph,contenuParagraph + "‽" +point, nameElt );
|
item = retourneNoteAvecResultatsAnalyse("Placement","avant", "Oui","Oui" + "‽" +point, nameElt );
|
||||||
}else {
|
}else {
|
||||||
evaluation.IncrementPointTotal(Integer.valueOf(point));
|
evaluation.IncrementPointTotal(Integer.valueOf(point));
|
||||||
item = new node("Placement", "Erreur : -"+ point, "avant" , "null", contenuParagraph, 2, evaluation.getPointEnJeu(),nameElt);
|
item = new node("Placement", "Erreur : -"+ point, "avant" , "null", "non", 2, evaluation.getPointEnJeu(),nameElt);
|
||||||
}
|
}
|
||||||
retour.getNodes().add(item);
|
retour.getNodes().add(item);
|
||||||
return retour;
|
return retour;
|
||||||
|
@ -56,6 +56,8 @@ import fenetres.create_act.actEvaluerTousLesStylesParagraphesTrue;
|
|||||||
import fenetres.create_act.actExpandAll;
|
import fenetres.create_act.actExpandAll;
|
||||||
import fenetres.create_act.actExpandNode;
|
import fenetres.create_act.actExpandNode;
|
||||||
import fenetres.create_act.actInsereInformationFalse;
|
import fenetres.create_act.actInsereInformationFalse;
|
||||||
|
import fenetres.create_act.actInsereInformationMultipleFalse;
|
||||||
|
import fenetres.create_act.actInsereInformationMultipleTrue;
|
||||||
import fenetres.create_act.actInsereInformationTrue;
|
import fenetres.create_act.actInsereInformationTrue;
|
||||||
import fenetres.create_act.actOu;
|
import fenetres.create_act.actOu;
|
||||||
import fenetres.create_act.actPaste;
|
import fenetres.create_act.actPaste;
|
||||||
@ -246,6 +248,10 @@ if(nod!=null) {
|
|||||||
return mnTitre;
|
return mnTitre;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
private JMenu mnInsereInformation() {
|
private JMenu mnInsereInformation() {
|
||||||
JMenu mnInsereInformation = new JMenu("Insère information contenu du node");
|
JMenu mnInsereInformation = new JMenu("Insère information contenu du node");
|
||||||
mnInsereInformation.setIcon( new ImageIcon(create.class.getResource("/resources/informationmini.png")));
|
mnInsereInformation.setIcon( new ImageIcon(create.class.getResource("/resources/informationmini.png")));
|
||||||
@ -254,6 +260,18 @@ if(nod!=null) {
|
|||||||
return mnInsereInformation;
|
return mnInsereInformation;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
private JMenu mnInsereInformationMultiple() {
|
||||||
|
JMenu mnInsereInformationMultiple = new JMenu("Insère les informations contenus de tous les nodes enfants");
|
||||||
|
mnInsereInformationMultiple.setIcon( new ImageIcon(create.class.getResource("/resources/informationmultiplemini.png")));
|
||||||
|
mnInsereInformationMultiple.add(new actInsereInformationMultipleTrue());
|
||||||
|
mnInsereInformationMultiple.add(new actInsereInformationMultipleFalse());
|
||||||
|
return mnInsereInformationMultiple;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Menu Titre pour le niveau 1.</br>
|
* Menu Titre pour le niveau 1.</br>
|
||||||
@ -506,6 +524,8 @@ if(nod!=null) {
|
|||||||
mnPourFeedback.addSeparator();
|
mnPourFeedback.addSeparator();
|
||||||
mnPourFeedback.add(mnAddMenuNiveauSup1());
|
mnPourFeedback.add(mnAddMenuNiveauSup1());
|
||||||
if(listeDesNodesPourEvaluerPage.isPage(nod)) {
|
if(listeDesNodesPourEvaluerPage.isPage(nod)) {
|
||||||
|
mnPourFeedback.addSeparator();
|
||||||
|
mnPourFeedback.add(mnInsereInformationMultiple());
|
||||||
mnPourFeedback.addSeparator();
|
mnPourFeedback.addSeparator();
|
||||||
mnPourFeedback.add(mnSautMultiple());
|
mnPourFeedback.add(mnSautMultiple());
|
||||||
mnPourFeedback.addSeparator();
|
mnPourFeedback.addSeparator();
|
||||||
@ -585,7 +605,7 @@ if(nod!=null) {
|
|||||||
*/
|
*/
|
||||||
private JMenu mnNiveau1 () {
|
private JMenu mnNiveau1 () {
|
||||||
JMenu mnNiveau1 = new JMenu("Pour représentation & coefficient");
|
JMenu mnNiveau1 = new JMenu("Pour représentation & coefficient");
|
||||||
mnNiveau1.setIcon( new ImageIcon(create.class.getResource("/resources/attributanalysewritermini.png")));
|
mnNiveau1.setIcon( new ImageIcon(create.class.getResource("/resources/feedbackmini.png"))); ///resources/attributanalysewritermini.png
|
||||||
mnNiveau1.add(new actCoefficient());
|
mnNiveau1.add(new actCoefficient());
|
||||||
mnNiveau1.addSeparator();
|
mnNiveau1.addSeparator();
|
||||||
mnNiveau1.add(mnSautNiveau1());
|
mnNiveau1.add(mnSautNiveau1());
|
||||||
|
@ -32,6 +32,7 @@ public class actEvalueTrue extends AbstractAction{
|
|||||||
public void actionPerformed(ActionEvent e) {
|
public void actionPerformed(ActionEvent e) {
|
||||||
node nod = (node) fenetres.create.getSelectNode().getUserObject();
|
node nod = (node) fenetres.create.getSelectNode().getUserObject();
|
||||||
nod.evaluerTrue();
|
nod.evaluerTrue();
|
||||||
|
|
||||||
//Ajoute addmenu au node de niveau 1.
|
//Ajoute addmenu au node de niveau 1.
|
||||||
if(nod.getLevel()==1) nod.addMenu(true);
|
if(nod.getLevel()==1) nod.addMenu(true);
|
||||||
|
|
||||||
@ -39,7 +40,10 @@ public class actEvalueTrue extends AbstractAction{
|
|||||||
//Change les évaluateurs pour les nodes style:style
|
//Change les évaluateurs pour les nodes style:style
|
||||||
if(nod.getNomElt().equals("style:style")) {
|
if(nod.getNomElt().equals("style:style")) {
|
||||||
// Change les évaluateurs ‼ en ‽
|
// Change les évaluateurs ‼ en ‽
|
||||||
if(nod.getAttributs().get("EvaluerATraversAnalyseStyle")!=null) {
|
|
||||||
|
String value = nod.getAttributs().get("EvaluerATraversAnalyseStyle");
|
||||||
|
|
||||||
|
if(value==null){
|
||||||
|
|
||||||
if(!listeNodeFormatageDirectDeWriter.isFormatageDirect(nod)) {
|
if(!listeNodeFormatageDirectDeWriter.isFormatageDirect(nod)) {
|
||||||
nod.changeLesCodesEvaluateursVersCodeEvaluateurDirect();
|
nod.changeLesCodesEvaluateursVersCodeEvaluateurDirect();
|
||||||
@ -58,17 +62,20 @@ public class actEvalueTrue extends AbstractAction{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
TreePath path = fenetres.create.getTree().getSelectionPath();
|
TreePath path = fenetres.create.getTree().getSelectionPath();
|
||||||
|
|
||||||
DefaultTreeModel model = (DefaultTreeModel) fenetres.create.getTree().getModel();
|
DefaultTreeModel model = (DefaultTreeModel) fenetres.create.getTree().getModel();
|
||||||
DefaultMutableTreeNode root = (DefaultMutableTreeNode) model.getRoot();
|
DefaultMutableTreeNode root = (DefaultMutableTreeNode) model.getRoot();
|
||||||
model.reload(root);
|
model.reload(root);
|
||||||
|
|
||||||
fenetres.create.getTree().setSelectionPath(path);
|
fenetres.create.getTree().setSelectionPath(path);
|
||||||
fenetres.create.getTree().expandPath(path);
|
fenetres.create.getTree().expandPath(path);
|
||||||
|
|
||||||
fenetres.create.getTextNodeSelect().refreshAffichage(nod);
|
|
||||||
|
fenetres.create.getTextNodeSelect().refreshAffichage(nod);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ public class actEvaluerStyleTrue extends AbstractAction{
|
|||||||
node nodStyle = commandes.sujet.retourneFirstNodeByNameAndAttributValueExactStrict("style:style", "style:name", nod.getAttributs().get("text:style-name"));
|
node nodStyle = commandes.sujet.retourneFirstNodeByNameAndAttributValueExactStrict("style:style", "style:name", nod.getAttributs().get("text:style-name"));
|
||||||
if(nodStyle!=null) {
|
if(nodStyle!=null) {
|
||||||
nodStyle.getAttributs().put("EvaluerATraversAnalyseStyle", "true");
|
nodStyle.getAttributs().put("EvaluerATraversAnalyseStyle", "true");
|
||||||
// nodStyle.evaluerTrue();
|
nodStyle.evaluerTrue();
|
||||||
nodStyle.changeLesCodesEvaluateursVersCodeATraversAnalyseStyle();
|
nodStyle.changeLesCodesEvaluateursVersCodeATraversAnalyseStyle();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -29,7 +29,8 @@ public class actEvaluerTousEnfantsTrue extends AbstractAction{
|
|||||||
node nod = (node) fenetres.create.getSelectNode().getUserObject();
|
node nod = (node) fenetres.create.getSelectNode().getUserObject();
|
||||||
|
|
||||||
if(!nod.getNomElt().equals("fichier")) {
|
if(!nod.getNomElt().equals("fichier")) {
|
||||||
//Evalue tous les child et place addmenu=true pour les level=1.
|
//Evalue tous les childs et place addmenu=true pour les level=1.
|
||||||
|
nod.evaluerTrue();
|
||||||
nod.evaluerAllChildTrue();
|
nod.evaluerAllChildTrue();
|
||||||
fenetres.create.getTextNodeSelect().refreshAffichage(nod);
|
fenetres.create.getTextNodeSelect().refreshAffichage(nod);
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,32 @@
|
|||||||
|
package fenetres.create_act;
|
||||||
|
|
||||||
|
import java.awt.event.ActionEvent;
|
||||||
|
|
||||||
|
import javax.swing.AbstractAction;
|
||||||
|
import javax.swing.Action;
|
||||||
|
import javax.swing.ImageIcon;
|
||||||
|
|
||||||
|
import cXML.node;
|
||||||
|
import fenetres.create;
|
||||||
|
|
||||||
|
public class actInsereInformationMultipleFalse extends AbstractAction{
|
||||||
|
{
|
||||||
|
putValue( Action.NAME, "false" );
|
||||||
|
putValue( Action.SHORT_DESCRIPTION, "false" );
|
||||||
|
putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/falsemini.png")));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void actionPerformed(ActionEvent e) {
|
||||||
|
node nod = (node) fenetres.create.getSelectNode().getUserObject();
|
||||||
|
for(int i = 0 ; i < nod.getNodes().size();i++) {
|
||||||
|
nod.getNodes().get(i).getAttributs().remove("information");
|
||||||
|
}
|
||||||
|
fenetres.create.getTextNodeSelect().refreshAffichage(nod);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,38 @@
|
|||||||
|
package fenetres.create_act;
|
||||||
|
|
||||||
|
import java.awt.event.ActionEvent;
|
||||||
|
|
||||||
|
import javax.swing.AbstractAction;
|
||||||
|
import javax.swing.Action;
|
||||||
|
import javax.swing.ImageIcon;
|
||||||
|
|
||||||
|
import cXML.node;
|
||||||
|
import fenetres.create;
|
||||||
|
|
||||||
|
public class actInsereInformationMultipleTrue extends AbstractAction{
|
||||||
|
{
|
||||||
|
putValue( Action.NAME, "true" );
|
||||||
|
putValue( Action.SHORT_DESCRIPTION, "true" );
|
||||||
|
putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/truemini.png")));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void actionPerformed(ActionEvent e) {
|
||||||
|
node nod = (node) fenetres.create.getSelectNode().getUserObject();
|
||||||
|
|
||||||
|
for(int i = 0 ; i < nod.getNodes().size();i++) {
|
||||||
|
String content = nod.getNodes().get(i).retourneLesContenusEnfants("");
|
||||||
|
if(!content.isEmpty()) if(content.replaceAll(" ", "").length()==0) content=content.replaceAll(" ", "");
|
||||||
|
if(content.length()>300) content = content.substring(0, 299);
|
||||||
|
content = nod.getNodes().get(i).getNomElt() + " : " + content;
|
||||||
|
nod.getNodes().get(i).getAttributs().put("information", content);
|
||||||
|
}
|
||||||
|
|
||||||
|
fenetres.create.getTextNodeSelect().refreshAffichage(nod);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -40,7 +40,7 @@ public class actTitre1 extends AbstractAction{
|
|||||||
|
|
||||||
int result = JOptionPane.showConfirmDialog(null, myPanel, "Saisissez votre titre 1 ", JOptionPane.OK_CANCEL_OPTION);
|
int result = JOptionPane.showConfirmDialog(null, myPanel, "Saisissez votre titre 1 ", JOptionPane.OK_CANCEL_OPTION);
|
||||||
if (result == JOptionPane.OK_OPTION) {
|
if (result == JOptionPane.OK_OPTION) {
|
||||||
nod.titre(xField.getText());
|
nod.titre1(xField.getText());
|
||||||
fenetres.create.getTextNodeSelect().refreshAffichage(nod);
|
fenetres.create.getTextNodeSelect().refreshAffichage(nod);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@ public class actTitre2 extends AbstractAction{
|
|||||||
|
|
||||||
int result = JOptionPane.showConfirmDialog(null, myPanel, "Saisissez votre titre 2 ", JOptionPane.OK_CANCEL_OPTION);
|
int result = JOptionPane.showConfirmDialog(null, myPanel, "Saisissez votre titre 2 ", JOptionPane.OK_CANCEL_OPTION);
|
||||||
if (result == JOptionPane.OK_OPTION) {
|
if (result == JOptionPane.OK_OPTION) {
|
||||||
nod.titre(xField.getText());
|
nod.titre2(xField.getText());
|
||||||
fenetres.create.getTextNodeSelect().refreshAffichage(nod);
|
fenetres.create.getTextNodeSelect().refreshAffichage(nod);
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
|
@ -41,7 +41,7 @@ public class actTitre3 extends AbstractAction{
|
|||||||
|
|
||||||
int result = JOptionPane.showConfirmDialog(null, myPanel, "Saisissez votre titre 3 ", JOptionPane.OK_CANCEL_OPTION);
|
int result = JOptionPane.showConfirmDialog(null, myPanel, "Saisissez votre titre 3 ", JOptionPane.OK_CANCEL_OPTION);
|
||||||
if (result == JOptionPane.OK_OPTION) {
|
if (result == JOptionPane.OK_OPTION) {
|
||||||
nod.titre(xField.getText());
|
nod.titre3(xField.getText());
|
||||||
fenetres.create.getTextNodeSelect().refreshAffichage(nod);
|
fenetres.create.getTextNodeSelect().refreshAffichage(nod);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ public class actTitrePrincipal extends AbstractAction{
|
|||||||
myPanel.add(xField);
|
myPanel.add(xField);
|
||||||
|
|
||||||
|
|
||||||
int result = JOptionPane.showConfirmDialog(null, myPanel, "Saisissez votre titre principal", JOptionPane.OK_CANCEL_OPTION);
|
int result = JOptionPane.showConfirmDialog(null,myPanel,"Saisissez votre titre principal", JOptionPane.OK_CANCEL_OPTION);
|
||||||
if (result == JOptionPane.OK_OPTION) {
|
if (result == JOptionPane.OK_OPTION) {
|
||||||
nod.titre(xField.getText());
|
nod.titre(xField.getText());
|
||||||
fenetres.create.getTextNodeSelect().refreshAffichage(nod);
|
fenetres.create.getTextNodeSelect().refreshAffichage(nod);
|
||||||
|
@ -25,7 +25,7 @@ public class actsautmultipletrue extends AbstractAction{
|
|||||||
public void actionPerformed(ActionEvent e) {
|
public void actionPerformed(ActionEvent e) {
|
||||||
node nod = (node) fenetres.create.getSelectNode().getUserObject();
|
node nod = (node) fenetres.create.getSelectNode().getUserObject();
|
||||||
boolean informations = false;
|
boolean informations = false;
|
||||||
if(JOptionPane.showConfirmDialog(null,"Voulez-vous placer le contenu du node après le saut?", "Information", JOptionPane.YES_NO_OPTION,JOptionPane.QUESTION_MESSAGE)==JOptionPane.YES_OPTION) {
|
if(JOptionPane.showConfirmDialog(null,"Voulez-vous placer l'information du node juste après le saut?", "Information", JOptionPane.YES_NO_OPTION,JOptionPane.QUESTION_MESSAGE)==JOptionPane.YES_OPTION) {
|
||||||
informations=true;
|
informations=true;
|
||||||
}
|
}
|
||||||
for(int i = 0 ; i < nod.getNodes().size();i++) {
|
for(int i = 0 ; i < nod.getNodes().size();i++) {
|
||||||
@ -35,7 +35,7 @@ public class actsautmultipletrue extends AbstractAction{
|
|||||||
if(!content.isEmpty()) if(content.replaceAll(" ", "").length()==0) content=content.replaceAll(" ", "");
|
if(!content.isEmpty()) if(content.replaceAll(" ", "").length()==0) content=content.replaceAll(" ", "");
|
||||||
if(content.length()>300) content = content.substring(0, 299);
|
if(content.length()>300) content = content.substring(0, 299);
|
||||||
|
|
||||||
content = nod.getNodes().get(i).toString() + " : " + content;
|
content = nod.getNodes().get(i).getNomElt() + " : " + content;
|
||||||
nod.getNodes().get(i).getAttributs().put("information", content);
|
nod.getNodes().get(i).getAttributs().put("information", content);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -46,7 +46,7 @@ public class actsautmultipletrue extends AbstractAction{
|
|||||||
if(!content.isEmpty()) if(content.replaceAll(" ", "").length()==0) content=content.replaceAll(" ", "");
|
if(!content.isEmpty()) if(content.replaceAll(" ", "").length()==0) content=content.replaceAll(" ", "");
|
||||||
if(content.length()>300) content = content.substring(0, 299);
|
if(content.length()>300) content = content.substring(0, 299);
|
||||||
|
|
||||||
content = nod.toString() + " : " + content;
|
content = nod.getNomElt() + " : " + content;
|
||||||
nod.getAttributs().put("information", content);
|
nod.getAttributs().put("information", content);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BIN
src/resources/informationmultiple.png
Normal file
BIN
src/resources/informationmultiple.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.3 KiB |
BIN
src/resources/informationmultiplemini.png
Normal file
BIN
src/resources/informationmultiplemini.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.0 KiB |
Loading…
x
Reference in New Issue
Block a user