diff --git a/bin/.gitignore b/bin/.gitignore index c3fb15f..75cdcb7 100644 --- a/bin/.gitignore +++ b/bin/.gitignore @@ -1,15 +1 @@ -/MEPTL/ -/app/ -/calcul/ -/resources/ -/entetenon.png -/entetenon.svg -/entetenonmini.png -/piedpagenon.png -/piedpagenon.svg -/piedpagenonmini.png -/list/ -/evalnamesequence.png -/evalnamesequence.svg -/evalnamesequencemini.png -/evaluer/ +/fenetres/ diff --git a/bin/MEPTL/ecritureSujet.class b/bin/MEPTL/ecritureSujet.class index d1c1ecc..623a81c 100644 Binary files a/bin/MEPTL/ecritureSujet.class and b/bin/MEPTL/ecritureSujet.class differ diff --git a/bin/app/ProgressBar$1.class b/bin/app/ProgressBar$1.class deleted file mode 100644 index 4eafe54..0000000 Binary files a/bin/app/ProgressBar$1.class and /dev/null differ diff --git a/bin/app/ProgressBar.class b/bin/app/ProgressBar.class deleted file mode 100644 index c59ac4f..0000000 Binary files a/bin/app/ProgressBar.class and /dev/null differ diff --git a/bin/app/about$1.class b/bin/app/about$1.class deleted file mode 100644 index 51498cc..0000000 Binary files a/bin/app/about$1.class and /dev/null differ diff --git a/bin/app/about$2.class b/bin/app/about$2.class deleted file mode 100644 index a9c16aa..0000000 Binary files a/bin/app/about$2.class and /dev/null differ diff --git a/bin/app/about.class b/bin/app/about.class deleted file mode 100644 index 5a2ad10..0000000 Binary files a/bin/app/about.class and /dev/null differ diff --git a/bin/app/afficheText.class b/bin/app/afficheText.class deleted file mode 100644 index 76bdf46..0000000 Binary files a/bin/app/afficheText.class and /dev/null differ diff --git a/bin/app/allContent$1.class b/bin/app/allContent$1.class deleted file mode 100644 index 4288755..0000000 Binary files a/bin/app/allContent$1.class and /dev/null differ diff --git a/bin/app/allContent$2.class b/bin/app/allContent$2.class deleted file mode 100644 index 7c02243..0000000 Binary files a/bin/app/allContent$2.class and /dev/null differ diff --git a/bin/app/allContent.class b/bin/app/allContent.class deleted file mode 100644 index 669f3ae..0000000 Binary files a/bin/app/allContent.class and /dev/null differ diff --git a/bin/app/attributs$1.class b/bin/app/attributs$1.class deleted file mode 100644 index ab827b8..0000000 Binary files a/bin/app/attributs$1.class and /dev/null differ diff --git a/bin/app/attributs$10.class b/bin/app/attributs$10.class deleted file mode 100644 index 6167364..0000000 Binary files a/bin/app/attributs$10.class and /dev/null differ diff --git a/bin/app/attributs$11.class b/bin/app/attributs$11.class deleted file mode 100644 index fa49633..0000000 Binary files a/bin/app/attributs$11.class and /dev/null differ diff --git a/bin/app/attributs$2.class b/bin/app/attributs$2.class deleted file mode 100644 index 7843c9e..0000000 Binary files a/bin/app/attributs$2.class and /dev/null differ diff --git a/bin/app/attributs$3.class b/bin/app/attributs$3.class deleted file mode 100644 index 8cd567d..0000000 Binary files a/bin/app/attributs$3.class and /dev/null differ diff --git a/bin/app/attributs$4.class b/bin/app/attributs$4.class deleted file mode 100644 index 48c4815..0000000 Binary files a/bin/app/attributs$4.class and /dev/null differ diff --git a/bin/app/attributs$5.class b/bin/app/attributs$5.class deleted file mode 100644 index 698bd59..0000000 Binary files a/bin/app/attributs$5.class and /dev/null differ diff --git a/bin/app/attributs$6.class b/bin/app/attributs$6.class deleted file mode 100644 index 5511b01..0000000 Binary files a/bin/app/attributs$6.class and /dev/null differ diff --git a/bin/app/attributs$7.class b/bin/app/attributs$7.class deleted file mode 100644 index ebd75b8..0000000 Binary files a/bin/app/attributs$7.class and /dev/null differ diff --git a/bin/app/attributs$8.class b/bin/app/attributs$8.class deleted file mode 100644 index cf9c133..0000000 Binary files a/bin/app/attributs$8.class and /dev/null differ diff --git a/bin/app/attributs$9.class b/bin/app/attributs$9.class deleted file mode 100644 index 7e4fb7e..0000000 Binary files a/bin/app/attributs$9.class and /dev/null differ diff --git a/bin/app/attributs$MyMouseListener.class b/bin/app/attributs$MyMouseListener.class deleted file mode 100644 index 6bcdae9..0000000 Binary files a/bin/app/attributs$MyMouseListener.class and /dev/null differ diff --git a/bin/app/attributs.class b/bin/app/attributs.class deleted file mode 100644 index da4fd6a..0000000 Binary files a/bin/app/attributs.class and /dev/null differ diff --git a/bin/app/baliseStyle.class b/bin/app/baliseStyle.class deleted file mode 100644 index adbe881..0000000 Binary files a/bin/app/baliseStyle.class and /dev/null differ diff --git a/bin/app/create$1.class b/bin/app/create$1.class deleted file mode 100644 index c0701f7..0000000 Binary files a/bin/app/create$1.class and /dev/null differ diff --git a/bin/app/create$10.class b/bin/app/create$10.class deleted file mode 100644 index d6a90df..0000000 Binary files a/bin/app/create$10.class and /dev/null differ diff --git a/bin/app/create$11.class b/bin/app/create$11.class deleted file mode 100644 index ed9f638..0000000 Binary files a/bin/app/create$11.class and /dev/null differ diff --git a/bin/app/create$12.class b/bin/app/create$12.class deleted file mode 100644 index 3783069..0000000 Binary files a/bin/app/create$12.class and /dev/null differ diff --git a/bin/app/create$13.class b/bin/app/create$13.class deleted file mode 100644 index 8bdac4c..0000000 Binary files a/bin/app/create$13.class and /dev/null differ diff --git a/bin/app/create$14.class b/bin/app/create$14.class deleted file mode 100644 index 887c057..0000000 Binary files a/bin/app/create$14.class and /dev/null differ diff --git a/bin/app/create$15.class b/bin/app/create$15.class deleted file mode 100644 index d6e20f7..0000000 Binary files a/bin/app/create$15.class and /dev/null differ diff --git a/bin/app/create$16.class b/bin/app/create$16.class deleted file mode 100644 index e1b35c3..0000000 Binary files a/bin/app/create$16.class and /dev/null differ diff --git a/bin/app/create$17.class b/bin/app/create$17.class deleted file mode 100644 index 886865b..0000000 Binary files a/bin/app/create$17.class and /dev/null differ diff --git a/bin/app/create$18.class b/bin/app/create$18.class deleted file mode 100644 index f0b29b9..0000000 Binary files a/bin/app/create$18.class and /dev/null differ diff --git a/bin/app/create$19.class b/bin/app/create$19.class deleted file mode 100644 index 5165045..0000000 Binary files a/bin/app/create$19.class and /dev/null differ diff --git a/bin/app/create$2.class b/bin/app/create$2.class deleted file mode 100644 index 9157d40..0000000 Binary files a/bin/app/create$2.class and /dev/null differ diff --git a/bin/app/create$20.class b/bin/app/create$20.class deleted file mode 100644 index 4743508..0000000 Binary files a/bin/app/create$20.class and /dev/null differ diff --git a/bin/app/create$21.class b/bin/app/create$21.class deleted file mode 100644 index 2dc0715..0000000 Binary files a/bin/app/create$21.class and /dev/null differ diff --git a/bin/app/create$22.class b/bin/app/create$22.class deleted file mode 100644 index 1c366c5..0000000 Binary files a/bin/app/create$22.class and /dev/null differ diff --git a/bin/app/create$23.class b/bin/app/create$23.class deleted file mode 100644 index 8fe8de9..0000000 Binary files a/bin/app/create$23.class and /dev/null differ diff --git a/bin/app/create$24.class b/bin/app/create$24.class deleted file mode 100644 index 497550d..0000000 Binary files a/bin/app/create$24.class and /dev/null differ diff --git a/bin/app/create$25.class b/bin/app/create$25.class deleted file mode 100644 index 0a6ce70..0000000 Binary files a/bin/app/create$25.class and /dev/null differ diff --git a/bin/app/create$26.class b/bin/app/create$26.class deleted file mode 100644 index 50cf4f3..0000000 Binary files a/bin/app/create$26.class and /dev/null differ diff --git a/bin/app/create$27.class b/bin/app/create$27.class deleted file mode 100644 index 5d2be48..0000000 Binary files a/bin/app/create$27.class and /dev/null differ diff --git a/bin/app/create$28.class b/bin/app/create$28.class deleted file mode 100644 index 9d0defe..0000000 Binary files a/bin/app/create$28.class and /dev/null differ diff --git a/bin/app/create$29.class b/bin/app/create$29.class deleted file mode 100644 index 2043369..0000000 Binary files a/bin/app/create$29.class and /dev/null differ diff --git a/bin/app/create$3.class b/bin/app/create$3.class deleted file mode 100644 index 090463a..0000000 Binary files a/bin/app/create$3.class and /dev/null differ diff --git a/bin/app/create$30.class b/bin/app/create$30.class deleted file mode 100644 index 526781a..0000000 Binary files a/bin/app/create$30.class and /dev/null differ diff --git a/bin/app/create$31.class b/bin/app/create$31.class deleted file mode 100644 index 85d6a32..0000000 Binary files a/bin/app/create$31.class and /dev/null differ diff --git a/bin/app/create$32.class b/bin/app/create$32.class deleted file mode 100644 index 0a22b07..0000000 Binary files a/bin/app/create$32.class and /dev/null differ diff --git a/bin/app/create$33.class b/bin/app/create$33.class deleted file mode 100644 index 189a0d7..0000000 Binary files a/bin/app/create$33.class and /dev/null differ diff --git a/bin/app/create$34.class b/bin/app/create$34.class deleted file mode 100644 index 407711f..0000000 Binary files a/bin/app/create$34.class and /dev/null differ diff --git a/bin/app/create$35.class b/bin/app/create$35.class deleted file mode 100644 index 5396095..0000000 Binary files a/bin/app/create$35.class and /dev/null differ diff --git a/bin/app/create$36.class b/bin/app/create$36.class deleted file mode 100644 index 25d3755..0000000 Binary files a/bin/app/create$36.class and /dev/null differ diff --git a/bin/app/create$37.class b/bin/app/create$37.class deleted file mode 100644 index 33b057d..0000000 Binary files a/bin/app/create$37.class and /dev/null differ diff --git a/bin/app/create$38.class b/bin/app/create$38.class deleted file mode 100644 index 6ca9ada..0000000 Binary files a/bin/app/create$38.class and /dev/null differ diff --git a/bin/app/create$39.class b/bin/app/create$39.class deleted file mode 100644 index 927b6ac..0000000 Binary files a/bin/app/create$39.class and /dev/null differ diff --git a/bin/app/create$4.class b/bin/app/create$4.class deleted file mode 100644 index 5b1276e..0000000 Binary files a/bin/app/create$4.class and /dev/null differ diff --git a/bin/app/create$40.class b/bin/app/create$40.class deleted file mode 100644 index a52f042..0000000 Binary files a/bin/app/create$40.class and /dev/null differ diff --git a/bin/app/create$41.class b/bin/app/create$41.class deleted file mode 100644 index 2b29f12..0000000 Binary files a/bin/app/create$41.class and /dev/null differ diff --git a/bin/app/create$42.class b/bin/app/create$42.class deleted file mode 100644 index 24322a8..0000000 Binary files a/bin/app/create$42.class and /dev/null differ diff --git a/bin/app/create$43.class b/bin/app/create$43.class deleted file mode 100644 index ea82257..0000000 Binary files a/bin/app/create$43.class and /dev/null differ diff --git a/bin/app/create$44.class b/bin/app/create$44.class deleted file mode 100644 index 8a2420c..0000000 Binary files a/bin/app/create$44.class and /dev/null differ diff --git a/bin/app/create$45.class b/bin/app/create$45.class deleted file mode 100644 index 0020d80..0000000 Binary files a/bin/app/create$45.class and /dev/null differ diff --git a/bin/app/create$46.class b/bin/app/create$46.class deleted file mode 100644 index b6f9cb9..0000000 Binary files a/bin/app/create$46.class and /dev/null differ diff --git a/bin/app/create$47.class b/bin/app/create$47.class deleted file mode 100644 index 1194026..0000000 Binary files a/bin/app/create$47.class and /dev/null differ diff --git a/bin/app/create$48.class b/bin/app/create$48.class deleted file mode 100644 index 5edae8e..0000000 Binary files a/bin/app/create$48.class and /dev/null differ diff --git a/bin/app/create$49.class b/bin/app/create$49.class deleted file mode 100644 index ac460f6..0000000 Binary files a/bin/app/create$49.class and /dev/null differ diff --git a/bin/app/create$5.class b/bin/app/create$5.class deleted file mode 100644 index a212129..0000000 Binary files a/bin/app/create$5.class and /dev/null differ diff --git a/bin/app/create$50.class b/bin/app/create$50.class deleted file mode 100644 index c3fa6d7..0000000 Binary files a/bin/app/create$50.class and /dev/null differ diff --git a/bin/app/create$51.class b/bin/app/create$51.class deleted file mode 100644 index 274688e..0000000 Binary files a/bin/app/create$51.class and /dev/null differ diff --git a/bin/app/create$52.class b/bin/app/create$52.class deleted file mode 100644 index 3dcf846..0000000 Binary files a/bin/app/create$52.class and /dev/null differ diff --git a/bin/app/create$53.class b/bin/app/create$53.class deleted file mode 100644 index e772426..0000000 Binary files a/bin/app/create$53.class and /dev/null differ diff --git a/bin/app/create$54.class b/bin/app/create$54.class deleted file mode 100644 index 17fabfe..0000000 Binary files a/bin/app/create$54.class and /dev/null differ diff --git a/bin/app/create$55.class b/bin/app/create$55.class deleted file mode 100644 index f6087cf..0000000 Binary files a/bin/app/create$55.class and /dev/null differ diff --git a/bin/app/create$56.class b/bin/app/create$56.class deleted file mode 100644 index f4508c5..0000000 Binary files a/bin/app/create$56.class and /dev/null differ diff --git a/bin/app/create$57.class b/bin/app/create$57.class deleted file mode 100644 index 42886f1..0000000 Binary files a/bin/app/create$57.class and /dev/null differ diff --git a/bin/app/create$58.class b/bin/app/create$58.class deleted file mode 100644 index 882c264..0000000 Binary files a/bin/app/create$58.class and /dev/null differ diff --git a/bin/app/create$59.class b/bin/app/create$59.class deleted file mode 100644 index 34a59f2..0000000 Binary files a/bin/app/create$59.class and /dev/null differ diff --git a/bin/app/create$6.class b/bin/app/create$6.class deleted file mode 100644 index a9df9f6..0000000 Binary files a/bin/app/create$6.class and /dev/null differ diff --git a/bin/app/create$7.class b/bin/app/create$7.class deleted file mode 100644 index 3616924..0000000 Binary files a/bin/app/create$7.class and /dev/null differ diff --git a/bin/app/create$8.class b/bin/app/create$8.class deleted file mode 100644 index cf7c4fe..0000000 Binary files a/bin/app/create$8.class and /dev/null differ diff --git a/bin/app/create$9.class b/bin/app/create$9.class deleted file mode 100644 index 331ae94..0000000 Binary files a/bin/app/create$9.class and /dev/null differ diff --git a/bin/app/create.class b/bin/app/create.class deleted file mode 100644 index 0664ef6..0000000 Binary files a/bin/app/create.class and /dev/null differ diff --git a/bin/app/evaluate$1.class b/bin/app/evaluate$1.class deleted file mode 100644 index b6e96a5..0000000 Binary files a/bin/app/evaluate$1.class and /dev/null differ diff --git a/bin/app/evaluate$10.class b/bin/app/evaluate$10.class deleted file mode 100644 index 583708c..0000000 Binary files a/bin/app/evaluate$10.class and /dev/null differ diff --git a/bin/app/evaluate$11.class b/bin/app/evaluate$11.class deleted file mode 100644 index d11c2ad..0000000 Binary files a/bin/app/evaluate$11.class and /dev/null differ diff --git a/bin/app/evaluate$12.class b/bin/app/evaluate$12.class deleted file mode 100644 index bf9c38f..0000000 Binary files a/bin/app/evaluate$12.class and /dev/null differ diff --git a/bin/app/evaluate$13.class b/bin/app/evaluate$13.class deleted file mode 100644 index 48f9d75..0000000 Binary files a/bin/app/evaluate$13.class and /dev/null differ diff --git a/bin/app/evaluate$14.class b/bin/app/evaluate$14.class deleted file mode 100644 index ea201a8..0000000 Binary files a/bin/app/evaluate$14.class and /dev/null differ diff --git a/bin/app/evaluate$15.class b/bin/app/evaluate$15.class deleted file mode 100644 index 09e5c53..0000000 Binary files a/bin/app/evaluate$15.class and /dev/null differ diff --git a/bin/app/evaluate$16.class b/bin/app/evaluate$16.class deleted file mode 100644 index 59476b5..0000000 Binary files a/bin/app/evaluate$16.class and /dev/null differ diff --git a/bin/app/evaluate$17.class b/bin/app/evaluate$17.class deleted file mode 100644 index e3e6515..0000000 Binary files a/bin/app/evaluate$17.class and /dev/null differ diff --git a/bin/app/evaluate$18.class b/bin/app/evaluate$18.class deleted file mode 100644 index bcf7fdb..0000000 Binary files a/bin/app/evaluate$18.class and /dev/null differ diff --git a/bin/app/evaluate$19.class b/bin/app/evaluate$19.class deleted file mode 100644 index 7515d3c..0000000 Binary files a/bin/app/evaluate$19.class and /dev/null differ diff --git a/bin/app/evaluate$2.class b/bin/app/evaluate$2.class deleted file mode 100644 index d5ff64c..0000000 Binary files a/bin/app/evaluate$2.class and /dev/null differ diff --git a/bin/app/evaluate$20.class b/bin/app/evaluate$20.class deleted file mode 100644 index 48b9326..0000000 Binary files a/bin/app/evaluate$20.class and /dev/null differ diff --git a/bin/app/evaluate$21.class b/bin/app/evaluate$21.class deleted file mode 100644 index 9f3848c..0000000 Binary files a/bin/app/evaluate$21.class and /dev/null differ diff --git a/bin/app/evaluate$22.class b/bin/app/evaluate$22.class deleted file mode 100644 index dbe39a8..0000000 Binary files a/bin/app/evaluate$22.class and /dev/null differ diff --git a/bin/app/evaluate$23.class b/bin/app/evaluate$23.class deleted file mode 100644 index 54fcbc1..0000000 Binary files a/bin/app/evaluate$23.class and /dev/null differ diff --git a/bin/app/evaluate$24.class b/bin/app/evaluate$24.class deleted file mode 100644 index d4c74aa..0000000 Binary files a/bin/app/evaluate$24.class and /dev/null differ diff --git a/bin/app/evaluate$25.class b/bin/app/evaluate$25.class deleted file mode 100644 index bf26f52..0000000 Binary files a/bin/app/evaluate$25.class and /dev/null differ diff --git a/bin/app/evaluate$3.class b/bin/app/evaluate$3.class deleted file mode 100644 index 7a7b500..0000000 Binary files a/bin/app/evaluate$3.class and /dev/null differ diff --git a/bin/app/evaluate$4.class b/bin/app/evaluate$4.class deleted file mode 100644 index 14949d3..0000000 Binary files a/bin/app/evaluate$4.class and /dev/null differ diff --git a/bin/app/evaluate$5.class b/bin/app/evaluate$5.class deleted file mode 100644 index 0267cb9..0000000 Binary files a/bin/app/evaluate$5.class and /dev/null differ diff --git a/bin/app/evaluate$6.class b/bin/app/evaluate$6.class deleted file mode 100644 index 66cc716..0000000 Binary files a/bin/app/evaluate$6.class and /dev/null differ diff --git a/bin/app/evaluate$7.class b/bin/app/evaluate$7.class deleted file mode 100644 index a81fd08..0000000 Binary files a/bin/app/evaluate$7.class and /dev/null differ diff --git a/bin/app/evaluate$8.class b/bin/app/evaluate$8.class deleted file mode 100644 index b071118..0000000 Binary files a/bin/app/evaluate$8.class and /dev/null differ diff --git a/bin/app/evaluate$9.class b/bin/app/evaluate$9.class deleted file mode 100644 index 2aadcef..0000000 Binary files a/bin/app/evaluate$9.class and /dev/null differ diff --git a/bin/app/evaluate.class b/bin/app/evaluate.class deleted file mode 100644 index 6819154..0000000 Binary files a/bin/app/evaluate.class and /dev/null differ diff --git a/bin/app/evaluerLesFichiersEtudiants.class b/bin/app/evaluerLesFichiersEtudiants.class deleted file mode 100644 index 01e058a..0000000 Binary files a/bin/app/evaluerLesFichiersEtudiants.class and /dev/null differ diff --git a/bin/app/filechooserXML.class b/bin/app/filechooserXML.class deleted file mode 100644 index 12526a0..0000000 Binary files a/bin/app/filechooserXML.class and /dev/null differ diff --git a/bin/app/mainApp$1.class b/bin/app/mainApp$1.class deleted file mode 100644 index 40a40b9..0000000 Binary files a/bin/app/mainApp$1.class and /dev/null differ diff --git a/bin/app/mainApp$2.class b/bin/app/mainApp$2.class deleted file mode 100644 index 56ab8eb..0000000 Binary files a/bin/app/mainApp$2.class and /dev/null differ diff --git a/bin/app/mainApp.class b/bin/app/mainApp.class deleted file mode 100644 index e478786..0000000 Binary files a/bin/app/mainApp.class and /dev/null differ diff --git a/bin/app/msgBox$1.class b/bin/app/msgBox$1.class deleted file mode 100644 index 2930c03..0000000 Binary files a/bin/app/msgBox$1.class and /dev/null differ diff --git a/bin/app/msgBox$2.class b/bin/app/msgBox$2.class deleted file mode 100644 index d63d6ee..0000000 Binary files a/bin/app/msgBox$2.class and /dev/null differ diff --git a/bin/app/msgBox$3.class b/bin/app/msgBox$3.class deleted file mode 100644 index cfbe11d..0000000 Binary files a/bin/app/msgBox$3.class and /dev/null differ diff --git a/bin/app/msgBox.class b/bin/app/msgBox.class deleted file mode 100644 index f5dad34..0000000 Binary files a/bin/app/msgBox.class and /dev/null differ diff --git a/bin/app/package-info.class b/bin/app/package-info.class deleted file mode 100644 index edc3f15..0000000 Binary files a/bin/app/package-info.class and /dev/null differ diff --git a/bin/app/proprieteFichierAnalyse$1.class b/bin/app/proprieteFichierAnalyse$1.class deleted file mode 100644 index 4419ee3..0000000 Binary files a/bin/app/proprieteFichierAnalyse$1.class and /dev/null differ diff --git a/bin/app/proprieteFichierAnalyse$2.class b/bin/app/proprieteFichierAnalyse$2.class deleted file mode 100644 index c58b3ad..0000000 Binary files a/bin/app/proprieteFichierAnalyse$2.class and /dev/null differ diff --git a/bin/app/proprieteFichierAnalyse$3.class b/bin/app/proprieteFichierAnalyse$3.class deleted file mode 100644 index 5ae22f2..0000000 Binary files a/bin/app/proprieteFichierAnalyse$3.class and /dev/null differ diff --git a/bin/app/proprieteFichierAnalyse$4.class b/bin/app/proprieteFichierAnalyse$4.class deleted file mode 100644 index 187caf0..0000000 Binary files a/bin/app/proprieteFichierAnalyse$4.class and /dev/null differ diff --git a/bin/app/proprieteFichierAnalyse.class b/bin/app/proprieteFichierAnalyse.class deleted file mode 100644 index c96fd9e..0000000 Binary files a/bin/app/proprieteFichierAnalyse.class and /dev/null differ diff --git a/bin/app/savePreferences.class b/bin/app/savePreferences.class deleted file mode 100644 index 2b26f5e..0000000 Binary files a/bin/app/savePreferences.class and /dev/null differ diff --git a/bin/calcul/calculNombrePointEvaluation.class b/bin/calcul/calculNombrePointEvaluation.class new file mode 100644 index 0000000..9d7a179 Binary files /dev/null and b/bin/calcul/calculNombrePointEvaluation.class differ diff --git a/bin/entetenon.png b/bin/entetenon.png new file mode 100644 index 0000000..dd7755d Binary files /dev/null and b/bin/entetenon.png differ diff --git a/bin/entetenon.svg b/bin/entetenon.svg new file mode 100644 index 0000000..adb2462 --- /dev/null +++ b/bin/entetenon.svg @@ -0,0 +1,271 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + diff --git a/bin/entetenonmini.png b/bin/entetenonmini.png new file mode 100644 index 0000000..4cdefdd Binary files /dev/null and b/bin/entetenonmini.png differ diff --git a/bin/evalnamepage.png b/bin/evalnamepage.png new file mode 100644 index 0000000..c8ae590 Binary files /dev/null and b/bin/evalnamepage.png differ diff --git a/bin/evalnamepage.svg b/bin/evalnamepage.svg new file mode 100644 index 0000000..f8613cf --- /dev/null +++ b/bin/evalnamepage.svg @@ -0,0 +1,309 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + diff --git a/bin/evalnamepagemini.png b/bin/evalnamepagemini.png new file mode 100644 index 0000000..116aeb5 Binary files /dev/null and b/bin/evalnamepagemini.png differ diff --git a/bin/evalnamesequence.png b/bin/evalnamesequence.png new file mode 100644 index 0000000..7dff099 Binary files /dev/null and b/bin/evalnamesequence.png differ diff --git a/bin/evalnamesequence.svg b/bin/evalnamesequence.svg new file mode 100644 index 0000000..2853657 --- /dev/null +++ b/bin/evalnamesequence.svg @@ -0,0 +1,318 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + 2 + + + + + 1 + + + + + + diff --git a/bin/evalnamesequencemini.png b/bin/evalnamesequencemini.png new file mode 100644 index 0000000..d8d519d Binary files /dev/null and b/bin/evalnamesequencemini.png differ diff --git a/bin/evaluer/analyseFichier.class b/bin/evaluer/analyseFichier.class new file mode 100644 index 0000000..e7c2f07 Binary files /dev/null and b/bin/evaluer/analyseFichier.class differ diff --git a/bin/evaluer/analyseLesNodesEnfants.class b/bin/evaluer/analyseLesNodesEnfants.class new file mode 100644 index 0000000..f45f226 Binary files /dev/null and b/bin/evaluer/analyseLesNodesEnfants.class differ diff --git a/bin/evaluer/analyseLesNodesPrincipaux.class b/bin/evaluer/analyseLesNodesPrincipaux.class new file mode 100644 index 0000000..8080abc Binary files /dev/null and b/bin/evaluer/analyseLesNodesPrincipaux.class differ diff --git a/bin/evaluer/evaluation.class b/bin/evaluer/evaluation.class new file mode 100644 index 0000000..34ef411 Binary files /dev/null and b/bin/evaluer/evaluation.class differ diff --git a/bin/evaluer/evaluationAttribut.class b/bin/evaluer/evaluationAttribut.class new file mode 100644 index 0000000..4b29676 Binary files /dev/null and b/bin/evaluer/evaluationAttribut.class differ diff --git a/bin/list/listeAttributWriterPasEvaluableAvecCodeEvaluateur.class b/bin/list/listeAttributWriterPasEvaluableAvecCodeEvaluateur.class new file mode 100644 index 0000000..27d472f Binary files /dev/null and b/bin/list/listeAttributWriterPasEvaluableAvecCodeEvaluateur.class differ diff --git a/bin/list/listeAttributWriterValeurPasModifiable.class b/bin/list/listeAttributWriterValeurPasModifiable.class new file mode 100644 index 0000000..2bc1eb3 Binary files /dev/null and b/bin/list/listeAttributWriterValeurPasModifiable.class differ diff --git a/bin/list/listeAttributsAnalyseWriter.class b/bin/list/listeAttributsAnalyseWriter.class new file mode 100644 index 0000000..32bfdd6 Binary files /dev/null and b/bin/list/listeAttributsAnalyseWriter.class differ diff --git a/bin/list/listeEvalNameNode.class b/bin/list/listeEvalNameNode.class new file mode 100644 index 0000000..8d84be0 Binary files /dev/null and b/bin/list/listeEvalNameNode.class differ diff --git a/bin/list/listeNodeAnalyseWriter.class b/bin/list/listeNodeAnalyseWriter.class new file mode 100644 index 0000000..4736540 Binary files /dev/null and b/bin/list/listeNodeAnalyseWriter.class differ diff --git a/bin/list/listeNodeFormatageDirectDeWriter.class b/bin/list/listeNodeFormatageDirectDeWriter.class new file mode 100644 index 0000000..3324a06 Binary files /dev/null and b/bin/list/listeNodeFormatageDirectDeWriter.class differ diff --git a/bin/list/listeRechercheParAnchorPageNumber.class b/bin/list/listeRechercheParAnchorPageNumber.class new file mode 100644 index 0000000..66cfd0a Binary files /dev/null and b/bin/list/listeRechercheParAnchorPageNumber.class differ diff --git a/bin/piedpagenon.png b/bin/piedpagenon.png new file mode 100644 index 0000000..6b360ec Binary files /dev/null and b/bin/piedpagenon.png differ diff --git a/bin/piedpagenon.svg b/bin/piedpagenon.svg new file mode 100644 index 0000000..52e57d6 --- /dev/null +++ b/bin/piedpagenon.svg @@ -0,0 +1,271 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + diff --git a/bin/piedpagenonmini.png b/bin/piedpagenonmini.png new file mode 100644 index 0000000..7609921 Binary files /dev/null and b/bin/piedpagenonmini.png differ diff --git a/bin/recherchecontenuplusprochevoisin.png b/bin/recherchecontenuplusprochevoisin.png index df28f34..2541188 100644 Binary files a/bin/recherchecontenuplusprochevoisin.png and b/bin/recherchecontenuplusprochevoisin.png differ diff --git a/bin/recherchecontenuplusprochevoisin.svg b/bin/recherchecontenuplusprochevoisin.svg index 17aa117..fbfeaf4 100644 --- a/bin/recherchecontenuplusprochevoisin.svg +++ b/bin/recherchecontenuplusprochevoisin.svg @@ -1,7 +1,7 @@ + + + - - - - - + inkscape:snap-global="false" /> @@ -294,84 +290,56 @@ inkscape:label="Calque 1" transform="translate(-0.92013353,-0.34176359)"> - + id="g1664" + transform="matrix(0.06582573,0,0,0.06582573,11.351301,4.651931)"> + style="fill:#aa8800;stroke-width:0.270959" + d="m -120.46325,73.972175 c -2.42067,-0.632715 -4.48989,-2.31893 -5.54604,-4.519475 -0.76054,-1.584682 -0.91421,-4.593345 -0.30798,-6.030539 l 0.37803,-0.896243 -3.56182,-3.597059 c -3.29371,-3.326311 -3.56181,-3.673418 -3.56181,-4.611535 0,-1.413962 1.1842,-2.598544 2.59773,-2.598544 0.9351,0 1.28304,0.266552 4.48979,3.439489 l 3.47614,3.439492 0.83992,-0.797636 c 0.46194,-0.438697 1.21328,-1.265806 1.66964,-1.83802 l 0.82973,-1.040389 -9.45641,-9.459295 c -5.20101,-5.202615 -9.59141,-9.459298 -9.75645,-9.459298 -0.16503,0 -1.68629,1.299362 -3.38058,2.887476 -4.28329,4.014879 -6.40922,4.895232 -9.75281,4.038644 -3.77825,-0.967941 -6.01751,-3.839652 -6.03463,-7.738999 -0.013,-2.971536 0.61665,-4.09999 4.23353,-7.58687 3.7183,-3.584655 6.38631,-5.589273 9.51756,-7.151023 5.18413,-2.585659 9.99704,-3.592214 15.84666,-3.314115 2.0275,0.09639 4.12666,0.246102 4.66479,0.332689 l 0.97841,0.157434 0.155,-4.6993 c 0.20566,-6.2353984 1.11586,-10.3852867 3.43241,-15.6494793 5.61552,-12.7608547 16.89815,-21.9430897 30.69107,-24.9775797 1.721594,-0.378755 3.990442,-0.601396 7.211209,-0.707624 l 4.699299,-0.155001 -0.157433,-0.978418 c -0.08659,-0.538132 -0.236298,-2.637286 -0.33269,-4.664788 -0.277875,-5.844906 0.715759,-10.589809 3.317406,-15.841633 1.575337,-3.180055 3.564766,-5.806828 7.418692,-9.795381 3.700907,-3.830187 4.831874,-4.492937 7.722349,-4.525322 3.969204,-0.04448 6.890051,2.214695 7.885126,6.098854 0.864138,3.373062 -0.03728,5.454094 -4.325477,9.985929 -1.734264,1.832796 -3.153209,3.47085 -3.153209,3.64012 0,0.169269 4.261875,4.568331 9.470832,9.775693 l 9.470833,9.467934 0.622412,-0.517787 c 0.342328,-0.284785 1.263765,-1.128946 2.047637,-1.875911 l 1.425224,-1.358123 -3.2741,-3.281979 c -2.853866,-2.860738 -3.292575,-3.419725 -3.418046,-4.355197 -0.119593,-0.891616 -0.02046,-1.219989 0.585902,-1.940598 0.625432,-0.743282 0.907335,-0.867381 1.970356,-0.867381 1.224632,0 1.285858,0.04447 4.785448,3.475388 l 3.544943,3.475388 1.083839,-0.383129 c 2.568319,-0.907878 6.389408,0.144587 8.260032,2.275112 2.071215,2.358986 2.642717,5.861507 1.405505,8.613823 -0.722855,1.608072 -5.683392,6.761664 -8.722205,9.061657 -6.368412,4.8200751 -14.680769,7.1361814 -22.562951,6.2868042 -1.607871,-0.1732623 -3.101536,-0.383378 -3.319255,-0.4669256 -0.331498,-0.1272073 -0.39585,0.305469 -0.39585,2.6615328 0,8.9978624 -2.856083,18.1423276 -7.898444,25.2888656 -2.206519,3.127298 -7.264034,8.184813 -10.391331,10.391332 -7.146538,5.042361 -16.291003,7.898443 -25.288865,7.898443 -2.399818,0 -2.790318,0.06025 -2.656168,0.409819 0.0865,0.2254 0.29373,1.774883 0.46052,3.443295 0.36701,3.671102 0.008,7.886537 -0.9927,11.658474 -0.85635,3.227652 -3.16819,7.955602 -5.22431,10.684274 -2.1466,2.848769 -6.90017,7.403505 -8.52262,8.166148 -1.3996,0.657888 -3.91353,0.961122 -5.19379,0.626487 z m 5.75636,-7.960274 c 3.99567,-3.917526 6.19889,-7.212482 7.65743,-11.45181 1.38444,-4.023933 1.72857,-9.591091 0.86914,-14.060469 l -0.46399,-2.412974 -2.30315,-0.628215 c -1.26674,-0.345519 -2.57751,-0.705601 -2.91282,-0.800179 -0.78194,-0.220553 -0.78434,0.094 -0.026,3.421949 0.74344,3.262577 0.82487,8.289541 0.17318,10.690219 -1.27686,4.703536 -3.05181,7.618434 -6.98746,11.475083 -2.59206,2.540043 -2.71106,2.707204 -2.71106,3.808159 0,1.620436 1.11206,2.735573 2.72803,2.735573 1.08599,0 1.2875,-0.140731 3.97669,-2.777336 z m -1.84956,-19.847793 c 0.0302,-2.049983 -1.39973,-10.51251 -1.86671,-11.047679 -0.10046,-0.115114 -2.36857,-0.64415 -5.04027,-1.175637 -4.0757,-0.810787 -5.18221,-0.938087 -6.87384,-0.790814 -1.10892,0.09654 -2.12878,0.245093 -2.26636,0.33012 -0.13757,0.08503 3.33028,3.737179 7.70636,8.115889 8.91918,8.924559 8.28184,8.575498 8.34082,4.568121 z m 23.207137,-23.721355 c 0.884279,-0.155839 1.784359,-0.344183 2.000174,-0.418538 0.259436,-0.08938 -1.989238,-2.518147 -6.636563,-7.168044 -3.865918,-3.868066 -7.112618,-7.0328509 -7.214908,-7.0328509 -0.42157,0 -0.87737,3.3334869 -0.88916,6.5030319 -0.0116,3.103548 0.40903,6.463686 0.91068,7.27535 0.55755,0.902138 8.342554,1.455622 11.829777,0.841051 z m -17.978947,-6.458984 c -0.15165,-4.724534 0.18232,-7.4731317 1.35369,-11.1410042 2.58754,-8.1022833 8.37007,-15.0253208 15.751455,-18.8581588 4.865879,-2.526639 9.412988,-3.631491 14.945726,-3.631491 3.942884,0 7.052652,0.496916 10.329177,1.650516 1.323258,0.465893 5.941949,1.563982 10.263756,2.440195 6.643501,1.346921 8.303342,1.593607 10.74071,1.59628 4.579996,0.005 8.308051,-0.867205 12.246264,-2.865181 2.952639,-1.497962 4.899538,-3.012703 8.241123,-6.411812 2.756862,-2.804324 3.048295,-3.195012 3.048295,-4.086467 0,-1.481073 -1.221426,-2.743159 -2.654786,-2.743159 -1.011405,0 -1.288542,0.197144 -4.112472,2.925412 -5.883539,5.684232 -10.137164,7.621145 -16.670751,7.591126 -2.819434,-0.01296 -4.14017,-0.198517 -9.938869,-1.396397 -3.678044,-0.759801 -7.739788,-1.75292 -9.026096,-2.206932 -4.249378,-1.499845 -7.341216,-2.005936 -12.33087,-2.018392 -6.212067,-0.01549 -10.607097,0.919145 -15.967521,3.395669 -7.195571,3.324365 -14.345491,10.2322145 -17.889421,17.2837546 -2.88138,5.7332352 -4.55742,14.0097244 -3.96233,19.5665344 l 0.18861,1.761213 2.76098,0.558882 c 1.51853,0.307385 2.77262,0.573115 2.78687,0.590513 0.0142,0.0174 -0.0324,-1.783096 -0.10354,-4.001101 z m 27.964488,2.54714 c 3.628053,-2.382914 6.393993,-5.215144 8.564447,-8.7697174 l 0.884848,-1.4491251 -8.776483,-8.77960132 c -4.827067,-4.82877928 -8.913959,-8.77960068 -9.081984,-8.77960068 -0.394298,0 -4.439421,2.6365941 -4.439421,2.8935966 0,0.107216 1.402216,1.6146433 3.116036,3.3498364 2.979347,3.01650111 3.116035,3.20484731 3.116035,4.2936769 0,1.5829352 -0.896613,2.4689522 -2.498481,2.4689522 -1.129256,0 -1.272187,-0.1041703 -4.275505,-3.11603659 -1.708962,-1.71381891 -3.203092,-3.11603531 -3.32031,-3.11603531 -0.26841,0 -2.91176,4.0273732 -2.91176,4.4363187 0,0.2965362 17.329626,17.7823716 17.623512,17.7823716 0.08237,0 0.981944,-0.546585 1.999066,-1.214636 z m -2.416647,-7.160052 c -1.72675,-0.739419 -2.18335,-2.9776266 -0.87446,-4.2865168 0.558339,-0.558342 1.003919,-0.7389819 1.822818,-0.7389819 3.150873,0 3.516298,4.6054917 0.40644,5.1224347 -0.447083,0.07432 -1.056743,0.03069 -1.354798,-0.09693 z M -71.276991,0.15794011 c 0.379731,-2.55238751 0.238293,-7.95708621 -0.265508,-10.14554561 -0.373529,-1.6225845 -0.531669,-1.7023175 -4.491839,-2.2647455 -3.053297,-0.43363 -9.881561,0.112498 -9.881561,0.790335 0,0.319063 13.913888,14.1104062 14.11216,13.9878675 0.105668,-0.065307 0.342706,-1.130869 0.526748,-2.36791139 z m 26.4823,-23.18328511 c 0.544033,-0.15645 -0.282606,-1.071022 -7.371485,-8.155638 -6.842032,-6.837917 -8.015043,-7.90389 -8.199615,-7.45139 -0.4809,1.178985 -0.152619,5.664723 0.712258,9.732499 0.474331,2.230924 0.926284,4.120867 1.004338,4.199874 0.07806,0.079 1.991996,0.52984 4.253203,1.001856 4.025021,0.8402 8.040682,1.121595 9.601301,0.672799 z M -139.8577,48.488107 c -1.07136,-1.071352 -1.10429,-2.615248 -0.0777,-3.641849 1.58787,-1.587864 4.43388,-0.394119 4.43388,1.85977 0,1.376683 -1.19743,2.574117 -2.57412,2.574117 -0.73298,0 -1.19569,-0.205651 -1.78207,-0.792038 z m 92.086179,-90.943728 c -0.919582,-0.499041 -1.29387,-1.177278 -1.29387,-2.344601 0,-1.127752 0.546762,-1.934325 1.609705,-2.374611 1.039833,-0.430713 2.050933,-0.177861 2.884223,0.721275 1.176533,1.2695 0.620025,3.553955 -1.003654,4.119973 -1.089336,0.379745 -1.292578,0.368452 -2.196404,-0.122036 z" + id="path1103" + sodipodi:nodetypes="ssscsssscsscsssscsssscsssscssssssssscsscssssscsssssssssscscsssssscssssssssscssssscssssssscsssssssssssssssssscsscsscssssssssssssssssssssssssssssssccssccssssss" /> - - - + style="fill:#aa0000;stroke-width:0.270959" + d="m -67.298613,126.49172 c -2.42067,-0.63271 -4.489894,-2.31892 -5.546032,-4.51947 -0.760557,-1.58468 -0.914218,-4.59335 -0.307997,-6.03054 l 0.378045,-0.89624 -3.561824,-3.59706 c -3.293718,-3.32631 -3.561817,-3.67342 -3.561817,-4.61154 0,-1.41396 1.184207,-2.59854 2.59773,-2.59854 0.935105,0 1.283043,0.26655 4.489797,3.43949 l 3.476142,3.43949 0.83991,-0.79764 c 0.461948,-0.43869 1.21329,-1.26581 1.669642,-1.83801 l 0.829735,-1.0404 -9.456409,-9.459293 c -5.201012,-5.202615 -9.591418,-9.459298 -9.756452,-9.459298 -0.165033,0 -1.686292,1.299362 -3.380578,2.887476 -4.283286,4.014879 -6.409224,4.895232 -9.752809,4.038644 -3.77824,-0.967941 -6.01751,-3.839652 -6.03462,-7.738999 -0.013,-2.971536 0.61664,-4.09999 4.23352,-7.58687 3.7183,-3.584655 6.386313,-5.589273 9.517559,-7.151023 5.18413,-2.585659 9.997039,-3.592214 15.846654,-3.314115 2.027505,0.09639 4.126659,0.246102 4.66479,0.332689 l 0.978419,0.157434 0.155,-4.699299 c 0.205661,-6.235398 1.115861,-10.385287 3.432408,-15.649479 5.615516,-12.760855 16.89814,-21.943091 30.691068,-24.977581 1.721594,-0.378755 3.990441,-0.601396 7.211208,-0.707624 l 4.6993,-0.155001 -0.157433,-0.978418 c -0.08659,-0.538132 -0.236299,-2.637286 -0.33269,-4.664788 -0.277875,-5.844904 0.715758,-10.5898078 3.317405,-15.8416318 1.575337,-3.18005445 3.564766,-5.8068284 7.418693,-9.7953814 3.7009074,-3.8301878 4.8318734,-4.4929378 7.7223485,-4.5253228 3.9692035,-0.04448 6.8900508,2.2146948 7.8851262,6.0988548 0.8641382,3.373062 -0.037277,5.45409375 -4.3254774,9.9859293 -1.7342643,1.8327964 -3.1532093,3.4708505 -3.1532093,3.6401198 0,0.1692693 4.26187579,4.5683311 9.4708325,9.7756921 l 9.4708345,9.467934 0.622412,-0.517787 c 0.342328,-0.284785 1.263764,-1.128946 2.047637,-1.875911 l 1.425223,-1.358123 -3.2741,-3.281979 c -2.853866,-2.860738 -3.292574,-3.419725 -3.418045,-4.355197 -0.119593,-0.891616 -0.02046,-1.219989 0.585902,-1.940596 0.625431,-0.743282 0.907335,-0.867382 1.970356,-0.867382 1.224632,0 1.285858,0.04447 4.785448,3.475387 l 3.544943,3.475388 1.083839,-0.383129 c 2.568317,-0.907878 6.389406,0.144587 8.26003,2.275112 2.071216,2.358986 2.642718,5.861507 1.405505,8.613823 -0.722854,1.608072 -5.683391,6.761665 -8.722203,9.061657 -6.368413,4.820077 -14.68077,7.136183 -22.5629527,6.286805 -1.60787093,-0.173262 -3.10153631,-0.383378 -3.3192547,-0.466926 -0.3314979,-0.127207 -0.3958502,0.30547 -0.3958502,2.661533 0,8.997863 -2.8560833,18.142327 -7.898443,25.288865 -2.2065204,3.127298 -7.2640354,8.184813 -10.3913314,10.391332 -7.146539,5.042361 -16.291004,7.898443 -25.288865,7.898443 -2.39982,0 -2.790316,0.06025 -2.656174,0.409819 0.08649,0.2254 0.293731,1.774883 0.460525,3.443295 0.367008,3.671102 0.0081,7.886542 -0.992695,11.658482 -0.856357,3.22764 -3.168193,7.95559 -5.22431,10.68426 -2.14661,2.84877 -6.900179,7.40352 -8.522632,8.16615 -1.399595,0.65789 -3.913519,0.96113 -5.193783,0.62649 z m 3.906798,-27.808066 c 0.03017,-2.049983 -1.399726,-10.51251 -1.866703,-11.047679 -0.100444,-0.115114 -2.368569,-0.64415 -5.040274,-1.175637 -4.075699,-0.810787 -5.182209,-0.938087 -6.873847,-0.790814 -1.108915,0.09654 -2.128775,0.245093 -2.266352,0.33012 -0.137578,0.08503 3.330279,3.737178 7.706356,8.115889 8.919186,8.924557 8.281843,8.575497 8.34082,4.568121 z m -29.56509,-10.499685 c 3.327248,-3.148687 4.508506,-4.066487 6.826602,-5.304027 3.134369,-1.673319 5.317237,-2.251978 9.077146,-2.406268 3.092727,-0.126911 3.58522,-0.06679 10.084995,1.23119 3.758416,0.750536 8.330859,1.848497 10.160985,2.43991 1.830128,0.591413 4.47686,1.269686 5.881629,1.507277 3.302803,0.558606 9.186537,0.560134 12.504126,0.0033 5.059653,-0.849305 10.776308,-3.174397 15.123129,-6.150925 2.831867,-1.939146 7.226986,-6.255645 9.25258,-9.087064 3.207992,-4.484208 5.6879044,-10.42631 6.6223704,-15.867829 0.358203,-2.085869 0.61081,-10.464196 0.315494,-10.464196 -0.05376,0 -1.344046,-0.254184 -2.8673,-0.564855 -1.5232514,-0.310669 -2.8064784,-0.52405 -2.8516114,-0.474179 -0.04513,0.04987 0.03543,0.883233 0.179039,1.851913 0.33786,2.279013 0.111857,7.133592 -0.460423,9.890026 -3.624732,17.458804 -20.637179,28.759883 -37.932892,25.198172 -1.192223,-0.245513 -3.386996,-0.857901 -4.877273,-1.360864 -1.490278,-0.502961 -5.879824,-1.554282 -9.754547,-2.336268 -6.517698,-1.315385 -7.318717,-1.420146 -10.7029,-1.399758 -7.684863,0.04629 -13.293493,2.535634 -19.850904,8.810648 -2.831218,2.709298 -2.915818,2.824401 -2.912808,3.962768 0.004,1.630234 1.109038,2.756493 2.703778,2.756493 1.02705,0 1.306056,-0.179283 3.478785,-2.235416 z m 52.772229,-13.22167 c 0.884279,-0.155839 1.784359,-0.344184 2.000175,-0.418538 0.259436,-0.08938 -1.989238,-2.518147 -6.636557,-7.168044 -3.865922,-3.868065 -7.112633,-7.03285 -7.214912,-7.03285 -0.421576,0 -0.877371,3.333487 -0.88917,6.503031 -0.01157,3.103548 0.40904,6.463686 0.910679,7.27535 0.557551,0.902138 8.342562,1.455622 11.829785,0.841051 z m 9.985542,-3.911844 c 3.628052,-2.382914 6.393992,-5.215144 8.564446,-8.769716 l 0.884849,-1.449126 -8.776483,-8.779601 c -4.827067,-4.828779 -8.913959,-8.779601 -9.081984,-8.779601 -0.394298,0 -4.439421,2.636595 -4.439421,2.893597 0,0.107216 10.630191,10.842619 12.344011,12.577812 2.979347,3.016501 3.116035,3.204847 3.116035,4.293677 0,1.582935 -0.896613,2.468952 -2.498481,2.468952 -1.129256,0 -1.272187,-0.10417 -4.275509,-3.116037 -1.708959,-1.713819 -12.431071,-12.344011 -12.548282,-12.344011 -0.26841,0 -2.911765,4.027374 -2.911765,4.436319 0,0.296536 17.329632,17.782371 17.623517,17.782371 0.08237,0 0.981945,-0.546585 1.999067,-1.214636 z m 12.086781,-18.372968 c 0.379731,-2.552388 0.238292,-7.957087 -0.265508,-10.145546 -0.373529,-1.622585 -0.53167,-1.702318 -4.49184,-2.264746 -3.053297,-0.43363 -9.88156,0.112498 -9.88156,0.790336 0,0.319063 13.913887,14.110406 14.112159,13.987867 0.105669,-0.06531 0.342707,-1.130869 0.526749,-2.367911 z M 8.3699471,29.494201 c 0.5440334,-0.15645 -0.2826053,-1.071022 -7.371486,-8.155638 -6.8420317,-6.837917 -8.0150417,-7.903888 -8.1996147,-7.451389 -0.480899,1.178984 -0.152618,5.664722 0.712257,9.732498 0.474332,2.230924 0.926284,4.120867 1.0043392,4.199874 0.078057,0.079 1.9919954,0.52984 4.2532028,1.001856 4.025021,0.8402 8.0406828,1.121595 9.6013017,0.672799 z m -19.7153981,-3.22756 c 0,-0.113451 -0.317573,-1.729048 -0.705718,-3.590215 -1.510992,-7.24526 -0.227568,-13.7094762 3.7112544,-18.6924597 0.636665,-0.8054419 2.293716,-2.6517119 3.682332,-4.10282085 2.3540236,-2.45996265 2.5247583,-2.71421365 2.5247583,-3.75980565 0,-1.598814 -1.1236695,-2.703633 -2.7564936,-2.710249 -1.1444797,-0.0046 -1.2454427,0.07124 -4.2364397,3.183776 -4.7591704,4.952558 -7.0505354,8.7394354 -8.3228044,13.7548712 -1.090312,4.298136 -1.128152,8.410348 -0.120314,13.075379 0.261536,1.210591 0.41531,1.447155 1.030012,1.58457 0.397419,0.08884 1.637068,0.441997 2.754776,0.784791 2.382114,0.730583 2.438637,0.741527 2.438637,0.472163 z" + id="path1221" + sodipodi:nodetypes="ssscsssscssccssscsssscsssccssssssssscsscssssscssssssssssssssssssssssscssssscssssssssssssscsccsssscsssscssssssssssssssssssssssssssssscssssss" /> + + + + + + + + + + diff --git a/bin/recherchecontenuplusprochevoisinmini.png b/bin/recherchecontenuplusprochevoisinmini.png index df28f34..d82950f 100644 Binary files a/bin/recherchecontenuplusprochevoisinmini.png and b/bin/recherchecontenuplusprochevoisinmini.png differ diff --git a/bin/resources/entetenon.png b/bin/resources/entetenon.png new file mode 100644 index 0000000..dd7755d Binary files /dev/null and b/bin/resources/entetenon.png differ diff --git a/bin/resources/entetenonmini.png b/bin/resources/entetenonmini.png new file mode 100644 index 0000000..4cdefdd Binary files /dev/null and b/bin/resources/entetenonmini.png differ diff --git a/bin/resources/evalnamepage.png b/bin/resources/evalnamepage.png new file mode 100644 index 0000000..c8ae590 Binary files /dev/null and b/bin/resources/evalnamepage.png differ diff --git a/bin/resources/evalnamepagemini.png b/bin/resources/evalnamepagemini.png new file mode 100644 index 0000000..116aeb5 Binary files /dev/null and b/bin/resources/evalnamepagemini.png differ diff --git a/bin/resources/evalnamesequence.png b/bin/resources/evalnamesequence.png new file mode 100644 index 0000000..7dff099 Binary files /dev/null and b/bin/resources/evalnamesequence.png differ diff --git a/bin/resources/evalnamesequencemini.png b/bin/resources/evalnamesequencemini.png new file mode 100644 index 0000000..d8d519d Binary files /dev/null and b/bin/resources/evalnamesequencemini.png differ diff --git a/bin/resources/piedpagenon.png b/bin/resources/piedpagenon.png new file mode 100644 index 0000000..6b360ec Binary files /dev/null and b/bin/resources/piedpagenon.png differ diff --git a/bin/resources/piedpagenonmini.png b/bin/resources/piedpagenonmini.png new file mode 100644 index 0000000..7609921 Binary files /dev/null and b/bin/resources/piedpagenonmini.png differ diff --git a/bin/resources/recherchecontenuplusprochevoisin.png b/bin/resources/recherchecontenuplusprochevoisin.png index df28f34..2541188 100644 Binary files a/bin/resources/recherchecontenuplusprochevoisin.png and b/bin/resources/recherchecontenuplusprochevoisin.png differ diff --git a/bin/resources/recherchecontenuplusprochevoisinmini.png b/bin/resources/recherchecontenuplusprochevoisinmini.png index df28f34..d82950f 100644 Binary files a/bin/resources/recherchecontenuplusprochevoisinmini.png and b/bin/resources/recherchecontenuplusprochevoisinmini.png differ diff --git a/icons/recherchecontenuplusprochevoisin.png b/icons/recherchecontenuplusprochevoisin.png index df28f34..2541188 100644 Binary files a/icons/recherchecontenuplusprochevoisin.png and b/icons/recherchecontenuplusprochevoisin.png differ diff --git a/icons/recherchecontenuplusprochevoisin.svg b/icons/recherchecontenuplusprochevoisin.svg index 17aa117..fbfeaf4 100644 --- a/icons/recherchecontenuplusprochevoisin.svg +++ b/icons/recherchecontenuplusprochevoisin.svg @@ -1,7 +1,7 @@ + + + - - - - - + inkscape:snap-global="false" /> @@ -294,84 +290,56 @@ inkscape:label="Calque 1" transform="translate(-0.92013353,-0.34176359)"> - + id="g1664" + transform="matrix(0.06582573,0,0,0.06582573,11.351301,4.651931)"> + style="fill:#aa8800;stroke-width:0.270959" + d="m -120.46325,73.972175 c -2.42067,-0.632715 -4.48989,-2.31893 -5.54604,-4.519475 -0.76054,-1.584682 -0.91421,-4.593345 -0.30798,-6.030539 l 0.37803,-0.896243 -3.56182,-3.597059 c -3.29371,-3.326311 -3.56181,-3.673418 -3.56181,-4.611535 0,-1.413962 1.1842,-2.598544 2.59773,-2.598544 0.9351,0 1.28304,0.266552 4.48979,3.439489 l 3.47614,3.439492 0.83992,-0.797636 c 0.46194,-0.438697 1.21328,-1.265806 1.66964,-1.83802 l 0.82973,-1.040389 -9.45641,-9.459295 c -5.20101,-5.202615 -9.59141,-9.459298 -9.75645,-9.459298 -0.16503,0 -1.68629,1.299362 -3.38058,2.887476 -4.28329,4.014879 -6.40922,4.895232 -9.75281,4.038644 -3.77825,-0.967941 -6.01751,-3.839652 -6.03463,-7.738999 -0.013,-2.971536 0.61665,-4.09999 4.23353,-7.58687 3.7183,-3.584655 6.38631,-5.589273 9.51756,-7.151023 5.18413,-2.585659 9.99704,-3.592214 15.84666,-3.314115 2.0275,0.09639 4.12666,0.246102 4.66479,0.332689 l 0.97841,0.157434 0.155,-4.6993 c 0.20566,-6.2353984 1.11586,-10.3852867 3.43241,-15.6494793 5.61552,-12.7608547 16.89815,-21.9430897 30.69107,-24.9775797 1.721594,-0.378755 3.990442,-0.601396 7.211209,-0.707624 l 4.699299,-0.155001 -0.157433,-0.978418 c -0.08659,-0.538132 -0.236298,-2.637286 -0.33269,-4.664788 -0.277875,-5.844906 0.715759,-10.589809 3.317406,-15.841633 1.575337,-3.180055 3.564766,-5.806828 7.418692,-9.795381 3.700907,-3.830187 4.831874,-4.492937 7.722349,-4.525322 3.969204,-0.04448 6.890051,2.214695 7.885126,6.098854 0.864138,3.373062 -0.03728,5.454094 -4.325477,9.985929 -1.734264,1.832796 -3.153209,3.47085 -3.153209,3.64012 0,0.169269 4.261875,4.568331 9.470832,9.775693 l 9.470833,9.467934 0.622412,-0.517787 c 0.342328,-0.284785 1.263765,-1.128946 2.047637,-1.875911 l 1.425224,-1.358123 -3.2741,-3.281979 c -2.853866,-2.860738 -3.292575,-3.419725 -3.418046,-4.355197 -0.119593,-0.891616 -0.02046,-1.219989 0.585902,-1.940598 0.625432,-0.743282 0.907335,-0.867381 1.970356,-0.867381 1.224632,0 1.285858,0.04447 4.785448,3.475388 l 3.544943,3.475388 1.083839,-0.383129 c 2.568319,-0.907878 6.389408,0.144587 8.260032,2.275112 2.071215,2.358986 2.642717,5.861507 1.405505,8.613823 -0.722855,1.608072 -5.683392,6.761664 -8.722205,9.061657 -6.368412,4.8200751 -14.680769,7.1361814 -22.562951,6.2868042 -1.607871,-0.1732623 -3.101536,-0.383378 -3.319255,-0.4669256 -0.331498,-0.1272073 -0.39585,0.305469 -0.39585,2.6615328 0,8.9978624 -2.856083,18.1423276 -7.898444,25.2888656 -2.206519,3.127298 -7.264034,8.184813 -10.391331,10.391332 -7.146538,5.042361 -16.291003,7.898443 -25.288865,7.898443 -2.399818,0 -2.790318,0.06025 -2.656168,0.409819 0.0865,0.2254 0.29373,1.774883 0.46052,3.443295 0.36701,3.671102 0.008,7.886537 -0.9927,11.658474 -0.85635,3.227652 -3.16819,7.955602 -5.22431,10.684274 -2.1466,2.848769 -6.90017,7.403505 -8.52262,8.166148 -1.3996,0.657888 -3.91353,0.961122 -5.19379,0.626487 z m 5.75636,-7.960274 c 3.99567,-3.917526 6.19889,-7.212482 7.65743,-11.45181 1.38444,-4.023933 1.72857,-9.591091 0.86914,-14.060469 l -0.46399,-2.412974 -2.30315,-0.628215 c -1.26674,-0.345519 -2.57751,-0.705601 -2.91282,-0.800179 -0.78194,-0.220553 -0.78434,0.094 -0.026,3.421949 0.74344,3.262577 0.82487,8.289541 0.17318,10.690219 -1.27686,4.703536 -3.05181,7.618434 -6.98746,11.475083 -2.59206,2.540043 -2.71106,2.707204 -2.71106,3.808159 0,1.620436 1.11206,2.735573 2.72803,2.735573 1.08599,0 1.2875,-0.140731 3.97669,-2.777336 z m -1.84956,-19.847793 c 0.0302,-2.049983 -1.39973,-10.51251 -1.86671,-11.047679 -0.10046,-0.115114 -2.36857,-0.64415 -5.04027,-1.175637 -4.0757,-0.810787 -5.18221,-0.938087 -6.87384,-0.790814 -1.10892,0.09654 -2.12878,0.245093 -2.26636,0.33012 -0.13757,0.08503 3.33028,3.737179 7.70636,8.115889 8.91918,8.924559 8.28184,8.575498 8.34082,4.568121 z m 23.207137,-23.721355 c 0.884279,-0.155839 1.784359,-0.344183 2.000174,-0.418538 0.259436,-0.08938 -1.989238,-2.518147 -6.636563,-7.168044 -3.865918,-3.868066 -7.112618,-7.0328509 -7.214908,-7.0328509 -0.42157,0 -0.87737,3.3334869 -0.88916,6.5030319 -0.0116,3.103548 0.40903,6.463686 0.91068,7.27535 0.55755,0.902138 8.342554,1.455622 11.829777,0.841051 z m -17.978947,-6.458984 c -0.15165,-4.724534 0.18232,-7.4731317 1.35369,-11.1410042 2.58754,-8.1022833 8.37007,-15.0253208 15.751455,-18.8581588 4.865879,-2.526639 9.412988,-3.631491 14.945726,-3.631491 3.942884,0 7.052652,0.496916 10.329177,1.650516 1.323258,0.465893 5.941949,1.563982 10.263756,2.440195 6.643501,1.346921 8.303342,1.593607 10.74071,1.59628 4.579996,0.005 8.308051,-0.867205 12.246264,-2.865181 2.952639,-1.497962 4.899538,-3.012703 8.241123,-6.411812 2.756862,-2.804324 3.048295,-3.195012 3.048295,-4.086467 0,-1.481073 -1.221426,-2.743159 -2.654786,-2.743159 -1.011405,0 -1.288542,0.197144 -4.112472,2.925412 -5.883539,5.684232 -10.137164,7.621145 -16.670751,7.591126 -2.819434,-0.01296 -4.14017,-0.198517 -9.938869,-1.396397 -3.678044,-0.759801 -7.739788,-1.75292 -9.026096,-2.206932 -4.249378,-1.499845 -7.341216,-2.005936 -12.33087,-2.018392 -6.212067,-0.01549 -10.607097,0.919145 -15.967521,3.395669 -7.195571,3.324365 -14.345491,10.2322145 -17.889421,17.2837546 -2.88138,5.7332352 -4.55742,14.0097244 -3.96233,19.5665344 l 0.18861,1.761213 2.76098,0.558882 c 1.51853,0.307385 2.77262,0.573115 2.78687,0.590513 0.0142,0.0174 -0.0324,-1.783096 -0.10354,-4.001101 z m 27.964488,2.54714 c 3.628053,-2.382914 6.393993,-5.215144 8.564447,-8.7697174 l 0.884848,-1.4491251 -8.776483,-8.77960132 c -4.827067,-4.82877928 -8.913959,-8.77960068 -9.081984,-8.77960068 -0.394298,0 -4.439421,2.6365941 -4.439421,2.8935966 0,0.107216 1.402216,1.6146433 3.116036,3.3498364 2.979347,3.01650111 3.116035,3.20484731 3.116035,4.2936769 0,1.5829352 -0.896613,2.4689522 -2.498481,2.4689522 -1.129256,0 -1.272187,-0.1041703 -4.275505,-3.11603659 -1.708962,-1.71381891 -3.203092,-3.11603531 -3.32031,-3.11603531 -0.26841,0 -2.91176,4.0273732 -2.91176,4.4363187 0,0.2965362 17.329626,17.7823716 17.623512,17.7823716 0.08237,0 0.981944,-0.546585 1.999066,-1.214636 z m -2.416647,-7.160052 c -1.72675,-0.739419 -2.18335,-2.9776266 -0.87446,-4.2865168 0.558339,-0.558342 1.003919,-0.7389819 1.822818,-0.7389819 3.150873,0 3.516298,4.6054917 0.40644,5.1224347 -0.447083,0.07432 -1.056743,0.03069 -1.354798,-0.09693 z M -71.276991,0.15794011 c 0.379731,-2.55238751 0.238293,-7.95708621 -0.265508,-10.14554561 -0.373529,-1.6225845 -0.531669,-1.7023175 -4.491839,-2.2647455 -3.053297,-0.43363 -9.881561,0.112498 -9.881561,0.790335 0,0.319063 13.913888,14.1104062 14.11216,13.9878675 0.105668,-0.065307 0.342706,-1.130869 0.526748,-2.36791139 z m 26.4823,-23.18328511 c 0.544033,-0.15645 -0.282606,-1.071022 -7.371485,-8.155638 -6.842032,-6.837917 -8.015043,-7.90389 -8.199615,-7.45139 -0.4809,1.178985 -0.152619,5.664723 0.712258,9.732499 0.474331,2.230924 0.926284,4.120867 1.004338,4.199874 0.07806,0.079 1.991996,0.52984 4.253203,1.001856 4.025021,0.8402 8.040682,1.121595 9.601301,0.672799 z M -139.8577,48.488107 c -1.07136,-1.071352 -1.10429,-2.615248 -0.0777,-3.641849 1.58787,-1.587864 4.43388,-0.394119 4.43388,1.85977 0,1.376683 -1.19743,2.574117 -2.57412,2.574117 -0.73298,0 -1.19569,-0.205651 -1.78207,-0.792038 z m 92.086179,-90.943728 c -0.919582,-0.499041 -1.29387,-1.177278 -1.29387,-2.344601 0,-1.127752 0.546762,-1.934325 1.609705,-2.374611 1.039833,-0.430713 2.050933,-0.177861 2.884223,0.721275 1.176533,1.2695 0.620025,3.553955 -1.003654,4.119973 -1.089336,0.379745 -1.292578,0.368452 -2.196404,-0.122036 z" + id="path1103" + sodipodi:nodetypes="ssscsssscsscsssscsssscsssscssssssssscsscssssscsssssssssscscsssssscssssssssscssssscssssssscsssssssssssssssssscsscsscssssssssssssssssssssssssssssssccssccssssss" /> - - - + style="fill:#aa0000;stroke-width:0.270959" + d="m -67.298613,126.49172 c -2.42067,-0.63271 -4.489894,-2.31892 -5.546032,-4.51947 -0.760557,-1.58468 -0.914218,-4.59335 -0.307997,-6.03054 l 0.378045,-0.89624 -3.561824,-3.59706 c -3.293718,-3.32631 -3.561817,-3.67342 -3.561817,-4.61154 0,-1.41396 1.184207,-2.59854 2.59773,-2.59854 0.935105,0 1.283043,0.26655 4.489797,3.43949 l 3.476142,3.43949 0.83991,-0.79764 c 0.461948,-0.43869 1.21329,-1.26581 1.669642,-1.83801 l 0.829735,-1.0404 -9.456409,-9.459293 c -5.201012,-5.202615 -9.591418,-9.459298 -9.756452,-9.459298 -0.165033,0 -1.686292,1.299362 -3.380578,2.887476 -4.283286,4.014879 -6.409224,4.895232 -9.752809,4.038644 -3.77824,-0.967941 -6.01751,-3.839652 -6.03462,-7.738999 -0.013,-2.971536 0.61664,-4.09999 4.23352,-7.58687 3.7183,-3.584655 6.386313,-5.589273 9.517559,-7.151023 5.18413,-2.585659 9.997039,-3.592214 15.846654,-3.314115 2.027505,0.09639 4.126659,0.246102 4.66479,0.332689 l 0.978419,0.157434 0.155,-4.699299 c 0.205661,-6.235398 1.115861,-10.385287 3.432408,-15.649479 5.615516,-12.760855 16.89814,-21.943091 30.691068,-24.977581 1.721594,-0.378755 3.990441,-0.601396 7.211208,-0.707624 l 4.6993,-0.155001 -0.157433,-0.978418 c -0.08659,-0.538132 -0.236299,-2.637286 -0.33269,-4.664788 -0.277875,-5.844904 0.715758,-10.5898078 3.317405,-15.8416318 1.575337,-3.18005445 3.564766,-5.8068284 7.418693,-9.7953814 3.7009074,-3.8301878 4.8318734,-4.4929378 7.7223485,-4.5253228 3.9692035,-0.04448 6.8900508,2.2146948 7.8851262,6.0988548 0.8641382,3.373062 -0.037277,5.45409375 -4.3254774,9.9859293 -1.7342643,1.8327964 -3.1532093,3.4708505 -3.1532093,3.6401198 0,0.1692693 4.26187579,4.5683311 9.4708325,9.7756921 l 9.4708345,9.467934 0.622412,-0.517787 c 0.342328,-0.284785 1.263764,-1.128946 2.047637,-1.875911 l 1.425223,-1.358123 -3.2741,-3.281979 c -2.853866,-2.860738 -3.292574,-3.419725 -3.418045,-4.355197 -0.119593,-0.891616 -0.02046,-1.219989 0.585902,-1.940596 0.625431,-0.743282 0.907335,-0.867382 1.970356,-0.867382 1.224632,0 1.285858,0.04447 4.785448,3.475387 l 3.544943,3.475388 1.083839,-0.383129 c 2.568317,-0.907878 6.389406,0.144587 8.26003,2.275112 2.071216,2.358986 2.642718,5.861507 1.405505,8.613823 -0.722854,1.608072 -5.683391,6.761665 -8.722203,9.061657 -6.368413,4.820077 -14.68077,7.136183 -22.5629527,6.286805 -1.60787093,-0.173262 -3.10153631,-0.383378 -3.3192547,-0.466926 -0.3314979,-0.127207 -0.3958502,0.30547 -0.3958502,2.661533 0,8.997863 -2.8560833,18.142327 -7.898443,25.288865 -2.2065204,3.127298 -7.2640354,8.184813 -10.3913314,10.391332 -7.146539,5.042361 -16.291004,7.898443 -25.288865,7.898443 -2.39982,0 -2.790316,0.06025 -2.656174,0.409819 0.08649,0.2254 0.293731,1.774883 0.460525,3.443295 0.367008,3.671102 0.0081,7.886542 -0.992695,11.658482 -0.856357,3.22764 -3.168193,7.95559 -5.22431,10.68426 -2.14661,2.84877 -6.900179,7.40352 -8.522632,8.16615 -1.399595,0.65789 -3.913519,0.96113 -5.193783,0.62649 z m 3.906798,-27.808066 c 0.03017,-2.049983 -1.399726,-10.51251 -1.866703,-11.047679 -0.100444,-0.115114 -2.368569,-0.64415 -5.040274,-1.175637 -4.075699,-0.810787 -5.182209,-0.938087 -6.873847,-0.790814 -1.108915,0.09654 -2.128775,0.245093 -2.266352,0.33012 -0.137578,0.08503 3.330279,3.737178 7.706356,8.115889 8.919186,8.924557 8.281843,8.575497 8.34082,4.568121 z m -29.56509,-10.499685 c 3.327248,-3.148687 4.508506,-4.066487 6.826602,-5.304027 3.134369,-1.673319 5.317237,-2.251978 9.077146,-2.406268 3.092727,-0.126911 3.58522,-0.06679 10.084995,1.23119 3.758416,0.750536 8.330859,1.848497 10.160985,2.43991 1.830128,0.591413 4.47686,1.269686 5.881629,1.507277 3.302803,0.558606 9.186537,0.560134 12.504126,0.0033 5.059653,-0.849305 10.776308,-3.174397 15.123129,-6.150925 2.831867,-1.939146 7.226986,-6.255645 9.25258,-9.087064 3.207992,-4.484208 5.6879044,-10.42631 6.6223704,-15.867829 0.358203,-2.085869 0.61081,-10.464196 0.315494,-10.464196 -0.05376,0 -1.344046,-0.254184 -2.8673,-0.564855 -1.5232514,-0.310669 -2.8064784,-0.52405 -2.8516114,-0.474179 -0.04513,0.04987 0.03543,0.883233 0.179039,1.851913 0.33786,2.279013 0.111857,7.133592 -0.460423,9.890026 -3.624732,17.458804 -20.637179,28.759883 -37.932892,25.198172 -1.192223,-0.245513 -3.386996,-0.857901 -4.877273,-1.360864 -1.490278,-0.502961 -5.879824,-1.554282 -9.754547,-2.336268 -6.517698,-1.315385 -7.318717,-1.420146 -10.7029,-1.399758 -7.684863,0.04629 -13.293493,2.535634 -19.850904,8.810648 -2.831218,2.709298 -2.915818,2.824401 -2.912808,3.962768 0.004,1.630234 1.109038,2.756493 2.703778,2.756493 1.02705,0 1.306056,-0.179283 3.478785,-2.235416 z m 52.772229,-13.22167 c 0.884279,-0.155839 1.784359,-0.344184 2.000175,-0.418538 0.259436,-0.08938 -1.989238,-2.518147 -6.636557,-7.168044 -3.865922,-3.868065 -7.112633,-7.03285 -7.214912,-7.03285 -0.421576,0 -0.877371,3.333487 -0.88917,6.503031 -0.01157,3.103548 0.40904,6.463686 0.910679,7.27535 0.557551,0.902138 8.342562,1.455622 11.829785,0.841051 z m 9.985542,-3.911844 c 3.628052,-2.382914 6.393992,-5.215144 8.564446,-8.769716 l 0.884849,-1.449126 -8.776483,-8.779601 c -4.827067,-4.828779 -8.913959,-8.779601 -9.081984,-8.779601 -0.394298,0 -4.439421,2.636595 -4.439421,2.893597 0,0.107216 10.630191,10.842619 12.344011,12.577812 2.979347,3.016501 3.116035,3.204847 3.116035,4.293677 0,1.582935 -0.896613,2.468952 -2.498481,2.468952 -1.129256,0 -1.272187,-0.10417 -4.275509,-3.116037 -1.708959,-1.713819 -12.431071,-12.344011 -12.548282,-12.344011 -0.26841,0 -2.911765,4.027374 -2.911765,4.436319 0,0.296536 17.329632,17.782371 17.623517,17.782371 0.08237,0 0.981945,-0.546585 1.999067,-1.214636 z m 12.086781,-18.372968 c 0.379731,-2.552388 0.238292,-7.957087 -0.265508,-10.145546 -0.373529,-1.622585 -0.53167,-1.702318 -4.49184,-2.264746 -3.053297,-0.43363 -9.88156,0.112498 -9.88156,0.790336 0,0.319063 13.913887,14.110406 14.112159,13.987867 0.105669,-0.06531 0.342707,-1.130869 0.526749,-2.367911 z M 8.3699471,29.494201 c 0.5440334,-0.15645 -0.2826053,-1.071022 -7.371486,-8.155638 -6.8420317,-6.837917 -8.0150417,-7.903888 -8.1996147,-7.451389 -0.480899,1.178984 -0.152618,5.664722 0.712257,9.732498 0.474332,2.230924 0.926284,4.120867 1.0043392,4.199874 0.078057,0.079 1.9919954,0.52984 4.2532028,1.001856 4.025021,0.8402 8.0406828,1.121595 9.6013017,0.672799 z m -19.7153981,-3.22756 c 0,-0.113451 -0.317573,-1.729048 -0.705718,-3.590215 -1.510992,-7.24526 -0.227568,-13.7094762 3.7112544,-18.6924597 0.636665,-0.8054419 2.293716,-2.6517119 3.682332,-4.10282085 2.3540236,-2.45996265 2.5247583,-2.71421365 2.5247583,-3.75980565 0,-1.598814 -1.1236695,-2.703633 -2.7564936,-2.710249 -1.1444797,-0.0046 -1.2454427,0.07124 -4.2364397,3.183776 -4.7591704,4.952558 -7.0505354,8.7394354 -8.3228044,13.7548712 -1.090312,4.298136 -1.128152,8.410348 -0.120314,13.075379 0.261536,1.210591 0.41531,1.447155 1.030012,1.58457 0.397419,0.08884 1.637068,0.441997 2.754776,0.784791 2.382114,0.730583 2.438637,0.741527 2.438637,0.472163 z" + id="path1221" + sodipodi:nodetypes="ssscsssscssccssscsssscsssccssssssssscsscssssscssssssssssssssssssssssscssssscssssssssssssscsccsssscsssscssssssssssssssssssssssssssssscssssss" /> + + + + + + + + + + diff --git a/icons/recherchecontenuplusprochevoisinmini.png b/icons/recherchecontenuplusprochevoisinmini.png index df28f34..d82950f 100644 Binary files a/icons/recherchecontenuplusprochevoisinmini.png and b/icons/recherchecontenuplusprochevoisinmini.png differ diff --git a/src/MEPTL/ecritureSujet.java b/src/MEPTL/ecritureSujet.java index bcc10cb..72e7da8 100644 --- a/src/MEPTL/ecritureSujet.java +++ b/src/MEPTL/ecritureSujet.java @@ -5,6 +5,7 @@ import java.util.ArrayList; import cXML.Run; import cXML.node; +import list.listeRechercheParAnchorPageNumber; /** @@ -292,7 +293,7 @@ public class ecritureSujet { } /** - * Ajoute les attribut d'analyseWriter par défaut + * Ajoute les attributs d'analyseWriter par défaut * @param no */ private static void nextNodesEnfants(ArrayList no) { @@ -304,8 +305,8 @@ public class ecritureSujet { if(listeDesNodesByRecherche(no.get(k).getNomElt())) {no.get(k).getAttributs().put("recherche_index", "false"); no.get(k).getAttributs().put("recherche_contenu_exact", "false");no.get(k).getAttributs().put("recherche_contenu_plus_proche_voisin", "false");} if(listeDesNodesAnalyseStyle(no.get(k).getNomElt())) no.get(k).getAttributs().put("analyseStyle", "false"); if(listeDesNodesAllContent(no.get(k).getNomElt())) no.get(k).getAttributs().put("allContent", "strict0"); - if(listeDesRechercheAnchorPageNumber(no.get(k).getNomElt())) no.get(k).getAttributs().put("recherche_anchor-page-number", "false"); - + if(listeRechercheParAnchorPageNumber.isRechercheParAnchorPageNumber(no.get(k))) no.get(k).getAttributs().put("recherche_anchor-page-number", "false"); + if(!no.get(k).getNodes().isEmpty()) { nextNodesEnfants(no.get(k).getNodes()); } @@ -378,10 +379,7 @@ public class ecritureSujet { } - public static boolean listeDesRechercheAnchorPageNumber(String nameNode){ - if(nameNode.contains("draw:frame")) return true; - return false; - } + /** * Ce node permet la configuration personnalisé de l'application.
diff --git a/src/MEPTL/rechercherUnNodeStudent.java b/src/MEPTL/rechercherUnNodeStudent.java index cdf2ae6..6921740 100644 --- a/src/MEPTL/rechercherUnNodeStudent.java +++ b/src/MEPTL/rechercherUnNodeStudent.java @@ -29,7 +29,7 @@ public class rechercherUnNodeStudent { node nodStudent =null; //************************************************************************************************ - //** Recherche le node par le contenu exact du node en intégrant les contenus des nodes enfants ** + //** Recherche le node par le contenu ayant la distance Levenshtein la plus proche de 1 ** //************************************************************************************************ if(nodSujet.getAttributs().get("recherche_contenu_plus_proche_voisin")!=null && nodSujet.retourneLesContenusEnfants("").length()>2){ if(nodSujet.getAttributs().get("recherche_contenu_plus_proche_voisin").equals("true")){ diff --git a/src/evaluer/evaluationAttribut.java b/src/evaluer/evaluationAttribut.java index 87c2b3d..f16436d 100644 --- a/src/evaluer/evaluationAttribut.java +++ b/src/evaluer/evaluationAttribut.java @@ -222,9 +222,9 @@ public class evaluationAttribut { if(listeAttributsAnalyseWriter.isAttributAnalyseWriter(k1)) nbAs++; } if(nbAs==0)reponseStudent = "non"; - retour = evaluPiedPagePasActive(retour,reponseStudent,reponseSujet , sujet.getAttributs().get("evalEntetePasActive"),"Pied page"); + retour = evaluPiedPagePasActive(retour,reponseStudent,reponseSujet , sujet.getAttributs().get("evalPiedPagePasActive"),"Pied page"); }else { - retour = evaluPiedPagePasActive(retour,null, "Pas trouvé le node de l'étudiant", sujet.getAttributs().get("evalEntetePasActive"),"Pied page"); + retour = evaluPiedPagePasActive(retour,null, "Pas trouvé le node de l'étudiant", sujet.getAttributs().get("evalPiedPagePasActive"),"Pied page"); } } diff --git a/src/fenetres/MyTreeCellRenderer.java b/src/fenetres/MyTreeCellRenderer.java index eea5c7c..7204966 100644 --- a/src/fenetres/MyTreeCellRenderer.java +++ b/src/fenetres/MyTreeCellRenderer.java @@ -1,4 +1,4 @@ -package app; +package fenetres; import java.awt.Color; import java.awt.Component; diff --git a/src/fenetres/ProgressBar.java b/src/fenetres/ProgressBar.java index 60193ae..b3c6803 100644 --- a/src/fenetres/ProgressBar.java +++ b/src/fenetres/ProgressBar.java @@ -1,4 +1,4 @@ -package app; +package fenetres; import java.awt.BorderLayout; import java.awt.Container; diff --git a/src/fenetres/about.java b/src/fenetres/about.java index eee3f28..8c99861 100644 --- a/src/fenetres/about.java +++ b/src/fenetres/about.java @@ -1,6 +1,5 @@ -package app; +package fenetres; -import java.awt.EventQueue; import java.awt.Font; import javax.swing.ImageIcon; @@ -13,30 +12,15 @@ import javax.swing.JButton; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; -public class about extends JFrame { +public final class about extends JFrame { + + private static about instance; /** * */ private static final long serialVersionUID = 1L; - /** - * Launch the application. - */ - public static void main(String[] args) { - EventQueue.invokeLater(new Runnable() { - public void run() { - try { - about window = new about(); - window.setVisible(true); - } catch (Exception e) { - e.printStackTrace(); - } - } - }); - } - - /** * Create the application. */ @@ -130,4 +114,13 @@ public class about extends JFrame { } + + public static about getInstance() { + if (instance == null) { + instance = new about(); + } + instance.setVisible(true); + return instance; + } + } diff --git a/src/fenetres/afficheText.java b/src/fenetres/afficheText.java index 2640164..60fcc19 100644 --- a/src/fenetres/afficheText.java +++ b/src/fenetres/afficheText.java @@ -1,4 +1,4 @@ -package app; +package fenetres; import java.text.DecimalFormat; import java.text.NumberFormat; @@ -53,6 +53,7 @@ public class afficheText extends JEditorPane { String imagePiedPagePasActive= ""; String imageEvalNameSequence= ""; String imageEvalNamePage= ""; + String imagePoids= ""; StringBuilder sb = new StringBuilder(); @@ -174,6 +175,9 @@ public class afficheText extends JEditorPane { if(Lesattributsdunode.get(i).equals("evalNamePage") && !nod.getAttributs().get(Lesattributsdunode.get(i)).equals("0")) { sb.append("
  • "+imageEvalNamePage + " " + Lesattributsdunode.get(i) + " = \"" + nod.getAttributs().get(Lesattributsdunode.get(i))+"\"
  • "); } + if(Lesattributsdunode.get(i).equals("poids") && !nod.getAttributs().get(Lesattributsdunode.get(i)).equals("0")) { + sb.append("
  • "+imagePoids + " " + Lesattributsdunode.get(i) + " = \"" + nod.getAttributs().get(Lesattributsdunode.get(i))+"\"
  • "); + } // sb.append("
  • " + Lesattributsdunode.get(i) + "=\"" + nod.getAttributs().get(Lesattributsdunode.get(i))+"\"
  • "); diff --git a/src/fenetres/allContent.java b/src/fenetres/allContent.java index 1df6579..192932c 100644 --- a/src/fenetres/allContent.java +++ b/src/fenetres/allContent.java @@ -1,4 +1,4 @@ -package app; +package fenetres; import javax.swing.JFrame; diff --git a/src/fenetres/attributs.java b/src/fenetres/attributs.java index 2c9d7d5..a11c79e 100644 --- a/src/fenetres/attributs.java +++ b/src/fenetres/attributs.java @@ -1,4 +1,4 @@ -package app; +package fenetres; import java.awt.BorderLayout; import java.awt.Component; diff --git a/src/fenetres/baliseStyle.java b/src/fenetres/baliseStyle.java index dc9e2ca..14316a3 100644 --- a/src/fenetres/baliseStyle.java +++ b/src/fenetres/baliseStyle.java @@ -1,4 +1,4 @@ -package app; +package fenetres; public class baliseStyle { diff --git a/src/fenetres/create.java b/src/fenetres/create.java index 5f7e27f..8edc5c9 100644 --- a/src/fenetres/create.java +++ b/src/fenetres/create.java @@ -1,16 +1,13 @@ -package app; +package fenetres; import java.awt.BorderLayout; import java.awt.Color; -import java.awt.Desktop; import java.awt.Dimension; import java.awt.Font; import java.awt.event.ActionEvent; import java.awt.event.KeyEvent; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; -import java.io.File; -import java.io.IOException; import java.util.Enumeration; import java.util.regex.Matcher; import java.util.regex.Pattern; @@ -18,7 +15,6 @@ import javax.swing.AbstractAction; import javax.swing.Action; import javax.swing.ImageIcon; import javax.swing.JButton; -import javax.swing.JFileChooser; import javax.swing.JFrame; import javax.swing.JMenu; import javax.swing.JMenuBar; @@ -31,40 +27,109 @@ import javax.swing.JToolBar; import javax.swing.JTree; import javax.swing.KeyStroke; import javax.swing.UnsupportedLookAndFeelException; -import javax.swing.filechooser.FileNameExtensionFilter; import javax.swing.tree.DefaultMutableTreeNode; import javax.swing.tree.DefaultTreeCellRenderer; import javax.swing.tree.TreeNode; import javax.swing.tree.TreePath; import javax.swing.tree.TreeSelectionModel; -import javax.xml.parsers.ParserConfigurationException; -import org.xml.sax.SAXException; import MEPTL.commandes; import MEPTL.ecritureSujet; -import MEPTL.meptl; -import MEPTL.verificationFichierAnalyse; import cXML.Run; import cXML.node; -import calcul.calculNombrePointEvaluation; -import list.listeAttributsAnalyseWriter; -import list.listeNodeFormatageDirectDeWriter; - -import java.awt.event.InputEvent; +import fenetres.create_act.actAPropos; +import fenetres.create_act.actAbout; +import fenetres.create_act.actAddMenuFalse; +import fenetres.create_act.actAddMenuTrue; +import fenetres.create_act.actAfficheInformationFichierAnalyse; +import fenetres.create_act.actAllContent; +import fenetres.create_act.actAttribut; +import fenetres.create_act.actCoefficient; +import fenetres.create_act.actCollapseAll; +import fenetres.create_act.actCollapseNode; +import fenetres.create_act.actDeleteNode; +import fenetres.create_act.actDocumentation; +import fenetres.create_act.actDownNode; +import fenetres.create_act.actEvalEnteteActive; +import fenetres.create_act.actEvalEntetePasActive; +import fenetres.create_act.actEvalInitialCreator; +import fenetres.create_act.actEvalNameNodeNon; +import fenetres.create_act.actEvalNameNodeOui; +import fenetres.create_act.actEvalNamePageNon; +import fenetres.create_act.actEvalNamePageOui; +import fenetres.create_act.actEvalNameSequenceNon; +import fenetres.create_act.actEvalNameSequenceOui; +import fenetres.create_act.actEvalPiedPageActive; +import fenetres.create_act.actEvalPiedPagePasActive; +import fenetres.create_act.actEvalueFalse; +import fenetres.create_act.actEvalueTrue; +import fenetres.create_act.actEvaluer; +import fenetres.create_act.actEvaluerStyleFalse; +import fenetres.create_act.actEvaluerStyleTrue; +import fenetres.create_act.actEvaluerTousEnfantsFalse; +import fenetres.create_act.actEvaluerTousEnfantsTrue; +import fenetres.create_act.actExit; +import fenetres.create_act.actExpandAll; +import fenetres.create_act.actExpandNode; +import fenetres.create_act.actNewFichierAnalyse; +import fenetres.create_act.actNodeFichier; +import fenetres.create_act.actOpen; +import fenetres.create_act.actRechercheAnchorPageNumberFalse; +import fenetres.create_act.actRechercheAnchorPageNumberTrue; +import fenetres.create_act.actRechercheContenuPlusProcheVoisinfalse; +import fenetres.create_act.actRechercheContenuPlusProcheVoisintrue; +import fenetres.create_act.actRechercheContenufalse; +import fenetres.create_act.actRechercheContenutrue; +import fenetres.create_act.actRechercheIndexfalse; +import fenetres.create_act.actRechercheIndextrue; +import fenetres.create_act.actSave; +import fenetres.create_act.actSaveAs; +import fenetres.create_act.actSetting; +import fenetres.create_act.actSupprimeTitre; +import fenetres.create_act.actTitre1; +import fenetres.create_act.actTitre2; +import fenetres.create_act.actTitre3; +import fenetres.create_act.actTitrePrincipal; +import fenetres.create_act.actTotalPoint; +import fenetres.create_act.actTotalPointNode; +import fenetres.create_act.actTousLesNodesEvaluer; +import fenetres.create_act.actTutoriels; +import fenetres.create_act.actUpNode; +import fenetres.create_act.actevalNameCreator; +import fenetres.create_act.actsautfalse; +import fenetres.create_act.actsauttrue; +import list.listeEvalNameNode; +import list.listeRechercheParAnchorPageNumber; import javax.swing.JToggleButton; -import java.awt.event.ActionListener; +import java.awt.GridLayout; +import javax.swing.JCheckBoxMenuItem; +import javax.swing.event.ChangeListener; +import javax.swing.event.ChangeEvent; +import net.miginfocom.swing.MigLayout; -public class create extends JFrame { + +public final class create extends JFrame { private static final long serialVersionUID = 1L; // les élément de create - private JTree tree = new JTree(); - private afficheText textNodeSelect = new afficheText(); - private JToolBar toolBar_1; + private static JTree tree = new JTree(); + private static DefaultMutableTreeNode selectNode; + private static afficheText textNodeSelect = new afficheText(); + private JToolBar toolBarPrincipal; + + private toolBarRecherche bRecherche; + + private JCheckBoxMenuItem chckbxtoolBarRecherche; + private JMenuBar menuBar = new JMenuBar(); - JButton buttonEvaluate; - TreePath cheminVersLeNode; - JToggleButton tglbtnTousLesNodes; + private static JButton buttonEvaluate; + + private static JToggleButton tglbtnTousLesNodes; + + private JPanel panelPrincipal; + private JPanel panel; + + private static create instance; /** * Create the application. @@ -77,6 +142,15 @@ public class create extends JFrame { } setVisible(true); } + + public static create getInstance() { + if (instance == null) { + instance = new create(); + } + instance.setVisible(true); + return instance; + } + /** * Initialize the contents of the frame. @@ -103,14 +177,15 @@ public class create extends JFrame { // Ajoute le menu contextuel de la tree tree.setComponentPopupMenu(null); - // Construction et injection de la barre d'outils - JPanel contentPane = (JPanel) getContentPane(); - this.createToolBar(); + this.createToolBar(); + + panelPrincipal = new JPanel(); + panelPrincipal.setLayout(new MigLayout("", "[100px:500px:1000px][100px:500px]", "[53:53:53][]")); + panelPrincipal.add(toolBarPrincipal, "cell 0 0,growx,aligny top"); + getContentPane().add(panelPrincipal, BorderLayout.NORTH); + this.createPopupMenuTree(null); - getContentPane().setLayout(new BorderLayout(2, 2)); - contentPane.add( toolBar_1, BorderLayout.NORTH ); - - + // The content of the window if(commandes.fichierAnalyseValide) tree = commandes.tree; @@ -127,7 +202,14 @@ public class create extends JFrame { tree.setFont(new Font("Tahoma", Font.PLAIN, 14)); getContentPane().add(splitPane, BorderLayout.CENTER); - + + panel = new JPanel(); + getContentPane().add(panel, BorderLayout.WEST); + panel.setLayout(new GridLayout(0,2, 0, 0)); + + bRecherche = new toolBarRecherche(); + panelPrincipal.add(bRecherche, "cell 0 1,alignx left,aligny top"); + if(commandes.fichierAnalyseValide) constructionTree(); this.setExtendedState(MAXIMIZED_BOTH); @@ -150,7 +232,7 @@ public class create extends JFrame { @Override public void mouseClicked(MouseEvent e) { if(tree.getSelectionPath()!=null) { - DefaultMutableTreeNode selectNode = (DefaultMutableTreeNode) tree.getSelectionPath().getLastPathComponent(); + selectNode = (DefaultMutableTreeNode) tree.getSelectionPath().getLastPathComponent(); node nod = (node) selectNode.getUserObject(); createPopupMenuTree(nod); textNodeSelect.refreshAffichage(nod); @@ -172,6 +254,22 @@ public class create extends JFrame { }); + chckbxtoolBarRecherche.addChangeListener(new ChangeListener() { + public void stateChanged(ChangeEvent e) { + if(chckbxtoolBarRecherche.isSelected()) { +// panelPrincipal.add(bRecherche); + panelPrincipal.add(bRecherche, "cell 0 1,alignx left,aligny top"); + bRecherche.setVisible(true); + bRecherche.setEnabled(true); + }else { + bRecherche.setVisible(false); + bRecherche.setEnabled(false); + panelPrincipal.remove(bRecherche); + } + } + }); + + } @@ -201,150 +299,133 @@ public class create extends JFrame { //Menu Evaluer JMenu mnEvaluer = new JMenu("Evaluer"); - mnEvaluer.add(actEvalueTrue); - mnEvaluer.add(actEvalueFalse); + mnEvaluer.add(new actEvalueTrue()); + mnEvaluer.add(new actEvalueFalse()); //Menu arbre JMenu mnManageTree = new JMenu("Arbre"); - mnManageTree.add(actUpNode); - mnManageTree.add(actDownNode); + mnManageTree.add(new actUpNode()); + mnManageTree.add(new actDownNode()); mnManageTree.addSeparator(); - mnManageTree.add(actExpandAll); - mnManageTree.add(actExpandNode); + mnManageTree.add(new actExpandAll()); + mnManageTree.add(new actExpandNode()); mnManageTree.addSeparator(); - mnManageTree.add(actCollapseAll); - mnManageTree.add(actCollapseNode); + mnManageTree.add(new actCollapseAll()); + mnManageTree.add(new actCollapseNode()); //Menu Saut niveau >1 JMenu mnSaut = new JMenu("Saut de ligne avant"); mnSaut.setIcon( new ImageIcon(create.class.getResource("/resources/sautmini.png"))); - mnSaut.add(actsauttrue); - mnSaut.add(actsautfalse); + mnSaut.add(new actsauttrue()); + mnSaut.add(new actsautfalse()); //Menu saut niveau = 1 //Menu Saut JMenu mnSautNiveau1 = new JMenu("Saut de ligne avant"); mnSautNiveau1.setIcon( new ImageIcon(create.class.getResource("/resources/sautmini.png"))); - mnSautNiveau1.add(actsauttrue); - mnSautNiveau1.add(actsautfalse); + mnSautNiveau1.add(new actsauttrue()); + mnSautNiveau1.add(new actsautfalse()); //Menu Titre niveau > 1 JMenu mnTitre = new JMenu("Titre"); mnTitre.setIcon( new ImageIcon(create.class.getResource("/resources/titremini.png"))); - mnTitre.add(actTitrePrincipal); - mnTitre.add(actTitre1); - mnTitre.add(actTitre2); - mnTitre.add(actTitre3); + mnTitre.add(new actTitrePrincipal()); + mnTitre.add(new actTitre1()); + mnTitre.add(new actTitre2()); + mnTitre.add(new actTitre3()); mnTitre.addSeparator(); - mnTitre.add(actSupprimeTitre); + mnTitre.add(new actSupprimeTitre()); //Menu Titre niveau = 1 JMenu mnTitreNiveau1 = new JMenu("Titre"); mnTitreNiveau1.setIcon( new ImageIcon(create.class.getResource("/resources/titremini.png"))); - mnTitreNiveau1.add(actTitrePrincipal); - mnTitreNiveau1.add(actTitre1); - mnTitreNiveau1.add(actTitre2); - mnTitreNiveau1.add(actTitre3); + mnTitreNiveau1.add(new actTitrePrincipal()); + mnTitreNiveau1.add(new actTitre1()); + mnTitreNiveau1.add(new actTitre2()); + mnTitreNiveau1.add(new actTitre3()); mnTitreNiveau1.addSeparator(); - mnTitreNiveau1.add(actSupprimeTitre); + mnTitreNiveau1.add(new actSupprimeTitre()); //Menu ajoute un lien de menu niveau 1 JMenu mnAddMenuNiveau1= new JMenu("Lien"); //addMenu mnAddMenuNiveau1.setIcon( new ImageIcon(create.class.getResource("/resources/addmenumini.png"))); - mnAddMenuNiveau1.add(actAddMenuTrue); - mnAddMenuNiveau1.add(actAddMenuFalse); + mnAddMenuNiveau1.add(new actAddMenuTrue()); + mnAddMenuNiveau1.add(new actAddMenuFalse()); //Menu ajoute un lien de menu niveau sup 1 JMenu mnAddMenuNiveauSup1= new JMenu("Lien"); //addMenu mnAddMenuNiveauSup1.setIcon( new ImageIcon(create.class.getResource("/resources/addmenumini.png"))); - mnAddMenuNiveauSup1.add(actAddMenuTrue); - mnAddMenuNiveauSup1.add(actAddMenuFalse); + mnAddMenuNiveauSup1.add(new actAddMenuTrue()); + mnAddMenuNiveauSup1.add(new actAddMenuFalse()); //Menu recherche par l'index JMenu mnRechercheIndex = new JMenu("Recherche par l'index"); mnRechercheIndex.setIcon(new ImageIcon(create.class.getResource("/resources/rechercheindexmini.png"))); - mnRechercheIndex.add(actRechercheIndextrue) ; + mnRechercheIndex.add( new actRechercheIndextrue()) ; mnRechercheIndex.addSeparator(); - mnRechercheIndex.add(actRechercheIndexfalse); + mnRechercheIndex.add(new actRechercheIndexfalse()); //Menu recherche par le contenu Exact JMenu mnRechercheContenu = new JMenu("Recherche par le contenu exact"); mnRechercheContenu.setIcon(new ImageIcon(create.class.getResource("/resources/recherchecontenumini.png"))); - mnRechercheContenu.add(actRechercheContenutrue); + mnRechercheContenu.add( new actRechercheContenutrue()); mnRechercheContenu.addSeparator(); - mnRechercheContenu.add(actRechercheContenufalse); + mnRechercheContenu.add( new actRechercheContenufalse()); //Menu recherche par le contenu plus proche voisin JMenu mnRechercheContenuPlusProcheVoisin = new JMenu("Recherche par le plus proche voisin"); - mnRechercheContenuPlusProcheVoisin.setIcon(new ImageIcon(create.class.getResource("/resources/recherchecontenuplusprochevoisin.png"))); - mnRechercheContenuPlusProcheVoisin.add(actRechercheContenuPlusProcheVoisintrue); + mnRechercheContenuPlusProcheVoisin.setIcon(new ImageIcon(create.class.getResource("/resources/recherchecontenuplusprochevoisinmini.png"))); + mnRechercheContenuPlusProcheVoisin.add( new actRechercheContenuPlusProcheVoisintrue()); mnRechercheContenuPlusProcheVoisin.addSeparator(); - mnRechercheContenuPlusProcheVoisin.add(actRechercheContenuPlusProcheVoisinfalse); + mnRechercheContenuPlusProcheVoisin.add(new actRechercheContenuPlusProcheVoisinfalse()); //Menu analyseStyle (évaluer le style du paragraphe) JMenu mnAnalyseStyle = new JMenu("Evaluer le style"); mnAnalyseStyle.setIcon(new ImageIcon(create.class.getResource("/resources/evaluerstylemini.png"))); - mnAnalyseStyle.add(actEvaluerStyleTrue); + mnAnalyseStyle.add(new actEvaluerStyleTrue()); mnAnalyseStyle.addSeparator(); - mnAnalyseStyle.add(actEvaluerStyleFalse); + mnAnalyseStyle.add( new actEvaluerStyleFalse()); //Menu evalEntetePasActive (pour les style:header-style) JMenu mnevalEntetePasActive = new JMenu("Entête pas activé"); mnevalEntetePasActive.setIcon(new ImageIcon(create.class.getResource("/resources/entetenonmini.png"))); - mnevalEntetePasActive.add(actEvalEntetePasActive); - mnevalEntetePasActive.add(actEvalEnteteActive); + mnevalEntetePasActive.add(new actEvalEntetePasActive()); + mnevalEntetePasActive.add(new actEvalEnteteActive()); //Menu evalPiedPagePasActive (pour les style:footer-style) JMenu mnEvalPiedPagePasActive = new JMenu("Pied page pas activé"); mnEvalPiedPagePasActive.setIcon(new ImageIcon(create.class.getResource("/resources/piedpagenonmini.png"))); - mnEvalPiedPagePasActive.add(actEvalPiedPagePasActive); - mnEvalPiedPagePasActive.add(actEvalPiedPageActive); + mnEvalPiedPagePasActive.add(new actEvalPiedPagePasActive()); + mnEvalPiedPagePasActive.add(new actEvalPiedPageActive()); //Menu Evaluer présence d'un node pour les nodes de niveau > 1 JMenu mnEvalNameNode = new JMenu("Evaluer la présence du node"); mnEvalNameNode.setIcon(new ImageIcon(create.class.getResource("/resources/evalnodemini.png"))); - mnEvalNameNode.add(actEvalNameNodeOui); - mnEvalNameNode.add(actEvalNameNodeNon); + mnEvalNameNode.add(new actEvalNameNodeOui()); + mnEvalNameNode.add(new actEvalNameNodeNon()); //Menu evalNameSequence (pour les text:sequence-decl) JMenu mnEvalNameSequence = new JMenu("Evaluer le nom de la séquence"); mnEvalNameSequence.setIcon(new ImageIcon(create.class.getResource("/resources/evalnamesequencemini.png"))); - mnEvalNameSequence.add(actEvalNameSequenceOui); - mnEvalNameSequence.add(actEvalNameSequenceNon); + mnEvalNameSequence.add(new actEvalNameSequenceOui()); + mnEvalNameSequence.add(new actEvalNameSequenceNon()); //Menu evalNamePage (pour les page) JMenu mnEvalNamePage = new JMenu("Evaluer le nom de la page"); mnEvalNamePage.setIcon(new ImageIcon(create.class.getResource("/resources/evalnamepagemini.png"))); - mnEvalNamePage.add(actEvalNamePageOui); - mnEvalNamePage.add(actEvalNamePageNon); + mnEvalNamePage.add(new actEvalNamePageOui()); + mnEvalNamePage.add(new actEvalNamePageNon()); //Menue Recherche par le numéro de la page ancrer JMenu mnRechercheParNumeroPageAncrer = new JMenu("Recherche par le numéro de la page"); mnRechercheParNumeroPageAncrer.setIcon(new ImageIcon(create.class.getResource("/resources/rechercheancragepagemini.png"))); - mnRechercheParNumeroPageAncrer.add( actRechercheAnchorPageNumberTrue); + mnRechercheParNumeroPageAncrer.add( new actRechercheAnchorPageNumberTrue()); mnRechercheParNumeroPageAncrer.addSeparator(); - mnRechercheParNumeroPageAncrer.add( actRechercheAnchorPageNumberFalse); + mnRechercheParNumeroPageAncrer.add( new actRechercheAnchorPageNumberFalse()); - //*************************** - //** Menu node niveau = 1 *** - //*************************** - JMenu mnNiveau1 = new JMenu("Attributs aW, niveau 1 "); - mnNiveau1.setIcon( new ImageIcon(create.class.getResource("/resources/attributanalysewritermini.png"))); - mnNiveau1.add(actCoefficient); - mnNiveau1.addSeparator(); - mnNiveau1.add(mnSautNiveau1); - mnNiveau1.addSeparator(); - mnNiveau1.add(mnTitreNiveau1); - mnNiveau1.addSeparator(); - mnNiveau1.add(mnAddMenuNiveau1); - - //*************************** - //** Menu node niveau > 1 *** - //*************************** - JMenu mnNiveauSup1 = new JMenu("Attributs aW, niveau " + String.valueOf(nod.getLevel() + " ") ); - mnNiveauSup1.setIcon( new ImageIcon(create.class.getResource("/resources/attributanalysewritermini.png"))); + //Menu Représentation dans le feedback JMenu mnPourFeedback = new JMenu("Pour représentation feedback"); mnPourFeedback.add(mnSaut); if(!nodeFormatageDirectePasDeTitrePasAddMenu) { @@ -353,51 +434,28 @@ public class create extends JFrame { mnPourFeedback.addSeparator(); mnPourFeedback.add(mnAddMenuNiveauSup1); } - mnNiveauSup1.add(mnPourFeedback); - if(!nod.getNomElt().equals("page")) { - mnNiveauSup1.addSeparator(); - mnNiveauSup1.add(mnEvalNameNode); - } - mnNiveauSup1.addSeparator(); - mnNiveauSup1.add(actAllContent); - if(nod.getNomElt().equals("meta:initial-creator")) { - mnNiveauSup1.addSeparator(); - mnNiveauSup1.add(actEvalInitialCreator); - } - if(nod.getNomElt().equals("dc:creator")) { - mnNiveauSup1.addSeparator(); - mnNiveauSup1.add(actevalNameCreator); - } - if(ecritureSujet.listeDesNodesByRecherche(nod.getNomElt())) { - mnNiveauSup1.addSeparator(); - mnNiveauSup1.add(mnRechercheIndex); - mnNiveauSup1.addSeparator(); - mnNiveauSup1.add(mnRechercheContenu); - mnNiveauSup1.addSeparator(); - mnNiveauSup1.add(mnRechercheContenuPlusProcheVoisin); - mnNiveauSup1.addSeparator(); - mnNiveauSup1.add(mnAnalyseStyle); - } - if(ecritureSujet.listeDesRechercheAnchorPageNumber(nod.getNomElt())) { - mnNiveauSup1.addSeparator(); - mnNiveauSup1.add(mnRechercheParNumeroPageAncrer); - } - if(nod.getNomElt().equals("style:header-style")) { - mnNiveauSup1.addSeparator(); - mnNiveauSup1.add(mnevalEntetePasActive); - } - if(nod.getNomElt().equals("style:footer-style")) { - mnNiveauSup1.addSeparator(); - mnNiveauSup1.add(mnEvalPiedPagePasActive); - } - if(nod.getNomElt().equals("text:sequence-decl")) { - mnNiveauSup1.addSeparator(); - mnNiveauSup1.add(mnEvalNameSequence); - } - if(nod.getNomElt().equals("page")) { - mnNiveauSup1.addSeparator(); - mnNiveauSup1.add(mnEvalNamePage); - } + + + //*************************** + //** Menu node niveau = 1 *** + //*************************** + JMenu mnNiveau1 = new JMenu("Attributs aW, niveau 1 "); + mnNiveau1.setIcon( new ImageIcon(create.class.getResource("/resources/attributanalysewritermini.png"))); + mnNiveau1.add(new actCoefficient()); + mnNiveau1.addSeparator(); + mnNiveau1.add(mnSautNiveau1); + mnNiveau1.addSeparator(); + mnNiveau1.add(mnTitreNiveau1); + mnNiveau1.addSeparator(); + mnNiveau1.add(mnAddMenuNiveau1); + + + + + + + + //**Menu setting @@ -408,38 +466,85 @@ public class create extends JFrame { mnSetting.add("text:similarity"); mnSetting.add("translation"); - - //La popupMenu qui s'affiche sur le tree + //********************************************* + //** La popupMenu qui s'affiche sur le tree *** + //********************************************* JPopupMenu mnPopupTree = new JPopupMenu(); if(!nodeSetting) { mnPopupTree.add(mnEvaluer); } - if(nod.getLevel()==1 && !nodeSetting) { + if(nod.getLevel()==1 ) { mnPopupTree.addSeparator(); mnPopupTree.add(mnNiveau1); } - if(nod.getLevel()>1 && !nodeSetting) { + + //Pour les nodes de niveau supérieur à 1 + if(nod.getLevel()>1 ) { mnPopupTree.addSeparator(); - mnPopupTree.add(mnNiveauSup1); + mnPopupTree.add(mnPourFeedback); + if(listeEvalNameNode.isNodeEvalNameNode(nod)) { + mnPopupTree.addSeparator(); + mnPopupTree.add(mnEvalNameNode); + } + if(nod.retourneLesContenusEnfants("").length()>0) { + mnPopupTree.addSeparator(); + mnPopupTree.add(new actAllContent()); + } + if(nod.getNomElt().equals("meta:initial-creator")) { + mnPopupTree.addSeparator(); + mnPopupTree.add(new actEvalInitialCreator()); + } + if(nod.getNomElt().equals("dc:creator")) { + mnPopupTree.addSeparator(); + mnPopupTree.add(new actevalNameCreator()); + } + if(ecritureSujet.listeDesNodesByRecherche(nod.getNomElt())) { + mnPopupTree.addSeparator(); + mnPopupTree.add(mnRechercheIndex); + mnPopupTree.addSeparator(); + mnPopupTree.add(mnRechercheContenu); + mnPopupTree.addSeparator(); + mnPopupTree.add(mnRechercheContenuPlusProcheVoisin); + mnPopupTree.addSeparator(); + mnPopupTree.add(mnAnalyseStyle); + } + if(listeRechercheParAnchorPageNumber.isRechercheParAnchorPageNumber(nod)) { + mnPopupTree.addSeparator(); + mnPopupTree.add(mnRechercheParNumeroPageAncrer); + } + if(nod.getNomElt().equals("style:header-style")) { + mnPopupTree.addSeparator(); + mnPopupTree.add(mnevalEntetePasActive); + } + if(nod.getNomElt().equals("style:footer-style")) { + mnPopupTree.addSeparator(); + mnPopupTree.add(mnEvalPiedPagePasActive); + } + if(nod.getNomElt().equals("text:sequence-decl")) { + mnPopupTree.addSeparator(); + mnPopupTree.add(mnEvalNameSequence); + } + if(nod.getNomElt().equals("page")) { + mnPopupTree.addSeparator(); + mnPopupTree.add(mnEvalNamePage); + } mnPopupTree.addSeparator(); - mnPopupTree.add(actAttribut); - } - if(nodeSetting) { - mnPopupTree.add(mnSetting); + mnPopupTree.add(new actAttribut()); } + + mnPopupTree.addSeparator(); mnPopupTree.add(mnManageTree); - if(!nodeSetting) { - mnPopupTree.addSeparator(); - mnPopupTree.add(actDeleteNode); - } + mnPopupTree.addSeparator(); + mnPopupTree.add(new actDeleteNode()); + tree.setComponentPopupMenu(mnPopupTree); } } - + /* Methode de construction de la barre de menu */ private JMenuBar createMenuBar() { @@ -452,13 +557,13 @@ public class create extends JFrame { mnuFile.setMnemonic( 'F' ); /*JMenuItem mnuNewFile =*/ - mnuFile.add( actOpen ); - mnuFile.add( actNewFichierAnalyse ); + mnuFile.add( new actOpen() ); + mnuFile.add( new actNewFichierAnalyse() ); mnuFile.addSeparator(); - mnuFile.add( actSave ); - mnuFile.add( actSaveAs ); + mnuFile.add( new actSave() ); + mnuFile.add( new actSaveAs() ); mnuFile.addSeparator(); - mnuFile.add( actExit ); + mnuFile.add( new actExit() ); menuBar.add(mnuFile); @@ -475,29 +580,36 @@ public class create extends JFrame { menuBar.add(mnuEdit); + JMenu mnAffiche = new JMenu("Affichage"); + menuBar.add(mnAffiche); + + chckbxtoolBarRecherche = new JCheckBoxMenuItem("Barre outils recherche node"); + chckbxtoolBarRecherche.setSelected(true); + mnAffiche.add(chckbxtoolBarRecherche); + // Définition du menu Node JMenu mnNode = new JMenu("Modifier"); - mnNode.add( actNodeFichier ); + mnNode.add( new actNodeFichier() ); mnNode.addSeparator(); menuBar.add(mnNode); //Menu arbre JMenu mnManageTree = new JMenu("Arbre"); - mnManageTree.add(actUpNode); - mnManageTree.add(actDownNode); + mnManageTree.add(new actUpNode()); + mnManageTree.add(new actDownNode()); mnManageTree.addSeparator(); - mnManageTree.add(actExpandAll); - mnManageTree.add(actExpandNode); + mnManageTree.add(new actExpandAll()); + mnManageTree.add(new actExpandNode()); mnManageTree.addSeparator(); - mnManageTree.add(actCollapseAll); - mnManageTree.add(actCollapseNode); + mnManageTree.add(new actCollapseAll()); + mnManageTree.add(new actCollapseNode()); mnNode.add(mnManageTree); mnNode.addSeparator(); //Définition Evaluer JMenu mnEvaluer = new JMenu("Evaluer"); - mnEvaluer.add(actEvalueTrue); - mnEvaluer.add(actEvalueFalse); + mnEvaluer.add(new actEvalueTrue()); + mnEvaluer.add(new actEvalueFalse()); mnNode.add(mnEvaluer); @@ -505,7 +617,7 @@ public class create extends JFrame { // Définition du menu déroulant "Création évaluation" et de son contenu JMenu mnuExercice = new JMenu( "Création évaluation" ); mnuExercice.setMnemonic( 'N' ); - mnuExercice.add(actEvaluer); + mnuExercice.add(new actEvaluer()); menuBar.add(mnuExercice); @@ -513,8 +625,8 @@ public class create extends JFrame { JMenu mnuHelp = new JMenu( "Aide" ); mnuHelp.setMnemonic( 'H' ); - mnuHelp.add( actAPropos); - mnuHelp.add( actDocumentation); + mnuHelp.add( new actAPropos()); + mnuHelp.add( new actDocumentation()); menuBar.add( mnuHelp ); @@ -523,449 +635,116 @@ public class create extends JFrame { /* Methode de construction de la barre d'outils */ private void createToolBar() { - toolBar_1 = new JToolBar(); + toolBarPrincipal = new JToolBar(); + toolBarPrincipal.setRollover(true); - JButton buttonLoadFile = toolBar_1.add( actOpen ); + toolBarPrincipal.setName("outils principaux"); + + JButton buttonLoadFile = toolBarPrincipal.add( new actOpen() ); buttonLoadFile.setIcon(new ImageIcon(create.class.getResource("/resources/fichierAnalyse.png"))); buttonLoadFile.setHideActionText(true); - toolBar_1.add(buttonLoadFile); + toolBarPrincipal.add(buttonLoadFile); - JButton btnNewFichierAnalyse = toolBar_1.add( actNewFichierAnalyse ); + JButton btnNewFichierAnalyse = toolBarPrincipal.add( new actNewFichierAnalyse() ); btnNewFichierAnalyse.setIcon(new ImageIcon(create.class.getResource("/resources/fichierODF.png"))); btnNewFichierAnalyse.setHideActionText(true); - toolBar_1.add(btnNewFichierAnalyse); + toolBarPrincipal.add(btnNewFichierAnalyse); - toolBar_1.addSeparator(); + toolBarPrincipal.addSeparator(); - buttonEvaluate = toolBar_1.add( actEvaluer ); - buttonEvaluate.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent e) { - } - }); + buttonEvaluate = toolBarPrincipal.add( new actEvaluer() ); buttonEvaluate.setIcon(new ImageIcon(create.class.getResource("/resources/evaluate.png"))); - toolBar_1.addSeparator(); + toolBarPrincipal.addSeparator(); - JButton btnAfficheInformationFichierAnalyse = toolBar_1.add( actAfficheInformationFichierAnalyse ); + JButton btnAfficheInformationFichierAnalyse = toolBarPrincipal.add( new actAfficheInformationFichierAnalyse() ); btnAfficheInformationFichierAnalyse.setIcon(new ImageIcon(create.class.getResource("/resources/fichierAnalyseInfo.png"))); btnAfficheInformationFichierAnalyse.setHideActionText(true); - toolBar_1.add(btnAfficheInformationFichierAnalyse); + toolBarPrincipal.add(btnAfficheInformationFichierAnalyse); - JButton btnNodeFichier = toolBar_1.add( actNodeFichier ); + JButton btnNodeFichier = toolBarPrincipal.add( new actNodeFichier() ); btnNodeFichier.setIcon(new ImageIcon(create.class.getResource("/resources/nodeFichier.png"))); btnNodeFichier.setHideActionText(true); - toolBar_1.add(btnNodeFichier); + toolBarPrincipal.add(btnNodeFichier); - JButton btnSetting = toolBar_1.add( actSetting); + JButton btnSetting = toolBarPrincipal.add( new actSetting()); btnSetting.setIcon(new ImageIcon(create.class.getResource("/resources/setting.png"))); - toolBar_1.add(btnSetting); + toolBarPrincipal.add(btnSetting); - toolBar_1.addSeparator(); + toolBarPrincipal.addSeparator(); - JButton btnEvaluerTrue = toolBar_1.add( actEvalueTrue ); + JButton btnEvaluerTrue = toolBarPrincipal.add( new actEvalueTrue() ); btnEvaluerTrue.setIcon(new ImageIcon(create.class.getResource("/resources/evaluertrue.png"))); btnEvaluerTrue.setHideActionText(true); - toolBar_1.add(btnEvaluerTrue); + toolBarPrincipal.add(btnEvaluerTrue); - JButton btnEvaluerFalse = toolBar_1.add( actEvalueFalse ); + JButton btnEvaluerFalse = toolBarPrincipal.add(new actEvalueFalse() ); btnEvaluerFalse.setIcon(new ImageIcon(create.class.getResource("/resources/evaluerfalse.png"))); btnEvaluerFalse.setHideActionText(true); - toolBar_1.add(btnEvaluerFalse); + toolBarPrincipal.add(btnEvaluerFalse); - JButton btnEvaluerTouteLaBrancheEtLesEnfantTrue = toolBar_1.add( actEvaluerTousEnfantsTrue ); + JButton btnEvaluerTouteLaBrancheEtLesEnfantTrue = toolBarPrincipal.add( new actEvaluerTousEnfantsTrue() ); btnEvaluerTouteLaBrancheEtLesEnfantTrue.setIcon(new ImageIcon(create.class.getResource("/resources/evaluertouslesenfants.png"))); btnEvaluerTouteLaBrancheEtLesEnfantTrue.setHideActionText(true); - toolBar_1.add(btnEvaluerTouteLaBrancheEtLesEnfantTrue); + toolBarPrincipal.add(btnEvaluerTouteLaBrancheEtLesEnfantTrue); - JButton btnEvaluerTouteLaBrancheEtLesEnfantFalse = toolBar_1.add( actEvaluerTousEnfantsFalse ); + JButton btnEvaluerTouteLaBrancheEtLesEnfantFalse = toolBarPrincipal.add( new actEvaluerTousEnfantsFalse() ); btnEvaluerTouteLaBrancheEtLesEnfantFalse.setIcon(new ImageIcon(create.class.getResource("/resources/evaluertouslesenfantsfaux.png"))); btnEvaluerTouteLaBrancheEtLesEnfantTrue.setHideActionText(true); - toolBar_1.add(btnEvaluerTouteLaBrancheEtLesEnfantFalse); + toolBarPrincipal.add(btnEvaluerTouteLaBrancheEtLesEnfantFalse); - toolBar_1.addSeparator(); + toolBarPrincipal.addSeparator(); - JButton btnAttribut = new JButton(actAttribut); + JButton btnAttribut = new JButton(new actAttribut()); btnAttribut.setText(""); btnAttribut.setIcon(new ImageIcon(create.class.getResource("/resources/attribut.png"))); - toolBar_1.add(btnAttribut); + toolBarPrincipal.add(btnAttribut); - toolBar_1.addSeparator(); + toolBarPrincipal.addSeparator(); - JButton btnTotalPoint = new JButton(actTotalPoint); + JButton btnTotalPoint = new JButton(new actTotalPoint()); btnTotalPoint.setToolTipText("Nombre de point total dans l'exercice."); btnTotalPoint.setText(""); btnTotalPoint.setIcon(new ImageIcon(create.class.getResource("/resources/totalpoint.png"))); - toolBar_1.add(btnTotalPoint); + toolBarPrincipal.add(btnTotalPoint); - JButton btnTotalPointNode = toolBar_1.add( actTotalPointNode ); + JButton btnTotalPointNode = toolBarPrincipal.add( new actTotalPointNode() ); btnTotalPointNode.setIcon(new ImageIcon(create.class.getResource("/resources/totalpointnode.png"))); btnTotalPointNode.setHideActionText(true); - toolBar_1.add(btnTotalPointNode); + toolBarPrincipal.add(btnTotalPointNode); - toolBar_1.addSeparator(); + toolBarPrincipal.addSeparator(); tglbtnTousLesNodes = new JToggleButton(""); - tglbtnTousLesNodes.setAction(actTousLesNodesEvaluer); + tglbtnTousLesNodes.setAction(new actTousLesNodesEvaluer()); tglbtnTousLesNodes.setIcon(new ImageIcon(create.class.getResource("/resources/lesnodesevaluer.png"))); - toolBar_1.add(tglbtnTousLesNodes); + toolBarPrincipal.add(tglbtnTousLesNodes); - toolBar_1.addSeparator(); + toolBarPrincipal.addSeparator(); - JButton btnAbout = toolBar_1.add( actAbout ); + JButton btnAbout = toolBarPrincipal.add( new actAbout() ); btnAbout.setIcon(new ImageIcon(create.class.getResource("/resources/apropos.png"))); btnAbout.setHideActionText( true ); - toolBar_1.add(btnAbout); + toolBarPrincipal.add(btnAbout); - JButton btnNewButton = toolBar_1.add(actTutoriels); + JButton btnNewButton = toolBarPrincipal.add( new actTutoriels()); btnNewButton.setIcon(new ImageIcon(create.class.getResource("/resources/tutoriel.png"))); btnNewButton.setHideActionText(true); - toolBar_1.add(btnNewButton); + toolBarPrincipal.add(btnNewButton); - toolBar_1.addSeparator(); + toolBarPrincipal.addSeparator(); - JButton button_2 = toolBar_1.add( actExit ); - button_2.setHideActionText( true ); + JButton buttonExit = toolBarPrincipal.add( new actExit() ); + buttonExit.setHideActionText( true ); } - - - /** - * Ouvre et affiche le fichier d'analyse - */ - private AbstractAction actOpen = new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue( Action.NAME, "Ouvrir un fichier d'analyse" ); - putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/fichierAnalysemini.png")) ); - putValue( Action.MNEMONIC_KEY, KeyEvent.VK_O ); - putValue( Action.SHORT_DESCRIPTION, "Ouvrir un nouveau fichier d'analyse (CTRL+O)" ); - putValue( Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_O, InputEvent.CTRL_DOWN_MASK) ); - } - - @Override public void actionPerformed( ActionEvent e ) { - new filechooserXML(); - if(commandes.fichierAnalyseValide) { - constructionTree(); - textNodeSelect.afficheChargementFichierAnalyse(); - }else { - constructionTree(); - textNodeSelect.setContentType("text/plain"); - textNodeSelect.setText(commandes.message.toString()); - } - System.out.println( "Open" ); - } - }; - - - /** - * Affiche le tree contenant tous les nodes - */ - private AbstractAction actTousLesNodesEvaluer = new AbstractAction() { - private static final long serialVersionUID = 1L; - { - putValue( Action.NAME, "" ); - putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/touslesnodesmini.png")) ); - putValue( Action.SHORT_DESCRIPTION, "Affiche tous les nodes" ); - } - @Override - public void actionPerformed(ActionEvent e) { - if(tglbtnTousLesNodes.isSelected()) { - try { - commandes.sujetSauvegarde = commandes.sujet.clone(); - commandes.sujet.supprimeTousLesNodesEvaluerFalseOuNull(); - commandes.fichierAnalyseValide=false; - textNodeSelect.setContentType("text/html"); - textNodeSelect.setText("

    Affiche uniquement les nodes évalués par l'application.


    " - + "

    Le chemin vers chaque node évalué est constitué de node évalué.
    " - + "Si vous enregistrez maintenant, vous enregistrez le fichier d'analyse avec uniquement les nodes évalués.

    "); - buttonEvaluate.setEnabled(false); - constructionTree(); - } catch (CloneNotSupportedException e1) { - e1.printStackTrace(); - } - }else { - try { - commandes.sujet = commandes.sujetSauvegarde.clone(); - buttonEvaluate.setEnabled(true); - } catch (CloneNotSupportedException e1) { - e1.printStackTrace(); - } - textNodeSelect.setContentType("text/html"); - textNodeSelect.setText("

    Affiche tous les nodes évalués ou pas.


    "); - commandes.fichierAnalyseValide=true; - constructionTree(); - } - } - }; - - /** - * - */ - private AbstractAction actNodeFichier = new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue( Action.NAME, "Modifier les paramètres de l'évaluation" ); - putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/nodeFichiermini.png")) ); - putValue( Action.LARGE_ICON_KEY, new ImageIcon(create.class.getResource("/resources/nodeFichier.png")) ); - putValue( Action.SHORT_DESCRIPTION, "Modifier les paramètres de l'évaluation" ); - - } - - @Override public void actionPerformed( ActionEvent e ) { - if(commandes.sujet.getNomElt().equals("fichier")) { - new proprieteFichierAnalyse(textNodeSelect); - - } - System.out.println( "ouvre la fenêtre propriété du fichier d'analyse" ); - } - }; - - /** - * Affiche la fenêtre setting (une seule instance) - */ - private AbstractAction actSetting = new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue( Action.NAME, "Settings" ); - putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/settingmini.png")) ); - putValue( Action.LARGE_ICON_KEY, new ImageIcon(create.class.getResource("/resources/setting.png")) ); - putValue( Action.SHORT_DESCRIPTION, "Modifier les paramètres" ); - - } - - @Override public void actionPerformed( ActionEvent e ) { - if(commandes.sujet.getNomElt().equals("fichier")) { - //Ouvre une seule instance de la fenêtre setting. - setting.getInstance(); - } - } - }; - - /** - * Affiche la fenêtre attribut. Il peut y avoir plusieurs instances. - */ - private AbstractAction actAttribut = new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue( Action.NAME, "Evaluer les attributs Writer" ); - putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/attributmini.png")) ); - putValue( Action.LARGE_ICON_KEY, new ImageIcon(create.class.getResource("/resources/attributmini.png")) ); - putValue( Action.SHORT_DESCRIPTION, "Evaluer les attributs du traitement de texte Writer" ); - - } - - @Override public void actionPerformed( ActionEvent e ) { - DefaultMutableTreeNode selectNode = (DefaultMutableTreeNode) tree.getSelectionPath().getLastPathComponent(); - node nod = (node) selectNode.getUserObject(); - - int nbrAttribut = nod.getAttributs().size(); - System.out.println("Nbr attribut brut = " + nbrAttribut); - - Enumeration k = nod.getAttributs().keys(); - while(k.hasMoreElements()) { - - String key = k.nextElement(); - if(listeAttributsAnalyseWriter.isAttributAnalyseWriter(key)) { - nbrAttribut--; - } - } - - System.out.println("Nbr attribut writer = " + nbrAttribut); - - if(nbrAttribut>0) { - if(nod.getLevel()>1 && !nod.chemin().contains("setting")) { - new attributs(nod,textNodeSelect); - }else { - JOptionPane.showMessageDialog(null, "Vous ne pouvez pas modifier les attributs de ce node."); - } - }else { - JOptionPane.showMessageDialog(null, "Ce node ne contient pas d'attribut Writer."); - } - System.out.println( "ouvre la fenêtre attributs" ); - } - }; - - - /** - * Affiche la fenêtre d'information sur analyseWriter - */ - private AbstractAction actAbout = new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue( Action.NAME, "Informations" ); - putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/aproposmini.png")) ); - putValue( Action.MNEMONIC_KEY, KeyEvent.VK_I ); - putValue( Action.SHORT_DESCRIPTION, "Informations (CTRL+I)" ); - putValue( Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_I, InputEvent.CTRL_DOWN_MASK) ); - } - - @Override public void actionPerformed( ActionEvent e ) { - new about(); - System.out.println( "About" ); - } - }; - - - - /** - * Enregistrer - */ - private AbstractAction actSave = new AbstractAction() { - private static final long serialVersionUID = 1L; - - { - putValue( Action.NAME, "Enregister" ); - putValue( Action.SMALL_ICON, new ImageIcon( getClass().getResource("/save.png")) ); - putValue( Action.MNEMONIC_KEY, KeyEvent.VK_S ); - putValue( Action.SHORT_DESCRIPTION, "Enregistrer (CTRL+S)" ); - putValue( Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_S, KeyEvent.CTRL_DOWN_MASK ) ); - } - - @Override public void actionPerformed( ActionEvent e ) { - - Pattern p = Pattern.compile("[.xml]\\b"); - Matcher m = p.matcher(commandes.nameSujet); - - String message=""; - - if(m.find()) { - message="\"Voulez-vous enregistrer le fichier \"" + commandes.nameSujet + "\"\n" - + "Dans le dossier " + commandes.PathFilenameAnalysis; - }else { - message="\"Voulez-vous enregistrer le fichier \"" + commandes.nameSujet + ".xml\"\n" - + "Dans le dossier " + commandes.PathFilenameAnalysis; - commandes.nameSujet = commandes.nameSujet + ".xml"; - } - - int input = JOptionPane.showConfirmDialog(null, message); - - if(input==0) { - try { - verificationFichierAnalyse.MiseAJourHashNomFichierAnalyse(commandes.nameSujet); - Run.ecritureNodeEnXML(commandes.sujet, commandes.nameSujet ,commandes.PathFilenameAnalysis,"sujet"); - - if(m.find()) { - textNodeSelect.setText("Le fichier \"" + commandes.nameSujet + " a été réenregistré.\n\n" - + "Il se trouve dans le dossier " + commandes.PathFilenameAnalysis); - }else { - textNodeSelect.setText("Le fichier \"" + commandes.nameSujet + ".xml\" a été réenregistré.\n\n" - + "Il se trouve dans le dossier " + commandes.PathFilenameAnalysis); - } - - System.out.println( input + "Save" ); - } catch (IOException | CloneNotSupportedException e1) { - e1.printStackTrace(); - } - } - } - }; - - /** - * Enregistrer sous ... - */ - private AbstractAction actSaveAs = new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue( Action.NAME, "Enregistrer sous..." ); - putValue( Action.SMALL_ICON, new ImageIcon(getClass().getResource("/save_as.png") )); - putValue( Action.MNEMONIC_KEY, KeyEvent.VK_A ); - putValue( Action.SHORT_DESCRIPTION, "Enregistrer sous..." ); - } - - @Override public void actionPerformed( ActionEvent e ) { - - JFileChooser fileChooser = new JFileChooser(); - fileChooser.setDialogTitle("Enregistrer sous..."); - File file = null; - - if(!commandes.nameSujet.isEmpty()) { - file = new File(commandes.PathFilenameAnalysis ); //+ "\\" + utils.filename + ".xml" - } - - - - fileChooser.setCurrentDirectory(file); - - int userSelection = fileChooser.showSaveDialog(null); - - if (userSelection == JFileChooser.APPROVE_OPTION) { - File fileToSave = fileChooser.getSelectedFile(); - try { - - verificationFichierAnalyse.MiseAJourHashNomFichierAnalyse(fileToSave.getName()); - - - Run.ecritureNodeEnXML(commandes.sujet, fileToSave.getName(), fileToSave.getPath().substring(0,fileToSave.getPath().lastIndexOf("\\")),"sujet" ); - - commandes.nameSujet = fileToSave.getName(); - commandes.PathFilenameAnalysis = fileToSave.getPath().substring(0,fileToSave.getPath().lastIndexOf("\\")); - - Pattern p = Pattern.compile("[.xml]\\b"); - Matcher m = p.matcher(commandes.nameSujet); - - if(m.find()) { - file = new File(commandes.PathFilenameAnalysis + "\\" + commandes.nameSujet); - textNodeSelect.setText("Le fichier \"" + commandes.nameSujet + " a été renregistré.\n\nIl se trouve dans le dossier " + commandes.PathFilenameAnalysis); - }else { - file = new File(commandes.PathFilenameAnalysis + "\\" + commandes.nameSujet + ".xml"); - textNodeSelect.setText("Le fichier \"" + commandes.nameSujet + ".xml\" a été renregistré.\n\nIl se trouve dans le dossier " + commandes.PathFilenameAnalysis); - } - - - } catch (IOException e1) { - e1.printStackTrace(); - } catch (CloneNotSupportedException e1) { - e1.printStackTrace(); - } - System.out.println("Save as file: " + fileToSave.getAbsolutePath()); - } - System.out.println( "Save as" ); - } - }; - - /** - * Quitter l'application - */ - private AbstractAction actExit = new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue( Action.NAME, "Quitter" ); - putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/exitmini.png")) ); - putValue( Action.LARGE_ICON_KEY, new ImageIcon(create.class.getResource("/resources/exit.png")) ); - putValue( Action.MNEMONIC_KEY, KeyEvent.VK_Q ); - putValue( Action.SHORT_DESCRIPTION, "Quitter (CRTL+Q)" ); - putValue( Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_Q, KeyEvent.CTRL_DOWN_MASK ) ); - } - - @Override public void actionPerformed( ActionEvent e ) { - if(JOptionPane.showConfirmDialog(null,"Voulez-vous quitter analyseWriter?", "Quitter", JOptionPane.YES_NO_OPTION,JOptionPane.QUESTION_MESSAGE)==JOptionPane.YES_OPTION) { - dispose(); - } - } - }; - - /** * */ @@ -1026,24 +805,10 @@ public class create extends JFrame { } }; - /** - * - */ - private AbstractAction actAfficheInformationFichierAnalyse = new AbstractAction() { - private static final long serialVersionUID = 1L; - - { - putValue( Action.NAME, "Affiche informations" ); - putValue( Action.SHORT_DESCRIPTION, "Affiche les informations du fichier d'analyse." ); - } - - @Override public void actionPerformed( ActionEvent e ) { - textNodeSelect.afficheChargementFichierAnalyse(); - } - }; - + + /** * */ @@ -1064,989 +829,6 @@ public class create extends JFrame { } }; - - /** - * Ajoute ou modifie le poid d'un node - */ - private AbstractAction actCoefficient = new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue( Action.NAME, "Coefficient (poids)" ); - putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/poidsmini.png")) ); - putValue( Action.SHORT_DESCRIPTION, "Coefficient (poids)" ); - } - - @Override public void actionPerformed( ActionEvent e ) { - DefaultMutableTreeNode selectNode = (DefaultMutableTreeNode) tree.getSelectionPath().getLastPathComponent(); - - node nod = (node) selectNode.getUserObject(); - double poids = 1.00; - if(nod.getAttributs().get("poids")!=null) { - try { - poids = Double.valueOf(nod.getAttributs().get("poids")); - } catch (Exception e2) { - System.out.println(e2.toString()); - } - } - - String a = JOptionPane.showInputDialog(null,"Quel est le coefficient de cette partie de l'évaluation?",poids); - - if(!a.isEmpty()) { - try { - poids = Double.valueOf(a); - if(poids<=0) { - nod.poids(Double.valueOf(1)); - textNodeSelect.setText(balisestyles()); - textNodeSelect.setText("

    Erreur la valeur doit être un nombre entier POSITIF supérieur à zéro.
    Cependant,la valeur a été modifiée.
    poids=1.

    "); - }else { - nod.poids(Double.valueOf(poids)); - textNodeSelect.refreshAffichage(nod); - } - } catch (Exception e2) { - textNodeSelect.setText(balisestyles()); - textNodeSelect.setText("

    Erreur la valeur doit être un nombre entier.
    La valeur n'a pas été modifiée.

    "); - } - } - - } - }; - - /** - * Evalue l'absence de l'entête avec l'attribut evalEntetePasActive. - */ - private AbstractAction actEvalEntetePasActive = new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue( Action.NAME, "Oui, combien de point?" ); - putValue( Action.SHORT_DESCRIPTION, "Evaluer l'absence d'attribut du node" ); - } - - @Override public void actionPerformed( ActionEvent e ) { - DefaultMutableTreeNode selectNode = (DefaultMutableTreeNode) tree.getSelectionPath().getLastPathComponent(); - - node nod = (node) selectNode.getUserObject(); - int point = 0; - if(nod.getAttributs().get("evalEntetePasActive")!=null) { - point = Integer.valueOf(nod.getAttributs().get("evalEntetePasActive")); - } - - String a = JOptionPane.showInputDialog(null,"Quel est le nombre de point?",point); - - if(!a.isEmpty()) { - try { - point = Integer.valueOf(a); - if(point<=0) { - nod.getAttributs().put("evalEntetePasActive", String.valueOf(0)); - textNodeSelect.setText(balisestyles()); - textNodeSelect.setText("

    Erreur la valeur doit être un nombre entier POSITIF supérieur à zéro.
    Cependant,la valeur a été modifiée.
    evalEntetePasActive=0.

    "); - }else { - nod.getAttributs().put("evalEntetePasActive", String.valueOf(point)); - } - } catch (Exception e2) { - textNodeSelect.setText(balisestyles()); - textNodeSelect.setText("

    Erreur la valeur doit être un nombre entier.
    L'attribut n'a pas été modifiée.

    "); - } - } - textNodeSelect.refreshAffichage(nod); - } - }; - - /** - * Evalue l'absence du pied de page avec l'attribut evalPiedPagePasActive. - */ - private AbstractAction actEvalPiedPagePasActive = new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue( Action.NAME, "Oui, combien de point?" ); - putValue( Action.SHORT_DESCRIPTION, "Evaluer l'absence d'attribut du node" ); - } - - @Override public void actionPerformed( ActionEvent e ) { - DefaultMutableTreeNode selectNode = (DefaultMutableTreeNode) tree.getSelectionPath().getLastPathComponent(); - - node nod = (node) selectNode.getUserObject(); - int point = 0; - if(nod.getAttributs().get("evalPiedPagePasActive")!=null) { - point = Integer.valueOf(nod.getAttributs().get("evalPiedPagePasActive")); - } - - String a = JOptionPane.showInputDialog(null,"Quel est le nombre de point?",point); - - if(!a.isEmpty()) { - try { - point = Integer.valueOf(a); - if(point<=0) { - nod.getAttributs().put("evalPiedPagePasActive", String.valueOf(0)); - textNodeSelect.setText(balisestyles()); - textNodeSelect.setText("

    Erreur la valeur doit être un nombre entier POSITIF supérieur à zéro.
    Cependant,la valeur a été modifiée.
    evalPiedPagePasActive=0.

    "); - }else { - nod.getAttributs().put("evalPiedPagePasActive", String.valueOf(point)); - } - } catch (Exception e2) { - textNodeSelect.setText(balisestyles()); - textNodeSelect.setText("

    Erreur la valeur doit être un nombre entier.
    L'attribut n'a pas été modifiée.

    "); - } - } - textNodeSelect.refreshAffichage(nod); - } - }; - - /** - * Evalue le nom de la séquence - */ - private AbstractAction actEvalNameSequenceOui = new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue( Action.NAME, "Oui, combien de point?" ); - putValue( Action.SHORT_DESCRIPTION, "Evaluer le nom de la séquence" ); - } - - @Override public void actionPerformed( ActionEvent e ) { - DefaultMutableTreeNode selectNode = (DefaultMutableTreeNode) tree.getSelectionPath().getLastPathComponent(); - - node nod = (node) selectNode.getUserObject(); - int point = 0; - if(nod.getAttributs().get("evalNameSequence")!=null) { - point = Integer.valueOf(nod.getAttributs().get("evalNameSequence")); - } - - String a = JOptionPane.showInputDialog(null,"Quel est le nombre de point?",point); - - if(!a.isEmpty()) { - try { - point = Integer.valueOf(a); - if(point<=0) { - nod.getAttributs().put("evalNameSequence", String.valueOf(0)); - textNodeSelect.setText(balisestyles()); - textNodeSelect.setText("

    Erreur la valeur doit être un nombre entier POSITIF supérieur à zéro.
    Cependant,la valeur a été modifiée.
    evalNameSequence=0.

    "); - }else { - nod.getAttributs().put("evalNameSequence", String.valueOf(point)); - } - } catch (Exception e2) { - textNodeSelect.setText(balisestyles()); - textNodeSelect.setText("

    Erreur la valeur doit être un nombre entier.
    L'attribut n'a pas été modifiée.

    "); - } - } - textNodeSelect.refreshAffichage(nod); - } - }; - - - - - private AbstractAction actEvalNamePageOui = new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue( Action.NAME, "Oui, combien de point?" ); - putValue( Action.SHORT_DESCRIPTION, "Evaluer le nom de la page" ); - } - - @Override public void actionPerformed( ActionEvent e ) { - DefaultMutableTreeNode selectNode = (DefaultMutableTreeNode) tree.getSelectionPath().getLastPathComponent(); - - node nod = (node) selectNode.getUserObject(); - int point = 0; - if(nod.getAttributs().get("evalNamePage")!=null) { - point = Integer.valueOf(nod.getAttributs().get("evalNamePage")); - } - - String a = JOptionPane.showInputDialog(null,"Quel est le nombre de point?",point); - - if(!a.isEmpty()) { - try { - point = Integer.valueOf(a); - if(point<=0) { - nod.getAttributs().put("evalNamePage", String.valueOf(0)); - textNodeSelect.setText(balisestyles()); - textNodeSelect.setText("

    Erreur la valeur doit être un nombre entier POSITIF supérieur à zéro.
    Cependant,la valeur a été modifiée.
    evalNamePage=0.

    "); - }else { - nod.getAttributs().put("evalNamePage", String.valueOf(point)); - } - } catch (Exception e2) { - textNodeSelect.setText(balisestyles()); - textNodeSelect.setText("

    Erreur la valeur doit être un nombre entier.
    L'attribut n'a pas été modifiée.

    "); - } - } - textNodeSelect.refreshAffichage(nod); - } - }; - - /** - * Supprime l'évaluation du nom de la page. - */ - private AbstractAction actEvalNamePageNon = new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue( Action.NAME, "Supprime évaluer le nom de la page" ); - putValue( Action.SHORT_DESCRIPTION, "Supprime l'évaluation du nom de la page." ); - } - - @Override public void actionPerformed( ActionEvent e ) { - DefaultMutableTreeNode selectNode = (DefaultMutableTreeNode) tree.getSelectionPath().getLastPathComponent(); - - node nod = (node) selectNode.getUserObject(); - nod.supprimeAttribut("evalNamePage"); - textNodeSelect.refreshAffichage(nod); - } - }; - - /** - * Supprime l'évaluation du nom de la séquence. - */ - private AbstractAction actEvalNameSequenceNon = new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue( Action.NAME, "Supprime évaluer le nom de la séquence" ); - putValue( Action.SHORT_DESCRIPTION, "Supprime l'évaluation du nom de la séquence." ); - } - - @Override public void actionPerformed( ActionEvent e ) { - DefaultMutableTreeNode selectNode = (DefaultMutableTreeNode) tree.getSelectionPath().getLastPathComponent(); - - node nod = (node) selectNode.getUserObject(); - nod.supprimeAttribut("evalNameSequence"); - textNodeSelect.refreshAffichage(nod); - } - }; - - - - /** - * Supprime l'attribut evalEntetePasActive - */ - private AbstractAction actEvalEnteteActive = new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue( Action.NAME, "Supprime entête pas active" ); - putValue( Action.SHORT_DESCRIPTION, "Supprime l'évaluation de l'absence d'attribut du node." ); - } - - @Override public void actionPerformed( ActionEvent e ) { - DefaultMutableTreeNode selectNode = (DefaultMutableTreeNode) tree.getSelectionPath().getLastPathComponent(); - - node nod = (node) selectNode.getUserObject(); - nod.supprimeAttribut("evalEntetePasActive"); - textNodeSelect.refreshAffichage(nod); -// refeshNodeSelected(); - - } - }; - - /** - * Supprime l'attribut evalPiedPagePasActive - */ - private AbstractAction actEvalPiedPageActive = new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue( Action.NAME, "Supprime pied page pas active" ); - putValue( Action.SHORT_DESCRIPTION, "Supprime l'évaluation de l'absence d'attribut du node." ); - } - - @Override public void actionPerformed( ActionEvent e ) { - DefaultMutableTreeNode selectNode = (DefaultMutableTreeNode) tree.getSelectionPath().getLastPathComponent(); - - node nod = (node) selectNode.getUserObject(); - nod.supprimeAttribut("evalPiedPagePasActive"); - textNodeSelect.refreshAffichage(nod); - } - }; - - /** - * Evalue la présence de ce node - */ - private AbstractAction actEvalNameNodeOui = new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue( Action.NAME, "Oui, combien de point?" ); - putValue( Action.SHORT_DESCRIPTION, "Evaluer la présence de ce node" ); - } - - @Override public void actionPerformed( ActionEvent e ) { - DefaultMutableTreeNode selectNode = (DefaultMutableTreeNode) tree.getSelectionPath().getLastPathComponent(); - - node nod = (node) selectNode.getUserObject(); - int point = 0; - if(nod.getAttributs().get("evalNameNode")!=null) { - point = Integer.valueOf(nod.getAttributs().get("evalNameNode")); - } - - String a = JOptionPane.showInputDialog(null,"Quel est le nombre de point?",point); - - if(!a.isEmpty()) { - try { - point = Integer.valueOf(a); - if(point<=0) { - nod.getAttributs().put("evalNameNode", String.valueOf(0)); - textNodeSelect.setText(balisestyles()); - textNodeSelect.setText("

    Erreur la valeur doit être un nombre entier POSITIF supérieur à zéro.
    Cependant,la valeur a été modifiée.
    evalNameNode=0.

    "); - }else { - nod.getAttributs().put("evalNameNode", String.valueOf(point)); - } - } catch (Exception e2) { - textNodeSelect.setText(balisestyles()); - textNodeSelect.setText("

    Erreur la valeur doit être un nombre entier.
    L'attribut n'a pas été modifiée.

    "); - } - } - textNodeSelect.refreshAffichage(nod); - } - }; - - /** - * Evalue la présence du node meta:initial-creator - */ - private AbstractAction actEvalInitialCreator = new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue( Action.NAME, "Evaluer la présence du premier auteur (créateur)" ); - putValue( Action.SHORT_DESCRIPTION, "Evaluer la présence du premier auteur (créateur)" ); - putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/auteurcreateurmini.png")) ); - } - - @Override public void actionPerformed( ActionEvent e ) { - DefaultMutableTreeNode selectNode = (DefaultMutableTreeNode) tree.getSelectionPath().getLastPathComponent(); - - node nod = (node) selectNode.getUserObject(); - int point = 0; - if(nod.getAttributs().get("evalNameInitialCreator")!=null) { - point = Integer.valueOf(nod.getAttributs().get("evalNameInitialCreator")); - } - - String a = JOptionPane.showInputDialog(null,"Quel est le nombre de point?",point); - - if(!a.isEmpty()) { - try { - point = Integer.valueOf(a); - if(point<=0) { - nod.getAttributs().put("evalNameInitialCreator", String.valueOf(0)); - textNodeSelect.setText(balisestyles()); - textNodeSelect.setText("

    Erreur la valeur doit être un nombre entier POSITIF supérieur à zéro.
    Cependant,la valeur a été modifiée.
    evalNameInitialCreator=0.

    "); - }else { - nod.getAttributs().put("evalNameInitialCreator", String.valueOf(point)); - } - } catch (Exception e2) { - textNodeSelect.setText(balisestyles()); - textNodeSelect.setText("

    Erreur la valeur doit être un nombre entier.
    L'attribut n'a pas été modifiée.

    "); - } - } - textNodeSelect.refreshAffichage(nod); - } - }; - - /** - * Evalue la présence du node dc:creator - */ - private AbstractAction actevalNameCreator = new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue( Action.NAME, "Evaluer la présence du dernier éditeur" ); - putValue( Action.SHORT_DESCRIPTION, "Evaluer la présence du dernier éditeur" ); - putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/auteurediteurmini.png")) ); - } - - @Override public void actionPerformed( ActionEvent e ) { - DefaultMutableTreeNode selectNode = (DefaultMutableTreeNode) tree.getSelectionPath().getLastPathComponent(); - - node nod = (node) selectNode.getUserObject(); - int point = 0; - if(nod.getAttributs().get("evalNameCreator")!=null) { - point = Integer.valueOf(nod.getAttributs().get("evalNameCreator")); - } - - String a = JOptionPane.showInputDialog(null,"Quel est le nombre de point?",point); - - if(!a.isEmpty()) { - try { - point = Integer.valueOf(a); - if(point<=0) { - nod.getAttributs().put("evalNameCreator", String.valueOf(0)); - textNodeSelect.setText(balisestyles()); - textNodeSelect.setText("

    Erreur la valeur doit être un nombre entier POSITIF supérieur à zéro.
    Cependant,la valeur a été modifiée.
    evalNameCreator=0.

    "); - }else { - nod.getAttributs().put("evalNameCreator", String.valueOf(point)); - } - } catch (Exception e2) { - textNodeSelect.setText(balisestyles()); - textNodeSelect.setText("

    Erreur la valeur doit être un nombre entier.
    L'attribut n'a pas été modifiée.

    "); - } - } - textNodeSelect.refreshAffichage(nod); - } - }; - - /** - * Evalue la présence de ce node - */ - private AbstractAction actAllContent = new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue( Action.NAME, "Evaluer le contenu du node" ); - putValue( Action.SHORT_DESCRIPTION, "Evaluer le contenu du node" ); - putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/allcontentmini.png")) ); - } - - @Override public void actionPerformed( ActionEvent e ) { - DefaultMutableTreeNode selectNode = (DefaultMutableTreeNode) tree.getSelectionPath().getLastPathComponent(); - - node nod = (node) selectNode.getUserObject(); - new allContent(nod,textNodeSelect); - - } - }; - - /** - * Evalue la présence de ce node - */ - private AbstractAction actEvalNameNodeNon = new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue( Action.NAME, "Supprime l'évaluation de la présence du node" ); - putValue( Action.SHORT_DESCRIPTION, "Supprime l'évaluation de la présence du node" ); - } - - @Override public void actionPerformed( ActionEvent e ) { - DefaultMutableTreeNode selectNode = (DefaultMutableTreeNode) tree.getSelectionPath().getLastPathComponent(); - - node nod = (node) selectNode.getUserObject(); - nod.supprimeAttribut("evalNameNode"); - textNodeSelect.refreshAffichage(nod); -// refeshNodeSelected(); - - } - }; - - - - /** - * Ajoute ou modifie le titre principal - */ - private AbstractAction actTitrePrincipal = new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue( Action.NAME, "Titre principal" ); - putValue( Action.SHORT_DESCRIPTION, "Titre principal" ); - } - - @Override public void actionPerformed( ActionEvent e ) { - DefaultMutableTreeNode selectNode = (DefaultMutableTreeNode) tree.getSelectionPath().getLastPathComponent(); - - node nod = (node) selectNode.getUserObject(); - String titre = ""; - if(nod.getAttributs().get("titre")!=null) { - titre = nod.getAttributs().get("titre"); - } - - String a = JOptionPane.showInputDialog(null,"Quel est le titre?",titre); - nod.titre(a); - textNodeSelect.refreshAffichage(nod); -// refeshNodeSelected(); - } - }; - - - /** - * Ajoute ou modifie le titre principal - */ - private AbstractAction actSupprimeTitre = new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue( Action.NAME, "Supprimer le titre" ); - putValue( Action.SHORT_DESCRIPTION, "Supprime le titre" ); - } - - @Override public void actionPerformed( ActionEvent e ) { - DefaultMutableTreeNode selectNode = (DefaultMutableTreeNode) tree.getSelectionPath().getLastPathComponent(); - - node nod = (node) selectNode.getUserObject(); - if(nod.getAttributs().get("titre")!=null) { - nod.supprimeAttribut("titre"); - } - if(nod.getAttributs().get("titre1")!=null) { - nod.supprimeAttribut("titre1"); - } - if(nod.getAttributs().get("titre2")!=null) { - nod.supprimeAttribut("titre2"); - } - if(nod.getAttributs().get("titre3")!=null) { - nod.supprimeAttribut("titre3"); - } - textNodeSelect.refreshAffichage(nod); -// refeshNodeSelected(); - } - }; - - - - /** - * Ajoute ou modifie le titre 1 - */ - private AbstractAction actTitre1 = new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue( Action.NAME, "Titre 1" ); - putValue( Action.SHORT_DESCRIPTION, "Titre 1" ); - } - - @Override public void actionPerformed( ActionEvent e ) { - DefaultMutableTreeNode selectNode = (DefaultMutableTreeNode) tree.getSelectionPath().getLastPathComponent(); - - node nod = (node) selectNode.getUserObject(); - String titre = ""; - if(nod.getAttributs().get("titre1")!=null) { - titre = nod.getAttributs().get("titre1"); - } - - String a = JOptionPane.showInputDialog(null,"Quel est le titre?",titre); - nod.titre1(a); - textNodeSelect.refreshAffichage(nod); -// refeshNodeSelected(); - } - }; - - - /** - * Ajoute ou modifie le titre 2 - */ - private AbstractAction actTitre2 = new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue( Action.NAME, "Titre 2" ); - putValue( Action.SHORT_DESCRIPTION, "Titre 2" ); - } - - @Override public void actionPerformed( ActionEvent e ) { - DefaultMutableTreeNode selectNode = (DefaultMutableTreeNode) tree.getSelectionPath().getLastPathComponent(); - - node nod = (node) selectNode.getUserObject(); - String titre = ""; - if(nod.getAttributs().get("titre2")!=null) { - titre = nod.getAttributs().get("titre2"); - } - - String a = JOptionPane.showInputDialog(null,"Quel est le titre?",titre); - nod.titre2(a); - textNodeSelect.refreshAffichage(nod); -// refeshNodeSelected(); - } - }; - - - /** - * Ajoute ou modifie le titre 3 - */ - private AbstractAction actTitre3 = new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue( Action.NAME, "Titre 3" ); - putValue( Action.SHORT_DESCRIPTION, "Titre 3" ); - } - - @Override public void actionPerformed( ActionEvent e ) { - DefaultMutableTreeNode selectNode = (DefaultMutableTreeNode) tree.getSelectionPath().getLastPathComponent(); - - node nod = (node) selectNode.getUserObject(); - String titre = ""; - if(nod.getAttributs().get("titre3")!=null) { - titre = nod.getAttributs().get("titre3"); - } - - String a = JOptionPane.showInputDialog(null,"Quel est le titre?",titre); - nod.titre3(a); - textNodeSelect.refreshAffichage(nod); -// refeshNodeSelected(); - } - }; - - - private AbstractAction actTotalPoint = new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue( Action.NAME, "Nombre de point" ); - putValue( Action.SHORT_DESCRIPTION, "Nombre de point total dans l'exercice" ); - putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/totalpointmini.png")) ); - putValue( Action.LARGE_ICON_KEY, new ImageIcon(create.class.getResource("/resources/totalpoint.png")) ); - } - - @Override public void actionPerformed( ActionEvent e ) { - - textNodeSelect.afficheListeDesPointsDansToutExercice(calculNombrePointEvaluation.calculPointDansToutExercice()); - - } - }; - - - private AbstractAction actTotalPointNode = new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue( Action.NAME, "Nombre de point" ); - putValue( Action.SHORT_DESCRIPTION, "Nombre de point brut dans le node" ); - putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/totalpointnodemini.png")) ); - putValue( Action.LARGE_ICON_KEY, new ImageIcon(create.class.getResource("/resources/totalpointnode.png")) ); - } - - @Override public void actionPerformed( ActionEvent e ) { - System.out.println("Calcul le nombre de point dans le node"); - DefaultMutableTreeNode selectNode = (DefaultMutableTreeNode) tree.getSelectionPath().getLastPathComponent(); - - node nod = (node) selectNode.getUserObject(); - textNodeSelect.AfficheTotalPoint(nod,calculNombrePointEvaluation.calculNombreDepoint(nod,0)); - - } - }; - - /** - * Recherche par l'index true - */ - private AbstractAction actRechercheIndextrue = new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue( Action.NAME, "Recherche par l'index du node : true" ); - putValue( Action.SHORT_DESCRIPTION, "Recherche par index le node dans le fichier de l'étudiant." ); - } - - @Override public void actionPerformed( ActionEvent e ) { - DefaultMutableTreeNode selectNode = (DefaultMutableTreeNode) tree.getSelectionPath().getLastPathComponent(); - - node nod = (node) selectNode.getUserObject(); - nod.getAttributs().put("recherche_index", "true"); - textNodeSelect.refreshAffichage(nod); - - } - }; - - - /** - * Evalue le style:name true - */ - private AbstractAction actEvaluerStyleTrue = new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue( Action.NAME, "Evaluer le style." ); - putValue( Action.SHORT_DESCRIPTION, "Evaluer le style:name de ce node dans le fichier de l'étudiant" ); - } - - @Override public void actionPerformed( ActionEvent e ) { - DefaultMutableTreeNode selectNode = (DefaultMutableTreeNode) tree.getSelectionPath().getLastPathComponent(); - - node nod = (node) selectNode.getUserObject(); - nod.getAttributs().put("analyseStyle", "true"); - - //*************************************************************************************************************** - //** Place l'attribut EvaluerATraversAnalyseStyle=true au style qui doit être évaluer à travers d'analyseStyle ** - //** S'il y a des attributs évaluer avec ‽ alors change par ‼ ** - //*************************************************************************************************************** - node nodStyle = commandes.sujet.retourneFirstNodeByNameAndAttributValueExactStrict("style:style", "style:name", nod.getAttributs().get("text:style-name")); - if(nodStyle!=null) { - nodStyle.getAttributs().put("EvaluerATraversAnalyseStyle", "true"); - nodStyle.evaluerTrue(); - nodStyle.changeLesCodesEvaluateursVersCodeATraversAnalyseStyle(); - } - - textNodeSelect.refreshAffichage(nod); - - } - }; - - /** - * Evalue le style:name true - */ - private AbstractAction actEvaluerStyleFalse = new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue( Action.NAME, "N'évaluer pas le style." ); - putValue( Action.SHORT_DESCRIPTION, "N'évaluer pas le style:name de ce node dans le fichier de l'étudiant" ); - } - - @Override public void actionPerformed( ActionEvent e ) { - DefaultMutableTreeNode selectNode = (DefaultMutableTreeNode) tree.getSelectionPath().getLastPathComponent(); - - node nod = (node) selectNode.getUserObject(); - nod.getAttributs().put("analyseStyle", "false"); - - //*************************************************************************************************************** - //** Place l'attribut EvaluerATraversAnalyseStyle=false au style qui doit être évaluer à travers d'analyseStyle ** - //** S'il y a des attribut évaluer avec ‼ alors change par ‽ ** - //*************************************************************************************************************** - node nodStyle = commandes.sujet.retourneFirstNodeByNameAndAttributValueExactStrict("style:style", "style:name", nod.getAttributs().get("text:style-name")); - if(nodStyle!=null) { - nodStyle.getAttributs().put("EvaluerATraversAnalyseStyle", "false"); - nodStyle.evaluerAllChildFalse(); - if(!listeNodeFormatageDirectDeWriter.isFormatageDirect(nodStyle)) { - nodStyle.changeLesCodesEvaluateursVersCodeEvaluateurDirect(); - } - } - - textNodeSelect.refreshAffichage(nod); - } - }; - - /** - * Recherche le node par l'index false - */ - private AbstractAction actRechercheIndexfalse = new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue( Action.NAME, "Ne recherche par l'index du node : false" ); - putValue( Action.SHORT_DESCRIPTION, "Ne recherche pas par l'index le node dans le fichier de l'étudiant." ); - } - - @Override public void actionPerformed( ActionEvent e ) { - DefaultMutableTreeNode selectNode = (DefaultMutableTreeNode) tree.getSelectionPath().getLastPathComponent(); - - node nod = (node) selectNode.getUserObject(); - nod.getAttributs().put("recherche_index", "false"); - textNodeSelect.refreshAffichage(nod); - } - }; - - /** - * Recherche le node par le contenu true - */ - private AbstractAction actRechercheContenutrue= new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue( Action.NAME, "Recherche par le contenu du node : true" ); - putValue( Action.SHORT_DESCRIPTION, "Recherche par le contenu le node dans le fichier de l'étudiant." ); - } - - @Override public void actionPerformed( ActionEvent e ) { - DefaultMutableTreeNode selectNode = (DefaultMutableTreeNode) tree.getSelectionPath().getLastPathComponent(); - - node nod = (node) selectNode.getUserObject(); - nod.getAttributs().put("recherche_contenu_exact", "true"); - textNodeSelect.refreshAffichage(nod); - } - }; - /** - * Recherche le node par le contenu true - */ - private AbstractAction actRechercheContenuPlusProcheVoisintrue= new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue( Action.NAME, "true" ); - putValue( Action.SHORT_DESCRIPTION, "Recherche par le contenu du plus proche voisin." ); - } - - @Override public void actionPerformed( ActionEvent e ) { - DefaultMutableTreeNode selectNode = (DefaultMutableTreeNode) tree.getSelectionPath().getLastPathComponent(); - - node nod = (node) selectNode.getUserObject(); - nod.getAttributs().put("recherche_contenu_plus_proche_voisin", "true"); - textNodeSelect.refreshAffichage(nod); - } - }; - - /** - * Recherche le node par le contenu false - */ - private AbstractAction actRechercheContenufalse= new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue( Action.NAME, "false" ); - putValue( Action.SHORT_DESCRIPTION, "Ne recherche pas par le contenu le node dans le fichier de l'étudiant." ); - } - - @Override public void actionPerformed( ActionEvent e ) { - DefaultMutableTreeNode selectNode = (DefaultMutableTreeNode) tree.getSelectionPath().getLastPathComponent(); - - node nod = (node) selectNode.getUserObject(); - nod.getAttributs().put("recherche_contenu_exact", "false"); - textNodeSelect.refreshAffichage(nod); - } - }; - - /** - * Recherche le node par le contenu true - */ - private AbstractAction actRechercheContenuPlusProcheVoisinfalse= new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue( Action.NAME, "Plus proche voisin : false" ); - putValue( Action.SHORT_DESCRIPTION, "Ne recherche pas par le contenu du plus proche voisin." ); - } - - @Override public void actionPerformed( ActionEvent e ) { - DefaultMutableTreeNode selectNode = (DefaultMutableTreeNode) tree.getSelectionPath().getLastPathComponent(); - - node nod = (node) selectNode.getUserObject(); - nod.getAttributs().put("recherche_contenu_plus_proche_voisin", "false"); - textNodeSelect.refreshAffichage(nod); - } - }; - /** - * Recherche par le numéro de la page true - */ - private AbstractAction actRechercheAnchorPageNumberTrue = new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue( Action.NAME, "true" ); - putValue( Action.SHORT_DESCRIPTION, "Recherche l'image par le numéro de la page dans le node dans le fichier de l'étudiant." ); - } - - @Override public void actionPerformed( ActionEvent e ) { - DefaultMutableTreeNode selectNode = (DefaultMutableTreeNode) tree.getSelectionPath().getLastPathComponent(); - - node nod = (node) selectNode.getUserObject(); - nod.getAttributs().put("recherche_anchor-page-number", "true"); - textNodeSelect.refreshAffichage(nod); - - } - }; - - /** - * Recherche par le numéro de la page true - */ - private AbstractAction actRechercheAnchorPageNumberFalse = new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue( Action.NAME, "false" ); - putValue( Action.SHORT_DESCRIPTION, "Ne recherche pas l'image par le numéro de la page." ); - } - - @Override public void actionPerformed( ActionEvent e ) { - DefaultMutableTreeNode selectNode = (DefaultMutableTreeNode) tree.getSelectionPath().getLastPathComponent(); - - node nod = (node) selectNode.getUserObject(); - nod.getAttributs().put("recherche_anchor-page-number", "false"); - textNodeSelect.refreshAffichage(nod); - - } - }; - - /** - * Ajoute ou modifie un saut de ligne à true. - */ - private AbstractAction actsauttrue = new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue( Action.NAME, "true" ); - putValue( Action.SHORT_DESCRIPTION, "true" ); - } - - @Override public void actionPerformed( ActionEvent e ) { - DefaultMutableTreeNode selectNode = (DefaultMutableTreeNode) tree.getSelectionPath().getLastPathComponent(); - textNodeSelect.setContentType("text/html"); - - node nod = (node) selectNode.getUserObject(); - TreeNode[] chemin = selectNode.getPath(); - boolean avertissement=false; - for(int i = 0 ; i < chemin.length; i++) { - if(chemin[i].toString().contains("setting")) avertissement = true; - System.out.println(chemin[i].toString()); - } - - if(!avertissement) { - nod.saut(true); - textNodeSelect.refreshAffichage(nod); -// refeshNodeSelected(); - }else { - JOptionPane.showMessageDialog(null, "Ce node ne peut pas être évaluer." ); - } - - } - }; - - - /** - * Ajoute ou modifie un saut de ligne à true. - */ - private AbstractAction actsautfalse = new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue( Action.NAME, "false" ); - putValue( Action.SHORT_DESCRIPTION, "false" ); - } - - @Override public void actionPerformed( ActionEvent e ) { - DefaultMutableTreeNode selectNode = (DefaultMutableTreeNode) tree.getSelectionPath().getLastPathComponent(); - textNodeSelect.setContentType("text/html"); - - node nod = (node) selectNode.getUserObject(); - TreeNode[] chemin = selectNode.getPath(); - boolean avertissement=false; - for(int i = 0 ; i < chemin.length; i++) { - if(chemin[i].toString().contains("setting")) avertissement = true; - System.out.println(chemin[i].toString()); - } - - if(!avertissement) { - nod.saut(false); - textNodeSelect.refreshAffichage(nod); -// refeshNodeSelected(); - }else { - JOptionPane.showMessageDialog(null, "Ce node ne peut pas être évaluer." ); - } - - } - }; - - - /** * */ @@ -2066,160 +848,16 @@ public class create extends JFrame { System.out.println( "Paste" ); } }; - - /** - * Affiche la fenêtre informaton sur la version - */ - private AbstractAction actAPropos = new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue( Action.NAME, "Informations" ); - putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/aproposmini.png")) ); - putValue( Action.MNEMONIC_KEY, KeyEvent.VK_M ); - putValue( Action.SHORT_DESCRIPTION, "Informations (CTRL+I)" ); - putValue( Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_I, InputEvent.CTRL_DOWN_MASK) ); - } - - @Override public void actionPerformed( ActionEvent e ) { - new about(); - System.out.println( "A propos" ); - } - }; - - - /** - * Supprime un node - */ - private AbstractAction actDeleteNode = new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue( Action.NAME, "Supprime" ); - putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/supprimemini.png")) ); - putValue( Action.SHORT_DESCRIPTION, "Supprime" ); - } - - @Override public void actionPerformed( ActionEvent e ) { - DefaultMutableTreeNode selectNode = (DefaultMutableTreeNode) tree.getSelectionPath().getLastPathComponent(); - textNodeSelect.setContentType("text/html"); - - if(tree.getSelectionPath()!=null) { - int a = JOptionPane.showConfirmDialog(null,"Voulez-vous supprimer le node " + selectNode.toString() + "?", "Sélectionner un choix", JOptionPane.YES_NO_OPTION); - - if(a == JOptionPane.YES_NO_OPTION) { - node nod = (node) selectNode.getUserObject(); - if(!(nod.getNomElt().equals("setting")||nod.getNomElt().equals("csv")||nod.getNomElt().equals("import_moodle")||nod.getNomElt().equals("zip") - ||nod.getNomElt().equals("plagiarism")||nod.getNomElt().equals("text:similarity")||nod.getNomElt().equals("color") ||nod.getNomElt().equals("translation") )) { - - nod.getParent().supprimeNodeEnfant(nod); - constructionTree(); - - }else { - JOptionPane.showMessageDialog(null,"Vous ne devez pas supprimer ce node !", "Oh non!!!", JOptionPane.INFORMATION_MESSAGE); - - } - - } - } - - - } - }; - - /** - * evaluer =true - */ - private AbstractAction actEvalueTrue = new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_E, InputEvent.ALT_DOWN_MASK)); - putValue( Action.NAME, "Evaluer true" ); - putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/evaluertruemini.png")) ); - putValue( Action.SHORT_DESCRIPTION, "Evaluer ce node par l'application" ); - } - - @Override public void actionPerformed( ActionEvent e ) { - - DefaultMutableTreeNode selectNode = (DefaultMutableTreeNode) tree.getSelectionPath().getLastPathComponent(); - textNodeSelect.setContentType("text/html"); - - node nod = (node) selectNode.getUserObject(); - - if(!nod.chemin().contains("setting")) { - nod.evaluerTrue(); - if(nod.getLevel()==1) { - nod.addMenu(true); - } - - textNodeSelect.refreshAffichage(nod); - - }else { - JOptionPane.showMessageDialog(null, "Ce node ne peut pas être évaluer." ); - } - } - }; - - /** - - /** - * addMenu=true - */ - private AbstractAction actAddMenuTrue = new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue( Action.NAME, "true" ); - putValue( Action.SHORT_DESCRIPTION, "true" ); - } - - @Override public void actionPerformed( ActionEvent e ) { - - DefaultMutableTreeNode selectNode = (DefaultMutableTreeNode) tree.getSelectionPath().getLastPathComponent(); - - node nod = (node) selectNode.getUserObject(); - - if(!nod.chemin().contains("setting")) { - nod.addMenu(true); - textNodeSelect.refreshAffichage(nod);; - }else { - JOptionPane.showMessageDialog(null, "Ce node ne peut pas contenir de lien de menu." ); - } - } - }; - - /** - * addMenu=false - */ - private AbstractAction actAddMenuFalse = new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue( Action.NAME, "false" ); - putValue( Action.SHORT_DESCRIPTION, "false" ); - } - - @Override public void actionPerformed( ActionEvent e ) { - - DefaultMutableTreeNode selectNode = (DefaultMutableTreeNode) tree.getSelectionPath().getLastPathComponent(); - - node nod = (node) selectNode.getUserObject(); - if(!nod.chemin().contains("setting")) { - nod.addMenu(false); - textNodeSelect.refreshAffichage(nod); - }else { - JOptionPane.showMessageDialog(null, "Ce node ne peut pas contenir de lien de menu." ); - } - } - }; - + + public void closeWindows() { + if(JOptionPane.showConfirmDialog(null,"Voulez-vous quitter analyseWriter?", "Quitter", JOptionPane.YES_NO_OPTION,JOptionPane.QUESTION_MESSAGE)==JOptionPane.YES_OPTION) { + dispose(); + } + } + public void closeDirectlyWindows() { + this.dispose(); + } // public static void expandOrCollapsePath (JTree tree,TreePath treePath,int level,int currentLevel,boolean expand) { // System.out.println("Exp level="+currentLevel+", exp="+expand + ", level=" + level); @@ -2245,411 +883,10 @@ public class create extends JFrame { // } - - - - /** - * - */ - private AbstractAction actDocumentation = new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue( Action.NAME, "Documentation" ); - putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/documentationmini.png")) ); - putValue( Action.MNEMONIC_KEY, KeyEvent.VK_D ); - putValue( Action.SHORT_DESCRIPTION, "Documentation (CTRL+D)" ); - putValue( Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_D, InputEvent.CTRL_DOWN_MASK) ); - } - - @Override public void actionPerformed( ActionEvent e ) { - Desktop d = Desktop.getDesktop(); - try { - d.open(new File(create.class.getResource("/resources/documentation.pdf").getPath())); - } catch (IOException e1) { - e1.printStackTrace(); - } - System.out.println( "Affiche la documentation." ); - } - }; - - private AbstractAction actTutoriels = new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue( Action.NAME, "Tutoriels" ); - putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/tutorielmini.png")) ); - putValue( Action.SHORT_DESCRIPTION, "Tutoriels" ); - } - - @Override public void actionPerformed( ActionEvent e ) { - try { - String url = "https://www.youtube.com/channel/UCBSfItcCVnbRJdQbVE9ppjQ"; - java.awt.Desktop.getDesktop().browse(java.net.URI.create(url)); - } - catch (java.io.IOException e1) { - System.out.println(e1.getMessage()); - } - System.out.println( "Affiche les tutoriels." ); - } - }; - - - - /** - * N'évalue pas le node evaluer=false - */ - private AbstractAction actEvalueFalse = new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_E, InputEvent.ALT_DOWN_MASK | InputEvent.SHIFT_DOWN_MASK)); - putValue( Action.NAME, "Evaluer false" ); - putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/evaluerfalsemini.png")) ); - putValue( Action.SHORT_DESCRIPTION, "Ne pas évaluer ce node par l'application." ); - } - - @Override public void actionPerformed( ActionEvent e ) { - - DefaultMutableTreeNode selectNode = (DefaultMutableTreeNode) tree.getSelectionPath().getLastPathComponent(); - textNodeSelect.setContentType("text/html"); - - node nod = (node) selectNode.getUserObject(); - if(!nod.chemin().contains("setting")) { - nod.evaluerFalse(); - textNodeSelect.refreshAffichage(nod); - }else { - JOptionPane.showMessageDialog(null, "Ce node ne peut être évalué."); - } - - } - }; - /** - * Evalue le node est les enfants suivant c'est tout - */ - private AbstractAction actEvaluerTousEnfantsTrue = new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue( Action.NAME, "Evaluer toute la branche" ); - putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/evaluertouslesenfantsmini.png")) ); - putValue( Action.LARGE_ICON_KEY, new ImageIcon(create.class.getResource("/resources/evaluertouslesenfants.png")) ); - putValue( Action.SHORT_DESCRIPTION, "Evaluer toute la branche de la racine à la feuille." ); - } - - @Override public void actionPerformed( ActionEvent e ) { - - DefaultMutableTreeNode selectNode = (DefaultMutableTreeNode) tree.getSelectionPath().getLastPathComponent(); - textNodeSelect.setContentType("text/html"); - - node nod = (node) selectNode.getUserObject(); - if(!nod.chemin().contains("setting")) { - nod.evaluerAllChildTrue(); - textNodeSelect.refreshAffichage(nod); - }else { - JOptionPane.showMessageDialog(null, "Ce node ne peut être évalué."); - } - - } - }; - - /** - * N'évalue pas le node est les enfants suivant c'est tout - */ - private AbstractAction actEvaluerTousEnfantsFalse = new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue( Action.NAME, "Evaluer toute la branche" ); - putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/evaluertouslesenfantsmini.png")) ); - putValue( Action.LARGE_ICON_KEY, new ImageIcon(create.class.getResource("/resources/evaluertouslesenfants.png")) ); - putValue( Action.SHORT_DESCRIPTION, "Evaluer toute la branche de la racine à la feuille." ); - } - - @Override public void actionPerformed( ActionEvent e ) { - - DefaultMutableTreeNode selectNode = (DefaultMutableTreeNode) tree.getSelectionPath().getLastPathComponent(); - textNodeSelect.setContentType("text/html"); - - node nod = (node) selectNode.getUserObject(); - if(!nod.chemin().contains("setting")) { - nod.evaluerAllChildFalse(); - textNodeSelect.refreshAffichage(nod); - }else { - JOptionPane.showMessageDialog(null, "Ce node ne peut être évalué."); - } - - } - }; - - /** - * Expand all - */ - private AbstractAction actExpandAll= new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue( Action.NAME, "Tout étendre" ); - putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/expandallmini.png")) ); - putValue( Action.SHORT_DESCRIPTION, "Tout étendre" ); - } - - @Override public void actionPerformed( ActionEvent e ) { - expandAll(); - -// refeshNodeSelected(); - } - }; - - /** - * Calloapse all - */ - private AbstractAction actCollapseAll= new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue( Action.NAME, "Tout réduire" ); - putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/collapseallmini.png")) ); - putValue( Action.SHORT_DESCRIPTION, "Tout réduire" ); - } - - @Override public void actionPerformed( ActionEvent e ) { - collapseAll(); - -// refeshNodeSelected(); - } - }; - - /** - * Expand node - */ - private AbstractAction actExpandNode= new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue( Action.NAME, "Etendre ce node" ); - putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/expandnodemini.png")) ); - putValue( Action.SHORT_DESCRIPTION, "Etendre ce node" ); - } - - @Override public void actionPerformed( ActionEvent e ) { - if(tree.getSelectionPath()!=null) { - DefaultMutableTreeNode selectNode = (DefaultMutableTreeNode) tree.getSelectionPath().getLastPathComponent(); - textNodeSelect.setContentType("text/html"); - - expandNode(selectNode); -// refeshNodeSelected(); - } - } - }; - - /** - * Collapse node - */ - private AbstractAction actCollapseNode= new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue( Action.NAME, "Réduire ce node" ); - putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/collapsenodemini.png")) ); - putValue( Action.SHORT_DESCRIPTION, "Réduire ce node" ); - } - - @Override public void actionPerformed( ActionEvent e ) { - if(tree.getSelectionPath()!=null) { - DefaultMutableTreeNode selectNode = (DefaultMutableTreeNode) tree.getSelectionPath().getLastPathComponent(); - textNodeSelect.setContentType("text/html"); - collapseNode(selectNode); -// refeshNodeSelected(); - } - } - }; - - /** - * Up node - */ - private AbstractAction actUpNode= new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue( Action.NAME, "Monter le node" ); - putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/upnodemini.png")) ); - putValue( Action.SHORT_DESCRIPTION, "Monter le node" ); - } - - @Override public void actionPerformed( ActionEvent e ) { - if(tree.getSelectionPath()!=null) { - DefaultMutableTreeNode selectNode = (DefaultMutableTreeNode) tree.getSelectionPath().getLastPathComponent(); - - int a = JOptionPane.showConfirmDialog(null,"Voulez-vous monter le node " + selectNode.toString() + "?", "Sélectionner un choix", JOptionPane.YES_NO_OPTION); - - if(a == JOptionPane.YES_NO_OPTION) { - node nod = (node) selectNode.getUserObject(); - if(!nod.chemin().contains("setting")) { - nod.getParent().upNodeEnfant(nod); - constructionTree(); - }else { - JOptionPane.showMessageDialog(null,"Vous ne devez pas déplacer ce node !", "Oh non!!!", JOptionPane.INFORMATION_MESSAGE); - } - } - } - } - }; - - /** - * - */ - private AbstractAction actDownNode= new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue( Action.NAME, "Descendre le node" ); - putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/downnodemini.png")) ); - putValue( Action.SHORT_DESCRIPTION, "Descendre le node" ); - } - - @Override public void actionPerformed( ActionEvent e ) { - if(tree.getSelectionPath()!=null) { - DefaultMutableTreeNode selectNode = (DefaultMutableTreeNode) tree.getSelectionPath().getLastPathComponent(); - - int a = JOptionPane.showConfirmDialog(null,"Voulez-vous descendre le node " + selectNode.toString() + "?", "Sélectionner un choix", JOptionPane.YES_NO_OPTION); - - if(a == JOptionPane.YES_NO_OPTION) { - node nod = (node) selectNode.getUserObject(); - if(!nod.chemin().contains("setting")) { - nod.getParent().downNodeEnfant(nod); - constructionTree(); - }else { - JOptionPane.showMessageDialog(null,"Vous ne devez pas déplacer ce node !", "Oh non!!!", JOptionPane.INFORMATION_MESSAGE); - } - } - } - } - }; - - - - - - /** - * Gènère un nouveau fichier d'analyse à partir d'un fichier ODF - */ - private AbstractAction actNewFichierAnalyse = new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue(Action.LARGE_ICON_KEY, new ImageIcon(evaluate.class.getResource("/resources/fichierODF.png"))); - putValue( Action.NAME, "Génère un nouveau fichier d'analyse" ); - putValue( Action.SMALL_ICON, new ImageIcon(evaluate.class.getResource("/resources/fichierODFmini.png")) ); - putValue( Action.MNEMONIC_KEY, KeyEvent.VK_N ); - putValue( Action.SHORT_DESCRIPTION, "Générer un nouveau fichier d'analyse (CTRL+N)" ); - putValue( Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_N, InputEvent.CTRL_DOWN_MASK) ); - } - - @Override - public void actionPerformed( ActionEvent e ) { - JFileChooser chooser = new JFileChooser(); - chooser.setDialogTitle("Choisir un fichier ODF"); - - chooser.setCurrentDirectory(new java.io.File(commandes.path)); - chooser.setFileSelectionMode(JFileChooser.FILES_ONLY); - FileNameExtensionFilter filter = new FileNameExtensionFilter("Format ODF", "odt"); - chooser.setFileFilter(filter); - chooser.setAcceptAllFileFilterUsed(true); - - if (chooser.showOpenDialog(null) == JFileChooser.APPROVE_OPTION) { - System.out.println("getCurrentDirectory(): " + chooser.getCurrentDirectory()); - System.out.println("getSelectedFile() : " + chooser.getSelectedFile().getAbsolutePath()); - - commandes.path = chooser.getCurrentDirectory().getAbsolutePath(); - commandes.PathFilenameAnalysis = chooser.getCurrentDirectory().getAbsolutePath(); - String cheminVersFichier = chooser.getSelectedFile().getAbsolutePath(); - commandes.nameSujet = chooser.getSelectedFile().getName(); - - Run b = null; - try { - b = new Run(cheminVersFichier); - commandes.sujet = Run.XMLContent(b.getLectDossiers().getEC().getListeContentWriter().get(0)); - - commandes.sujet = meptl.LectureFichierEtudiantSousFormeDeNode(commandes.sujet,b,0); - commandes.sujet.getAttributs().put("analysis_filename","sujet.xml"); - - commandes.sujet = ecritureSujet.nodePourEcritureSujet(commandes.sujet,b,0); - - commandes.sujet.supprimeTousLesNodesEnfantWithThisName("text:change-start"); - commandes.sujet.supprimeTousLesNodesEnfantWithThisName("text:change-end"); - commandes.sujet.supprimeTousLesNodesEnfantWithThisName("text:tracked-changes"); - commandes.sujet.supprimeTousLesNodesEnfantWithThisName("text:change"); - - commandes.sujetSauvegarde = commandes.sujet.clone(); - - new verificationFichierAnalyse(); - - - if(commandes.fichierAnalyseValide) { - constructionTree(); - textNodeSelect.afficheChargementFichierAnalyse(); - }else { - textNodeSelect.setText("

    Le fichier n'est pas valise

    "); - } - - } catch (ParserConfigurationException | SAXException | IOException | CloneNotSupportedException e1) { - e1.printStackTrace(); - } - - } else { - textNodeSelect.refreshAffichage(null); - } - - - commandes.ecritCode = true; - } - }; - - - - - - - /** - * - */ - private AbstractAction actEvaluer = new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue( Action.NAME, "Evaluer" ); - putValue( Action.SMALL_ICON, new ImageIcon( getClass().getResource("/evaluate.png") ) ); - putValue( Action.MNEMONIC_KEY, KeyEvent.VK_E ); - putValue( Action.SHORT_DESCRIPTION, "Evaluer un node (CTRL+E)" ); - putValue( Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_E, KeyEvent.CTRL_DOWN_MASK) ); - } - - @Override public void actionPerformed( ActionEvent e ) { - new evaluate(); - dispose(); - } - }; - - - /** * Construction du Tree avec le node sujet. */ - public void constructionTree() { + public static void constructionTree() { Run.parentAndLevel(commandes.sujet, commandes.sujet, 0); @@ -2698,7 +935,7 @@ public class create extends JFrame { * @param parent * @return */ - private DefaultMutableTreeNode addNodeMutable(node nod, DefaultMutableTreeNode parent) { + private static DefaultMutableTreeNode addNodeMutable(node nod, DefaultMutableTreeNode parent) { if(nod!=null) { DefaultMutableTreeNode node1 = null; for(int i = 0 ; i < nod.getNodes().size(); i++) { @@ -2713,27 +950,34 @@ public class create extends JFrame { } - /** - * La balise de style pour le code HTML - * @return - */ - private static String balisestyles() { - return ""; + public static JTree getTree() { + return tree; } - private void expandAll() { + + + public static DefaultMutableTreeNode getSelectNode() { + return selectNode; + } + + + + public static afficheText getTextNodeSelect() { + return textNodeSelect; + } + + + + public static JToggleButton getTglbtnTousLesNodes() { + return tglbtnTousLesNodes; + } + + public static JButton getButtonEvaluate() { + return buttonEvaluate; + } + + public static void expandAll() { Enumeration topLevelNodes = ((TreeNode) tree.getModel().getRoot()).children(); while(topLevelNodes.hasMoreElements()) { DefaultMutableTreeNode N = (DefaultMutableTreeNode) topLevelNodes.nextElement(); @@ -2742,7 +986,7 @@ public class create extends JFrame { } } - private void collapseAll() { + public static void collapseAll() { Enumeration topLevelNodes = ((TreeNode) tree.getModel().getRoot()).children(); while(topLevelNodes.hasMoreElements()) { DefaultMutableTreeNode N = (DefaultMutableTreeNode) topLevelNodes.nextElement(); @@ -2751,7 +995,7 @@ public class create extends JFrame { } } - private void expandNode(DefaultMutableTreeNode N) { + public static void expandNode(DefaultMutableTreeNode N) { Enumeration topLevelNodes = ((TreeNode) N).children(); while(topLevelNodes.hasMoreElements()) { DefaultMutableTreeNode N1 = (DefaultMutableTreeNode) topLevelNodes.nextElement(); @@ -2760,7 +1004,7 @@ public class create extends JFrame { } } - private void collapseNode(DefaultMutableTreeNode N) { + public static void collapseNode(DefaultMutableTreeNode N) { Enumeration topLevelNodes = ((TreeNode) N).children(); while(topLevelNodes.hasMoreElements()) { DefaultMutableTreeNode N1 = (DefaultMutableTreeNode) topLevelNodes.nextElement(); diff --git a/src/fenetres/create_act/actAPropos.java b/src/fenetres/create_act/actAPropos.java new file mode 100644 index 0000000..d2bfa55 --- /dev/null +++ b/src/fenetres/create_act/actAPropos.java @@ -0,0 +1,33 @@ +package fenetres.create_act; + +import java.awt.event.ActionEvent; +import java.awt.event.InputEvent; +import java.awt.event.KeyEvent; + +import javax.swing.AbstractAction; +import javax.swing.Action; +import javax.swing.ImageIcon; +import javax.swing.KeyStroke; + +import fenetres.about; +import fenetres.create; + +public class actAPropos extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + { + putValue( Action.NAME, "Informations" ); + putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/aproposmini.png")) ); + putValue( Action.MNEMONIC_KEY, KeyEvent.VK_M ); + putValue( Action.SHORT_DESCRIPTION, "Informations (CTRL+I)" ); + putValue( Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_I, InputEvent.CTRL_DOWN_MASK) ); + } + @Override + public void actionPerformed(ActionEvent e) { + about.getInstance(); + } + +} diff --git a/src/fenetres/create_act/actAbout.java b/src/fenetres/create_act/actAbout.java new file mode 100644 index 0000000..9825c1e --- /dev/null +++ b/src/fenetres/create_act/actAbout.java @@ -0,0 +1,39 @@ +package fenetres.create_act; + +import java.awt.event.ActionEvent; +import java.awt.event.InputEvent; +import java.awt.event.KeyEvent; + +import javax.swing.AbstractAction; +import javax.swing.Action; +import javax.swing.ImageIcon; +import javax.swing.KeyStroke; + +import fenetres.about; +import fenetres.create; + +public class actAbout extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + + + { + putValue( Action.NAME, "Informations" ); + putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/aproposmini.png")) ); + putValue( Action.MNEMONIC_KEY, KeyEvent.VK_I ); + putValue( Action.SHORT_DESCRIPTION, "Informations (CTRL+I)" ); + putValue( Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_I, InputEvent.CTRL_DOWN_MASK) ); + } + + + @Override + public void actionPerformed(ActionEvent e) { + about.getInstance(); + } + + + +} diff --git a/src/fenetres/create_act/actAddMenuFalse.java b/src/fenetres/create_act/actAddMenuFalse.java new file mode 100644 index 0000000..57ab5c5 --- /dev/null +++ b/src/fenetres/create_act/actAddMenuFalse.java @@ -0,0 +1,29 @@ +package fenetres.create_act; + +import java.awt.event.ActionEvent; + +import javax.swing.AbstractAction; +import javax.swing.Action; + +import cXML.node; + +public class actAddMenuFalse extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + + { + putValue( Action.NAME, "false" ); + putValue( Action.SHORT_DESCRIPTION, "false" ); + } + + @Override + public void actionPerformed(ActionEvent e) { + node nod = (node) fenetres.create.getSelectNode().getUserObject(); + nod.addMenu(false); + fenetres.create.getTextNodeSelect().refreshAffichage(nod); + } + +} diff --git a/src/fenetres/create_act/actAddMenuTrue.java b/src/fenetres/create_act/actAddMenuTrue.java new file mode 100644 index 0000000..4bb96d1 --- /dev/null +++ b/src/fenetres/create_act/actAddMenuTrue.java @@ -0,0 +1,29 @@ +package fenetres.create_act; + +import java.awt.event.ActionEvent; + +import javax.swing.AbstractAction; +import javax.swing.Action; + +import cXML.node; + +public class actAddMenuTrue extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + + { + putValue( Action.NAME, "true" ); + putValue( Action.SHORT_DESCRIPTION, "true" ); + } + + @Override + public void actionPerformed(ActionEvent e) { + node nod = (node) fenetres.create.getSelectNode().getUserObject(); + nod.addMenu(true); + fenetres.create.getTextNodeSelect().refreshAffichage(nod); + } + +} diff --git a/src/fenetres/create_act/actAfficheInformationFichierAnalyse.java b/src/fenetres/create_act/actAfficheInformationFichierAnalyse.java new file mode 100644 index 0000000..324f69e --- /dev/null +++ b/src/fenetres/create_act/actAfficheInformationFichierAnalyse.java @@ -0,0 +1,23 @@ +package fenetres.create_act; + +import java.awt.event.ActionEvent; + +import javax.swing.AbstractAction; +import javax.swing.Action; + +public class actAfficheInformationFichierAnalyse extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + { + putValue( Action.NAME, "Affiche informations" ); + putValue( Action.SHORT_DESCRIPTION, "Affiche les informations du fichier d'analyse." ); + } + @Override + public void actionPerformed(ActionEvent e) { + fenetres.create.getTextNodeSelect().afficheChargementFichierAnalyse(); + } + +} diff --git a/src/fenetres/create_act/actAllContent.java b/src/fenetres/create_act/actAllContent.java new file mode 100644 index 0000000..e9da73e --- /dev/null +++ b/src/fenetres/create_act/actAllContent.java @@ -0,0 +1,31 @@ +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.allContent; +import fenetres.create; + +public class actAllContent extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + { + putValue( Action.NAME, "Evaluer le contenu du node" ); + putValue( Action.SHORT_DESCRIPTION, "Evaluer le contenu du node" ); + putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/allcontentmini.png")) ); + } + + @Override + public void actionPerformed(ActionEvent e) { + node nod = (node) fenetres.create.getSelectNode().getUserObject(); + new allContent(nod,fenetres.create.getTextNodeSelect()); + } + +} diff --git a/src/fenetres/create_act/actAttribut.java b/src/fenetres/create_act/actAttribut.java new file mode 100644 index 0000000..3e6cc8d --- /dev/null +++ b/src/fenetres/create_act/actAttribut.java @@ -0,0 +1,55 @@ +package fenetres.create_act; + +import java.awt.event.ActionEvent; +import java.util.Enumeration; + +import javax.swing.AbstractAction; +import javax.swing.Action; +import javax.swing.ImageIcon; +import javax.swing.JOptionPane; + +import cXML.node; +import fenetres.attributs; +import fenetres.create; +import list.listeAttributsAnalyseWriter; + +public class actAttribut extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + { + putValue( Action.NAME, "Evaluer les attributs Writer" ); + putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/attributmini.png")) ); + putValue( Action.LARGE_ICON_KEY, new ImageIcon(create.class.getResource("/resources/attributmini.png")) ); + putValue( Action.SHORT_DESCRIPTION, "Evaluer les attributs du traitement de texte Writer" ); + + } + @Override + public void actionPerformed(ActionEvent e) { + node nod = (node) fenetres.create.getSelectNode().getUserObject(); + + int nbrAttribut = nod.getAttributs().size(); + + Enumeration k = nod.getAttributs().keys(); + while(k.hasMoreElements()) { + + String key = k.nextElement(); + if(listeAttributsAnalyseWriter.isAttributAnalyseWriter(key)) { + nbrAttribut--; + } + } + + if(nbrAttribut>0) { + if(nod.getLevel()>1 && !nod.chemin().contains("setting")) { + new attributs(nod,fenetres.create.getTextNodeSelect()); + }else { + JOptionPane.showMessageDialog(null, "Vous ne pouvez pas modifier les attributs de ce node."); + } + }else { + JOptionPane.showMessageDialog(null, "Ce node ne contient pas d'attribut Writer."); + } + } + +} diff --git a/src/fenetres/create_act/actCoefficient.java b/src/fenetres/create_act/actCoefficient.java new file mode 100644 index 0000000..a3d210d --- /dev/null +++ b/src/fenetres/create_act/actCoefficient.java @@ -0,0 +1,57 @@ +package fenetres.create_act; + +import java.awt.event.ActionEvent; + +import javax.swing.AbstractAction; +import javax.swing.Action; +import javax.swing.ImageIcon; +import javax.swing.JOptionPane; + +import cXML.node; +import fenetres.baliseStyle; +import fenetres.create; + +public class actCoefficient extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + { + putValue( Action.NAME, "Coefficient (poids)" ); + putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/poidsmini.png")) ); + putValue( Action.SHORT_DESCRIPTION, "Coefficient (poids)" ); + } + @Override + public void actionPerformed(ActionEvent e) { + node nod = (node) fenetres.create.getSelectNode().getUserObject(); + double poids = 1.00; + if(nod.getAttributs().get("poids")!=null) { + try { + poids = Double.valueOf(nod.getAttributs().get("poids")); + } catch (Exception e2) { + System.out.println(e2.toString()); + } + } + + String a = JOptionPane.showInputDialog(null,"Quel est le coefficient de cette partie de l'évaluation?",poids); + + if(!a.isEmpty()) { + try { + poids = Double.valueOf(a); + if(poids<=0) { + nod.poids(Double.valueOf(1)); + fenetres.create.getTextNodeSelect().setText(baliseStyle.balise()); + fenetres.create.getTextNodeSelect().setText("

    Erreur la valeur doit être un nombre entier POSITIF supérieur à zéro.
    Cependant,la valeur a été modifiée.
    poids=1.

    "); + }else { + nod.poids(Double.valueOf(poids)); + fenetres.create.getTextNodeSelect().refreshAffichage(nod); + } + } catch (Exception e2) { + fenetres.create.getTextNodeSelect().setText(baliseStyle.balise()); + fenetres.create.getTextNodeSelect().setText("

    Erreur la valeur doit être un nombre entier.
    La valeur n'a pas été modifiée.

    "); + } + } + } + +} diff --git a/src/fenetres/create_act/actCollapseAll.java b/src/fenetres/create_act/actCollapseAll.java new file mode 100644 index 0000000..d104871 --- /dev/null +++ b/src/fenetres/create_act/actCollapseAll.java @@ -0,0 +1,29 @@ +package fenetres.create_act; + +import java.awt.event.ActionEvent; + +import javax.swing.AbstractAction; +import javax.swing.Action; +import javax.swing.ImageIcon; + +import fenetres.create; + +public class actCollapseAll extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + { + putValue( Action.NAME, "Tout réduire" ); + putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/collapseallmini.png")) ); + putValue( Action.SHORT_DESCRIPTION, "Tout réduire" ); + } + + @Override + public void actionPerformed(ActionEvent e) { + fenetres.create.collapseAll(); + + } + +} diff --git a/src/fenetres/create_act/actCollapseNode.java b/src/fenetres/create_act/actCollapseNode.java new file mode 100644 index 0000000..41b7c59 --- /dev/null +++ b/src/fenetres/create_act/actCollapseNode.java @@ -0,0 +1,27 @@ +package fenetres.create_act; + +import java.awt.event.ActionEvent; + +import javax.swing.AbstractAction; +import javax.swing.Action; +import javax.swing.ImageIcon; + +import fenetres.create; + +public class actCollapseNode extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + { + putValue( Action.NAME, "Réduire ce node" ); + putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/collapsenodemini.png")) ); + putValue( Action.SHORT_DESCRIPTION, "Réduire ce node" ); + } + @Override + public void actionPerformed(ActionEvent e) { + fenetres.create.collapseNode(fenetres.create.getSelectNode()); + } + +} diff --git a/src/fenetres/create_act/actDeleteNode.java b/src/fenetres/create_act/actDeleteNode.java new file mode 100644 index 0000000..7520585 --- /dev/null +++ b/src/fenetres/create_act/actDeleteNode.java @@ -0,0 +1,49 @@ +package fenetres.create_act; + +import java.awt.event.ActionEvent; + +import javax.swing.AbstractAction; +import javax.swing.Action; +import javax.swing.ImageIcon; +import javax.swing.JOptionPane; + +import cXML.node; +import fenetres.create; + +public class actDeleteNode extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + { + putValue( Action.NAME, "Supprime" ); + putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/supprimemini.png")) ); + putValue( Action.SHORT_DESCRIPTION, "Supprime" ); + } + @Override + public void actionPerformed(ActionEvent e) { + + + if(fenetres.create.getTree().getSelectionPath()!=null) { + int a = JOptionPane.showConfirmDialog(null,"Voulez-vous supprimer le node " + fenetres.create.getSelectNode().toString() + "?", "Sélectionner un choix", JOptionPane.YES_NO_OPTION); + + if(a == JOptionPane.YES_NO_OPTION) { + node nod = (node) fenetres.create.getSelectNode().getUserObject(); + if(!(nod.getNomElt().equals("setting")||nod.getNomElt().equals("csv")||nod.getNomElt().equals("import_moodle")||nod.getNomElt().equals("zip") + ||nod.getNomElt().equals("plagiarism")||nod.getNomElt().equals("text:similarity")||nod.getNomElt().equals("color") ||nod.getNomElt().equals("translation") )) { + + nod.getParent().supprimeNodeEnfant(nod); + fenetres.create.constructionTree(); + + }else { + JOptionPane.showMessageDialog(null,"Vous ne devez pas supprimer ce node !", "Oh non!!!", JOptionPane.INFORMATION_MESSAGE); + + } + + } + } + + } + +} diff --git a/src/fenetres/create_act/actDocumentation.java b/src/fenetres/create_act/actDocumentation.java new file mode 100644 index 0000000..05036c0 --- /dev/null +++ b/src/fenetres/create_act/actDocumentation.java @@ -0,0 +1,40 @@ +package fenetres.create_act; + +import java.awt.Desktop; +import java.awt.event.ActionEvent; +import java.awt.event.InputEvent; +import java.awt.event.KeyEvent; +import java.io.File; +import java.io.IOException; + +import javax.swing.AbstractAction; +import javax.swing.Action; +import javax.swing.ImageIcon; +import javax.swing.KeyStroke; + +import fenetres.create; + +public class actDocumentation extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + { + putValue( Action.NAME, "Documentation" ); + putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/documentationmini.png")) ); + putValue( Action.MNEMONIC_KEY, KeyEvent.VK_D ); + putValue( Action.SHORT_DESCRIPTION, "Documentation (CTRL+D)" ); + putValue( Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_D, InputEvent.CTRL_DOWN_MASK) ); + } + @Override + public void actionPerformed(ActionEvent e) { + Desktop d = Desktop.getDesktop(); + try { + d.open(new File(create.class.getResource("/resources/documentation.pdf").getPath())); + } catch (IOException e1) { + e1.printStackTrace(); + } + } + +} diff --git a/src/fenetres/create_act/actDownNode.java b/src/fenetres/create_act/actDownNode.java new file mode 100644 index 0000000..49ad194 --- /dev/null +++ b/src/fenetres/create_act/actDownNode.java @@ -0,0 +1,41 @@ +package fenetres.create_act; + +import java.awt.event.ActionEvent; + +import javax.swing.AbstractAction; +import javax.swing.Action; +import javax.swing.ImageIcon; +import javax.swing.JOptionPane; + +import cXML.node; +import fenetres.create; + +public class actDownNode extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + { + putValue( Action.NAME, "Descendre le node" ); + putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/downnodemini.png")) ); + putValue( Action.SHORT_DESCRIPTION, "Descendre le node" ); + } + @Override + public void actionPerformed(ActionEvent e) { + if(fenetres.create.getTree().getSelectionPath()!=null) { + int a = JOptionPane.showConfirmDialog(null,"Voulez-vous descendre le node " + fenetres.create.getSelectNode().toString() + "?", "Sélectionner un choix", JOptionPane.YES_NO_OPTION); + + if(a == JOptionPane.YES_NO_OPTION) { + node nod = (node) fenetres.create.getSelectNode().getUserObject(); + if(!nod.chemin().contains("setting")) { + nod.getParent().downNodeEnfant(nod); + fenetres.create.constructionTree(); + }else { + JOptionPane.showMessageDialog(null,"Vous ne devez pas déplacer ce node !", "Oh non!!!", JOptionPane.INFORMATION_MESSAGE); + } + } + } + } + +} diff --git a/src/fenetres/create_act/actEvalEnteteActive.java b/src/fenetres/create_act/actEvalEnteteActive.java new file mode 100644 index 0000000..2c6dcde --- /dev/null +++ b/src/fenetres/create_act/actEvalEnteteActive.java @@ -0,0 +1,27 @@ +package fenetres.create_act; + +import java.awt.event.ActionEvent; + +import javax.swing.AbstractAction; +import javax.swing.Action; + +import cXML.node; + +public class actEvalEnteteActive extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + { + putValue( Action.NAME, "Supprime evaluation entête pas active" ); + putValue( Action.SHORT_DESCRIPTION, "Supprime l'évaluation de l'absence d'attribut du node." ); + } + @Override + public void actionPerformed(ActionEvent e) { + node nod = (node) fenetres.create.getSelectNode().getUserObject(); + nod.supprimeAttribut("evalEntetePasActive"); + fenetres.create.getTextNodeSelect().refreshAffichage(nod); + } + +} diff --git a/src/fenetres/create_act/actEvalEntetePasActive.java b/src/fenetres/create_act/actEvalEntetePasActive.java new file mode 100644 index 0000000..48712ff --- /dev/null +++ b/src/fenetres/create_act/actEvalEntetePasActive.java @@ -0,0 +1,50 @@ +package fenetres.create_act; + +import java.awt.event.ActionEvent; + +import javax.swing.AbstractAction; +import javax.swing.Action; +import javax.swing.JOptionPane; + +import cXML.node; +import fenetres.baliseStyle; + +public class actEvalEntetePasActive extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + { + putValue( Action.NAME, "Oui, combien de point?" ); + putValue( Action.SHORT_DESCRIPTION, "Evaluer l'absence d'attribut du node" ); + } + @Override + public void actionPerformed(ActionEvent e) { + node nod = (node) fenetres.create.getSelectNode().getUserObject(); + int point = 0; + if(nod.getAttributs().get("evalEntetePasActive")!=null) { + point = Integer.valueOf(nod.getAttributs().get("evalEntetePasActive")); + } + + String a = JOptionPane.showInputDialog(null,"Quel est le nombre de point?",point); + + if(!a.isEmpty()) { + try { + point = Integer.valueOf(a); + if(point<=0) { + nod.getAttributs().put("evalEntetePasActive", String.valueOf(0)); + fenetres.create.getTextNodeSelect().setText(baliseStyle.balise()); + fenetres.create.getTextNodeSelect().setText("

    Erreur la valeur doit être un nombre entier POSITIF supérieur à zéro.
    Cependant,la valeur a été modifiée.
    evalEntetePasActive=0.

    "); + }else { + nod.getAttributs().put("evalEntetePasActive", String.valueOf(point)); + } + } catch (Exception e2) { + fenetres.create.getTextNodeSelect().setText(baliseStyle.balise()); + fenetres.create.getTextNodeSelect().setText("

    Erreur la valeur doit être un nombre entier.
    L'attribut n'a pas été modifiée.

    "); + } + } + fenetres.create.getTextNodeSelect().refreshAffichage(nod); + } + +} diff --git a/src/fenetres/create_act/actEvalInitialCreator.java b/src/fenetres/create_act/actEvalInitialCreator.java new file mode 100644 index 0000000..980afa3 --- /dev/null +++ b/src/fenetres/create_act/actEvalInitialCreator.java @@ -0,0 +1,53 @@ +package fenetres.create_act; + +import java.awt.event.ActionEvent; + +import javax.swing.AbstractAction; +import javax.swing.Action; +import javax.swing.ImageIcon; +import javax.swing.JOptionPane; + +import cXML.node; +import fenetres.baliseStyle; +import fenetres.create; + +public class actEvalInitialCreator extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + { + putValue( Action.NAME, "Evaluer la présence du premier auteur (créateur)" ); + putValue( Action.SHORT_DESCRIPTION, "Evaluer la présence du premier auteur (créateur)" ); + putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/auteurcreateurmini.png")) ); + } + @Override + public void actionPerformed(ActionEvent e) { + node nod = (node) fenetres.create.getSelectNode().getUserObject(); + int point = 0; + if(nod.getAttributs().get("evalNameInitialCreator")!=null) { + point = Integer.valueOf(nod.getAttributs().get("evalNameInitialCreator")); + } + + String a = JOptionPane.showInputDialog(null,"Quel est le nombre de point?",point); + + if(!a.isEmpty()) { + try { + point = Integer.valueOf(a); + if(point<=0) { + nod.getAttributs().put("evalNameInitialCreator", String.valueOf(0)); + fenetres.create.getTextNodeSelect().setText(baliseStyle.balise()); + fenetres.create.getTextNodeSelect().setText("

    Erreur la valeur doit être un nombre entier POSITIF supérieur à zéro.
    Cependant,la valeur a été modifiée.
    evalNameInitialCreator=0.

    "); + }else { + nod.getAttributs().put("evalNameInitialCreator", String.valueOf(point)); + } + } catch (Exception e2) { + fenetres.create.getTextNodeSelect().setText(baliseStyle.balise()); + fenetres.create.getTextNodeSelect().setText("

    Erreur la valeur doit être un nombre entier.
    L'attribut n'a pas été modifiée.

    "); + } + } + fenetres.create.getTextNodeSelect().refreshAffichage(nod); + } + +} diff --git a/src/fenetres/create_act/actEvalNameNodeNon.java b/src/fenetres/create_act/actEvalNameNodeNon.java new file mode 100644 index 0000000..69c05da --- /dev/null +++ b/src/fenetres/create_act/actEvalNameNodeNon.java @@ -0,0 +1,27 @@ +package fenetres.create_act; + +import java.awt.event.ActionEvent; + +import javax.swing.AbstractAction; +import javax.swing.Action; + +import cXML.node; + +public class actEvalNameNodeNon extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + { + putValue( Action.NAME, "Supprime l'évaluation de la présence du node" ); + putValue( Action.SHORT_DESCRIPTION, "Supprime l'évaluation de la présence du node" ); + } + @Override + public void actionPerformed(ActionEvent e) { + node nod = (node) fenetres.create.getSelectNode().getUserObject(); + nod.supprimeAttribut("evalNameNode"); + fenetres.create.getTextNodeSelect().refreshAffichage(nod); + } + +} diff --git a/src/fenetres/create_act/actEvalNameNodeOui.java b/src/fenetres/create_act/actEvalNameNodeOui.java new file mode 100644 index 0000000..db56047 --- /dev/null +++ b/src/fenetres/create_act/actEvalNameNodeOui.java @@ -0,0 +1,50 @@ +package fenetres.create_act; + +import java.awt.event.ActionEvent; + +import javax.swing.AbstractAction; +import javax.swing.Action; +import javax.swing.JOptionPane; + +import cXML.node; +import fenetres.baliseStyle; + +public class actEvalNameNodeOui extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + { + putValue( Action.NAME, "Oui, combien de point?" ); + putValue( Action.SHORT_DESCRIPTION, "Evaluer la présence de ce node" ); + } + @Override + public void actionPerformed(ActionEvent e) { + node nod = (node) fenetres.create.getSelectNode().getUserObject(); + int point = 0; + if(nod.getAttributs().get("evalNameNode")!=null) { + point = Integer.valueOf(nod.getAttributs().get("evalNameNode")); + } + + String a = JOptionPane.showInputDialog(null,"Quel est le nombre de point?",point); + + if(!a.isEmpty()) { + try { + point = Integer.valueOf(a); + if(point<=0) { + nod.getAttributs().put("evalNameNode", String.valueOf(0)); + fenetres.create.getTextNodeSelect().setText(baliseStyle.balise()); + fenetres.create.getTextNodeSelect().setText("

    Erreur la valeur doit être un nombre entier POSITIF supérieur à zéro.
    Cependant,la valeur a été modifiée.
    evalNameNode=0.

    "); + }else { + nod.getAttributs().put("evalNameNode", String.valueOf(point)); + } + } catch (Exception e2) { + fenetres.create.getTextNodeSelect().setText(baliseStyle.balise()); + fenetres.create.getTextNodeSelect().setText("

    Erreur la valeur doit être un nombre entier.
    L'attribut n'a pas été modifiée.

    "); + } + } + fenetres.create.getTextNodeSelect().refreshAffichage(nod); + } + +} diff --git a/src/fenetres/create_act/actEvalNamePageNon.java b/src/fenetres/create_act/actEvalNamePageNon.java new file mode 100644 index 0000000..70e50dd --- /dev/null +++ b/src/fenetres/create_act/actEvalNamePageNon.java @@ -0,0 +1,27 @@ +package fenetres.create_act; + +import java.awt.event.ActionEvent; + +import javax.swing.AbstractAction; +import javax.swing.Action; + +import cXML.node; + +public class actEvalNamePageNon extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + { + putValue( Action.NAME, "Supprime évaluer le nom de la page" ); + putValue( Action.SHORT_DESCRIPTION, "Supprime l'évaluation du nom de la page." ); + } + @Override + public void actionPerformed(ActionEvent e) { + node nod = (node) fenetres.create.getSelectNode().getUserObject(); + nod.supprimeAttribut("evalNamePage"); + fenetres.create.getTextNodeSelect().refreshAffichage(nod); + } + +} diff --git a/src/fenetres/create_act/actEvalNamePageOui.java b/src/fenetres/create_act/actEvalNamePageOui.java new file mode 100644 index 0000000..b1cb2fc --- /dev/null +++ b/src/fenetres/create_act/actEvalNamePageOui.java @@ -0,0 +1,50 @@ +package fenetres.create_act; + +import java.awt.event.ActionEvent; + +import javax.swing.AbstractAction; +import javax.swing.Action; +import javax.swing.JOptionPane; + +import cXML.node; +import fenetres.baliseStyle; + +public class actEvalNamePageOui extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + { + putValue( Action.NAME, "Oui, combien de point?" ); + putValue( Action.SHORT_DESCRIPTION, "Evaluer le nom de la page" ); + } + @Override + public void actionPerformed(ActionEvent e) { + node nod = (node) fenetres.create.getSelectNode().getUserObject(); + int point = 0; + if(nod.getAttributs().get("evalNamePage")!=null) { + point = Integer.valueOf(nod.getAttributs().get("evalNamePage")); + } + + String a = JOptionPane.showInputDialog(null,"Quel est le nombre de point?",point); + + if(!a.isEmpty()) { + try { + point = Integer.valueOf(a); + if(point<=0) { + nod.getAttributs().put("evalNamePage", String.valueOf(0)); + fenetres.create.getTextNodeSelect().setText(baliseStyle.balise()); + fenetres.create.getTextNodeSelect().setText("

    Erreur la valeur doit être un nombre entier POSITIF supérieur à zéro.
    Cependant,la valeur a été modifiée.
    evalNamePage=0.

    "); + }else { + nod.getAttributs().put("evalNamePage", String.valueOf(point)); + } + } catch (Exception e2) { + fenetres.create.getTextNodeSelect().setText(baliseStyle.balise()); + fenetres.create.getTextNodeSelect().setText("

    Erreur la valeur doit être un nombre entier.
    L'attribut n'a pas été modifiée.

    "); + } + } + fenetres.create.getTextNodeSelect().refreshAffichage(nod); + } + +} diff --git a/src/fenetres/create_act/actEvalNameSequenceNon.java b/src/fenetres/create_act/actEvalNameSequenceNon.java new file mode 100644 index 0000000..1d127c2 --- /dev/null +++ b/src/fenetres/create_act/actEvalNameSequenceNon.java @@ -0,0 +1,27 @@ +package fenetres.create_act; + +import java.awt.event.ActionEvent; + +import javax.swing.AbstractAction; +import javax.swing.Action; + +import cXML.node; + +public class actEvalNameSequenceNon extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + { + putValue( Action.NAME, "Supprime évaluer le nom de la séquence" ); + putValue( Action.SHORT_DESCRIPTION, "Supprime l'évaluation du nom de la séquence." ); + } + @Override + public void actionPerformed(ActionEvent e) { + node nod = (node) fenetres.create.getSelectNode().getUserObject(); + nod.supprimeAttribut("evalNameSequence"); + fenetres.create.getTextNodeSelect().refreshAffichage(nod); + } + +} diff --git a/src/fenetres/create_act/actEvalNameSequenceOui.java b/src/fenetres/create_act/actEvalNameSequenceOui.java new file mode 100644 index 0000000..bf24590 --- /dev/null +++ b/src/fenetres/create_act/actEvalNameSequenceOui.java @@ -0,0 +1,50 @@ +package fenetres.create_act; + +import java.awt.event.ActionEvent; + +import javax.swing.AbstractAction; +import javax.swing.Action; +import javax.swing.JOptionPane; + +import cXML.node; +import fenetres.baliseStyle; + +public class actEvalNameSequenceOui extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + { + putValue( Action.NAME, "Oui, combien de point?" ); + putValue( Action.SHORT_DESCRIPTION, "Evaluer le nom de la séquence" ); + } + @Override + public void actionPerformed(ActionEvent e) { + node nod = (node) fenetres.create.getSelectNode().getUserObject(); + int point = 0; + if(nod.getAttributs().get("evalNameSequence")!=null) { + point = Integer.valueOf(nod.getAttributs().get("evalNameSequence")); + } + + String a = JOptionPane.showInputDialog(null,"Quel est le nombre de point?",point); + + if(!a.isEmpty()) { + try { + point = Integer.valueOf(a); + if(point<=0) { + nod.getAttributs().put("evalNameSequence", String.valueOf(0)); + fenetres.create.getTextNodeSelect().setText(baliseStyle.balise()); + fenetres.create.getTextNodeSelect().setText("

    Erreur la valeur doit être un nombre entier POSITIF supérieur à zéro.
    Cependant,la valeur a été modifiée.
    evalNameSequence=0.

    "); + }else { + nod.getAttributs().put("evalNameSequence", String.valueOf(point)); + } + } catch (Exception e2) { + fenetres.create.getTextNodeSelect().setText(baliseStyle.balise()); + fenetres.create.getTextNodeSelect().setText("

    Erreur la valeur doit être un nombre entier.
    L'attribut n'a pas été modifiée.

    "); + } + } + fenetres.create.getTextNodeSelect().refreshAffichage(nod); + } + +} diff --git a/src/fenetres/create_act/actEvalPiedPageActive.java b/src/fenetres/create_act/actEvalPiedPageActive.java new file mode 100644 index 0000000..b783aa4 --- /dev/null +++ b/src/fenetres/create_act/actEvalPiedPageActive.java @@ -0,0 +1,27 @@ +package fenetres.create_act; + +import java.awt.event.ActionEvent; + +import javax.swing.AbstractAction; +import javax.swing.Action; + +import cXML.node; + +public class actEvalPiedPageActive extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + { + putValue( Action.NAME, "Supprime pied page pas active" ); + putValue( Action.SHORT_DESCRIPTION, "Supprime l'évaluation de l'absence d'attribut du node." ); + } + @Override + public void actionPerformed(ActionEvent e) { + node nod = (node) fenetres.create.getSelectNode().getUserObject(); + nod.supprimeAttribut("evalPiedPagePasActive"); + fenetres.create.getTextNodeSelect().refreshAffichage(nod); + } + +} diff --git a/src/fenetres/create_act/actEvalPiedPagePasActive.java b/src/fenetres/create_act/actEvalPiedPagePasActive.java new file mode 100644 index 0000000..b7ab37a --- /dev/null +++ b/src/fenetres/create_act/actEvalPiedPagePasActive.java @@ -0,0 +1,50 @@ +package fenetres.create_act; + +import java.awt.event.ActionEvent; + +import javax.swing.AbstractAction; +import javax.swing.Action; +import javax.swing.JOptionPane; + +import cXML.node; +import fenetres.baliseStyle; + +public class actEvalPiedPagePasActive extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + { + putValue( Action.NAME, "Oui, combien de point?" ); + putValue( Action.SHORT_DESCRIPTION, "Evaluer l'absence d'attribut du node" ); + } + @Override + public void actionPerformed(ActionEvent e) { + node nod = (node) fenetres.create.getSelectNode().getUserObject(); + int point = 0; + if(nod.getAttributs().get("evalPiedPagePasActive")!=null) { + point = Integer.valueOf(nod.getAttributs().get("evalPiedPagePasActive")); + } + + String a = JOptionPane.showInputDialog(null,"Quel est le nombre de point?",point); + + if(!a.isEmpty()) { + try { + point = Integer.valueOf(a); + if(point<=0) { + nod.getAttributs().put("evalPiedPagePasActive", String.valueOf(0)); + fenetres.create.getTextNodeSelect().setText(baliseStyle.balise()); + fenetres.create.getTextNodeSelect().setText("

    Erreur la valeur doit être un nombre entier POSITIF supérieur à zéro.
    Cependant,la valeur a été modifiée.
    evalPiedPagePasActive=0.

    "); + }else { + nod.getAttributs().put("evalPiedPagePasActive", String.valueOf(point)); + } + } catch (Exception e2) { + fenetres.create.getTextNodeSelect().setText(baliseStyle.balise()); + fenetres.create.getTextNodeSelect().setText("

    Erreur la valeur doit être un nombre entier.
    L'attribut n'a pas été modifiée.

    "); + } + } + fenetres.create.getTextNodeSelect().refreshAffichage(nod); + } + +} diff --git a/src/fenetres/create_act/actEvalueFalse.java b/src/fenetres/create_act/actEvalueFalse.java new file mode 100644 index 0000000..410d0c3 --- /dev/null +++ b/src/fenetres/create_act/actEvalueFalse.java @@ -0,0 +1,33 @@ +package fenetres.create_act; + +import java.awt.event.ActionEvent; +import java.awt.event.InputEvent; +import java.awt.event.KeyEvent; + +import javax.swing.AbstractAction; +import javax.swing.Action; +import javax.swing.ImageIcon; +import javax.swing.KeyStroke; + +import cXML.node; +import fenetres.create; + +public class actEvalueFalse extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + { + putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_E, InputEvent.ALT_DOWN_MASK | InputEvent.SHIFT_DOWN_MASK)); + putValue( Action.NAME, "Evaluer false" ); + putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/evaluerfalsemini.png")) ); + putValue( Action.SHORT_DESCRIPTION, "Ne pas évaluer ce node par l'application." ); + } + public void actionPerformed(ActionEvent e) { + node nod = (node) fenetres.create.getSelectNode().getUserObject(); + nod.evaluerFalse(); + fenetres.create.getTextNodeSelect().refreshAffichage(nod); + } + +} diff --git a/src/fenetres/create_act/actEvalueTrue.java b/src/fenetres/create_act/actEvalueTrue.java new file mode 100644 index 0000000..c49a241 --- /dev/null +++ b/src/fenetres/create_act/actEvalueTrue.java @@ -0,0 +1,37 @@ +package fenetres.create_act; + +import java.awt.event.ActionEvent; +import java.awt.event.InputEvent; +import java.awt.event.KeyEvent; + +import javax.swing.AbstractAction; +import javax.swing.Action; +import javax.swing.ImageIcon; +import javax.swing.KeyStroke; + +import cXML.node; +import fenetres.create; + +public class actEvalueTrue extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + { + putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_E, InputEvent.ALT_DOWN_MASK)); + putValue( Action.NAME, "Evaluer true" ); + putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/evaluertruemini.png")) ); + putValue( Action.SHORT_DESCRIPTION, "Evaluer ce node par l'application" ); + } + @Override + public void actionPerformed(ActionEvent e) { + node nod = (node) fenetres.create.getSelectNode().getUserObject(); + nod.evaluerTrue(); + if(nod.getLevel()==1) { + nod.addMenu(true); + } + fenetres.create.getTextNodeSelect().refreshAffichage(nod); + } + +} diff --git a/src/fenetres/create_act/actEvaluer.java b/src/fenetres/create_act/actEvaluer.java new file mode 100644 index 0000000..6063a49 --- /dev/null +++ b/src/fenetres/create_act/actEvaluer.java @@ -0,0 +1,33 @@ +package fenetres.create_act; + +import java.awt.event.ActionEvent; +import java.awt.event.KeyEvent; + +import javax.swing.AbstractAction; +import javax.swing.Action; +import javax.swing.ImageIcon; +import javax.swing.KeyStroke; + +import fenetres.create; +import fenetres.evaluate; + +public class actEvaluer extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + { + putValue( Action.NAME, "Evaluer" ); + putValue( Action.SMALL_ICON, new ImageIcon( getClass().getResource("/evaluate.png") ) ); + putValue( Action.MNEMONIC_KEY, KeyEvent.VK_E ); + putValue( Action.SHORT_DESCRIPTION, "Evaluer un node (CTRL+E)" ); + putValue( Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_E, KeyEvent.CTRL_DOWN_MASK) ); + } + @Override + public void actionPerformed(ActionEvent e) { + new evaluate(); + create.getInstance().dispose(); + } + +} diff --git a/src/fenetres/create_act/actEvaluerStyleFalse.java b/src/fenetres/create_act/actEvaluerStyleFalse.java new file mode 100644 index 0000000..77d4291 --- /dev/null +++ b/src/fenetres/create_act/actEvaluerStyleFalse.java @@ -0,0 +1,43 @@ +package fenetres.create_act; + +import java.awt.event.ActionEvent; + +import javax.swing.AbstractAction; +import javax.swing.Action; + +import MEPTL.commandes; +import cXML.node; +import list.listeNodeFormatageDirectDeWriter; + +public class actEvaluerStyleFalse extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + { + putValue( Action.NAME, "N'évaluer pas le style." ); + putValue( Action.SHORT_DESCRIPTION, "N'évaluer pas le style:name de ce node dans le fichier de l'étudiant" ); + } + @Override + public void actionPerformed(ActionEvent e) { + node nod = (node) fenetres.create.getSelectNode().getUserObject(); + nod.getAttributs().put("analyseStyle", "false"); + + //*************************************************************************************************************** + //** Place l'attribut EvaluerATraversAnalyseStyle=false au style qui doit être évaluer à travers d'analyseStyle ** + //** S'il y a des attributs évaluer avec ‼ alors change par ‽ ** + //*************************************************************************************************************** + node nodStyle = commandes.sujet.retourneFirstNodeByNameAndAttributValueExactStrict("style:style", "style:name", nod.getAttributs().get("text:style-name")); + if(nodStyle!=null) { + nodStyle.getAttributs().put("EvaluerATraversAnalyseStyle", "false"); + nodStyle.evaluerAllChildFalse(); + if(!listeNodeFormatageDirectDeWriter.isFormatageDirect(nodStyle)) { + nodStyle.changeLesCodesEvaluateursVersCodeEvaluateurDirect(); + } + } + + fenetres.create.getTextNodeSelect().refreshAffichage(nod); + } + +} diff --git a/src/fenetres/create_act/actEvaluerStyleTrue.java b/src/fenetres/create_act/actEvaluerStyleTrue.java new file mode 100644 index 0000000..da6acaa --- /dev/null +++ b/src/fenetres/create_act/actEvaluerStyleTrue.java @@ -0,0 +1,40 @@ +package fenetres.create_act; + +import java.awt.event.ActionEvent; + +import javax.swing.AbstractAction; +import javax.swing.Action; + +import MEPTL.commandes; +import cXML.node; + +public class actEvaluerStyleTrue extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + { + putValue( Action.NAME, "Evaluer le style." ); + putValue( Action.SHORT_DESCRIPTION, "Evaluer le style:name de ce node dans le fichier de l'étudiant" ); + } + @Override + public void actionPerformed(ActionEvent e) { + node nod = (node) fenetres.create.getSelectNode().getUserObject(); + nod.getAttributs().put("analyseStyle", "true"); + + //*************************************************************************************************************** + //** Place l'attribut EvaluerATraversAnalyseStyle=true au style qui doit être évaluer à travers d'analyseStyle ** + //** S'il y a des attributs évaluer avec ‽ alors change par ‼ ** + //*************************************************************************************************************** + node nodStyle = commandes.sujet.retourneFirstNodeByNameAndAttributValueExactStrict("style:style", "style:name", nod.getAttributs().get("text:style-name")); + if(nodStyle!=null) { + nodStyle.getAttributs().put("EvaluerATraversAnalyseStyle", "true"); + nodStyle.evaluerTrue(); + nodStyle.changeLesCodesEvaluateursVersCodeATraversAnalyseStyle(); + } + + fenetres.create.getTextNodeSelect().refreshAffichage(nod); + } + +} diff --git a/src/fenetres/create_act/actEvaluerTousEnfantsFalse.java b/src/fenetres/create_act/actEvaluerTousEnfantsFalse.java new file mode 100644 index 0000000..b82ab64 --- /dev/null +++ b/src/fenetres/create_act/actEvaluerTousEnfantsFalse.java @@ -0,0 +1,33 @@ +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 actEvaluerTousEnfantsFalse extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + { + putValue( Action.NAME, "Evaluer toute la branche" ); + putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/evaluertouslesenfantsmini.png")) ); + putValue( Action.LARGE_ICON_KEY, new ImageIcon(create.class.getResource("/resources/evaluertouslesenfants.png")) ); + putValue( Action.SHORT_DESCRIPTION, "Evaluer toute la branche de la racine à la feuille." ); + } + @Override + public void actionPerformed(ActionEvent e) { + node nod = (node) fenetres.create.getSelectNode().getUserObject(); + if(!nod.getNomElt().equals("fichier")) { + nod.evaluerAllChildFalse(); + fenetres.create.getTextNodeSelect().refreshAffichage(nod); + } + } + +} diff --git a/src/fenetres/create_act/actEvaluerTousEnfantsTrue.java b/src/fenetres/create_act/actEvaluerTousEnfantsTrue.java new file mode 100644 index 0000000..b3b4d53 --- /dev/null +++ b/src/fenetres/create_act/actEvaluerTousEnfantsTrue.java @@ -0,0 +1,33 @@ +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 actEvaluerTousEnfantsTrue extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + { + putValue( Action.NAME, "Evaluer toute la branche" ); + putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/evaluertouslesenfantsmini.png")) ); + putValue( Action.LARGE_ICON_KEY, new ImageIcon(create.class.getResource("/resources/evaluertouslesenfants.png")) ); + putValue( Action.SHORT_DESCRIPTION, "Evaluer toute la branche de la racine à la feuille." ); + } + @Override + public void actionPerformed(ActionEvent e) { + node nod = (node) fenetres.create.getSelectNode().getUserObject(); + if(!nod.getNomElt().equals("fichier")) { + nod.evaluerAllChildTrue(); + fenetres.create.getTextNodeSelect().refreshAffichage(nod); + } + } + +} diff --git a/src/fenetres/create_act/actExit.java b/src/fenetres/create_act/actExit.java new file mode 100644 index 0000000..29e621b --- /dev/null +++ b/src/fenetres/create_act/actExit.java @@ -0,0 +1,38 @@ +package fenetres.create_act; + +import java.awt.event.ActionEvent; +import java.awt.event.KeyEvent; + +import javax.swing.AbstractAction; +import javax.swing.Action; +import javax.swing.ImageIcon; +import javax.swing.JOptionPane; +import javax.swing.KeyStroke; + +import fenetres.create; + +public class actExit extends AbstractAction { + + { + putValue( Action.NAME, "Quitter" ); + putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/exitmini.png")) ); + putValue( Action.LARGE_ICON_KEY, new ImageIcon(create.class.getResource("/resources/exit.png")) ); + putValue( Action.MNEMONIC_KEY, KeyEvent.VK_Q ); + putValue( Action.SHORT_DESCRIPTION, "Quitter (CRTL+Q)" ); + putValue( Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_Q, KeyEvent.CTRL_DOWN_MASK ) ); + } + + + /** + * + */ + private static final long serialVersionUID = 1L; + + @Override + public void actionPerformed(ActionEvent e) { + if(JOptionPane.showConfirmDialog(null,"Voulez-vous quitter analyseWriter?", "Quitter", JOptionPane.YES_NO_OPTION,JOptionPane.QUESTION_MESSAGE)==JOptionPane.YES_OPTION) { + create.getInstance().dispose(); + } + } + +} diff --git a/src/fenetres/create_act/actExpandAll.java b/src/fenetres/create_act/actExpandAll.java new file mode 100644 index 0000000..469da96 --- /dev/null +++ b/src/fenetres/create_act/actExpandAll.java @@ -0,0 +1,27 @@ +package fenetres.create_act; + +import java.awt.event.ActionEvent; + +import javax.swing.AbstractAction; +import javax.swing.Action; +import javax.swing.ImageIcon; + +import fenetres.create; + +public class actExpandAll extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + { + putValue( Action.NAME, "Tout étendre" ); + putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/expandallmini.png")) ); + putValue( Action.SHORT_DESCRIPTION, "Tout étendre" ); + } + @Override + public void actionPerformed(ActionEvent e) { + fenetres.create.expandAll(); + } + +} diff --git a/src/fenetres/create_act/actExpandNode.java b/src/fenetres/create_act/actExpandNode.java new file mode 100644 index 0000000..c759685 --- /dev/null +++ b/src/fenetres/create_act/actExpandNode.java @@ -0,0 +1,27 @@ +package fenetres.create_act; + +import java.awt.event.ActionEvent; + +import javax.swing.AbstractAction; +import javax.swing.Action; +import javax.swing.ImageIcon; + +import fenetres.create; + +public class actExpandNode extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + { + putValue( Action.NAME, "Etendre ce node" ); + putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/expandnodemini.png")) ); + putValue( Action.SHORT_DESCRIPTION, "Etendre ce node" ); + } + @Override + public void actionPerformed(ActionEvent e) { + fenetres.create.expandNode(fenetres.create.getSelectNode()); + } + +} diff --git a/src/fenetres/create_act/actNewFichierAnalyse.java b/src/fenetres/create_act/actNewFichierAnalyse.java new file mode 100644 index 0000000..5141dc0 --- /dev/null +++ b/src/fenetres/create_act/actNewFichierAnalyse.java @@ -0,0 +1,99 @@ +package fenetres.create_act; + +import java.awt.event.ActionEvent; +import java.awt.event.InputEvent; +import java.awt.event.KeyEvent; +import java.io.IOException; + +import javax.swing.AbstractAction; +import javax.swing.Action; +import javax.swing.ImageIcon; +import javax.swing.JFileChooser; +import javax.swing.KeyStroke; +import javax.swing.filechooser.FileNameExtensionFilter; +import javax.xml.parsers.ParserConfigurationException; + +import org.xml.sax.SAXException; + +import MEPTL.commandes; +import MEPTL.ecritureSujet; +import MEPTL.meptl; +import MEPTL.verificationFichierAnalyse; +import cXML.Run; +import fenetres.evaluate; + +public class actNewFichierAnalyse extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + { + putValue(Action.LARGE_ICON_KEY, new ImageIcon(evaluate.class.getResource("/resources/fichierODF.png"))); + putValue( Action.NAME, "Génère un nouveau fichier d'analyse" ); + putValue( Action.SMALL_ICON, new ImageIcon(evaluate.class.getResource("/resources/fichierODFmini.png")) ); + putValue( Action.MNEMONIC_KEY, KeyEvent.VK_N ); + putValue( Action.SHORT_DESCRIPTION, "Générer un nouveau fichier d'analyse (CTRL+N)" ); + putValue( Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_N, InputEvent.CTRL_DOWN_MASK) ); + } + @Override + public void actionPerformed(ActionEvent e) { + JFileChooser chooser = new JFileChooser(); + chooser.setDialogTitle("Choisir un fichier ODF"); + + chooser.setCurrentDirectory(new java.io.File(commandes.path)); + chooser.setFileSelectionMode(JFileChooser.FILES_ONLY); + FileNameExtensionFilter filter = new FileNameExtensionFilter("Format ODF", "odt"); + chooser.setFileFilter(filter); + chooser.setAcceptAllFileFilterUsed(true); + + if (chooser.showOpenDialog(null) == JFileChooser.APPROVE_OPTION) { + System.out.println("getCurrentDirectory(): " + chooser.getCurrentDirectory()); + System.out.println("getSelectedFile() : " + chooser.getSelectedFile().getAbsolutePath()); + + commandes.path = chooser.getCurrentDirectory().getAbsolutePath(); + commandes.PathFilenameAnalysis = chooser.getCurrentDirectory().getAbsolutePath(); + String cheminVersFichier = chooser.getSelectedFile().getAbsolutePath(); + commandes.nameSujet = chooser.getSelectedFile().getName(); + + Run b = null; + try { + b = new Run(cheminVersFichier); + commandes.sujet = Run.XMLContent(b.getLectDossiers().getEC().getListeContentWriter().get(0)); + + commandes.sujet = meptl.LectureFichierEtudiantSousFormeDeNode(commandes.sujet,b,0); + commandes.sujet.getAttributs().put("analysis_filename","sujet.xml"); + + commandes.sujet = ecritureSujet.nodePourEcritureSujet(commandes.sujet,b,0); + + commandes.sujet.supprimeTousLesNodesEnfantWithThisName("text:change-start"); + commandes.sujet.supprimeTousLesNodesEnfantWithThisName("text:change-end"); + commandes.sujet.supprimeTousLesNodesEnfantWithThisName("text:tracked-changes"); + commandes.sujet.supprimeTousLesNodesEnfantWithThisName("text:change"); + + commandes.sujetSauvegarde = commandes.sujet.clone(); + + new verificationFichierAnalyse(); + + + if(commandes.fichierAnalyseValide) { + fenetres.create.constructionTree(); + fenetres.create.getTextNodeSelect().afficheChargementFichierAnalyse(); + }else { + fenetres.create.getTextNodeSelect().setText("

    Le fichier n'est pas valise

    "); + } + + } catch (ParserConfigurationException | SAXException | IOException | CloneNotSupportedException e1) { + e1.printStackTrace(); + } + + } else { + fenetres.create.getTextNodeSelect().refreshAffichage(null); + } + + + commandes.ecritCode = true; + + } + +} diff --git a/src/fenetres/create_act/actNodeFichier.java b/src/fenetres/create_act/actNodeFichier.java new file mode 100644 index 0000000..16658ac --- /dev/null +++ b/src/fenetres/create_act/actNodeFichier.java @@ -0,0 +1,30 @@ +package fenetres.create_act; + +import java.awt.event.ActionEvent; + +import javax.swing.AbstractAction; +import javax.swing.Action; +import javax.swing.ImageIcon; + +import fenetres.create; +import fenetres.proprieteFichierAnalyse; + +public class actNodeFichier extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + { + putValue( Action.NAME, "Modifier les paramètres de l'évaluation" ); + putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/nodeFichiermini.png")) ); + putValue( Action.LARGE_ICON_KEY, new ImageIcon(create.class.getResource("/resources/nodeFichier.png")) ); + putValue( Action.SHORT_DESCRIPTION, "Modifier les paramètres de l'évaluation" ); + + } + @Override + public void actionPerformed(ActionEvent e) { + proprieteFichierAnalyse.getInstance(); + } + +} diff --git a/src/fenetres/create_act/actOpen.java b/src/fenetres/create_act/actOpen.java new file mode 100644 index 0000000..21d40d4 --- /dev/null +++ b/src/fenetres/create_act/actOpen.java @@ -0,0 +1,42 @@ +package fenetres.create_act; + +import java.awt.event.ActionEvent; +import java.awt.event.InputEvent; +import java.awt.event.KeyEvent; + +import javax.swing.AbstractAction; +import javax.swing.Action; +import javax.swing.ImageIcon; +import javax.swing.KeyStroke; + +import MEPTL.commandes; +import fenetres.create; +import fenetres.filechooserXML; + +public class actOpen extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + { + putValue( Action.NAME, "Ouvrir un fichier d'analyse" ); + putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/fichierAnalysemini.png")) ); + putValue( Action.MNEMONIC_KEY, KeyEvent.VK_O ); + putValue( Action.SHORT_DESCRIPTION, "Ouvrir un nouveau fichier d'analyse (CTRL+O)" ); + putValue( Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_O, InputEvent.CTRL_DOWN_MASK) ); + } + @Override + public void actionPerformed(ActionEvent e) { + new filechooserXML(); + if(commandes.fichierAnalyseValide) { + fenetres.create.constructionTree(); + fenetres.create.getTextNodeSelect().afficheChargementFichierAnalyse(); + }else { + fenetres.create.constructionTree(); + fenetres.create.getTextNodeSelect().setContentType("text/plain"); + fenetres.create.getTextNodeSelect().setText(commandes.message.toString()); + } + } + +} diff --git a/src/fenetres/create_act/actRechercheAnchorPageNumberFalse.java b/src/fenetres/create_act/actRechercheAnchorPageNumberFalse.java new file mode 100644 index 0000000..1d66db5 --- /dev/null +++ b/src/fenetres/create_act/actRechercheAnchorPageNumberFalse.java @@ -0,0 +1,27 @@ +package fenetres.create_act; + +import java.awt.event.ActionEvent; + +import javax.swing.AbstractAction; +import javax.swing.Action; + +import cXML.node; + +public class actRechercheAnchorPageNumberFalse extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + { + putValue( Action.NAME, "false" ); + putValue( Action.SHORT_DESCRIPTION, "Ne recherche pas l'image par le numéro de la page." ); + } + @Override + public void actionPerformed(ActionEvent e) { + node nod = (node) fenetres.create.getSelectNode().getUserObject(); + nod.getAttributs().put("recherche_anchor-page-number", "false"); + fenetres.create.getTextNodeSelect().refreshAffichage(nod); + } + +} diff --git a/src/fenetres/create_act/actRechercheAnchorPageNumberTrue.java b/src/fenetres/create_act/actRechercheAnchorPageNumberTrue.java new file mode 100644 index 0000000..cde03ae --- /dev/null +++ b/src/fenetres/create_act/actRechercheAnchorPageNumberTrue.java @@ -0,0 +1,27 @@ +package fenetres.create_act; + +import java.awt.event.ActionEvent; + +import javax.swing.AbstractAction; +import javax.swing.Action; + +import cXML.node; + +public class actRechercheAnchorPageNumberTrue extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + { + putValue( Action.NAME, "true" ); + putValue( Action.SHORT_DESCRIPTION, "Recherche l'image par le numéro de la page dans le node dans le fichier de l'étudiant." ); + } + @Override + public void actionPerformed(ActionEvent e) { + node nod = (node) fenetres.create.getSelectNode().getUserObject(); + nod.getAttributs().put("recherche_anchor-page-number", "true"); + fenetres.create.getTextNodeSelect().refreshAffichage(nod); + } + +} diff --git a/src/fenetres/create_act/actRechercheContenuPlusProcheVoisinfalse.java b/src/fenetres/create_act/actRechercheContenuPlusProcheVoisinfalse.java new file mode 100644 index 0000000..b8c046e --- /dev/null +++ b/src/fenetres/create_act/actRechercheContenuPlusProcheVoisinfalse.java @@ -0,0 +1,27 @@ +package fenetres.create_act; + +import java.awt.event.ActionEvent; + +import javax.swing.AbstractAction; +import javax.swing.Action; + +import cXML.node; + +public class actRechercheContenuPlusProcheVoisinfalse extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + { + putValue( Action.NAME, "Plus proche voisin : false" ); + putValue( Action.SHORT_DESCRIPTION, "Ne recherche pas par le contenu du plus proche voisin." ); + } + @Override + public void actionPerformed(ActionEvent e) { + node nod = (node) fenetres.create.getSelectNode().getUserObject(); + nod.getAttributs().put("recherche_contenu_plus_proche_voisin", "false"); + fenetres.create.getTextNodeSelect().refreshAffichage(nod); + } + +} diff --git a/src/fenetres/create_act/actRechercheContenuPlusProcheVoisintrue.java b/src/fenetres/create_act/actRechercheContenuPlusProcheVoisintrue.java new file mode 100644 index 0000000..af29362 --- /dev/null +++ b/src/fenetres/create_act/actRechercheContenuPlusProcheVoisintrue.java @@ -0,0 +1,27 @@ +package fenetres.create_act; + +import java.awt.event.ActionEvent; + +import javax.swing.AbstractAction; +import javax.swing.Action; + +import cXML.node; + +public class actRechercheContenuPlusProcheVoisintrue extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + { + putValue( Action.NAME, "true" ); + putValue( Action.SHORT_DESCRIPTION, "Recherche par le contenu du plus proche voisin." ); + } + @Override + public void actionPerformed(ActionEvent e) { + node nod = (node) fenetres.create.getSelectNode().getUserObject(); + nod.getAttributs().put("recherche_contenu_plus_proche_voisin", "true"); + fenetres.create.getTextNodeSelect().refreshAffichage(nod); + } + +} diff --git a/src/fenetres/create_act/actRechercheContenufalse.java b/src/fenetres/create_act/actRechercheContenufalse.java new file mode 100644 index 0000000..014e96d --- /dev/null +++ b/src/fenetres/create_act/actRechercheContenufalse.java @@ -0,0 +1,27 @@ +package fenetres.create_act; + +import java.awt.event.ActionEvent; + +import javax.swing.AbstractAction; +import javax.swing.Action; + +import cXML.node; + +public class actRechercheContenufalse extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + { + putValue( Action.NAME, "false" ); + putValue( Action.SHORT_DESCRIPTION, "Ne recherche pas par le contenu exact le node dans le fichier de l'étudiant." ); + } + @Override + public void actionPerformed(ActionEvent e) { + node nod = (node) fenetres.create.getSelectNode().getUserObject(); + nod.getAttributs().put("recherche_contenu_exact", "false"); + fenetres.create.getTextNodeSelect().refreshAffichage(nod); + } + +} diff --git a/src/fenetres/create_act/actRechercheContenutrue.java b/src/fenetres/create_act/actRechercheContenutrue.java new file mode 100644 index 0000000..76c25f8 --- /dev/null +++ b/src/fenetres/create_act/actRechercheContenutrue.java @@ -0,0 +1,27 @@ +package fenetres.create_act; + +import java.awt.event.ActionEvent; + +import javax.swing.AbstractAction; +import javax.swing.Action; + +import cXML.node; + +public class actRechercheContenutrue extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + { + putValue( Action.NAME, "Recherche par le contenu du node : true" ); + putValue( Action.SHORT_DESCRIPTION, "Recherche par le contenu le node dans le fichier de l'étudiant." ); + } + @Override + public void actionPerformed(ActionEvent e) { + node nod = (node) fenetres.create.getSelectNode().getUserObject(); + nod.getAttributs().put("recherche_contenu_exact", "true"); + fenetres.create.getTextNodeSelect().refreshAffichage(nod); + } + +} diff --git a/src/fenetres/create_act/actRechercheIndexfalse.java b/src/fenetres/create_act/actRechercheIndexfalse.java new file mode 100644 index 0000000..cead908 --- /dev/null +++ b/src/fenetres/create_act/actRechercheIndexfalse.java @@ -0,0 +1,27 @@ +package fenetres.create_act; + +import java.awt.event.ActionEvent; + +import javax.swing.AbstractAction; +import javax.swing.Action; + +import cXML.node; + +public class actRechercheIndexfalse extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + { + putValue( Action.NAME, "Ne recherche par l'index du node : false" ); + putValue( Action.SHORT_DESCRIPTION, "Ne recherche pas par l'index le node dans le fichier de l'étudiant." ); + } + @Override + public void actionPerformed(ActionEvent e) { + node nod = (node) fenetres.create.getSelectNode().getUserObject(); + nod.getAttributs().put("recherche_index", "false"); + fenetres.create.getTextNodeSelect().refreshAffichage(nod); + } + +} diff --git a/src/fenetres/create_act/actRechercheIndextrue.java b/src/fenetres/create_act/actRechercheIndextrue.java new file mode 100644 index 0000000..6287d3b --- /dev/null +++ b/src/fenetres/create_act/actRechercheIndextrue.java @@ -0,0 +1,27 @@ +package fenetres.create_act; + +import java.awt.event.ActionEvent; + +import javax.swing.AbstractAction; +import javax.swing.Action; + +import cXML.node; + +public class actRechercheIndextrue extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + { + putValue( Action.NAME, "Recherche par l'index du node : true" ); + putValue( Action.SHORT_DESCRIPTION, "Recherche par index le node dans le fichier de l'étudiant." ); + } + @Override + public void actionPerformed(ActionEvent e) { + node nod = (node) fenetres.create.getSelectNode().getUserObject(); + nod.getAttributs().put("recherche_index", "true"); + fenetres.create.getTextNodeSelect().refreshAffichage(nod); + } + +} diff --git a/src/fenetres/create_act/actSave.java b/src/fenetres/create_act/actSave.java new file mode 100644 index 0000000..81f0c94 --- /dev/null +++ b/src/fenetres/create_act/actSave.java @@ -0,0 +1,70 @@ +package fenetres.create_act; + +import java.awt.event.ActionEvent; +import java.awt.event.KeyEvent; +import java.io.IOException; +import java.util.regex.Matcher; +import java.util.regex.Pattern; + +import javax.swing.AbstractAction; +import javax.swing.Action; +import javax.swing.ImageIcon; +import javax.swing.JOptionPane; +import javax.swing.KeyStroke; + +import MEPTL.commandes; +import MEPTL.verificationFichierAnalyse; +import cXML.Run; + +public class actSave extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + { + putValue( Action.NAME, "Enregister" ); + putValue( Action.SMALL_ICON, new ImageIcon( getClass().getResource("/save.png")) ); + putValue( Action.MNEMONIC_KEY, KeyEvent.VK_S ); + putValue( Action.SHORT_DESCRIPTION, "Enregistrer (CTRL+S)" ); + putValue( Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_S, KeyEvent.CTRL_DOWN_MASK ) ); + } + @Override + public void actionPerformed(ActionEvent e) { + Pattern p = Pattern.compile("[.xml]\\b"); + Matcher m = p.matcher(commandes.nameSujet); + + String message=""; + + if(m.find()) { + message="\"Voulez-vous enregistrer le fichier \"" + commandes.nameSujet + "\"\n" + + "Dans le dossier " + commandes.PathFilenameAnalysis; + }else { + message="\"Voulez-vous enregistrer le fichier \"" + commandes.nameSujet + ".xml\"\n" + + "Dans le dossier " + commandes.PathFilenameAnalysis; + commandes.nameSujet = commandes.nameSujet + ".xml"; + } + + int input = JOptionPane.showConfirmDialog(null, message); + + if(input==0) { + try { + verificationFichierAnalyse.MiseAJourHashNomFichierAnalyse(commandes.nameSujet); + Run.ecritureNodeEnXML(commandes.sujet, commandes.nameSujet ,commandes.PathFilenameAnalysis,"sujet"); + + if(m.find()) { + fenetres.create.getTextNodeSelect().setText("Le fichier \"" + commandes.nameSujet + " a été réenregistré.\n\n" + + "Il se trouve dans le dossier " + commandes.PathFilenameAnalysis); + }else { + fenetres.create.getTextNodeSelect().setText("Le fichier \"" + commandes.nameSujet + ".xml\" a été réenregistré.\n\n" + + "Il se trouve dans le dossier " + commandes.PathFilenameAnalysis); + } + + System.out.println( input + "Save" ); + } catch (IOException | CloneNotSupportedException e1) { + e1.printStackTrace(); + } + } + } + +} diff --git a/src/fenetres/create_act/actSaveAs.java b/src/fenetres/create_act/actSaveAs.java new file mode 100644 index 0000000..c63b48a --- /dev/null +++ b/src/fenetres/create_act/actSaveAs.java @@ -0,0 +1,81 @@ +package fenetres.create_act; + +import java.awt.event.ActionEvent; +import java.awt.event.KeyEvent; +import java.io.File; +import java.io.IOException; +import java.util.regex.Matcher; +import java.util.regex.Pattern; + +import javax.swing.AbstractAction; +import javax.swing.Action; +import javax.swing.ImageIcon; +import javax.swing.JFileChooser; + +import MEPTL.commandes; +import MEPTL.verificationFichierAnalyse; +import cXML.Run; + +public class actSaveAs extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + { + putValue( Action.NAME, "Enregistrer sous..." ); + putValue( Action.SMALL_ICON, new ImageIcon(getClass().getResource("/save_as.png") )); + putValue( Action.MNEMONIC_KEY, KeyEvent.VK_A ); + putValue( Action.SHORT_DESCRIPTION, "Enregistrer sous..." ); + } + @Override + public void actionPerformed(ActionEvent e) { + JFileChooser fileChooser = new JFileChooser(); + fileChooser.setDialogTitle("Enregistrer sous..."); + File file = null; + + if(!commandes.nameSujet.isEmpty()) { + file = new File(commandes.PathFilenameAnalysis ); //+ "\\" + utils.filename + ".xml" + } + + + + fileChooser.setCurrentDirectory(file); + + int userSelection = fileChooser.showSaveDialog(null); + + if (userSelection == JFileChooser.APPROVE_OPTION) { + File fileToSave = fileChooser.getSelectedFile(); + try { + + verificationFichierAnalyse.MiseAJourHashNomFichierAnalyse(fileToSave.getName()); + + + Run.ecritureNodeEnXML(commandes.sujet, fileToSave.getName(), fileToSave.getPath().substring(0,fileToSave.getPath().lastIndexOf("\\")),"sujet" ); + + commandes.nameSujet = fileToSave.getName(); + commandes.PathFilenameAnalysis = fileToSave.getPath().substring(0,fileToSave.getPath().lastIndexOf("\\")); + + Pattern p = Pattern.compile("[.xml]\\b"); + Matcher m = p.matcher(commandes.nameSujet); + + if(m.find()) { + file = new File(commandes.PathFilenameAnalysis + "\\" + commandes.nameSujet); + fenetres.create.getTextNodeSelect().setText("Le fichier \"" + commandes.nameSujet + " a été renregistré.\n\nIl se trouve dans le dossier " + commandes.PathFilenameAnalysis); + }else { + file = new File(commandes.PathFilenameAnalysis + "\\" + commandes.nameSujet + ".xml"); + fenetres.create.getTextNodeSelect().setText("Le fichier \"" + commandes.nameSujet + ".xml\" a été renregistré.\n\nIl se trouve dans le dossier " + commandes.PathFilenameAnalysis); + } + + + } catch (IOException e1) { + e1.printStackTrace(); + } catch (CloneNotSupportedException e1) { + e1.printStackTrace(); + } + System.out.println("Save as file: " + fileToSave.getAbsolutePath()); + } + System.out.println( "Save as" ); + } + +} diff --git a/src/fenetres/create_act/actSetting.java b/src/fenetres/create_act/actSetting.java new file mode 100644 index 0000000..58f116b --- /dev/null +++ b/src/fenetres/create_act/actSetting.java @@ -0,0 +1,30 @@ +package fenetres.create_act; + +import java.awt.event.ActionEvent; + +import javax.swing.AbstractAction; +import javax.swing.Action; +import javax.swing.ImageIcon; + +import fenetres.create; +import fenetres.setting; + +public class actSetting extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + { + putValue( Action.NAME, "Settings" ); + putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/settingmini.png")) ); + putValue( Action.LARGE_ICON_KEY, new ImageIcon(create.class.getResource("/resources/setting.png")) ); + putValue( Action.SHORT_DESCRIPTION, "Modifier les paramètres" ); + + } + @Override + public void actionPerformed(ActionEvent e) { + setting.getInstance(); + } + +} diff --git a/src/fenetres/create_act/actSupprimeTitre.java b/src/fenetres/create_act/actSupprimeTitre.java new file mode 100644 index 0000000..663a6ab --- /dev/null +++ b/src/fenetres/create_act/actSupprimeTitre.java @@ -0,0 +1,38 @@ +package fenetres.create_act; + +import java.awt.event.ActionEvent; + +import javax.swing.AbstractAction; +import javax.swing.Action; + +import cXML.node; + +public class actSupprimeTitre extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + { + putValue( Action.NAME, "Supprimer le titre" ); + putValue( Action.SHORT_DESCRIPTION, "Supprime le titre" ); + } + @Override + public void actionPerformed(ActionEvent e) { + node nod = (node) fenetres.create.getSelectNode().getUserObject(); + if(nod.getAttributs().get("titre")!=null) { + nod.supprimeAttribut("titre"); + } + if(nod.getAttributs().get("titre1")!=null) { + nod.supprimeAttribut("titre1"); + } + if(nod.getAttributs().get("titre2")!=null) { + nod.supprimeAttribut("titre2"); + } + if(nod.getAttributs().get("titre3")!=null) { + nod.supprimeAttribut("titre3"); + } + fenetres.create.getTextNodeSelect().refreshAffichage(nod); + } + +} diff --git a/src/fenetres/create_act/actTitre1.java b/src/fenetres/create_act/actTitre1.java new file mode 100644 index 0000000..dfbf27d --- /dev/null +++ b/src/fenetres/create_act/actTitre1.java @@ -0,0 +1,34 @@ +package fenetres.create_act; + +import java.awt.event.ActionEvent; + +import javax.swing.AbstractAction; +import javax.swing.Action; +import javax.swing.JOptionPane; + +import cXML.node; + +public class actTitre1 extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + { + putValue( Action.NAME, "Titre 1" ); + putValue( Action.SHORT_DESCRIPTION, "Titre 1" ); + } + @Override + public void actionPerformed(ActionEvent e) { + node nod = (node) fenetres.create.getSelectNode().getUserObject(); + String titre = ""; + if(nod.getAttributs().get("titre1")!=null) { + titre = nod.getAttributs().get("titre1"); + } + + String a = JOptionPane.showInputDialog(null,"Quel est le titre?",titre); + nod.titre1(a); + fenetres.create.getTextNodeSelect().refreshAffichage(nod); + } + +} diff --git a/src/fenetres/create_act/actTitre2.java b/src/fenetres/create_act/actTitre2.java new file mode 100644 index 0000000..24c72e2 --- /dev/null +++ b/src/fenetres/create_act/actTitre2.java @@ -0,0 +1,34 @@ +package fenetres.create_act; + +import java.awt.event.ActionEvent; + +import javax.swing.AbstractAction; +import javax.swing.Action; +import javax.swing.JOptionPane; + +import cXML.node; + +public class actTitre2 extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + { + putValue( Action.NAME, "Titre 2" ); + putValue( Action.SHORT_DESCRIPTION, "Titre 2" ); + } + @Override + public void actionPerformed(ActionEvent e) { + node nod = (node) fenetres.create.getSelectNode().getUserObject(); + String titre = ""; + if(nod.getAttributs().get("titre2")!=null) { + titre = nod.getAttributs().get("titre2"); + } + + String a = JOptionPane.showInputDialog(null,"Quel est le titre?",titre); + nod.titre2(a); + fenetres.create.getTextNodeSelect().refreshAffichage(nod); + } + +} diff --git a/src/fenetres/create_act/actTitre3.java b/src/fenetres/create_act/actTitre3.java new file mode 100644 index 0000000..92772f8 --- /dev/null +++ b/src/fenetres/create_act/actTitre3.java @@ -0,0 +1,34 @@ +package fenetres.create_act; + +import java.awt.event.ActionEvent; + +import javax.swing.AbstractAction; +import javax.swing.Action; +import javax.swing.JOptionPane; + +import cXML.node; + +public class actTitre3 extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + { + putValue( Action.NAME, "Titre 3" ); + putValue( Action.SHORT_DESCRIPTION, "Titre 3" ); + } + @Override + public void actionPerformed(ActionEvent e) { + node nod = (node) fenetres.create.getSelectNode().getUserObject(); + String titre = ""; + if(nod.getAttributs().get("titre3")!=null) { + titre = nod.getAttributs().get("titre3"); + } + + String a = JOptionPane.showInputDialog(null,"Quel est le titre?",titre); + nod.titre3(a); + fenetres.create.getTextNodeSelect().refreshAffichage(nod); + } + +} diff --git a/src/fenetres/create_act/actTitrePrincipal.java b/src/fenetres/create_act/actTitrePrincipal.java new file mode 100644 index 0000000..dcdfe95 --- /dev/null +++ b/src/fenetres/create_act/actTitrePrincipal.java @@ -0,0 +1,34 @@ +package fenetres.create_act; + +import java.awt.event.ActionEvent; + +import javax.swing.AbstractAction; +import javax.swing.Action; +import javax.swing.JOptionPane; + +import cXML.node; + +public class actTitrePrincipal extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + { + putValue( Action.NAME, "Titre principal" ); + putValue( Action.SHORT_DESCRIPTION, "Titre principal" ); + } + @Override + public void actionPerformed(ActionEvent e) { + node nod = (node) fenetres.create.getSelectNode().getUserObject(); + String titre = ""; + if(nod.getAttributs().get("titre")!=null) { + titre = nod.getAttributs().get("titre"); + } + + String a = JOptionPane.showInputDialog(null,"Quel est le titre?",titre); + nod.titre(a); + fenetres.create.getTextNodeSelect().refreshAffichage(nod); + } + +} diff --git a/src/fenetres/create_act/actTotalPoint.java b/src/fenetres/create_act/actTotalPoint.java new file mode 100644 index 0000000..e8ff444 --- /dev/null +++ b/src/fenetres/create_act/actTotalPoint.java @@ -0,0 +1,29 @@ +package fenetres.create_act; + +import java.awt.event.ActionEvent; + +import javax.swing.AbstractAction; +import javax.swing.Action; +import javax.swing.ImageIcon; + +import calcul.calculNombrePointEvaluation; +import fenetres.create; + +public class actTotalPoint extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + { + putValue( Action.NAME, "Nombre de point" ); + putValue( Action.SHORT_DESCRIPTION, "Nombre de point total dans l'exercice" ); + putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/totalpointmini.png")) ); + putValue( Action.LARGE_ICON_KEY, new ImageIcon(create.class.getResource("/resources/totalpoint.png")) ); + } + @Override + public void actionPerformed(ActionEvent e) { + fenetres.create.getTextNodeSelect().afficheListeDesPointsDansToutExercice(calculNombrePointEvaluation.calculPointDansToutExercice()); + } + +} diff --git a/src/fenetres/create_act/actTotalPointNode.java b/src/fenetres/create_act/actTotalPointNode.java new file mode 100644 index 0000000..98b0098 --- /dev/null +++ b/src/fenetres/create_act/actTotalPointNode.java @@ -0,0 +1,31 @@ +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 calcul.calculNombrePointEvaluation; +import fenetres.create; + +public class actTotalPointNode extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + { + putValue( Action.NAME, "Nombre de point" ); + putValue( Action.SHORT_DESCRIPTION, "Nombre de point brut dans le node" ); + putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/totalpointnodemini.png")) ); + putValue( Action.LARGE_ICON_KEY, new ImageIcon(create.class.getResource("/resources/totalpointnode.png")) ); + } + @Override + public void actionPerformed(ActionEvent e) { + node nod = (node) fenetres.create.getSelectNode().getUserObject(); + fenetres.create.getTextNodeSelect().AfficheTotalPoint(nod,calculNombrePointEvaluation.calculNombreDepoint(nod,0)); + } + +} diff --git a/src/fenetres/create_act/actTousLesNodesEvaluer.java b/src/fenetres/create_act/actTousLesNodesEvaluer.java new file mode 100644 index 0000000..604a5fd --- /dev/null +++ b/src/fenetres/create_act/actTousLesNodesEvaluer.java @@ -0,0 +1,53 @@ +package fenetres.create_act; + +import java.awt.event.ActionEvent; + +import javax.swing.AbstractAction; +import javax.swing.Action; +import javax.swing.ImageIcon; + +import MEPTL.commandes; +import fenetres.create; + +public class actTousLesNodesEvaluer extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + { + putValue( Action.NAME, "" ); + putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/touslesnodesmini.png")) ); + putValue( Action.SHORT_DESCRIPTION, "Affiche tous les nodes" ); + } + @Override + public void actionPerformed(ActionEvent e) { + if(fenetres.create.getTglbtnTousLesNodes().isSelected()) { + try { + commandes.sujetSauvegarde = commandes.sujet.clone(); + commandes.sujet.supprimeTousLesNodesEvaluerFalseOuNull(); + commandes.fichierAnalyseValide=false; + fenetres.create.getTextNodeSelect().setContentType("text/html"); + fenetres.create.getTextNodeSelect().setText("

    Affiche uniquement les nodes évalués par l'application.


    " + + "

    Le chemin vers chaque node évalué est constitué de node évalué.
    " + + "Si vous enregistrez maintenant, vous enregistrez le fichier d'analyse avec uniquement les nodes évalués.

    "); + fenetres.create.getButtonEvaluate().setEnabled(false); + fenetres.create.constructionTree(); + } catch (CloneNotSupportedException e1) { + e1.printStackTrace(); + } + }else { + try { + commandes.sujet = commandes.sujetSauvegarde.clone(); + fenetres.create.getButtonEvaluate().setEnabled(true); + } catch (CloneNotSupportedException e1) { + e1.printStackTrace(); + } + fenetres.create.getTextNodeSelect().setContentType("text/html"); + fenetres.create.getTextNodeSelect().setText("

    Affiche tous les nodes évalués ou pas.


    "); + commandes.fichierAnalyseValide=true; + fenetres.create.constructionTree(); + } + } + +} diff --git a/src/fenetres/create_act/actTutoriels.java b/src/fenetres/create_act/actTutoriels.java new file mode 100644 index 0000000..7253d92 --- /dev/null +++ b/src/fenetres/create_act/actTutoriels.java @@ -0,0 +1,35 @@ +package fenetres.create_act; + +import java.awt.event.ActionEvent; + +import javax.swing.AbstractAction; +import javax.swing.Action; +import javax.swing.ImageIcon; +import javax.swing.JOptionPane; + +import fenetres.create; + +public class actTutoriels extends AbstractAction { + + /** + * + */ + private static final long serialVersionUID = 1L; + + { + putValue( Action.NAME, "Tutoriels" ); + putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/tutorielmini.png")) ); + putValue( Action.SHORT_DESCRIPTION, "Tutoriels" ); + } + @Override + public void actionPerformed(ActionEvent e) { + try { + String url = "https://www.youtube.com/channel/UCBSfItcCVnbRJdQbVE9ppjQ"; + java.awt.Desktop.getDesktop().browse(java.net.URI.create(url)); + } + catch (java.io.IOException e1) { + JOptionPane.showMessageDialog(null, e1.toString()); + } + } + +} diff --git a/src/fenetres/create_act/actUpNode.java b/src/fenetres/create_act/actUpNode.java new file mode 100644 index 0000000..a32cadb --- /dev/null +++ b/src/fenetres/create_act/actUpNode.java @@ -0,0 +1,44 @@ +package fenetres.create_act; + +import java.awt.event.ActionEvent; + +import javax.swing.AbstractAction; +import javax.swing.Action; +import javax.swing.ImageIcon; +import javax.swing.JOptionPane; +import javax.swing.tree.DefaultMutableTreeNode; + +import cXML.node; +import fenetres.create; + +public class actUpNode extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + { + putValue( Action.NAME, "Monter le node" ); + putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/upnodemini.png")) ); + putValue( Action.SHORT_DESCRIPTION, "Monter le node" ); + } + @Override + public void actionPerformed(ActionEvent e) { + if(fenetres.create.getTree().getSelectionPath()!=null) { + DefaultMutableTreeNode selectNode = (DefaultMutableTreeNode) fenetres.create.getTree().getSelectionPath().getLastPathComponent(); + + int a = JOptionPane.showConfirmDialog(null,"Voulez-vous monter le node " + selectNode.toString() + "?", "Sélectionner un choix", JOptionPane.YES_NO_OPTION); + + if(a == JOptionPane.YES_NO_OPTION) { + node nod = (node) selectNode.getUserObject(); + if(!nod.chemin().contains("setting")) { + nod.getParent().upNodeEnfant(nod); + fenetres.create.constructionTree(); + }else { + JOptionPane.showMessageDialog(null,"Vous ne devez pas déplacer ce node !", "Oh non!!!", JOptionPane.INFORMATION_MESSAGE); + } + } + } + } + +} diff --git a/src/fenetres/create_act/actevalNameCreator.java b/src/fenetres/create_act/actevalNameCreator.java new file mode 100644 index 0000000..1d0a39f --- /dev/null +++ b/src/fenetres/create_act/actevalNameCreator.java @@ -0,0 +1,53 @@ +package fenetres.create_act; + +import java.awt.event.ActionEvent; + +import javax.swing.AbstractAction; +import javax.swing.Action; +import javax.swing.ImageIcon; +import javax.swing.JOptionPane; + +import cXML.node; +import fenetres.baliseStyle; +import fenetres.create; + +public class actevalNameCreator extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + { + putValue( Action.NAME, "Evaluer la présence du dernier éditeur" ); + putValue( Action.SHORT_DESCRIPTION, "Evaluer la présence du dernier éditeur" ); + putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/auteurediteurmini.png")) ); + } + @Override + public void actionPerformed(ActionEvent e) { + node nod = (node) fenetres.create.getSelectNode().getUserObject(); + int point = 0; + if(nod.getAttributs().get("evalNameCreator")!=null) { + point = Integer.valueOf(nod.getAttributs().get("evalNameCreator")); + } + + String a = JOptionPane.showInputDialog(null,"Quel est le nombre de point?",point); + + if(!a.isEmpty()) { + try { + point = Integer.valueOf(a); + if(point<=0) { + nod.getAttributs().put("evalNameCreator", String.valueOf(0)); + fenetres.create.getTextNodeSelect().setText(baliseStyle.balise()); + fenetres.create.getTextNodeSelect().setText("

    Erreur la valeur doit être un nombre entier POSITIF supérieur à zéro.
    Cependant,la valeur a été modifiée.
    evalNameCreator=0.

    "); + }else { + nod.getAttributs().put("evalNameCreator", String.valueOf(point)); + } + } catch (Exception e2) { + fenetres.create.getTextNodeSelect().setText(baliseStyle.balise()); + fenetres.create.getTextNodeSelect().setText("

    Erreur la valeur doit être un nombre entier.
    L'attribut n'a pas été modifiée.

    "); + } + } + fenetres.create.getTextNodeSelect().refreshAffichage(nod); + } + +} diff --git a/src/fenetres/create_act/actsautfalse.java b/src/fenetres/create_act/actsautfalse.java new file mode 100644 index 0000000..2215125 --- /dev/null +++ b/src/fenetres/create_act/actsautfalse.java @@ -0,0 +1,40 @@ +package fenetres.create_act; + +import java.awt.event.ActionEvent; + +import javax.swing.AbstractAction; +import javax.swing.Action; +import javax.swing.JOptionPane; +import javax.swing.tree.TreeNode; + +import cXML.node; + +public class actsautfalse extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + { + putValue( Action.NAME, "false" ); + putValue( Action.SHORT_DESCRIPTION, "false" ); + } + @Override + public void actionPerformed(ActionEvent e) { + node nod = (node) fenetres.create.getSelectNode().getUserObject(); + TreeNode[] chemin = fenetres.create.getSelectNode().getPath(); + boolean avertissement=false; + for(int i = 0 ; i < chemin.length; i++) { + if(chemin[i].toString().contains("setting")) avertissement = true; + System.out.println(chemin[i].toString()); + } + + if(!avertissement) { + nod.saut(false); + fenetres.create.getTextNodeSelect().refreshAffichage(nod); + }else { + JOptionPane.showMessageDialog(null, "Ce node ne peut pas être évaluer." ); + } + } + +} diff --git a/src/fenetres/create_act/actsauttrue.java b/src/fenetres/create_act/actsauttrue.java new file mode 100644 index 0000000..c8f795b --- /dev/null +++ b/src/fenetres/create_act/actsauttrue.java @@ -0,0 +1,40 @@ +package fenetres.create_act; + +import java.awt.event.ActionEvent; + +import javax.swing.AbstractAction; +import javax.swing.Action; +import javax.swing.JOptionPane; +import javax.swing.tree.TreeNode; + +import cXML.node; + +public class actsauttrue extends AbstractAction{ + + /** + * + */ + private static final long serialVersionUID = 1L; + { + putValue( Action.NAME, "true" ); + putValue( Action.SHORT_DESCRIPTION, "true" ); + } + @Override + public void actionPerformed(ActionEvent e) { + node nod = (node) fenetres.create.getSelectNode().getUserObject(); + TreeNode[] chemin = fenetres.create.getSelectNode().getPath(); + boolean avertissement=false; + for(int i = 0 ; i < chemin.length; i++) { + if(chemin[i].toString().contains("setting")) avertissement = true; + System.out.println(chemin[i].toString()); + } + + if(!avertissement) { + nod.saut(true); + fenetres.create.getTextNodeSelect().refreshAffichage(nod); + }else { + JOptionPane.showMessageDialog(null, "Ce node ne peut pas être évaluer." ); + } + } + +} diff --git a/src/fenetres/evaluate.java b/src/fenetres/evaluate.java index 65ce363..5455474 100644 --- a/src/fenetres/evaluate.java +++ b/src/fenetres/evaluate.java @@ -1,4 +1,4 @@ -package app; +package fenetres; import java.awt.BorderLayout; import java.awt.Font; @@ -28,6 +28,7 @@ import MEPTL.commandes; import MEPTL.meptl; import cXML.Run; import cXML.node; +import fenetres.create_act.actAbout; import javax.swing.SwingConstants; import javax.swing.JScrollPane; @@ -42,6 +43,7 @@ import javax.swing.event.ChangeListener; import javax.swing.event.ChangeEvent; + public class evaluate extends JFrame { /** @@ -327,7 +329,7 @@ public class evaluate extends JFrame { menuBar.add(mnMenu_Informations); mnMenu_Informations.add(actTutoriels); mnMenu_Informations.addSeparator(); - mnMenu_Informations.add( actAbout ); + mnMenu_Informations.add( new actAbout() ); } @@ -398,7 +400,7 @@ public class evaluate extends JFrame { toolBar.addSeparator(); - JButton btnAbout = toolBar.add(actAbout); + JButton btnAbout = toolBar.add(new actAbout()); btnAbout.setIcon(new ImageIcon(evaluate.class.getResource("/resources/apropos.png"))); btnAbout.setHideActionText(true); toolBar.add(btnAbout); @@ -901,26 +903,6 @@ public class evaluate extends JFrame { }; - /** - * Affiche la fenêtre d'information sur analyseWriter - */ - private AbstractAction actAbout = new AbstractAction() { - - private static final long serialVersionUID = 1L; - - { - putValue( Action.NAME, "Informations" ); - putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/aproposmini.png")) ); - putValue( Action.MNEMONIC_KEY, KeyEvent.VK_I ); - putValue( Action.SHORT_DESCRIPTION, "Informations (CTRL+I)" ); - putValue( Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_I, InputEvent.CTRL_DOWN_MASK) ); - } - - @Override public void actionPerformed( ActionEvent e ) { - new about(); - System.out.println( "About" ); - } - }; /** * Affiche les tutoriels sur Youtube @@ -994,14 +976,8 @@ public class evaluate extends JFrame { } @Override public void actionPerformed( ActionEvent e ) { -// if(commandes.fichierAnalyseValide) { -// -// }else { -// txtpnmessages.setText("*** Veuillez sélectionner un fichier d'analyse pour le modifier ***"); -// } - new create(); + create.getInstance(); dispose(); - System.out.println( "Affiche la fenêtre pour la modification." ); } }; diff --git a/src/fenetres/evaluerLesFichiersEtudiants.java b/src/fenetres/evaluerLesFichiersEtudiants.java index 29c0980..487e248 100644 --- a/src/fenetres/evaluerLesFichiersEtudiants.java +++ b/src/fenetres/evaluerLesFichiersEtudiants.java @@ -1,4 +1,4 @@ -package app; +package fenetres; import java.io.IOException; diff --git a/src/fenetres/filechooserXML.java b/src/fenetres/filechooserXML.java index 843e9d1..e9673ee 100644 --- a/src/fenetres/filechooserXML.java +++ b/src/fenetres/filechooserXML.java @@ -1,4 +1,4 @@ -package app; +package fenetres; import java.awt.Dimension; import java.io.BufferedReader; diff --git a/src/fenetres/mainApp.java b/src/fenetres/mainApp.java index b967d0e..9945460 100644 --- a/src/fenetres/mainApp.java +++ b/src/fenetres/mainApp.java @@ -1,4 +1,4 @@ -package app; +package fenetres; import java.awt.Font; import java.awt.event.ActionEvent; @@ -95,7 +95,7 @@ public class mainApp extends JFrame implements ActionListener{ btnNewButton.setHorizontalAlignment(SwingConstants.LEFT); btnNewButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { - new about(); + about.getInstance(); } }); btnNewButton.setFont(new Font("Arial", Font.PLAIN, 14)); @@ -127,7 +127,7 @@ public class mainApp extends JFrame implements ActionListener{ @Override public void actionPerformed(ActionEvent e) { if(e.getSource()==btnCreate) { - new create(); + create.getInstance(); frmEvalwriter.dispose(); } @@ -137,5 +137,5 @@ public class mainApp extends JFrame implements ActionListener{ frmEvalwriter.dispose(); } - } + } } diff --git a/src/fenetres/msgBox.java b/src/fenetres/msgBox.java index 175b885..30b81ab 100644 --- a/src/fenetres/msgBox.java +++ b/src/fenetres/msgBox.java @@ -1,4 +1,4 @@ -package app; +package fenetres; import java.awt.BorderLayout; import java.awt.FlowLayout; diff --git a/src/fenetres/package-info.java b/src/fenetres/package-info.java index 3405f51..2a96f49 100644 --- a/src/fenetres/package-info.java +++ b/src/fenetres/package-info.java @@ -1 +1 @@ -package app; \ No newline at end of file +package fenetres; \ No newline at end of file diff --git a/src/fenetres/proprieteFichierAnalyse.java b/src/fenetres/proprieteFichierAnalyse.java index 5fd0a84..ddb45ed 100644 --- a/src/fenetres/proprieteFichierAnalyse.java +++ b/src/fenetres/proprieteFichierAnalyse.java @@ -1,4 +1,4 @@ -package app; +package fenetres; import javax.swing.JFrame; @@ -24,7 +24,7 @@ import net.miginfocom.swing.MigLayout; import java.awt.Toolkit; import javax.swing.ImageIcon; -public class proprieteFichierAnalyse extends JFrame { +public final class proprieteFichierAnalyse extends JFrame { /** * @@ -64,13 +64,13 @@ public class proprieteFichierAnalyse extends JFrame { private JButton btnAidecontrole_Initial_Creator; private JButton btnVoirBaremeABC; private JButton btnVoirBaremeNumeric; - + private static proprieteFichierAnalyse instance; /** * Create the frame. */ - public proprieteFichierAnalyse(afficheText txt) { + public proprieteFichierAnalyse() { setIconImage(Toolkit.getDefaultToolkit().getImage(proprieteFichierAnalyse.class.getResource("/resources/evalwriter.ico"))); setBounds(0, 0, 630, 639); setResizable(false); @@ -438,7 +438,7 @@ public class proprieteFichierAnalyse extends JFrame { commandes.sujet.getAttributs().put("link_sujet", textFieldlink_sujet.getText() ); meptl.chargementParametresFichierAnalyse(); - txt.afficheChargementFichierAnalyse(); + fenetres.create.getTextNodeSelect().afficheChargementFichierAnalyse(); dispose(); } @@ -525,6 +525,12 @@ public class proprieteFichierAnalyse extends JFrame { return true; } - + public static proprieteFichierAnalyse getInstance() { + if (instance == null) { + instance = new proprieteFichierAnalyse(); + } + instance.setVisible(true); + return instance; + } } diff --git a/src/fenetres/savePreferences.java b/src/fenetres/savePreferences.java index 869b00c..ce8458c 100644 --- a/src/fenetres/savePreferences.java +++ b/src/fenetres/savePreferences.java @@ -1,4 +1,4 @@ -package app; +package fenetres; import javax.swing.JEditorPane; diff --git a/src/fenetres/setting.java b/src/fenetres/setting.java index 758952d..416abf5 100644 --- a/src/fenetres/setting.java +++ b/src/fenetres/setting.java @@ -1,4 +1,4 @@ -package app; +package fenetres; import java.awt.BorderLayout; import javax.swing.ImageIcon; @@ -796,6 +796,7 @@ public final class setting extends JFrame { if (instance == null) { instance = new setting(); } + instance.setVisible(true); return instance; } diff --git a/src/fenetres/toolBarRecherche.java b/src/fenetres/toolBarRecherche.java new file mode 100644 index 0000000..ed97a11 --- /dev/null +++ b/src/fenetres/toolBarRecherche.java @@ -0,0 +1,46 @@ +package fenetres; + +import java.awt.event.ContainerListener; +import java.awt.event.HierarchyEvent; +import java.awt.event.HierarchyListener; +import java.beans.PropertyChangeListener; + +import javax.swing.ImageIcon; +import javax.swing.JButton; +import javax.swing.JToolBar; +import javax.swing.event.AncestorListener; + +public class toolBarRecherche extends JToolBar{ + + /** + * + */ + private static final long serialVersionUID = 1L; + private JButton btnRechercheIndex; + private JButton btnRechercheContenuExact; + private JButton btnRechercheVoisin; + + public toolBarRecherche() { + setRollover(true); + setName("Recherche node"); + + btnRechercheIndex = new JButton(""); + btnRechercheIndex.setEnabled(false); + btnRechercheIndex.setIcon(new ImageIcon(create.class.getResource("/resources/rechercheindex.png"))); + add(btnRechercheIndex); + + btnRechercheContenuExact = new JButton(""); + btnRechercheContenuExact.setEnabled(false); + btnRechercheContenuExact.setIcon(new ImageIcon(create.class.getResource("/resources/recherchecontenu.png"))); + add(btnRechercheContenuExact); + + btnRechercheVoisin = new JButton(""); + btnRechercheVoisin.setEnabled(false); + btnRechercheVoisin.setIcon(new ImageIcon(create.class.getResource("/resources/recherchecontenuplusprochevoisin.png"))); + add(btnRechercheVoisin); + } + + + + +} diff --git a/src/list/listeEvalNameNode.java b/src/list/listeEvalNameNode.java new file mode 100644 index 0000000..8eb5340 --- /dev/null +++ b/src/list/listeEvalNameNode.java @@ -0,0 +1,21 @@ +package list; + +import cXML.node; + +public class listeEvalNameNode { + + /** + * Les nodes ci-dessous peuvent avoir l'attribut evalNameNode. + * @param nod + * @return + */ + public static boolean isNodeEvalNameNode(node nod) { + + if(nod.getNomElt().contains("meta:")) return true; + if(nod.getNomElt().contains("dc:")) return true; + if(nod.getNomElt().contains("text:")) return true; + + return false; + } + +} diff --git a/src/list/listeNodeAnalyseWriter.java b/src/list/listeNodeAnalyseWriter.java index 971fa3c..af81da7 100644 --- a/src/list/listeNodeAnalyseWriter.java +++ b/src/list/listeNodeAnalyseWriter.java @@ -2,10 +2,11 @@ package list; public class listeNodeAnalyseWriter { -public listeNodeAnalyseWriter() { - - - } + /** + * Liste des node de l'application analyseWriter. + * @param nameNode + * @return + */ public static boolean isNodeAnalyseWriter(String nameNode) { if(nameNode.equals("fichier")) return true; diff --git a/src/list/listeNodeFormatageDirectDeWriter.java b/src/list/listeNodeFormatageDirectDeWriter.java index 286f223..58463f7 100644 --- a/src/list/listeNodeFormatageDirectDeWriter.java +++ b/src/list/listeNodeFormatageDirectDeWriter.java @@ -6,7 +6,12 @@ import java.util.regex.Pattern; import cXML.node; public class listeNodeFormatageDirectDeWriter { - + /** + * La liste des nodes qui peuvent avoir un formatage direct (pour évaluation uniquement avec le code évaluateur ‼.
    + * ont comme parent le node "style:paragraph" et comme valeur de l'attribut "style:name" la lettre P ou T suivi d'un nombre.
    + * @param nod + * @return + */ public static boolean isFormatageDirect(node nod) { //** Si le nom du style est P1, P2, ...Pxx ou T1, T2, ..., Txx alors retourn true. diff --git a/src/list/listeRechercheParAnchorPageNumber.java b/src/list/listeRechercheParAnchorPageNumber.java new file mode 100644 index 0000000..9e7cb6b --- /dev/null +++ b/src/list/listeRechercheParAnchorPageNumber.java @@ -0,0 +1,13 @@ +package list; + +import cXML.node; + +public class listeRechercheParAnchorPageNumber { + + + public static boolean isRechercheParAnchorPageNumber(node nod) { + if(nod.getNomElt().equals("draw:frame")) return true; + return false; + } + +} diff --git a/src/resources/recherchecontenuplusprochevoisin.png b/src/resources/recherchecontenuplusprochevoisin.png index df28f34..2541188 100644 Binary files a/src/resources/recherchecontenuplusprochevoisin.png and b/src/resources/recherchecontenuplusprochevoisin.png differ diff --git a/src/resources/recherchecontenuplusprochevoisinmini.png b/src/resources/recherchecontenuplusprochevoisinmini.png index df28f34..d82950f 100644 Binary files a/src/resources/recherchecontenuplusprochevoisinmini.png and b/src/resources/recherchecontenuplusprochevoisinmini.png differ