Ignore:
Timestamp:
Sep 19, 2010, 1:33:27 AM (14 years ago)
Author:
mlg
Message:

New features

  • When clicking on a category, the category is opened in a tab. When clicking on the same category again, no tab is opened but the previously opened tab is shown. The user can close the tabs (close current tab, close others, close all).
  • Ability to clip the images. There are still some bugs (unable to clip the images when zooming, and the rectangle stays when changing the image).
File:
1 edited

Legend:

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

    r6831 r6958  
    104104
    105105    /**
     106     * rogner l'image
     107     */
     108    private JButton cut = new JButton();
     109
     110    /**
    106111     * Panel qui contient l'image
    107112     */
     
    137142        save.setIcon(new ImageIcon(Outil.getURL("fr/mael/jiwigo/img/save.png")));
    138143        comment.setIcon(new ImageIcon(Outil.getURL("fr/mael/jiwigo/img/comment.png")));
     144        cut.setIcon(new ImageIcon(Outil.getURL("fr/mael/jiwigo/img/cut.png")));
    139145        //on rend les boutons invisibles, pour ne voir que l'image
    140146        next.setFocusPainted(false);
     
    156162        comment.setBorderPainted(false);
    157163        comment.setContentAreaFilled(false);
     164        cut.setFocusPainted(false);
     165        cut.setBorderPainted(false);
     166        cut.setContentAreaFilled(false);
    158167        //ajout des action listeners
    159168        comment.addActionListener(this);
     
    163172        previous.addActionListener(this);
    164173        next.addActionListener(this);
     174        cut.addActionListener(this);
    165175        //ajout des boutons
    166176        panelBoutons.add(previous);
     
    168178        panelBoutons.add(rotateLeft);
    169179        panelBoutons.add(rotateRight);
     180        panelBoutons.add(cut);
    170181        panelBoutons.add(save);
    171182        panelBoutons.add(comment);
     
    368379        } else if (e.getSource().equals(menuItemNormal)) {
    369380            imagePanel.zoomNormal();
     381        } else if (e.getSource().equals(cut)) {
     382            imagePanel.rogner();
    370383        }
    371384
Note: See TracChangeset for help on using the changeset viewer.