This commit is contained in:
pablo rodriguez 2023-06-22 13:51:14 +02:00
parent 9b7bf85f68
commit 601dad6dfc
13 changed files with 239 additions and 12 deletions

View File

@ -12,6 +12,6 @@
<classpathentry kind="lib" path="C:/Users/pabr6/git/analyseWriter/MEPTL/miglayout15-swing.jar"/> <classpathentry kind="lib" path="C:/Users/pabr6/git/analyseWriter/MEPTL/miglayout15-swing.jar"/>
<classpathentry kind="lib" path="jgoodies-forms-1.8.0.jar" sourcepath="jgoodies-forms-1.8.0-sources.jar"/> <classpathentry kind="lib" path="jgoodies-forms-1.8.0.jar" sourcepath="jgoodies-forms-1.8.0-sources.jar"/>
<classpathentry kind="lib" path="C:/Users/pabr6/eclipse-workspace/Exportation documentation analyseWriter/plugins/documentation.analyseWriter_1.0.0.202212032022.jar"/> <classpathentry kind="lib" path="C:/Users/pabr6/eclipse-workspace/Exportation documentation analyseWriter/plugins/documentation.analyseWriter_1.0.0.202212032022.jar"/>
<classpathentry kind="lib" path="C:/Users/pabr6/eclipse-workspace/cXML.jar"/> <classpathentry kind="lib" path="C:/Users/pabr6/eclipse-workspace/cXML.jar" sourcepath="/cXML"/>
<classpathentry kind="output" path="bin"/> <classpathentry kind="output" path="bin"/>
</classpath> </classpath>

File diff suppressed because one or more lines are too long

167
bin/.gitignore vendored
View File

