Search in sources :

Example 11 with SkinPopupMenu

use of com.frostwire.gui.theme.SkinPopupMenu in project frostwire by frostwire.

the class BTDownloadMediator method createPopupMenu.

protected JPopupMenu createPopupMenu() {
    JPopupMenu menu = new SkinPopupMenu();
    if (playSingleMediaFileAction.isEnabled()) {
        menu.add(new SkinMenuItem(playSingleMediaFileAction));
    }
    menu.add(new SkinMenuItem(resumeAction));
    menu.add(new SkinMenuItem(pauseAction));
    menu.addSeparator();
    menu.add(new SkinMenuItem(showInLibraryAction));
    menu.add(new SkinMenuItem(exploreAction));
    menu.addSeparator();
    menu.add(new SkinMenuItem(shareTorrentAction));
    if (OSUtils.isMacOSX() || OSUtils.isWindows()) {
        menu.add(new SkinMenuItem(sendToItunesAction));
    }
    menu.add(new SkinMenuItem(copyMagnetAction));
    menu.add(new SkinMenuItem(copyHashAction));
    SkinMenu addToPlaylistMenu = BTDownloadMediatorAdvancedMenuFactory.createAddToPlaylistSubMenu();
    if (addToPlaylistMenu != null) {
        menu.add(addToPlaylistMenu);
    }
    menu.addSeparator();
    menu.add(new SkinMenuItem(removeAction));
    menu.add(new SkinMenuItem(BTDownloadActions.REMOVE_TORRENT_ACTION));
    menu.add(new SkinMenuItem(BTDownloadActions.REMOVE_TORRENT_AND_DATA_ACTION));
    menu.add(new SkinMenuItem(removeYouTubeAction));
    SkinMenu advancedMenu = BTDownloadMediatorAdvancedMenuFactory.createAdvancedSubMenu();
    if (advancedMenu != null) {
        menu.addSeparator();
        menu.add(advancedMenu);
    }
    return menu;
}
Also used : SkinMenuItem(com.frostwire.gui.theme.SkinMenuItem) SkinPopupMenu(com.frostwire.gui.theme.SkinPopupMenu) SkinMenu(com.frostwire.gui.theme.SkinMenu)

Aggregations

SkinMenuItem (com.frostwire.gui.theme.SkinMenuItem)11 SkinPopupMenu (com.frostwire.gui.theme.SkinPopupMenu)11 PlaylistItem (com.frostwire.alexandria.PlaylistItem)2 File (java.io.File)2 SkinMenu (com.frostwire.gui.theme.SkinMenu)1 ConfigureOptionsAction (com.limegroup.gnutella.gui.options.ConfigureOptionsAction)1 DefaultMouseListener (com.limegroup.gnutella.gui.tables.DefaultMouseListener)1 KeyAdapter (java.awt.event.KeyAdapter)1 KeyEvent (java.awt.event.KeyEvent)1 BasicTreeUI (javax.swing.plaf.basic.BasicTreeUI)1