Search in sources :

Example 21 with SkinMenuItem

use of com.frostwire.gui.theme.SkinMenuItem 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)

Example 22 with SkinMenuItem

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

the class AbstractLibraryTableMediator method addToStarredPlaylistMenuItem.

private void addToStarredPlaylistMenuItem(SkinMenu menu, Playlist starredPlaylist) {
    AddToPlaylistAction addToStarredAction = new AddToPlaylistAction(starredPlaylist);
    addToStarredAction.putValue(Action.SMALL_ICON, GUIMediator.getThemeImage("star_on"));
    addToStarredAction.setName(tr("Add to") + " " + tr(starredPlaylist.getName()));
    menu.add(new SkinMenuItem(addToStarredAction));
}
Also used : SkinMenuItem(com.frostwire.gui.theme.SkinMenuItem)

Aggregations

SkinMenuItem (com.frostwire.gui.theme.SkinMenuItem)22 SkinPopupMenu (com.frostwire.gui.theme.SkinPopupMenu)11 SkinMenu (com.frostwire.gui.theme.SkinMenu)9 File (java.io.File)5 SearchAction (com.limegroup.gnutella.gui.actions.SearchAction)3 Library (com.frostwire.alexandria.Library)2 Playlist (com.frostwire.alexandria.Playlist)2 PlaylistItem (com.frostwire.alexandria.PlaylistItem)2 AddToPlaylistAction (com.frostwire.gui.bittorrent.BTDownloadActions.AddToPlaylistAction)1 CreateNewPlaylistAction (com.frostwire.gui.bittorrent.BTDownloadActions.CreateNewPlaylistAction)1 Matcher (com.frostwire.regex.Matcher)1 ConfigureOptionsAction (com.limegroup.gnutella.gui.options.ConfigureOptionsAction)1 DefaultMouseListener (com.limegroup.gnutella.gui.tables.DefaultMouseListener)1 ActionEvent (java.awt.event.ActionEvent)1 ActionListener (java.awt.event.ActionListener)1 KeyAdapter (java.awt.event.KeyAdapter)1 KeyEvent (java.awt.event.KeyEvent)1 BasicTreeUI (javax.swing.plaf.basic.BasicTreeUI)1