MAJ V4.5.0
ajout des bouton evaluation alignement gauche des tabulations.
|
@ -5,7 +5,6 @@ import javax.swing.JMenu;
|
||||||
|
|
||||||
import action.actAllContent;
|
import action.actAllContent;
|
||||||
import action.actEvalInitialCreator;
|
import action.actEvalInitialCreator;
|
||||||
import action.actEvalTabAlignementGauche;
|
|
||||||
import action.actEvalTabDefautStyleLeader;
|
import action.actEvalTabDefautStyleLeader;
|
||||||
import action.actevalNameCreator;
|
import action.actevalNameCreator;
|
||||||
import cXML.node;
|
import cXML.node;
|
||||||
|
@ -41,6 +40,7 @@ import sousmenuEvaluation.mnEvalPiedPageActive;
|
||||||
import sousmenuEvaluation.mnEvalPiedPagePasActive;
|
import sousmenuEvaluation.mnEvalPiedPagePasActive;
|
||||||
import sousmenuEvaluation.mnEvalPlacementParagraphe;
|
import sousmenuEvaluation.mnEvalPlacementParagraphe;
|
||||||
import sousmenuEvaluation.mnEvalSautPageColonne;
|
import sousmenuEvaluation.mnEvalSautPageColonne;
|
||||||
|
import sousmenuEvaluation.mnEvalTabAlignementGauche;
|
||||||
import sousmenuEvaluation.mnEvalTextUserDefined;
|
import sousmenuEvaluation.mnEvalTextUserDefined;
|
||||||
import sousmenuEvaluation.mnEvaluerATraversAnalyseStyle;
|
import sousmenuEvaluation.mnEvaluerATraversAnalyseStyle;
|
||||||
import sousmenuEvaluation.mnEvaluerDernierEnfant;
|
import sousmenuEvaluation.mnEvaluerDernierEnfant;
|
||||||
|
@ -174,7 +174,7 @@ public class MnGroupeMethodeEvaluer {
|
||||||
if(listeDesNodesTabStop.isStyleTab(nod)) {
|
if(listeDesNodesTabStop.isStyleTab(nod)) {
|
||||||
if(nod.getAttributs().get("style:type")==null) {
|
if(nod.getAttributs().get("style:type")==null) {
|
||||||
mnGroupeMethodeEvaluer.addSeparator();
|
mnGroupeMethodeEvaluer.addSeparator();
|
||||||
mnGroupeMethodeEvaluer.add(new actEvalTabAlignementGauche());
|
mnGroupeMethodeEvaluer.add(mnEvalTabAlignementGauche.menu());
|
||||||
}
|
}
|
||||||
if(nod.getAttributs().get("style:leader-text")==null) {
|
if(nod.getAttributs().get("style:leader-text")==null) {
|
||||||
mnGroupeMethodeEvaluer.addSeparator();
|
mnGroupeMethodeEvaluer.addSeparator();
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
package sousmenuEvaluation;
|
||||||
|
|
||||||
|
import javax.swing.ImageIcon;
|
||||||
|
import javax.swing.JMenu;
|
||||||
|
|
||||||
|
import action.actEvalTabAlignementGaucheNon;
|
||||||
|
import action.actEvalTabAlignementGaucheOui;
|
||||||
|
import fenetres.create;
|
||||||
|
|
||||||
|
public class mnEvalTabAlignementGauche {
|
||||||
|
public static JMenu menu(){
|
||||||
|
JMenu mnEvalTabAlignementGauche= new JMenu("Evaluer l'agniment à gauche d'une tab.");
|
||||||
|
mnEvalTabAlignementGauche.setIcon(new ImageIcon(create.class.getResource("/resources/evaltabalgngauchemini.png")));
|
||||||
|
mnEvalTabAlignementGauche.add(new actEvalTabAlignementGaucheOui());
|
||||||
|
mnEvalTabAlignementGauche.add(new actEvalTabAlignementGaucheNon());
|
||||||
|
return mnEvalTabAlignementGauche;
|
||||||
|
}
|
||||||
|
}
|
|
@ -487,3 +487,13 @@
|
||||||
/zipstudent.svg
|
/zipstudent.svg
|
||||||
/zipstudentmini.png
|
/zipstudentmini.png
|
||||||
/resources/
|
/resources/
|
||||||
|
/evalPiedPageActivefalse.png
|
||||||
|
/evalPiedPageActivefalsemini.png
|
||||||
|
/evalPiedPageActiveoui.png
|
||||||
|
/evalPiedPageActiveouimini.png
|
||||||
|
/evalPiedPageActivetrue.png
|
||||||
|
/evalPiedPageActivetruemini.png
|
||||||
|
/evalPiedPagePasActivefalse.png
|
||||||
|
/evalPiedPagePasActivefalsemini.png
|
||||||
|
/evalPiedPagePasActivetrue.png
|
||||||
|
/evalPiedPagePasActivetruemini.png
|
||||||
|
|
Before Width: | Height: | Size: 682 B After Width: | Height: | Size: 735 B |
Before Width: | Height: | Size: 434 B After Width: | Height: | Size: 451 B |
|
@ -9,9 +9,9 @@
|
||||||
id="svg5"
|
id="svg5"
|
||||||
inkscape:version="1.3 (0e150ed6c4, 2023-07-21)"
|
inkscape:version="1.3 (0e150ed6c4, 2023-07-21)"
|
||||||
sodipodi:docname="evaltabaligngauche.svg"
|
sodipodi:docname="evaltabaligngauche.svg"
|
||||||
inkscape:export-filename="evaltabalgngauche.png"
|
inkscape:export-filename="evaltabalgngauchemini.png"
|
||||||
inkscape:export-xdpi="96"
|
inkscape:export-xdpi="51.200001"
|
||||||
inkscape:export-ydpi="96"
|
inkscape:export-ydpi="51.200001"
|
||||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
@ -27,9 +27,9 @@
|
||||||
inkscape:deskcolor="#d1d1d1"
|
inkscape:deskcolor="#d1d1d1"
|
||||||
inkscape:document-units="mm"
|
inkscape:document-units="mm"
|
||||||
showgrid="false"
|
showgrid="false"
|
||||||
inkscape:zoom="14.50748"
|
inkscape:zoom="11.912965"
|
||||||
inkscape:cx="17.43928"
|
inkscape:cx="22.496498"
|
||||||
inkscape:cy="19.920758"
|
inkscape:cy="22.496498"
|
||||||
inkscape:window-width="1920"
|
inkscape:window-width="1920"
|
||||||
inkscape:window-height="1009"
|
inkscape:window-height="1009"
|
||||||
inkscape:window-x="-8"
|
inkscape:window-x="-8"
|
||||||
|
@ -59,16 +59,16 @@
|
||||||
id="rect3"
|
id="rect3"
|
||||||
width="4.1581998"
|
width="4.1581998"
|
||||||
height="1.5137306"
|
height="1.5137306"
|
||||||
x="0.14590174"
|
x="0"
|
||||||
y="5.6719303"
|
y="3.3843317"
|
||||||
ry="0" />
|
ry="0" />
|
||||||
<path
|
<path
|
||||||
style="fill:none;stroke:#ff0000;stroke-width:1.1;stroke-linecap:round;stroke-linejoin:bevel;stroke-dasharray:none"
|
style="fill:none;stroke:#ff0000;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:bevel;stroke-dasharray:none"
|
||||||
d="M 6.8573819,2.4073788 V 9.0823837 L 11.453287,9.064146"
|
d="M 6.4379146,1.071159 V 7.7461638 L 11.03382,7.7279261"
|
||||||
id="path2" />
|
id="path2" />
|
||||||
<path
|
<path
|
||||||
style="fill:#000080;fill-opacity:1;stroke:none;stroke-width:0.899999;stroke-linecap:round;stroke-linejoin:bevel;stroke-dasharray:none"
|
style="fill:#000080;fill-opacity:1;stroke:none;stroke-width:0.899999;stroke-linecap:round;stroke-linejoin:bevel;stroke-dasharray:none"
|
||||||
d="M 6.3832014,6.4561521 3.1371604,2.2797148 v 7.6051284 z"
|
d="M 6.4379146,4.4086614 3.1918736,0.23222401 V 7.8373525 Z"
|
||||||
id="path3"
|
id="path3"
|
||||||
sodipodi:nodetypes="cccc" />
|
sodipodi:nodetypes="cccc" />
|
||||||
</g>
|
</g>
|
||||||
|
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 682 B After Width: | Height: | Size: 735 B |
Before Width: | Height: | Size: 434 B After Width: | Height: | Size: 451 B |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 910 B |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 887 B |
Before Width: | Height: | Size: 682 B After Width: | Height: | Size: 735 B |
Before Width: | Height: | Size: 434 B After Width: | Height: | Size: 451 B |
|
@ -9,9 +9,9 @@
|
||||||
id="svg5"
|
id="svg5"
|
||||||
inkscape:version="1.3 (0e150ed6c4, 2023-07-21)"
|
inkscape:version="1.3 (0e150ed6c4, 2023-07-21)"
|
||||||
sodipodi:docname="evaltabaligngauche.svg"
|
sodipodi:docname="evaltabaligngauche.svg"
|
||||||
inkscape:export-filename="evaltabalgngauche.png"
|
inkscape:export-filename="evaltabalgngauchemini.png"
|
||||||
inkscape:export-xdpi="96"
|
inkscape:export-xdpi="51.200001"
|
||||||
inkscape:export-ydpi="96"
|
inkscape:export-ydpi="51.200001"
|
||||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
@ -27,9 +27,9 @@
|
||||||
inkscape:deskcolor="#d1d1d1"
|
inkscape:deskcolor="#d1d1d1"
|
||||||
inkscape:document-units="mm"
|
inkscape:document-units="mm"
|
||||||
showgrid="false"
|
showgrid="false"
|
||||||
inkscape:zoom="14.50748"
|
inkscape:zoom="11.912965"
|
||||||
inkscape:cx="17.43928"
|
inkscape:cx="22.496498"
|
||||||
inkscape:cy="19.920758"
|
inkscape:cy="22.496498"
|
||||||
inkscape:window-width="1920"
|
inkscape:window-width="1920"
|
||||||
inkscape:window-height="1009"
|
inkscape:window-height="1009"
|
||||||
inkscape:window-x="-8"
|
inkscape:window-x="-8"
|
||||||
|
@ -59,16 +59,16 @@
|
||||||
id="rect3"
|
id="rect3"
|
||||||
width="4.1581998"
|
width="4.1581998"
|
||||||
height="1.5137306"
|
height="1.5137306"
|
||||||
x="0.14590174"
|
x="0"
|
||||||
y="5.6719303"
|
y="3.3843317"
|
||||||
ry="0" />
|
ry="0" />
|
||||||
<path
|
<path
|
||||||
style="fill:none;stroke:#ff0000;stroke-width:1.1;stroke-linecap:round;stroke-linejoin:bevel;stroke-dasharray:none"
|
style="fill:none;stroke:#ff0000;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:bevel;stroke-dasharray:none"
|
||||||
d="M 6.8573819,2.4073788 V 9.0823837 L 11.453287,9.064146"
|
d="M 6.4379146,1.071159 V 7.7461638 L 11.03382,7.7279261"
|
||||||
id="path2" />
|
id="path2" />
|
||||||
<path
|
<path
|
||||||
style="fill:#000080;fill-opacity:1;stroke:none;stroke-width:0.899999;stroke-linecap:round;stroke-linejoin:bevel;stroke-dasharray:none"
|
style="fill:#000080;fill-opacity:1;stroke:none;stroke-width:0.899999;stroke-linecap:round;stroke-linejoin:bevel;stroke-dasharray:none"
|
||||||
d="M 6.3832014,6.4561521 3.1371604,2.2797148 v 7.6051284 z"
|
d="M 6.4379146,4.4086614 3.1918736,0.23222401 V 7.8373525 Z"
|
||||||
id="path3"
|
id="path3"
|
||||||
sodipodi:nodetypes="cccc" />
|
sodipodi:nodetypes="cccc" />
|
||||||
</g>
|
</g>
|
||||||
|
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 997 B After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 596 B After Width: | Height: | Size: 676 B |
|
@ -2,7 +2,7 @@
|
||||||
<svg
|
<svg
|
||||||
inkscape:export-ydpi="90"
|
inkscape:export-ydpi="90"
|
||||||
inkscape:export-xdpi="90"
|
inkscape:export-xdpi="90"
|
||||||
inkscape:export-filename="C:\Users\pabr6\git\analyseWriter\MEPTL\icons\piedpageoui.png"
|
inkscape:export-filename="evalPiedPageActivetrue.png"
|
||||||
sodipodi:docname="piedpageoui.svg"
|
sodipodi:docname="piedpageoui.svg"
|
||||||
inkscape:version="1.3 (0e150ed6c4, 2023-07-21)"
|
inkscape:version="1.3 (0e150ed6c4, 2023-07-21)"
|
||||||
id="svg8"
|
id="svg8"
|
||||||
|
@ -181,8 +181,8 @@
|
||||||
inkscape:document-rotation="0"
|
inkscape:document-rotation="0"
|
||||||
inkscape:current-layer="g14476"
|
inkscape:current-layer="g14476"
|
||||||
inkscape:document-units="mm"
|
inkscape:document-units="mm"
|
||||||
inkscape:cy="23.952732"
|
inkscape:cy="32.055701"
|
||||||
inkscape:cx="23.952732"
|
inkscape:cx="23.997254"
|
||||||
inkscape:zoom="11.230452"
|
inkscape:zoom="11.230452"
|
||||||
inkscape:pageshadow="2"
|
inkscape:pageshadow="2"
|
||||||
inkscape:pageopacity="0.0"
|
inkscape:pageopacity="0.0"
|
||||||
|
@ -202,7 +202,18 @@
|
||||||
inkscape:object-paths="true"
|
inkscape:object-paths="true"
|
||||||
inkscape:snap-global="false"
|
inkscape:snap-global="false"
|
||||||
inkscape:showpageshadow="2"
|
inkscape:showpageshadow="2"
|
||||||
inkscape:deskcolor="#d1d1d1" />
|
inkscape:deskcolor="#d1d1d1">
|
||||||
|
<sodipodi:guide
|
||||||
|
position="11.968204,15.055946"
|
||||||
|
orientation="1,0"
|
||||||
|
id="guide1"
|
||||||
|
inkscape:locked="false" />
|
||||||
|
<sodipodi:guide
|
||||||
|
position="2.0713096,11.903197"
|
||||||
|
orientation="0,-1"
|
||||||
|
id="guide2"
|
||||||
|
inkscape:locked="false" />
|
||||||
|
</sodipodi:namedview>
|
||||||
<metadata
|
<metadata
|
||||||
id="metadata5">
|
id="metadata5">
|
||||||
<rdf:RDF>
|
<rdf:RDF>
|
||||||
|
@ -261,7 +272,7 @@
|
||||||
</g>
|
</g>
|
||||||
<g
|
<g
|
||||||
id="g919"
|
id="g919"
|
||||||
transform="matrix(11.472593,0,0,11.726147,-182.76055,26.502744)"
|
transform="matrix(11.472593,0,0,11.726147,-122.14246,21.545033)"
|
||||||
style="fill:#0000ff;stroke:#000000;stroke-width:0.57493;stroke-opacity:1">
|
style="fill:#0000ff;stroke:#000000;stroke-width:0.57493;stroke-opacity:1">
|
||||||
<rect
|
<rect
|
||||||
ry="0.56339979"
|
ry="0.56339979"
|
||||||
|
@ -283,7 +294,7 @@
|
||||||
</g>
|
</g>
|
||||||
<g
|
<g
|
||||||
id="g923-4"
|
id="g923-4"
|
||||||
transform="matrix(11.476959,0,0,11.714504,-121.84607,70.232765)"
|
transform="matrix(11.476959,0,0,11.714504,-173.82547,69.768748)"
|
||||||
style="fill:#0000ff;stroke-width:0.553289">
|
style="fill:#0000ff;stroke-width:0.553289">
|
||||||
<rect
|
<rect
|
||||||
style="fill:#00bf00;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.0359638;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
|
style="fill:#00bf00;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.0359638;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
|
||||||
|
|
Before Width: | Height: | Size: 9.8 KiB After Width: | Height: | Size: 10 KiB |
|
@ -17,7 +17,7 @@ public class actEvalPiedPageActiveNon extends AbstractAction{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
{
|
{
|
||||||
putValue( Action.NAME, "Supprime pied page active" );
|
putValue( Action.NAME, "Supprime pied page active" );
|
||||||
putValue( Action.SHORT_DESCRIPTION, "Supprime l'évaluation de la présence d'attribut du node." );
|
putValue( Action.SHORT_DESCRIPTION, "Supprime l'évaluation de l'activation du pied de page." );
|
||||||
putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/falsemini.png")));
|
putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/falsemini.png")));
|
||||||
putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/evalPiedPageActivefalsemini.png")) );
|
putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/evalPiedPageActivefalsemini.png")) );
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,7 @@ public class actEvalPiedPagePasActive extends AbstractAction{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
{
|
{
|
||||||
putValue( Action.NAME, "Oui, combien de point?" );
|
putValue( Action.NAME, "Oui, combien de point?" );
|
||||||
putValue( Action.SHORT_DESCRIPTION, "Evaluer l'absence d'attribut du node" );
|
putValue( Action.SHORT_DESCRIPTION, "Evaluer la non activation du pied de page" );
|
||||||
putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/evalPiedPagePasActivetruemini.png")) );
|
putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/evalPiedPagePasActivetruemini.png")) );
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -17,7 +17,7 @@ public class actEvalPiedPagePasActiveNon extends AbstractAction{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
{
|
{
|
||||||
putValue( Action.NAME, "Supprime pied page pas active" );
|
putValue( Action.NAME, "Supprime pied page pas active" );
|
||||||
putValue( Action.SHORT_DESCRIPTION, "Supprime l'évaluation de l'absence d'attribut du node." );
|
putValue( Action.SHORT_DESCRIPTION, "Supprime l'évaluation de la non activation du pied de page." );
|
||||||
putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/evalPiedPagePasActivefalsemini.png")));
|
putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/evalPiedPagePasActivefalsemini.png")));
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -14,7 +14,7 @@ import fenetres.create;
|
||||||
public class actEvalSautPageColonneOui extends AbstractAction{
|
public class actEvalSautPageColonneOui extends AbstractAction{
|
||||||
{
|
{
|
||||||
putValue( Action.NAME, "Oui, combien de point?" );
|
putValue( Action.NAME, "Oui, combien de point?" );
|
||||||
putValue( Action.SHORT_DESCRIPTION, "Evaluer la présence ou l'absence d'un saut" );
|
putValue( Action.SHORT_DESCRIPTION, "Evaluer le saut de page ou de colonne." );
|
||||||
putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/sautpagecolonnetruemini.png")) );
|
putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/sautpagecolonnetruemini.png")) );
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
@ -30,15 +30,20 @@ public class actEvalSautPageColonneOui extends AbstractAction{
|
||||||
point = Integer.valueOf(nod.getAttributs().get("evalSautPageColonne"));
|
point = Integer.valueOf(nod.getAttributs().get("evalSautPageColonne"));
|
||||||
}
|
}
|
||||||
String a = JOptionPane.showInputDialog(null,"Quel est le nombre de point?",point);
|
String a = JOptionPane.showInputDialog(null,"Quel est le nombre de point?",point);
|
||||||
if(a!=null)if(!a.isEmpty()||!a.isBlank()) {
|
if(a!=null)if(!a.isBlank()) {
|
||||||
try {
|
try {
|
||||||
point = Integer.valueOf(a);
|
point = Integer.valueOf(a);
|
||||||
if(point<=0) {
|
if(point<0) {
|
||||||
nod.getAttributs().put("evalSautPageColonne", String.valueOf(0));
|
nod.getAttributs().put("evalSautPageColonne", String.valueOf(0));
|
||||||
fenetres.create.getTextNodeSelect().setText(baliseStyle.balise());
|
fenetres.create.getTextNodeSelect().setText(baliseStyle.balise());
|
||||||
fenetres.create.getTextNodeSelect().setText("<h2>Erreur la valeur doit être un nombre entier POSITIF supérieur à zéro.<br>Cependant,la valeur a été modifiée.<br>evalSautPageColonne=0.</h2>");
|
fenetres.create.getTextNodeSelect().setText("<h2>Erreur la valeur doit être un nombre entier POSITIF supérieur à zéro.<br>Cependant,la valeur a été modifiée.<br>evalSautPageColonne=0.</h2>");
|
||||||
}else {
|
}else {
|
||||||
nod.getAttributs().put("evalSautPageColonne", String.valueOf(point));
|
if(point>0) {
|
||||||
|
nod.getAttributs().put("evalSautPageColonne", String.valueOf(point));
|
||||||
|
}else {
|
||||||
|
nod.supprimeAttribut("evalSautPageColonne");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
} catch (Exception e2) {
|
} catch (Exception e2) {
|
||||||
fenetres.create.getTextNodeSelect().setText(baliseStyle.balise());
|
fenetres.create.getTextNodeSelect().setText(baliseStyle.balise());
|
||||||
|
|
|
@ -0,0 +1,30 @@
|
||||||
|
package action;
|
||||||
|
|
||||||
|
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 actEvalTabAlignementGaucheNon extends AbstractAction{
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
{
|
||||||
|
putValue( Action.NAME, "Supprime évaluation de l'alignement à gauche de la tabulation" );
|
||||||
|
putValue( Action.SHORT_DESCRIPTION, "Supprime évaluation de l'alignement à gauche de la tabulation.");
|
||||||
|
putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/evaltabalgngauchefalsemini.png")));
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public void actionPerformed(ActionEvent e) {
|
||||||
|
node nod = (node) fenetres.create.getSelectNode().getUserObject();
|
||||||
|
nod.supprimeAttribut("evalTABAlignementAGauche");
|
||||||
|
fenetres.create.getTextNodeSelect().refreshAffichage(nod);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -11,16 +11,16 @@ import cXML.node;
|
||||||
import fenetres.baliseStyle;
|
import fenetres.baliseStyle;
|
||||||
import fenetres.create;
|
import fenetres.create;
|
||||||
|
|
||||||
public class actEvalTabAlignementGauche extends AbstractAction{
|
public class actEvalTabAlignementGaucheOui extends AbstractAction{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
{
|
{
|
||||||
putValue( Action.NAME, "Evaluer l'alignement à gauche de la tabulation" );
|
putValue( Action.NAME, "Oui, combien de point?" );
|
||||||
putValue( Action.SHORT_DESCRIPTION, "Evaluer l'alignement à gauche de la tabulation" );
|
putValue( Action.SHORT_DESCRIPTION, "Evaluer l'alignement à gauche de la tabulation" );
|
||||||
putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/evaltabalgngauchemini.png")) );
|
putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/evaltabalgngauchetruemini.png")) );
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public void actionPerformed(ActionEvent e) {
|
public void actionPerformed(ActionEvent e) {
|
||||||
|
@ -34,15 +34,19 @@ public class actEvalTabAlignementGauche extends AbstractAction{
|
||||||
if(nod.getAttributs().get("style:type")==null) {
|
if(nod.getAttributs().get("style:type")==null) {
|
||||||
String a = JOptionPane.showInputDialog(null,"Quel est le nombre de point?",point);
|
String a = JOptionPane.showInputDialog(null,"Quel est le nombre de point?",point);
|
||||||
|
|
||||||
if(!a.isEmpty()) {
|
if(a!=null)if(!a.isBlank()) {
|
||||||
try {
|
try {
|
||||||
point = Integer.valueOf(a);
|
point = Integer.valueOf(a);
|
||||||
if(point<=0) {
|
if(point<0) {
|
||||||
nod.getAttributs().put("evalTABAlignementAGauche", String.valueOf(0));
|
nod.getAttributs().put("evalTABAlignementAGauche", String.valueOf(0));
|
||||||
fenetres.create.getTextNodeSelect().setText(baliseStyle.balise());
|
fenetres.create.getTextNodeSelect().setText(baliseStyle.balise());
|
||||||
fenetres.create.getTextNodeSelect().setText("<h2>Erreur la valeur doit être un nombre entier POSITIF supérieur à zéro.<br>Cependant,la valeur a été modifiée.<br>evalTABAlignementAGauche=0.</h2>");
|
fenetres.create.getTextNodeSelect().setText("<h2>Erreur la valeur doit être un nombre entier POSITIF supérieur à zéro.<br>Cependant,la valeur a été modifiée.<br>evalTABAlignementAGauche=0.</h2>");
|
||||||
}else {
|
}else {
|
||||||
nod.getAttributs().put("evalTABAlignementAGauche", String.valueOf(point));
|
if(point>0) {
|
||||||
|
nod.getAttributs().put("evalTABAlignementAGauche", String.valueOf(point));
|
||||||
|
}else {
|
||||||
|
nod.supprimeAttribut("evalTABAlignementAGauche");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} catch (Exception e2) {
|
} catch (Exception e2) {
|
||||||
fenetres.create.getTextNodeSelect().setText(baliseStyle.balise());
|
fenetres.create.getTextNodeSelect().setText(baliseStyle.balise());
|
|
@ -77,6 +77,8 @@ import action.actEvalPiedPagePasActiveNon;
|
||||||
import action.actEvalPlacementParagrapheOui;
|
import action.actEvalPlacementParagrapheOui;
|
||||||
import action.actEvalSautPageColonneNon;
|
import action.actEvalSautPageColonneNon;
|
||||||
import action.actEvalSautPageColonneOui;
|
import action.actEvalSautPageColonneOui;
|
||||||
|
import action.actEvalTabAlignementGaucheNon;
|
||||||
|
import action.actEvalTabAlignementGaucheOui;
|
||||||
import action.actEvalueFalse;
|
import action.actEvalueFalse;
|
||||||
import action.actEvalueTrue;
|
import action.actEvalueTrue;
|
||||||
import action.actEvaluer;
|
import action.actEvaluer;
|
||||||
|
@ -113,6 +115,7 @@ import list.listeDesNodesFormatageDirect;
|
||||||
import list.listeDesNodesPourEvaluationEntetePage;
|
import list.listeDesNodesPourEvaluationEntetePage;
|
||||||
import list.listeDesNodesPourEvaluerPage;
|
import list.listeDesNodesPourEvaluerPage;
|
||||||
import list.listeDesNodesPourEvaluerPiedDePage;
|
import list.listeDesNodesPourEvaluerPiedDePage;
|
||||||
|
import list.listeDesNodesTabStop;
|
||||||
import list.listeEvalNameNode;
|
import list.listeEvalNameNode;
|
||||||
import menucontextuel.CreatePopupMenu;
|
import menucontextuel.CreatePopupMenu;
|
||||||
import net.miginfocom.swing.MigLayout;
|
import net.miginfocom.swing.MigLayout;
|
||||||
|
@ -178,7 +181,8 @@ public final class create extends JFrame {
|
||||||
private final JButton btnEvalPiedPageActivefalse = new JButton(new actEvalPiedPageActiveNon());
|
private final JButton btnEvalPiedPageActivefalse = new JButton(new actEvalPiedPageActiveNon());
|
||||||
private final JButton btnEvalPiedPagePasActivetrue = new JButton(new actEvalPiedPagePasActive());
|
private final JButton btnEvalPiedPagePasActivetrue = new JButton(new actEvalPiedPagePasActive());
|
||||||
private final JButton btnEvalPiedPagePasActivefalse = new JButton(new actEvalPiedPagePasActiveNon());
|
private final JButton btnEvalPiedPagePasActivefalse = new JButton(new actEvalPiedPagePasActiveNon());
|
||||||
|
private final JButton btnevalTABAlignementAGauchetrue = new JButton(new actEvalTabAlignementGaucheOui());
|
||||||
|
private final JButton btnevalTABAlignementAGauchefalse = new JButton(new actEvalTabAlignementGaucheNon());
|
||||||
|
|
||||||
// private AbstractAction allContent = new actAllContent();
|
// private AbstractAction allContent = new actAllContent();
|
||||||
|
|
||||||
|
@ -256,6 +260,10 @@ public final class create extends JFrame {
|
||||||
btnEvalPiedPagePasActivetrue.setEnabled(false);
|
btnEvalPiedPagePasActivetrue.setEnabled(false);
|
||||||
btnEvalPiedPagePasActivefalse.setIcon(new ImageIcon(create.class.getResource("/resources/evalPiedPagePasActivefalse.png")));
|
btnEvalPiedPagePasActivefalse.setIcon(new ImageIcon(create.class.getResource("/resources/evalPiedPagePasActivefalse.png")));
|
||||||
btnEvalPiedPagePasActivefalse.setEnabled(false);
|
btnEvalPiedPagePasActivefalse.setEnabled(false);
|
||||||
|
btnevalTABAlignementAGauchetrue.setIcon(new ImageIcon(create.class.getResource("/resources/evaltabalgngauchetrue.png")));
|
||||||
|
btnevalTABAlignementAGauchetrue.setEnabled(false);
|
||||||
|
btnevalTABAlignementAGauchefalse.setIcon(new ImageIcon(create.class.getResource("/resources/evaltabalgngauchefalse.png")));
|
||||||
|
btnevalTABAlignementAGauchefalse.setEnabled(false);
|
||||||
|
|
||||||
setBackground(new Color(255, 255, 255));
|
setBackground(new Color(255, 255, 255));
|
||||||
try {
|
try {
|
||||||
|
@ -480,6 +488,12 @@ public final class create extends JFrame {
|
||||||
btnEvalPiedPagePasActivefalse.setText("");
|
btnEvalPiedPagePasActivefalse.setText("");
|
||||||
panelDroiteBoutons.add(btnEvalPiedPagePasActivefalse, "cell 3 9");
|
panelDroiteBoutons.add(btnEvalPiedPagePasActivefalse, "cell 3 9");
|
||||||
|
|
||||||
|
btnevalTABAlignementAGauchetrue.setText("");
|
||||||
|
panelDroiteBoutons.add(btnevalTABAlignementAGauchetrue, "cell 0 10");
|
||||||
|
|
||||||
|
btnevalTABAlignementAGauchefalse.setText("");
|
||||||
|
panelDroiteBoutons.add(btnevalTABAlignementAGauchefalse, "cell 1 10");
|
||||||
|
|
||||||
|
|
||||||
JSplitPane splitPane2 = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, rightScrollPane, ScrollPaneTableBouton );
|
JSplitPane splitPane2 = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, rightScrollPane, ScrollPaneTableBouton );
|
||||||
splitPane2.setBounds(10, 10, 1364, 783);
|
splitPane2.setBounds(10, 10, 1364, 783);
|
||||||
|
@ -590,6 +604,8 @@ public final class create extends JFrame {
|
||||||
btnEvalPiedPageActivefalse.setEnabled(false);
|
btnEvalPiedPageActivefalse.setEnabled(false);
|
||||||
btnEvalPiedPagePasActivetrue.setEnabled(false);
|
btnEvalPiedPagePasActivetrue.setEnabled(false);
|
||||||
btnEvalPiedPagePasActivefalse.setEnabled(false);
|
btnEvalPiedPagePasActivefalse.setEnabled(false);
|
||||||
|
btnevalTABAlignementAGauchetrue.setEnabled(false);
|
||||||
|
btnevalTABAlignementAGauchefalse.setEnabled(false);
|
||||||
|
|
||||||
if(listeDesNodesAllContent.isAllContent(nod)) {
|
if(listeDesNodesAllContent.isAllContent(nod)) {
|
||||||
btnAllContent.setEnabled(true);
|
btnAllContent.setEnabled(true);
|
||||||
|
@ -645,8 +661,12 @@ public final class create extends JFrame {
|
||||||
if(listeDesNodesPourEvaluerPiedDePage.isPiedDePage(nod)){
|
if(listeDesNodesPourEvaluerPiedDePage.isPiedDePage(nod)){
|
||||||
btnEvalPiedPageActivetrue.setEnabled(true);
|
btnEvalPiedPageActivetrue.setEnabled(true);
|
||||||
btnEvalPiedPageActivefalse.setEnabled(true);
|
btnEvalPiedPageActivefalse.setEnabled(true);
|
||||||
btnEvalPiedPagePasActivetrue.setEnabled(false);
|
btnEvalPiedPagePasActivetrue.setEnabled(true);
|
||||||
btnEvalPiedPagePasActivefalse.setEnabled(false);
|
btnEvalPiedPagePasActivefalse.setEnabled(true);
|
||||||
|
}
|
||||||
|
if(listeDesNodesTabStop.isStyleTab(nod)) {
|
||||||
|
btnevalTABAlignementAGauchetrue.setEnabled(true);
|
||||||
|
btnevalTABAlignementAGauchetrue.setEnabled(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Before Width: | Height: | Size: 682 B After Width: | Height: | Size: 735 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 690 B |
Before Width: | Height: | Size: 434 B After Width: | Height: | Size: 451 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 665 B |