diff --git a/.classpath b/.classpath index 2775852..b2cd8c0 100644 --- a/.classpath +++ b/.classpath @@ -2,6 +2,7 @@ + diff --git a/analyseWriter.jar b/analyseWriter.jar index 01a7a55..25c06a3 100644 Binary files a/analyseWriter.jar and b/analyseWriter.jar differ diff --git a/bin/.gitignore b/bin/.gitignore index 16f90ab..f13ae4e 100644 --- a/bin/.gitignore +++ b/bin/.gitignore @@ -1 +1 @@ -/MEPTL/ +/app/ diff --git a/bin/MEPTL/commandes.class b/bin/MEPTL/commandes.class index bc32470..8c28b59 100644 Binary files a/bin/MEPTL/commandes.class and b/bin/MEPTL/commandes.class differ diff --git a/bin/about.png b/bin/about.png new file mode 100644 index 0000000..e5984f1 Binary files /dev/null and b/bin/about.png differ diff --git a/bin/accueil.png b/bin/accueil.png new file mode 100644 index 0000000..cedf350 Binary files /dev/null and b/bin/accueil.png differ diff --git a/bin/accueill.svg b/bin/accueill.svg new file mode 100644 index 0000000..357f52c --- /dev/null +++ b/bin/accueill.svg @@ -0,0 +1,296 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + analyseWriter + + + + + + + + + + + + + + + + diff --git a/bin/apropos.png b/bin/apropos.png new file mode 100644 index 0000000..cb3efb2 Binary files /dev/null and b/bin/apropos.png differ diff --git a/bin/apropos.svg b/bin/apropos.svg new file mode 100644 index 0000000..0f5cb99 --- /dev/null +++ b/bin/apropos.svg @@ -0,0 +1,147 @@ + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/bin/attribut.png b/bin/attribut.png new file mode 100644 index 0000000..2e69955 Binary files /dev/null and b/bin/attribut.png differ diff --git a/bin/attribut.svg b/bin/attribut.svg new file mode 100644 index 0000000..070cd9c --- /dev/null +++ b/bin/attribut.svg @@ -0,0 +1,261 @@ + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/bin/biblio.png b/bin/biblio.png new file mode 100644 index 0000000..7891085 Binary files /dev/null and b/bin/biblio.png differ diff --git a/bin/biblio.svg b/bin/biblio.svg new file mode 100644 index 0000000..e46f311 --- /dev/null +++ b/bin/biblio.svg @@ -0,0 +1,151 @@ + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + diff --git a/bin/configuration.png b/bin/configuration.png new file mode 100644 index 0000000..18a0bd0 Binary files /dev/null and b/bin/configuration.png differ diff --git a/bin/configuration.svg b/bin/configuration.svg new file mode 100644 index 0000000..a9fc645 --- /dev/null +++ b/bin/configuration.svg @@ -0,0 +1,256 @@ + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/bin/content.png b/bin/content.png new file mode 100644 index 0000000..7254849 Binary files /dev/null and b/bin/content.png differ diff --git a/bin/content.svg b/bin/content.svg new file mode 100644 index 0000000..7401ae4 --- /dev/null +++ b/bin/content.svg @@ -0,0 +1,111 @@ + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + diff --git a/bin/copy.png b/bin/copy.png new file mode 100644 index 0000000..ce5258f Binary files /dev/null and b/bin/copy.png differ diff --git a/bin/cut.png b/bin/cut.png new file mode 100644 index 0000000..1136175 Binary files /dev/null and b/bin/cut.png differ diff --git a/bin/evaluate.png b/bin/evaluate.png new file mode 100644 index 0000000..e7422ad Binary files /dev/null and b/bin/evaluate.png differ diff --git a/bin/evaluate.svg b/bin/evaluate.svg new file mode 100644 index 0000000..cb28ba9 --- /dev/null +++ b/bin/evaluate.svg @@ -0,0 +1,99 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + diff --git a/bin/evalwriter.ico b/bin/evalwriter.ico new file mode 100644 index 0000000..7e656a6 Binary files /dev/null and b/bin/evalwriter.ico differ diff --git a/bin/evalwriter.png b/bin/evalwriter.png new file mode 100644 index 0000000..50505dc Binary files /dev/null and b/bin/evalwriter.png differ diff --git a/bin/evalwriter.svg b/bin/evalwriter.svg new file mode 100644 index 0000000..d539367 --- /dev/null +++ b/bin/evalwriter.svg @@ -0,0 +1,209 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/bin/exit.png b/bin/exit.png new file mode 100644 index 0000000..589043f Binary files /dev/null and b/bin/exit.png differ diff --git a/bin/feedback.png b/bin/feedback.png new file mode 100644 index 0000000..583d77d Binary files /dev/null and b/bin/feedback.png differ diff --git a/bin/feedback.svg b/bin/feedback.svg new file mode 100644 index 0000000..9951e95 --- /dev/null +++ b/bin/feedback.svg @@ -0,0 +1,152 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + diff --git a/bin/fichiergestion.png b/bin/fichiergestion.png new file mode 100644 index 0000000..e4b3d4c Binary files /dev/null and b/bin/fichiergestion.png differ diff --git a/bin/fichiergestion.svg b/bin/fichiergestion.svg new file mode 100644 index 0000000..cc5cb95 --- /dev/null +++ b/bin/fichiergestion.svg @@ -0,0 +1,220 @@ + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/bin/indexfigure.png b/bin/indexfigure.png new file mode 100644 index 0000000..aa8a3a9 Binary files /dev/null and b/bin/indexfigure.png differ diff --git a/bin/indexfigure.svg b/bin/indexfigure.svg new file mode 100644 index 0000000..0d3b07d --- /dev/null +++ b/bin/indexfigure.svg @@ -0,0 +1,187 @@ + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/bin/indexmatiere.png b/bin/indexmatiere.png new file mode 100644 index 0000000..f6f893d Binary files /dev/null and b/bin/indexmatiere.png differ diff --git a/bin/indexmatiere.svg b/bin/indexmatiere.svg new file mode 100644 index 0000000..fe545d5 --- /dev/null +++ b/bin/indexmatiere.svg @@ -0,0 +1,179 @@ + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + diff --git a/bin/meta.png b/bin/meta.png new file mode 100644 index 0000000..5af1828 Binary files /dev/null and b/bin/meta.png differ diff --git a/bin/meta.svg b/bin/meta.svg new file mode 100644 index 0000000..28349f2 --- /dev/null +++ b/bin/meta.svg @@ -0,0 +1,137 @@ + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + diff --git a/bin/new.png b/bin/new.png new file mode 100644 index 0000000..a149659 Binary files /dev/null and b/bin/new.png differ diff --git a/bin/numerotationchapitre.png b/bin/numerotationchapitre.png new file mode 100644 index 0000000..dd329cf Binary files /dev/null and b/bin/numerotationchapitre.png differ diff --git a/bin/numerotationchapitre.svg b/bin/numerotationchapitre.svg new file mode 100644 index 0000000..bc9a561 --- /dev/null +++ b/bin/numerotationchapitre.svg @@ -0,0 +1,173 @@ + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + 1 + 1.1 + + + + diff --git a/bin/objet.png b/bin/objet.png new file mode 100644 index 0000000..da3c331 Binary files /dev/null and b/bin/objet.png differ diff --git a/bin/objet.svg b/bin/objet.svg new file mode 100644 index 0000000..aee0e51 --- /dev/null +++ b/bin/objet.svg @@ -0,0 +1,138 @@ + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + diff --git a/bin/open.png b/bin/open.png new file mode 100644 index 0000000..7715f9e Binary files /dev/null and b/bin/open.png differ diff --git a/bin/paragraphe_source.svg b/bin/paragraphe_source.svg new file mode 100644 index 0000000..786a6b5 --- /dev/null +++ b/bin/paragraphe_source.svg @@ -0,0 +1,71 @@ + + + + + + + + + + + image/svg+xml + + + + + + + + + diff --git a/bin/paste.png b/bin/paste.png new file mode 100644 index 0000000..69e6b34 Binary files /dev/null and b/bin/paste.png differ diff --git a/bin/property.png b/bin/property.png new file mode 100644 index 0000000..83df310 Binary files /dev/null and b/bin/property.png differ diff --git a/bin/property.svg b/bin/property.svg new file mode 100644 index 0000000..9782eeb --- /dev/null +++ b/bin/property.svg @@ -0,0 +1,93 @@ + + + + + + + + image/svg+xml + + + + + + + + + + + + + diff --git a/bin/redo.png b/bin/redo.png new file mode 100644 index 0000000..ae64b47 Binary files /dev/null and b/bin/redo.png differ diff --git a/bin/save.png b/bin/save.png new file mode 100644 index 0000000..df138e9 Binary files /dev/null and b/bin/save.png differ diff --git a/bin/save_as.png b/bin/save_as.png new file mode 100644 index 0000000..93b9349 Binary files /dev/null and b/bin/save_as.png differ diff --git a/bin/section.png b/bin/section.png new file mode 100644 index 0000000..2c4465d Binary files /dev/null and b/bin/section.png differ diff --git a/bin/section.svg b/bin/section.svg new file mode 100644 index 0000000..6d0606a --- /dev/null +++ b/bin/section.svg @@ -0,0 +1,179 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/bin/sequence.png b/bin/sequence.png new file mode 100644 index 0000000..653afd0 Binary files /dev/null and b/bin/sequence.png differ diff --git a/bin/sequence.svg b/bin/sequence.svg new file mode 100644 index 0000000..4f37b38 --- /dev/null +++ b/bin/sequence.svg @@ -0,0 +1,181 @@ + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + diff --git a/bin/structurepage.png b/bin/structurepage.png new file mode 100644 index 0000000..50d7108 Binary files /dev/null and b/bin/structurepage.png differ diff --git a/bin/structurepage.svg b/bin/structurepage.svg new file mode 100644 index 0000000..a28c8d8 --- /dev/null +++ b/bin/structurepage.svg @@ -0,0 +1,258 @@ + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/bin/stylepage.png b/bin/stylepage.png new file mode 100644 index 0000000..1b4a01c Binary files /dev/null and b/bin/stylepage.png differ diff --git a/bin/stylepage.svg b/bin/stylepage.svg new file mode 100644 index 0000000..ae3986e --- /dev/null +++ b/bin/stylepage.svg @@ -0,0 +1,158 @@ + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + diff --git a/bin/styleparagraphe.png b/bin/styleparagraphe.png new file mode 100644 index 0000000..7abd9d2 Binary files /dev/null and b/bin/styleparagraphe.png differ diff --git a/bin/styleparagraphe.svg b/bin/styleparagraphe.svg new file mode 100644 index 0000000..cd797a0 --- /dev/null +++ b/bin/styleparagraphe.svg @@ -0,0 +1,135 @@ + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + diff --git a/bin/undo.png b/bin/undo.png new file mode 100644 index 0000000..9d54abb Binary files /dev/null and b/bin/undo.png differ diff --git a/icons/about.png b/icons/about.png new file mode 100644 index 0000000..e5984f1 Binary files /dev/null and b/icons/about.png differ diff --git a/icons/accueil.png b/icons/accueil.png new file mode 100644 index 0000000..cedf350 Binary files /dev/null and b/icons/accueil.png differ diff --git a/icons/accueill.svg b/icons/accueill.svg new file mode 100644 index 0000000..357f52c --- /dev/null +++ b/icons/accueill.svg @@ -0,0 +1,296 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + analyseWriter + + + + + + + + + + + + + + + + diff --git a/icons/apropos.png b/icons/apropos.png new file mode 100644 index 0000000..cb3efb2 Binary files /dev/null and b/icons/apropos.png differ diff --git a/icons/apropos.svg b/icons/apropos.svg new file mode 100644 index 0000000..0f5cb99 --- /dev/null +++ b/icons/apropos.svg @@ -0,0 +1,147 @@ + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/icons/attribut.png b/icons/attribut.png new file mode 100644 index 0000000..2e69955 Binary files /dev/null and b/icons/attribut.png differ diff --git a/icons/attribut.svg b/icons/attribut.svg new file mode 100644 index 0000000..070cd9c --- /dev/null +++ b/icons/attribut.svg @@ -0,0 +1,261 @@ + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/icons/biblio.png b/icons/biblio.png new file mode 100644 index 0000000..7891085 Binary files /dev/null and b/icons/biblio.png differ diff --git a/icons/biblio.svg b/icons/biblio.svg new file mode 100644 index 0000000..e46f311 --- /dev/null +++ b/icons/biblio.svg @@ -0,0 +1,151 @@ + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + diff --git a/icons/configuration.png b/icons/configuration.png new file mode 100644 index 0000000..18a0bd0 Binary files /dev/null and b/icons/configuration.png differ diff --git a/icons/configuration.svg b/icons/configuration.svg new file mode 100644 index 0000000..a9fc645 --- /dev/null +++ b/icons/configuration.svg @@ -0,0 +1,256 @@ + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/icons/content.png b/icons/content.png new file mode 100644 index 0000000..7254849 Binary files /dev/null and b/icons/content.png differ diff --git a/icons/content.svg b/icons/content.svg new file mode 100644 index 0000000..7401ae4 --- /dev/null +++ b/icons/content.svg @@ -0,0 +1,111 @@ + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + diff --git a/icons/copy.png b/icons/copy.png new file mode 100644 index 0000000..ce5258f Binary files /dev/null and b/icons/copy.png differ diff --git a/icons/cut.png b/icons/cut.png new file mode 100644 index 0000000..1136175 Binary files /dev/null and b/icons/cut.png differ diff --git a/icons/evaluate.png b/icons/evaluate.png new file mode 100644 index 0000000..e7422ad Binary files /dev/null and b/icons/evaluate.png differ diff --git a/icons/evaluate.svg b/icons/evaluate.svg new file mode 100644 index 0000000..cb28ba9 --- /dev/null +++ b/icons/evaluate.svg @@ -0,0 +1,99 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + diff --git a/icons/evalwriter.ico b/icons/evalwriter.ico new file mode 100644 index 0000000..7e656a6 Binary files /dev/null and b/icons/evalwriter.ico differ diff --git a/icons/evalwriter.png b/icons/evalwriter.png new file mode 100644 index 0000000..50505dc Binary files /dev/null and b/icons/evalwriter.png differ diff --git a/icons/evalwriter.svg b/icons/evalwriter.svg new file mode 100644 index 0000000..d539367 --- /dev/null +++ b/icons/evalwriter.svg @@ -0,0 +1,209 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/icons/exit.png b/icons/exit.png new file mode 100644 index 0000000..589043f Binary files /dev/null and b/icons/exit.png differ diff --git a/icons/feedback.png b/icons/feedback.png new file mode 100644 index 0000000..583d77d Binary files /dev/null and b/icons/feedback.png differ diff --git a/icons/feedback.svg b/icons/feedback.svg new file mode 100644 index 0000000..9951e95 --- /dev/null +++ b/icons/feedback.svg @@ -0,0 +1,152 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + diff --git a/icons/fichiergestion.png b/icons/fichiergestion.png new file mode 100644 index 0000000..e4b3d4c Binary files /dev/null and b/icons/fichiergestion.png differ diff --git a/icons/fichiergestion.svg b/icons/fichiergestion.svg new file mode 100644 index 0000000..cc5cb95 --- /dev/null +++ b/icons/fichiergestion.svg @@ -0,0 +1,220 @@ + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/icons/indexfigure.png b/icons/indexfigure.png new file mode 100644 index 0000000..aa8a3a9 Binary files /dev/null and b/icons/indexfigure.png differ diff --git a/icons/indexfigure.svg b/icons/indexfigure.svg new file mode 100644 index 0000000..0d3b07d --- /dev/null +++ b/icons/indexfigure.svg @@ -0,0 +1,187 @@ + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/icons/indexmatiere.png b/icons/indexmatiere.png new file mode 100644 index 0000000..f6f893d Binary files /dev/null and b/icons/indexmatiere.png differ diff --git a/icons/indexmatiere.svg b/icons/indexmatiere.svg new file mode 100644 index 0000000..fe545d5 --- /dev/null +++ b/icons/indexmatiere.svg @@ -0,0 +1,179 @@ + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + diff --git a/icons/meta.png b/icons/meta.png new file mode 100644 index 0000000..5af1828 Binary files /dev/null and b/icons/meta.png differ diff --git a/icons/meta.svg b/icons/meta.svg new file mode 100644 index 0000000..28349f2 --- /dev/null +++ b/icons/meta.svg @@ -0,0 +1,137 @@ + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + diff --git a/icons/new.png b/icons/new.png new file mode 100644 index 0000000..a149659 Binary files /dev/null and b/icons/new.png differ diff --git a/icons/numerotationchapitre.png b/icons/numerotationchapitre.png new file mode 100644 index 0000000..dd329cf Binary files /dev/null and b/icons/numerotationchapitre.png differ diff --git a/icons/numerotationchapitre.svg b/icons/numerotationchapitre.svg new file mode 100644 index 0000000..bc9a561 --- /dev/null +++ b/icons/numerotationchapitre.svg @@ -0,0 +1,173 @@ + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + 1 + 1.1 + + + + diff --git a/icons/objet.png b/icons/objet.png new file mode 100644 index 0000000..da3c331 Binary files /dev/null and b/icons/objet.png differ diff --git a/icons/objet.svg b/icons/objet.svg new file mode 100644 index 0000000..aee0e51 --- /dev/null +++ b/icons/objet.svg @@ -0,0 +1,138 @@ + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + diff --git a/icons/open.png b/icons/open.png new file mode 100644 index 0000000..7715f9e Binary files /dev/null and b/icons/open.png differ diff --git a/icons/paragraphe_source.svg b/icons/paragraphe_source.svg new file mode 100644 index 0000000..786a6b5 --- /dev/null +++ b/icons/paragraphe_source.svg @@ -0,0 +1,71 @@ + + + + + + + + + + + image/svg+xml + + + + + + + + + diff --git a/icons/paste.png b/icons/paste.png new file mode 100644 index 0000000..69e6b34 Binary files /dev/null and b/icons/paste.png differ diff --git a/icons/property.png b/icons/property.png new file mode 100644 index 0000000..83df310 Binary files /dev/null and b/icons/property.png differ diff --git a/icons/property.svg b/icons/property.svg new file mode 100644 index 0000000..9782eeb --- /dev/null +++ b/icons/property.svg @@ -0,0 +1,93 @@ + + + + + + + + image/svg+xml + + + + + + + + + + + + + diff --git a/icons/redo.png b/icons/redo.png new file mode 100644 index 0000000..ae64b47 Binary files /dev/null and b/icons/redo.png differ diff --git a/icons/save.png b/icons/save.png new file mode 100644 index 0000000..df138e9 Binary files /dev/null and b/icons/save.png differ diff --git a/icons/save_as.png b/icons/save_as.png new file mode 100644 index 0000000..93b9349 Binary files /dev/null and b/icons/save_as.png differ diff --git a/icons/section.png b/icons/section.png new file mode 100644 index 0000000..2c4465d Binary files /dev/null and b/icons/section.png differ diff --git a/icons/section.svg b/icons/section.svg new file mode 100644 index 0000000..6d0606a --- /dev/null +++ b/icons/section.svg @@ -0,0 +1,179 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/icons/sequence.png b/icons/sequence.png new file mode 100644 index 0000000..653afd0 Binary files /dev/null and b/icons/sequence.png differ diff --git a/icons/sequence.svg b/icons/sequence.svg new file mode 100644 index 0000000..4f37b38 --- /dev/null +++ b/icons/sequence.svg @@ -0,0 +1,181 @@ + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + diff --git a/icons/structurepage.png b/icons/structurepage.png new file mode 100644 index 0000000..50d7108 Binary files /dev/null and b/icons/structurepage.png differ diff --git a/icons/structurepage.svg b/icons/structurepage.svg new file mode 100644 index 0000000..a28c8d8 --- /dev/null +++ b/icons/structurepage.svg @@ -0,0 +1,258 @@ + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/icons/stylepage.png b/icons/stylepage.png new file mode 100644 index 0000000..1b4a01c Binary files /dev/null and b/icons/stylepage.png differ diff --git a/icons/stylepage.svg b/icons/stylepage.svg new file mode 100644 index 0000000..ae3986e --- /dev/null +++ b/icons/stylepage.svg @@ -0,0 +1,158 @@ + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + diff --git a/icons/styleparagraphe.png b/icons/styleparagraphe.png new file mode 100644 index 0000000..7abd9d2 Binary files /dev/null and b/icons/styleparagraphe.png differ diff --git a/icons/styleparagraphe.svg b/icons/styleparagraphe.svg new file mode 100644 index 0000000..cd797a0 --- /dev/null +++ b/icons/styleparagraphe.svg @@ -0,0 +1,135 @@ + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + diff --git a/icons/undo.png b/icons/undo.png new file mode 100644 index 0000000..9d54abb Binary files /dev/null and b/icons/undo.png differ diff --git a/src/MEPTL/commandes.java b/src/MEPTL/commandes.java index 8875bd2..c4f6c0e 100644 --- a/src/MEPTL/commandes.java +++ b/src/MEPTL/commandes.java @@ -9,6 +9,7 @@ import java.io.Reader; import java.util.regex.Matcher; import java.util.regex.Pattern; +import cXML.*; import cXML.Run.UserStatus; @@ -65,6 +66,12 @@ public class commandes { public static boolean MAJFichierAnalyse = false; public static String hash ="0"; + //** Variable pour l'interface du logiciel + public static String Titre = "analyseWriter"; + public static String filename=""; + public static boolean fichierValide = false; + public static node sujet = null; + /** * * @param args : table des arguments diff --git a/src/app/filechooser.java b/src/app/filechooser.java new file mode 100644 index 0000000..430c35d --- /dev/null +++ b/src/app/filechooser.java @@ -0,0 +1,133 @@ +package app; + +import java.awt.Dimension; +import java.io.BufferedReader; +import java.io.File; +import java.io.FileInputStream; +import java.io.FileNotFoundException; +import java.io.IOException; +import java.io.InputStreamReader; +import java.io.UnsupportedEncodingException; + +import javax.swing.JFileChooser; +import javax.swing.JOptionPane; +import javax.swing.filechooser.FileNameExtensionFilter; + +import MEPTL.commandes; +import cXML.Run; +import cXML.node; + + + +@SuppressWarnings("serial") +public class filechooser extends JFileChooser{ + + + public filechooser() { + + //addChoosableFileFilter(new FileNameExtensionFilter("ODF Writer", "odt")); + addChoosableFileFilter(new FileNameExtensionFilter("Fichier d'évaluation", "xml")); + FileNameExtensionFilter filter = new FileNameExtensionFilter("ODF Writer", "odt"); + setFileFilter(filter); + setFileFilter(getAcceptAllFileFilter()); + + + + if(!commandes.filename.isEmpty()) { + File file = new File(commandes.path ); //+ "\\" + utils.filename + ".xml" + setCurrentDirectory(file); + } + + setPreferredSize(new Dimension(550, 420)); + + int response = showOpenDialog(null); + if(response == JFileChooser.APPROVE_OPTION) { + + File file = new File(getSelectedFile().getAbsolutePath()); + System.out.println(file.getPath() + "\n" + file.getName()); + String ext = file.getName().substring(file.getName().lastIndexOf(".")); + + if(ext.equals(".odt")){ + openFileODF(file); + }else { + openFileXML(file); + } + + System.out.println("path " + commandes.path); + System.out.println("Nom du premier node " + commandes.sujet.getNomElt()); + + } + } + + + private void openFileODF(File file) { +// Run analize = new Run(); +// commandes.path = file.getPath().substring(0,file.getPath().lastIndexOf("\\")); +// commandes.filename = file.getName().substring(0,file.getName().lastIndexOf(".")); +// +// commandes.sujet = analize.RunWithOneFileODT(file); +// try { +// utils.sujet = utils.LectureFichierEtudiantSousFormeDeNode(utils.sujet,analize,0,true); +// } catch (IOException e1) { +// e1.printStackTrace(); +// } +// utils.sujet = utils.nodePourEcritureSujet(utils.sujet); +// +// if(!utils.fichierSujetValide()) { +// JOptionPane.showMessageDialog(null, "Le fichier n'est pas valide."); +// }else { +// utils.setTree(); +// } + } + + + private void openFileXML(File file) { + commandes.path = file.getPath().substring(0,file.getPath().lastIndexOf("\\")); + commandes.filename = file.getName().substring(0,file.getName().lastIndexOf(".")); + + BufferedReader br; + try { + br = new BufferedReader( + new InputStreamReader( + new FileInputStream(file.getAbsoluteFile()), "UTF-8")); + String line; + String targetString = ""; + while ((line = br.readLine()) != null) { + targetString = targetString + line; + } + + //node.node2(targetString); + commandes.sujet = new node(targetString.replace("\t","").replace("\r", "").replace("\n", "")); + + + //Run.ecritureNodeEnXML(A, filename, path); + commandes.sujet = Run.parentAndLevel(commandes.sujet, commandes.sujet.getNomElt(), 0); + + + if(!fichierSujetValide()) JOptionPane.showMessageDialog(null, "Le fichier n'est pas valide."); + + + } catch (UnsupportedEncodingException e1) { + e1.printStackTrace(); + } catch (FileNotFoundException e1) { + e1.printStackTrace(); + } catch (Exception e) { + } + + } + + + public static boolean fichierSujetValide () { + if(commandes.sujet==null) return false; + if(!commandes.sujet.getNomElt().equals("fichier")) return false; + if(commandes.sujet.getAttributs().get("metaSujet")==null) return false; + if(!commandes.sujet.retourneEnfantsByNameExist("style:page")) return false; + if(!commandes.sujet.retourneEnfantsByNameExist("style:paragraphe")) return false; + if(!commandes.sujet.retourneEnfantsByNameExist("structurepage")) return false; + + commandes.fichierValide = true; + return true; + } + + +} diff --git a/src/app/mainApp.java b/src/app/mainApp.java new file mode 100644 index 0000000..ec1ecb1 --- /dev/null +++ b/src/app/mainApp.java @@ -0,0 +1,130 @@ +package app; + +import java.awt.EventQueue; +import java.awt.Font; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; + +import javax.swing.ImageIcon; +import javax.swing.JButton; +import javax.swing.JFrame; +import javax.swing.JLabel; +import javax.swing.SwingConstants; + +import MEPTL.commandes; + + +import java.awt.Color; + +@SuppressWarnings("serial") +public class mainApp extends JFrame implements ActionListener { + + //public static final String LOOK_AND_FEEL_1 = "javax.swing.plaf.nimbus.NimbusLookAndFeel"; + + private JFrame frmEvalwriter; + public static JFrame Creer ; + + JButton btnCreate; + JButton actCharge; + /** + * Launch the application. + */ + public static void main(String[] args) { + EventQueue.invokeLater(new Runnable() { + public void run() { + try { + mainApp window = new mainApp(); + window.frmEvalwriter.setVisible(true); + } catch (Exception e) { + e.printStackTrace(); + } + } + }); + } + + /** + * Create the application. + */ + public mainApp() { + initialize(); + } + + /** + * Initialize the contents of the frame. + */ + private void initialize() { + + + frmEvalwriter = new JFrame(); + frmEvalwriter.setResizable(false); +// frmEvalwriter.setTitle(utils.Titre); + frmEvalwriter.setBounds(100, 100, 417, 265); + frmEvalwriter.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); + frmEvalwriter.getContentPane().setLayout(null); + ImageIcon img = new ImageIcon(getClass().getResource("/evalwriter.png") ); + frmEvalwriter.setIconImage(img.getImage()); + + btnCreate = new JButton("Créer ou modifier un fichier d'analyse"); + btnCreate.setFont(new Font("Tahoma", Font.PLAIN, 14)); + btnCreate.addActionListener(this); + + btnCreate.setBounds(34, 152, 338, 50); + frmEvalwriter.getContentPane().add(btnCreate); + + actCharge = new JButton("Charge le fichier d'analyse"); + actCharge.setBackground(Color.PINK); + actCharge.addActionListener(this); +// actCharge.addActionListener(new ActionListener() { +// public void actionPerformed(ActionEvent arg0) { +// System.out.println( "Open1" ); +// new filechooser(); +// if(commandes.fichierValide) { +// System.out.println("Le chargement de la nouvelle structure est réussi."); +//// tree.setModel(utils.getTree().getModel()) ; +//// textNodeSelect.setText("Le chargement de la nouvelle structure est réussi."); +//// create.this.MAJToolBar(); +// } +// System.out.println( "Open2Close" ); +// frmEvalwriter.dispose(); +// } +// }); + actCharge.setFont(new Font("Tahoma", Font.PLAIN, 14)); + actCharge.setBounds(34, 96, 338, 45); + frmEvalwriter.getContentPane().add(actCharge); + + JLabel lblNewLabel = new JLabel(); + ImageIcon img2 = new ImageIcon(getClass().getResource("/accueil.png") ); + lblNewLabel.setIcon(img2); + lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER); + lblNewLabel.setFont(new Font("Pacifico", Font.PLAIN, 26)); + lblNewLabel.setBounds(10, 11, 391, 74); + frmEvalwriter.getContentPane().add(lblNewLabel); + } + + + @Override + public void actionPerformed(ActionEvent e) { + if(e.getSource()==btnCreate) { +// Creer = new create(); + frmEvalwriter.dispose(); + } + + if(e.getSource()==actCharge) { + System.out.println( "Open1" ); + new filechooser(); + if(commandes.fichierValide) { + System.out.println("Le chargement de la nouvelle structure est réussi."); +// tree.setModel(utils.getTree().getModel()) ; +// textNodeSelect.setText("Le chargement de la nouvelle structure est réussi."); +// create.this.MAJToolBar(); + } + System.out.println( "Open2Close" ); + frmEvalwriter.dispose(); + } + } + +} + + + + diff --git a/src/app/package-info.java b/src/app/package-info.java new file mode 100644 index 0000000..3405f51 --- /dev/null +++ b/src/app/package-info.java @@ -0,0 +1 @@ +package app; \ No newline at end of file