Class MainMenuV2

java.lang.Object
com.biglybt.ui.swt.mainwindow.MainMenuV2
All Implemented Interfaces:
IMainMenu

public class MainMenuV2 extends Object implements IMainMenu
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private org.eclipse.swt.widgets.Menu
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    MainMenuV2(org.eclipse.swt.widgets.Shell shell)
    Creates the main menu bar and attaches it to the given shell
  • Method Summary

    Modifier and Type
    Method
    Description
    private void
    addCommunityMenu(org.eclipse.swt.widgets.Shell parent)
     
    private void
    Creates the File menu and all its children
    private void
    addPluginsMenu(org.eclipse.swt.widgets.Shell parent)
    Creates the Plugins menu and all its children
    private void
    Creates the Tools menu and all its children
    private void
    addTorrentMenu(org.eclipse.swt.widgets.Shell parent)
    Creates the Torrent menu and all its children
    private void
    Creates the Transfer menu and all its children
    private void
    addV2HelpMenu(org.eclipse.swt.widgets.Shell parent)
    Creates the Help menu and all its children
    private void
    addViewMenu(org.eclipse.swt.widgets.Shell parent)
    Creates the View menu and all its children
    private void
    addWindowMenu(org.eclipse.swt.widgets.Shell parent)
    Creates the Window menu and all its children
    protected void
    buildSimpleViewMenu(org.eclipse.swt.widgets.Menu viewMenu)
     
    private void
    createMenus(org.eclipse.swt.widgets.Shell parent)
     
    org.eclipse.swt.widgets.Menu
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • MainMenuV2

      public MainMenuV2(org.eclipse.swt.widgets.Shell shell)

      Creates the main menu bar and attaches it to the given shell

      Parameters:
      shell - A shell
  • Method Details

    • createMenus

      private void createMenus(org.eclipse.swt.widgets.Shell parent)
    • addWindowMenu

      private void addWindowMenu(org.eclipse.swt.widgets.Shell parent)
      Creates the Window menu and all its children
      Parameters:
      parent -
    • addFileMenu

      private void addFileMenu()
      Creates the File menu and all its children
    • addTransferMenu

      private void addTransferMenu()
      Creates the Transfer menu and all its children
    • addViewMenu

      private void addViewMenu(org.eclipse.swt.widgets.Shell parent)
      Creates the View menu and all its children
      Parameters:
      parent -
    • buildSimpleViewMenu

      protected void buildSimpleViewMenu(org.eclipse.swt.widgets.Menu viewMenu)
    • addTorrentMenu

      private void addTorrentMenu(org.eclipse.swt.widgets.Shell parent)
      Creates the Torrent menu and all its children
      Parameters:
      parent -
    • addToolsMenu

      private void addToolsMenu()
      Creates the Tools menu and all its children
      Parameters:
      parent -
    • addPluginsMenu

      private void addPluginsMenu(org.eclipse.swt.widgets.Shell parent)
      Creates the Plugins menu and all its children
      Parameters:
      parent -
    • addCommunityMenu

      private void addCommunityMenu(org.eclipse.swt.widgets.Shell parent)
    • addV2HelpMenu

      private void addV2HelpMenu(org.eclipse.swt.widgets.Shell parent)
      Creates the Help menu and all its children
      Parameters:
      parent -
    • getMenu

      public org.eclipse.swt.widgets.Menu getMenu(String id)
      Specified by:
      getMenu in interface IMainMenu