@ -6,7 +6,174 @@
/fenetres/ /fenetres/
/list/ /list/
/menucontextuel/ /menucontextuel/
/open.svg
/open2.png
/openmax.png
/openmini.png
/ordreparagraphe.svg
/ou.png
/ouenviron.png
/ouenviron.svg
/ouenvironmini.png
/ouenvironsimilitude.png
/ouenvironsimilitude.svg
/ouenvironsimilitudemini.png
/oumini.png
/oustrict.png
/oustrict.svg
/oustrictmini.png
/oustrictseps.png
/oustrictseps.svg
/oustrictsepsmini.png
/paragraphe_source.svg
/paste.png
/piedpagenon.png
/piedpagenon.svg
/piedpagenonmini.png
/piedpageoui.png
/piedpageoui.svg
/piedpageouimini.png
/poids.svg
/poidsmini.png
/premierenfant.png
/premierenfant.svg
/premierenfantmini.png
/property.png
/property.svg
/quitteEvaluation.png
/quitteEvaluation.svg
/quitteEvaluationmini.png
/recherche.png
/recherche.svg
/rechercheDoublon.png
/rechercheDoublon.svg
/rechercheDoublonmini.png
/rechercheancragepage.png
/rechercheancragepage.svg
/rechercheancragepagemini.png
/recherchecontenu.png
/recherchecontenu.svg
/recherchecontenumini.png
/recherchecontenuplusprochevoisin.png
/recherchecontenuplusprochevoisin.svg
/recherchecontenuplusprochevoisinmini.png
/rechercheindex.png
/rechercheindex.svg
/rechercheindexmini.png
/recherchemini.png
/redo.png
/removeEvaluation.svg
/removeEvaluaton.png
/removeEvaluatonmini.png
/renommeEvaluation.svg
/renommeEvaluaton.png
/renommeEvaluatonmini.png
/renommeFichierAnalyse.svg
/saut.svg
/sautmini.png
/sautmultiple.png
/sautmultiple.svg
/sautmultiplemini.png
/sautpageColonne.svg
/sautpagecolonne.png
/sautpagecolonnemini.png
/sauvegardeHistoriqueEvaluation.svg
/sauvegardehistoriqueevaluation.png
/sauvegardehistoriqueevaluationmini.png
/save.png
/save.svg
/saveEvaluation.png
/saveEvaluation.svg
/saveEvaluationmini.png
/saveZipEvaluation.png
/saveZipEvaluation.svg
/saveZipEvaluationmini.png
/save_as.png
/saveas.svg
/saveasmini.png
/savemini.png
/savepreference.png
/savepreference.svg
/savepreferencemini.png
/section.png
/section.svg
/sequence.png
/sequence.svg
/setting.png
/setting.svg
/settingmini.png
/similitude.png
/similitude.svg
/similitudemini.png
/sousmenuArbre/ /sousmenuArbre/
/sousmenuEvaluation/ /sousmenuEvaluation/
/sousmenuRecherche/ /sousmenuRecherche/
/sousmenuRepresentation/ /sousmenuRepresentation/
/structurepage.png
/structurepage.svg
/stylepage.png
/stylepage.svg
/styleparagraphe.png
/styleparagraphe.svg
/supprime.svg
/supprimemini.png
/textclean.png
/textclean.svg
/textcleanmini.png
/titre.svg
/titremini.png
/totalpoint.png
/totalpoint.svg
/totalpointmini.png
/totalpointnode.png
/totalpointnode.svg
/totalpointnodemini.png
/touslesnodes.png
/touslesnodes.svg
/touslesnodesmini.png
/toutext.png
/toutext.svg
/toutextmini.png
/traduction.png
/traduction.svg
/traductionmini.png
/treeClose.png
/treeClose.svg
/treeLeaf.png
/treeLeaf.svg
/treeOpen.png
/treeOpen.svg
/triche.png
/triche.svg
/trichemini.png
/true.png
/true.svg
/truemini.png
/tutoriel.png
/tutoriel.svg
/tutorielmini.png
/undo.png
/upnode.png
/upnode.svg
/upnodemini.png
/verifhistorique.png
/verifhistoriquemax.png
/verifhistoriquemini.png
/verifhistoriquestudent.png
/verifhistoriquestudent.svg
/verifhistoriquestudentmini.png
/versevaluate.png
/versevaluate.svg
/versevaluatemini.png
/versfichierAnalyse.png
/versfichierAnalyseModifmax.svg
/voir.svg
/voirmini.png
/what.svg
/whatmini.png
/zip.png
/zip.svg
/zipmini.png
/zipstudent.png
/zipstudent.svg
/zipstudentmini.png

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -16,7 +16,7 @@ import cXML.node;
public class recupeNodeBaseEvaluations { public class recupeNodeBaseEvaluations {
/** /**
* Récupère la base des évaluation qui se trouve indiqué par commandes.PathBaseEvaluationDefaut ou commandes.PathBaseEvaluations. * Récupère la base des évaluations qui se trouve indiqué par commandes.PathBaseEvaluationDefaut ou commandes.PathBaseEvaluations.
*/ */
public recupeNodeBaseEvaluations() { public recupeNodeBaseEvaluations() {
String directoryName = ""; String directoryName = "";

View File

@ -25,6 +25,7 @@ import javax.swing.JOptionPane;
import javax.swing.JPanel; import javax.swing.JPanel;
import javax.swing.JScrollPane; import javax.swing.JScrollPane;
import javax.swing.JSplitPane; import javax.swing.JSplitPane;
import javax.swing.JTable;
import javax.swing.JToolBar; import javax.swing.JToolBar;
import javax.swing.JTree; import javax.swing.JTree;
import javax.swing.KeyStroke; import javax.swing.KeyStroke;
@ -91,6 +92,7 @@ public final class create extends JFrame {
private static create instance; private static create instance;
public static boolean isDispose = true; public static boolean isDispose = true;
private static JLabel lblInfo = new JLabel("Fichier d'analyse"); private static JLabel lblInfo = new JLabel("Fichier d'analyse");
private static JTable table = new JTable();
/** /**
* Création de la fenêtre.</br> * Création de la fenêtre.</br>
*/ */
@ -149,6 +151,8 @@ public final class create extends JFrame {
// Construction et injection de la barre de menu // Construction et injection de la barre de menu
setJMenuBar( this.createMenuBar() ); setJMenuBar( this.createMenuBar() );
// coloration et nombre de ligne de l'arbre
tree.setBackground(new Color(255, 255, 255)); tree.setBackground(new Color(255, 255, 255));
tree.setVisibleRowCount(30); tree.setVisibleRowCount(30);
@ -187,10 +191,17 @@ public final class create extends JFrame {
JScrollPane rightScrollPane = new JScrollPane( ); JScrollPane rightScrollPane = new JScrollPane( );
// JSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, leftScrollPane, rightScrollPane );
JSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, panelLeft, rightScrollPane ); JSplitPane splitPane2 = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, rightScrollPane, table );
splitPane.setBounds(10, 10, 1364, 783); //10, 10, 1364, 783 splitPane2.setBounds(10, 10, 1364, 783);
splitPane.setDividerLocation(0.25); splitPane2.setDividerLocation(0.5);
// JSplitPane splitPane1 = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, panelLeft, rightScrollPane );
JSplitPane splitPane1 = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, panelLeft, splitPane2 );
splitPane1.setBounds(10, 10, 1364, 783); //10, 10, 1364, 783
splitPane1.setDividerLocation(0.25);
textNodeSelect.setBackground(new Color(255, 242, 155)); textNodeSelect.setBackground(new Color(255, 242, 155));
rightScrollPane.setViewportView(textNodeSelect); rightScrollPane.setViewportView(textNodeSelect);
@ -199,15 +210,18 @@ public final class create extends JFrame {
leftScrollPane.setViewportView(tree); leftScrollPane.setViewportView(tree);
tree.setFont(new Font("Tahoma", Font.PLAIN, 16)); tree.setFont(new Font("Tahoma", Font.PLAIN, 16));
getContentPane().add(splitPane, BorderLayout.CENTER); getContentPane().add(splitPane1, BorderLayout.CENTER);
panelPrincipal.setLayout(new GridLayout(1, 1, 0, 0)); panelPrincipal.setLayout(new GridLayout(1, 1, 0, 0));
panelPrincipal.add(toolBarPrincipal); panelPrincipal.add(toolBarPrincipal);
if(commandes.fichierAnalyseValide) { if(commandes.fichierAnalyseValide) {
tree.setVisible(true); tree.setVisible(true);
table.setModel(new myTableModel(commandes.sujet.retourneFirstEnfantsByName("structurepage")));
table.setVisible(true);
constructionTree(); constructionTree();
}else { }else {
tree.setVisible(false); tree.setVisible(false);
table.setVisible(false);
} }
this.setExtendedState(MAXIMIZED_BOTH); this.setExtendedState(MAXIMIZED_BOTH);
@ -618,10 +632,8 @@ public final class create extends JFrame {
root = addNodeMutable(commandes.sujet, root); root = addNodeMutable(commandes.sujet, root);
commandes.tree = new JTree(root); commandes.tree = new JTree(root);
tree.setCellRenderer(new MyTreeCellRenderer()); tree.setCellRenderer(new MyTreeCellRenderer());
// tree.setCellRenderer(new MyCellRenderer()); // tree.setCellRenderer(new MyCellRenderer());
@ -679,8 +691,11 @@ public final class create extends JFrame {
// fenetres.create.getTglbtnTousLesNodes().setSelected(false); // fenetres.create.getTglbtnTousLesNodes().setSelected(false);
fenetres.create.getButtonEvaluate().setEnabled(true); fenetres.create.getButtonEvaluate().setEnabled(true);
fenetres.create.getTextNodeSelect().afficheChargementFichierAnalyse(); fenetres.create.getTextNodeSelect().afficheChargementFichierAnalyse();
table.setModel(new myTableModel(commandes.sujet.retourneFirstEnfantsByName("structurepage")));
table.setVisible(true);
}else { }else {
fenetres.create.getTextNodeSelect().setContentType("text/plain"); fenetres.create.getTextNodeSelect().setContentType("text/plain");
table.setVisible(false);
} }
} }

View File

@ -0,0 +1,45 @@
package fenetres;
import java.util.List;
import javax.swing.table.AbstractTableModel;
import cXML.node;
public class myTableModel extends AbstractTableModel{
/**
*
*/
private static final long serialVersionUID = 1L;
Integer ColumnCount = 1;
Integer RowCount = 0;
node structure;
List<node> ListParagraph;
public myTableModel(node structurepage) {
this.structure = structurepage;
ListParagraph = structure.getNodeText();
RowCount = ListParagraph.size();
}
@Override
public int getRowCount() {
return RowCount;
}
@Override
public int getColumnCount() {
return 1;
}
@Override
public Object getValueAt(int rowIndex, int columnIndex) {
return ListParagraph.get(rowIndex);
}
}