Ignore:
Timestamp:
Sep 1, 2010, 6:48:53 PM (14 years ago)
Author:
mlg
Message:

Bug correction :
bug:0001837 : there is now a default translation file (in english), so the application won't crash when a translation is not found
bug:0001833 : the accents are manage when creating a new category
bug:0001832 : on a right click on the categories list, the selection is now visible
bug:0001830 : there is no bug on refreshing the categories tree

Features :
feature:001828 : exif and iptc tags are kept after resizing an image
feature:001827 : pwg.images.addChunk is now fully used : images are split into chunks before being sent

Other features :

  • The user can manage his preferences :

-The web images size
-The chunks size

  • The user can save the login informations (url, login, password) /!\ in a plain text file !
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/jiwigo/trunk/src/main/java/fr/mael/jiwigo/ui/mainframe/MainFrame.java

    r6821 r6831  
    33import java.awt.BorderLayout;
    44import java.awt.FlowLayout;
     5import java.awt.event.ActionEvent;
     6import java.awt.event.ActionListener;
    57
    68import javax.swing.JFrame;
    79import javax.swing.JLabel;
     10import javax.swing.JMenu;
     11import javax.swing.JMenuBar;
     12import javax.swing.JMenuItem;
    813import javax.swing.JPanel;
    914import javax.swing.JScrollPane;
     
    4247 * Frame principale
    4348 */
    44 public class MainFrame extends JFrame {
     49public class MainFrame extends JFrame implements ActionListener {
    4550    /**
    4651     * Logger
     
    6065     * Panel contenant les miniatures de la catégorie courante
    6166     */
    62     public static MiniaturesCategoryPanel imagesPanel;
     67    public static ThumbnailCategoryPanel imagesPanel;
    6368    /**
    6469     *  Scrollpane contenant le panel ci dessus
     
    6974     */
    7075    private JLabel labelMessage;
     76
     77    /**
     78     * Barre de menu
     79     */
     80    private JMenuBar jMenuBar;
     81
     82    /**
     83     * Menu d'édition
     84     */
     85    private JMenu jMenuEdition;
     86
     87    /**
     88     * menu des preferences
     89     */
     90    private JMenuItem jMenuItemPreferences;
    7191
    7292    /**
     
    92112        this.setIconImage(java.awt.Toolkit.getDefaultToolkit().getImage(Outil.getURL("fr/mael/jiwigo/img/icon.png")));
    93113        this.setLayout(new BorderLayout());
     114        jMenuBar = new JMenuBar();
    94115        labelMessage = new JLabel(Messages.getMessage("welcomeMessage"));
    95116        splitPane = new JSplitPane();
    96117        categoriesTree = new CategoriesTree();
    97118        splitPane.setLeftComponent(categoriesTree);
    98         imagesPanel = new MiniaturesCategoryPanel(null);
     119        imagesPanel = new ThumbnailCategoryPanel(null);
    99120        scrollPaneImagesPanel = new JScrollPane(imagesPanel, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
    100121                JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
     
    104125        JPanel panel = new JPanel(new FlowLayout(FlowLayout.LEFT));
    105126        panel.add(labelMessage);
     127
     128        jMenuEdition = new JMenu(Messages.getMessage("mainFrame_editionMenu"));
     129        jMenuBar.add(jMenuEdition);
     130        jMenuItemPreferences = new JMenuItem(Messages.getMessage("mainFrame_preferencesMenu"));
     131        jMenuItemPreferences.addActionListener(this);
     132        jMenuEdition.add(jMenuItemPreferences);
     133
     134        this.setJMenuBar(jMenuBar);
    106135        this.add(panel, BorderLayout.SOUTH);
    107136        this.pack();
     
    134163    }
    135164
     165    @Override
     166    public void actionPerformed(ActionEvent arg0) {
     167        if (arg0.getSource().equals(jMenuItemPreferences)) {
     168            new PreferencesDialog(this);
     169        }
     170
     171    }
     172
    136173}
Note: See TracChangeset for help on using the changeset viewer.