public void actionPerformed(ActionEvent ev)
{
doStartStopSlideShow();
}
});
m_slideShowPause_menuItem = new JStatusCheckBoxMenuItem(Main.getString("menu_slideshow_pause"), Main.getString("statusbar_menu_slideshow_pause_help"), m_statusBar);
m_slideShowPause_menuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_SPACE, 0));
menu.add(m_slideShowPause_menuItem);
m_slideShowPause_menuItem.setEnabled(false);
m_slideShowPause_menuItem.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent ev)
{
doSlideShowPause();
}
});
// Direction sub menu
JMenu menuSlideShowDirection = new JMenu(Main.getString("menu_slideshow_direction"));
menu.add(menuSlideShowDirection);
for (int i=0; i<m_slideShowDirection_menuItem.length; i++)
{
m_slideShowDirection_menuItem[i] = new JStatusRadioButtonMenuItem(Main.getString(String.format("menu_slideshow_direction_%1$d", i)), Main.getString(String.format("statusbar_menu_slideshow_direction_%1$d_help", i)), m_statusBar);
menuSlideShowDirection.add(m_slideShowDirection_menuItem[i]);
final int ii=i;
m_slideShowDirection_menuItem[i].addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent ev)
{
doSetSlideShowDirection(ii);
}
});
}
m_slideShowDirection_menuItem[Main.m_settings.getSlideShowDirection()].setSelected(true);
m_slideShowLoop_menuItem = new JStatusCheckBoxMenuItem(Main.getString("menu_slideshow_loop"), Main.getString("statusbar_menu_slideshow_loop_help"), m_statusBar);
m_slideShowLoop_menuItem.setState(Main.m_settings.getSlideShowLoop());
menu.add(m_slideShowLoop_menuItem);
m_slideShowLoop_menuItem.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent ev)