V4.0.1
This commit is contained in:
parent
b430cefe35
commit
f1e71f1cb5
1
bin/.gitignore
vendored
1
bin/.gitignore
vendored
@ -1 +1,2 @@
|
||||
/app/
|
||||
/resources/
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
bin/fichierAnalyseModif.png
Normal file
BIN
bin/fichierAnalyseModif.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.6 KiB |
BIN
bin/treeOpen.png
Normal file
BIN
bin/treeOpen.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 483 B |
249
bin/treeOpen.svg
Normal file
249
bin/treeOpen.svg
Normal file
@ -0,0 +1,249 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
inkscape:export-ydpi="96"
|
||||
inkscape:export-xdpi="96"
|
||||
inkscape:export-filename="C:\Users\pabr6\git\analyseWriter\MEPTL\icons\treeOpen.png"
|
||||
sodipodi:docname="treeOpen.svg"
|
||||
inkscape:version="1.1.2 (b8e25be833, 2022-02-05)"
|
||||
id="svg8"
|
||||
version="1.1"
|
||||
viewBox="0 0 5.436443 3.415486"
|
||||
height="12.908923"
|
||||
width="20.547186"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/">
|
||||
<defs
|
||||
id="defs2">
|
||||
<linearGradient
|
||||
id="k"
|
||||
gradientTransform="matrix(7.99974,0,0,7.9977797,-863.30581,-7811.3988)"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
x1="122.75008"
|
||||
x2="111.74973"
|
||||
xlink:href="#b"
|
||||
y1="991.62115"
|
||||
y2="977.11713" />
|
||||
<linearGradient
|
||||
id="b">
|
||||
<stop
|
||||
offset="0"
|
||||
stop-color="#0369a3"
|
||||
id="stop7" />
|
||||
<stop
|
||||
offset="1"
|
||||
stop-color="#1c99e0"
|
||||
id="stop9" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="j"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
x1="108.00134"
|
||||
x2="20.001341"
|
||||
y1="122"
|
||||
y2="6"
|
||||
gradientTransform="translate(10.661607,-2.6314354)">
|
||||
<stop
|
||||
offset="0"
|
||||
stop-color="#e6e6e6"
|
||||
id="stop35" />
|
||||
<stop
|
||||
offset="1"
|
||||
stop-color="#fff"
|
||||
id="stop37" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="i"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
x1="108.00134"
|
||||
x2="20.001341"
|
||||
xlink:href="#b"
|
||||
y1="130"
|
||||
y2="14"
|
||||
gradientTransform="translate(12)" />
|
||||
<linearGradient
|
||||
id="h"
|
||||
gradientTransform="matrix(4.4999,0,0,3.66665,-930.97741,2199.6564)"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
x2="0"
|
||||
y1="-581.63782"
|
||||
y2="-578.63782">
|
||||
<stop
|
||||
offset="0"
|
||||
stop-color="#63bbee"
|
||||
id="stop29" />
|
||||
<stop
|
||||
offset="1"
|
||||
stop-color="#aadcf7"
|
||||
id="stop31" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="g"
|
||||
gradientTransform="matrix(-4.19983,0,0,3.9111,1552.9405,-4523.1636)"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
x2="0"
|
||||
xlink:href="#a"
|
||||
y1="1173"
|
||||
y2="1178" />
|
||||
<linearGradient
|
||||
id="a">
|
||||
<stop
|
||||
offset="0"
|
||||
stop-color="#666"
|
||||
id="stop2" />
|
||||
<stop
|
||||
offset="1"
|
||||
stop-color="#333"
|
||||
id="stop4" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="f"
|
||||
gradientTransform="matrix(4.19983,0,0,3.9111,-1380.9394,-4521.9436)"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
x2="0"
|
||||
xlink:href="#a"
|
||||
y1="1173"
|
||||
y2="1178" />
|
||||
<linearGradient
|
||||
id="e"
|
||||
gradientTransform="matrix(1.19997,0,0,1.22222,-269.19161,858.5534)"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
x2="0"
|
||||
y1="-629.66907"
|
||||
y2="-635.54944">
|
||||
<stop
|
||||
offset="0"
|
||||
stop-color="#18a303"
|
||||
id="stop22" />
|
||||
<stop
|
||||
offset="1"
|
||||
stop-color="#106802"
|
||||
id="stop24" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="d"
|
||||
gradientTransform="matrix(4.19983,0,0,3.9111,-1380.9394,-4517.0536)"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
x2="0"
|
||||
y1="1173"
|
||||
y2="1178">
|
||||
<stop
|
||||
offset="0"
|
||||
stop-color="#0369a3"
|
||||
id="stop17" />
|
||||
<stop
|
||||
offset="1"
|
||||
stop-color="#023f62"
|
||||
id="stop19" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="c"
|
||||
gradientTransform="matrix(0,0.791084,-1.28,0,1511.6005,-282.0136)"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
x1="445.69522"
|
||||
x2="441.38797"
|
||||
y1="1103.5776"
|
||||
y2="1099.8198">
|
||||
<stop
|
||||
offset="0"
|
||||
stop-color="#e9b913"
|
||||
id="stop12" />
|
||||
<stop
|
||||
offset="1"
|
||||
stop-color="#ff0"
|
||||
id="stop14" />
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<sodipodi:namedview
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:window-y="-8"
|
||||
inkscape:window-x="-8"
|
||||
inkscape:window-height="1009"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:guide-bbox="true"
|
||||
showguides="true"
|
||||
units="px"
|
||||
showgrid="false"
|
||||
inkscape:document-rotation="0"
|
||||
inkscape:current-layer="layer1"
|
||||
inkscape:document-units="mm"
|
||||
inkscape:cy="-0.067207399"
|
||||
inkscape:cx="-0.87369619"
|
||||
inkscape:zoom="14.879314"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:pageopacity="0.0"
|
||||
borderopacity="1.0"
|
||||
bordercolor="#666666"
|
||||
pagecolor="#ffffff"
|
||||
id="base"
|
||||
inkscape:pagecheckerboard="0"
|
||||
fit-margin-top="0"
|
||||
fit-margin-left="0"
|
||||
fit-margin-right="0"
|
||||
fit-margin-bottom="0"
|
||||
inkscape:snap-bbox="true"
|
||||
inkscape:bbox-paths="true"
|
||||
inkscape:bbox-nodes="true"
|
||||
inkscape:snap-midpoints="true"
|
||||
inkscape:object-paths="true"
|
||||
inkscape:snap-global="false">
|
||||
<sodipodi:guide
|
||||
id="guide14"
|
||||
orientation="1,0"
|
||||
position="-0.26024984,-3.5581931" />
|
||||
<sodipodi:guide
|
||||
position="0.48659243,3.8856433"
|
||||
orientation="0.70710678,-0.70710678"
|
||||
id="guide3385" />
|
||||
<sodipodi:guide
|
||||
position="-1.4160772,5.1837263"
|
||||
orientation="0,-1"
|
||||
id="guide3467" />
|
||||
<sodipodi:guide
|
||||
position="0.59328418,2.5519965"
|
||||
orientation="-0.70710678,-0.70710678"
|
||||
id="guide3469" />
|
||||
</sodipodi:namedview>
|
||||
<metadata
|
||||
id="metadata5">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
id="layer1"
|
||||
inkscape:groupmode="layer"
|
||||
inkscape:label="Calque 1"
|
||||
transform="translate(-1.1803834,-2.0081471)">
|
||||
<text
|
||||
xml:space="preserve"
|
||||
style="font-size:1.766px;line-height:1.25;font-family:'C.A. Gatintas';-inkscape-font-specification:'C.A. Gatintas';text-align:center;text-anchor:middle;fill:#0000ff;stroke-width:0.264583"
|
||||
x="5.0152144"
|
||||
y="3.4880216"
|
||||
id="text1762"
|
||||
transform="scale(0.79421941,1.2590979)"><tspan
|
||||
sodipodi:role="line"
|
||||
id="tspan1760"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1.766px;font-family:arial;-inkscape-font-specification:arial;fill:#0000ff;stroke-width:0.264583"
|
||||
x="5.0152144"
|
||||
y="3.4880216">XML</tspan></text>
|
||||
<path
|
||||
style="fill:none;stroke:#000000;stroke-width:0.264583px;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
|
||||
d="M 2.9459252,2.2115664 1.312669,3.7782346 2.8900872,5.2913414"
|
||||
id="path3504" />
|
||||
<path
|
||||
style="fill:none;stroke:#000000;stroke-width:0.264583px;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
|
||||
d="M 4.8512845,2.1404386 6.4845407,3.7071068 4.9071225,5.2202136"
|
||||
id="path996" />
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 7.1 KiB |
@ -5,7 +5,11 @@ import java.awt.Font;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
||||
import java.awt.event.KeyEvent;
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.PrintWriter;
|
||||
|
||||
import javax.swing.AbstractAction;
|
||||
import javax.swing.Action;
|
||||
@ -42,6 +46,8 @@ import javax.swing.JMenu;
|
||||
import javax.swing.JMenuItem;
|
||||
import javax.swing.JOptionPane;
|
||||
import java.awt.Color;
|
||||
import java.awt.Desktop;
|
||||
|
||||
import javax.swing.JToggleButton;
|
||||
import java.awt.FlowLayout;
|
||||
|
||||
@ -115,11 +121,13 @@ public class evaluate extends JFrame {
|
||||
JMenu mnMenu_Evaluation = new JMenu("Evaluation des étudiants");
|
||||
menuBar.add(mnMenu_Evaluation);
|
||||
mnMenu_Evaluation.add(actSelectFolder);
|
||||
mnMenu_Fichier.addSeparator();
|
||||
mnMenu_Evaluation.addSeparator();
|
||||
mnMenu_Evaluation.add(actEvaluate);
|
||||
|
||||
JMenu mnMenu_Informations = new JMenu("Informations");
|
||||
menuBar.add(mnMenu_Informations);
|
||||
mnMenu_Informations.add(actDocumentation);
|
||||
mnMenu_Informations.addSeparator();
|
||||
mnMenu_Informations.add( actAbout );
|
||||
|
||||
|
||||
@ -193,7 +201,10 @@ public class evaluate extends JFrame {
|
||||
|
||||
toolBar.addSeparator();
|
||||
|
||||
toolBar.addSeparator();
|
||||
JButton btnNewButton = toolBar.add( actDocumentation );
|
||||
btnNewButton.setIcon(new ImageIcon(evaluate.class.getResource("/resources/documentation.png")));
|
||||
btnNewButton.setHideActionText(true);
|
||||
toolBar.add(btnNewButton);
|
||||
|
||||
JButton btnAbout = toolBar.add(actAbout);
|
||||
btnAbout.setIcon(new ImageIcon(evaluate.class.getResource("/resources/apropos.png")));
|
||||
@ -721,6 +732,33 @@ public class evaluate extends JFrame {
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Affiche la documentation
|
||||
*/
|
||||
private AbstractAction actDocumentation = new AbstractAction() {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
{
|
||||
putValue( Action.NAME, "Documentation (CTRL+D)" );
|
||||
putValue( Action.SMALL_ICON, new ImageIcon(evaluate.class.getResource("/resources/documentation.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(evaluate.class.getResource("/resources/documentation.pdf").getPath()));
|
||||
} catch (IOException e1) {
|
||||
// TODO Auto-generated catch block
|
||||
e1.printStackTrace();
|
||||
}
|
||||
System.out.println( "Affiche la documentation." );
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Charge la liste des étudiants sous la frome d'un fichier XML.
|
||||
|
@ -13,6 +13,7 @@ import javax.swing.JLabel;
|
||||
import javax.swing.SwingConstants;
|
||||
|
||||
import MEPTL.commandes;
|
||||
import java.awt.SystemColor;
|
||||
|
||||
public class mainApp extends JFrame implements ActionListener{
|
||||
|
||||
@ -81,7 +82,7 @@ public class mainApp extends JFrame implements ActionListener{
|
||||
actCharge = new JButton("Evaluer les fichiers des étudiants - Créer un fichier d'analyse");
|
||||
actCharge.setHorizontalAlignment(SwingConstants.LEFT);
|
||||
actCharge.setIcon(new ImageIcon(mainApp.class.getResource("/resources/evaluate.png")));
|
||||
actCharge.setBackground(Color.PINK);
|
||||
actCharge.setBackground(SystemColor.inactiveCaption);
|
||||
actCharge.addActionListener(this);
|
||||
actCharge.setFont(new Font("Tahoma", Font.PLAIN, 14));
|
||||
actCharge.setBounds(34, 110, 470, 58);
|
||||
|
BIN
src/resources/documentation.pdf
Normal file
BIN
src/resources/documentation.pdf
Normal file
Binary file not shown.
BIN
src/resources/documentation.png
Normal file
BIN
src/resources/documentation.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 912 B |
Loading…
x
Reference in New Issue
Block a user