Ignore:
Timestamp:
Sep 20, 2010, 8:51:41 PM (14 years ago)
Author:
mlg
Message:

Translation of the comments
French -> English

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/jiwigo/trunk/src/main/java/fr/mael/jiwigo/ui/browser/BrowserFrame.java

    r6966 r6980  
    7575            .getLog(BrowserFrame.class);
    7676    /**
    77      * bouton pour passer à l'image suivante
     77     * bouton to go to the  next image
    7878     */
    7979    private JButton next = new JButton();
    8080    /**
    81      * bouton pour passer à l'image précédente
     81     * bouton to go to the previous image
    8282     */
    8383    private JButton previous = new JButton();
    8484    /**
    85      * rotation de l'image vers la gauche
     85     * rotation on the left
    8686     */
    8787    private JButton rotateLeft = new JButton();
    8888    /**
    89      * rotation de l'image vers la droite
     89     * rotation on the right
    9090     */
    9191    private JButton rotateRight = new JButton();
    9292    /**
    93      * sauvegarde de l'image
     93     * saves the image
    9494     */
    9595    private JButton save = new JButton();
    9696    /**
    97      * affichage des commentaire de l'image
     97     * displays the comments for the current image
    9898     */
    9999    private JButton comment = new JButton();
    100100    /**
    101      * panel contenant tous les boutons précédents
     101     * panel that contains the previous buttons
    102102     */
    103103    private JPanel panelBoutons;
    104104
    105105    /**
    106      * rogner l'image
     106     * clip the image
    107107     */
    108108    private JButton cut = new JButton();
     
    129129     * Il est instancié et ajouté à la création de la frame, et retiré lorsqu'on la quitte
    130130     */
     131    @Deprecated
    131132    private AWTEventListener generalListener;
    132133
     
    206207        this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
    207208        setUpMenu();
    208         //instanciation du listener general
    209209        this.generalListener = new AWTEventListener() {
    210210
     
    222222        this.setVisible(true);
    223223
    224         //ajout du listener general
    225224        //Toolkit.getDefaultToolkit().addAWTEventListener(generalListener, AWTEvent.KEY_EVENT_MASK);
    226225
     
    290289    public void dispose() {
    291290        super.dispose();
    292         //on enleve le listener general
    293291        Toolkit.getDefaultToolkit().removeAWTEventListener(generalListener);
    294292    }
     
    299297            new CommentsDialog(this, ImagesManagement.getCurrentImage().getIdentifiant());
    300298        } else if (e.getSource().equals(save)) {
    301             //ouverture du dialog de sauvegarde d'une image
     299            //opens the dialog to save the file
    302300            JFileChooser chooser = new JFileChooser();
    303301            if (JFileChooser.APPROVE_OPTION == chooser.showSaveDialog(null)) {
     
    305303                if (chosenFile.getName().endsWith(".png")) {
    306304                    try {
    307                         //sauvegarde de l'image
     305                        //saves the image
    308306                        ImagesUtil.writeImageToPNG(chosenFile, imagePanel.getImage());
    309307                    } catch (IOException ex) {
     
    321319        } else if (e.getSource().equals(next)) {
    322320            imagePanel.setDrawSelection(false);
    323             //on appelle d'abord la fonction de l'images panel qui increment l'image courante
    324321            ImagesManagement.next();
    325             //on rafraichit le panel qui contient l'image
    326322            BufferedImage img;
    327323            try {
     
    334330        } else if (e.getSource().equals(previous)) {
    335331            imagePanel.setDrawSelection(false);
    336             //on appelle d'abord la fonction de l'images panel qui décrémente l'image courante
    337332            ImagesManagement.previous();
    338             //on rafraichit le panel qui contient l'image
    339333            BufferedImage img;
    340334            try {
Note: See TracChangeset for help on using the changeset viewer.