Package de.sciss.gui

Examples of de.sciss.gui.MenuGroup


      final int      typeIdx;
      final String[]    hierarchy;
      final String    text;
      final KeyStroke    stroke;
      final OSCMenuNode  n;
      MenuGroup      mg, parent;
      int          argIdx    = 1;
     
      try {
        id      = ((Number) rom.msg.getArg( argIdx )).intValue();
        idObj    = new Integer( id );
View Full Code Here


    }
   
    // override superclass
    public void install()
    {
      n = new MenuGroup( "osc_" + getID(), this );
      parent.add( n );
    }
View Full Code Here

 
  // @todo  this should eventually read the tree from an xml file
  protected void addMenuItems()
  {
    final Preferences    prefs = getApplication().getUserPrefs();
    MenuGroup        mg, smg;
    MenuCheckItem      mci;
    MenuRadioGroup      rg;
//    Action          a;
    BooleanPrefsMenuAction  ba;
    IntPrefsMenuAction    ia;
    int            i;
   
    // Ctrl on Mac / Ctrl+Alt on PC
    final int myCtrl = MENU_SHORTCUT == InputEvent.CTRL_MASK ? InputEvent.CTRL_MASK | InputEvent.ALT_MASK : InputEvent.CTRL_MASK;

    // --- file menu ---
   
    mg  = (MenuGroup) get( "file" );
    smg = new MenuGroup( "new", getResourceString( "menuNew" ));
    smg.add( new MenuItem( "empty", actionNewEmpty ));
    smg.add( new MenuItem( "fromSelection", getResourceString( "menuNewFromSelection" )));
    mg.add( smg, 0 );
    i  = mg.indexOf( "open" );
    mg.add( new MenuItem( "openMultipleMono", actionOpenMM ), i + 1 );
    i  = mg.indexOf( "closeAll" );
    mg.add( new MenuSeparator(), i + 3 );
    i = mg.indexOf( "saveCopyAs" );
    mg.add( new MenuItem( "saveSelectionAs", getResourceString( "menuSaveSelectionAs" )), i + 1 );

    // --- timeline menu ---
    i  = indexOf( "edit" );
    mg  = new MenuGroup( "timeline", getResourceString( "menuTimeline" ));
    mg.add( new MenuItem( "trimToSelection", getResourceString( "menuTrimToSelection" ),
                KeyStroke.getKeyStroke( KeyEvent.VK_F5, MENU_SHORTCUT )));

    mg.add( new MenuItem( "insertSilence", getResourceString( "menuInsertSilence" ),
                KeyStroke.getKeyStroke( KeyEvent.VK_E, MENU_SHORTCUT + InputEvent.SHIFT_MASK )));
    mg.add( new MenuItem( "insertRecording", getResourceString( "menuInsertRec" )));
    add( mg, i + 1 );

    // --- process menu ---
    mg  = new MenuGroup( "process", getResourceString( "menuProcess" ));
    mg.add( new MenuItem( "again", getResourceString( "menuProcessAgain" ), KeyStroke.getKeyStroke( KeyEvent.VK_F, MENU_SHORTCUT )));
    mg.addSeparator();
    smg  = new MenuGroup( "fscape", getResourceString( "menuFScape" ));
    smg.add( new MenuItem( "needlehole", getResourceString( "menuFScNeedlehole" )));
    mg.add( smg );
    smg = new MenuGroup( "sc", getResourceString( "menuSuperCollider" ));
    mg.add( smg );
    mg.addSeparator();
    mg.add( new MenuItem( "fadeIn", getResourceString( "menuFadeIn" ), KeyStroke.getKeyStroke( KeyEvent.VK_I, myCtrl )));
    mg.add( new MenuItem( "fadeOut", getResourceString( "menuFadeOut" ), KeyStroke.getKeyStroke( KeyEvent.VK_O, myCtrl )));
    mg.add( new MenuItem( "gain", getResourceString( "menuGain" ), KeyStroke.getKeyStroke( KeyEvent.VK_N, myCtrl )));
    mg.add( new MenuItem( "invert", getResourceString( "menuInvert" )));
//    mg.add( new MenuItem( "mix", getResourceString( "menuMix" )));
    mg.add( new MenuItem( "reverse", getResourceString( "menuReverse" )));
    mg.add( new MenuItem( "rotateChannels", getResourceString( "menuRotateChannels" )));
    add( mg, i + 2 );

    // --- operation menu ---
    mg      = new MenuGroup( "operation", getResourceString( "menuOperation" ));
    ba      = new BooleanPrefsMenuAction( getResourceString( "menuInsertionFollowsPlay" ), null );
    mci      = new MenuCheckItem( "insertionFollowsPlay", ba );
    ba.setCheckItem( mci );
    ba.setPreferences( prefs, PrefsUtil.KEY_INSERTIONFOLLOWSPLAY );
    mg.add( mci );
    add( mg, i + 3 );

    // --- view menu ---
    mg      = new MenuGroup( "view", getResourceString( "menuView" ));
    smg      = new MenuGroup( "timeUnits", getResourceString( "menuTimeUnits" ));
    ia      = new IntPrefsMenuAction( getResourceString( "menuTimeUnitsSamples" ), null, PrefsUtil.TIME_SAMPLES );
    rg      = new MenuRadioGroup();
    smg.add( new MenuRadioItem( rg, "samples", ia ))// crucial reihenfolge : erst item erzeugen, dann gruppe setzen, dann prefs
    ia.setRadioGroup( rg );
    ia.setPreferences( prefs, PrefsUtil.KEY_TIMEUNITS );
    ia      = new IntPrefsMenuAction( getResourceString( "menuTimeUnitsMinSecs" ), null, PrefsUtil.TIME_MINSECS );
    smg.add( new MenuRadioItem( rg, "minSecs", ia ));
    ia.setRadioGroup( rg );
    ia.setPreferences( prefs, PrefsUtil.KEY_TIMEUNITS );
    mg.add( smg );

    smg      = new MenuGroup( "vertscale", getResourceString( "menuVertScale" ));
    ia      = new IntPrefsMenuAction( getResourceString( "menuVertScaleAmpLin" ), null, PrefsUtil.VSCALE_AMP_LIN );
    rg      = new MenuRadioGroup();
    smg.add( new MenuRadioItem( rg, "amplin", ia ))// crucial reihenfolge : erst item erzeugen, dann gruppe setzen, dann prefs
    ia.setRadioGroup( rg );
    ia.setPreferences( prefs, PrefsUtil.KEY_VERTSCALE );
    ia      = new IntPrefsMenuAction( getResourceString( "menuVertScaleAmpLog" ), null, PrefsUtil.VSCALE_AMP_LOG );
    smg.add( new MenuRadioItem( rg, "amplog", ia ));
    ia.setRadioGroup( rg );
    ia.setPreferences( prefs, PrefsUtil.KEY_VERTSCALE );
    ia      = new IntPrefsMenuAction( getResourceString( "menuVertScaleFreqSpect" ), null, PrefsUtil.VSCALE_FREQ_SPECT );
    smg.add( new MenuRadioItem( rg, "freqspect", ia ));
    ia.setRadioGroup( rg );
    ia.setPreferences( prefs, PrefsUtil.KEY_VERTSCALE );
    final IntPrefsMenuAction freqSpectAction = ia;
//    ia.setEnabled( prefs.node( PrefsUtil.NODE_VIEW ).getBoolean( PrefsUtil.KEY_SONAENABLED, false ));
    new DynamicPrefChangeManager( prefs.node( PrefsUtil.NODE_VIEW ), new String[] {
      PrefsUtil.KEY_SONAENABLED }, new PreferenceChangeListener() {
      public void preferenceChange( PreferenceChangeEvent pce )
      {
        freqSpectAction.setEnabled( prefs.node( PrefsUtil.NODE_VIEW ).getBoolean( PrefsUtil.KEY_SONAENABLED, false ));
      }
    }).startListening();
   
    mg.add( smg );

    ba      = new BooleanPrefsMenuAction( getResourceString( "menuViewNullLinie" ), null );
    mci      = new MenuCheckItem( "nullLinie", ba );
    ba.setCheckItem( mci );
    ba.setPreferences( prefs, PrefsUtil.KEY_VIEWNULLLINIE );
    mg.add( mci );
    ba      = new BooleanPrefsMenuAction( getResourceString( "menuViewVerticalRulers" ), null );
    mci      = new MenuCheckItem( "verticalRulers", ba );
    ba.setCheckItem( mci );
    ba.setPreferences( prefs, PrefsUtil.KEY_VIEWVERTICALRULERS );
    mg.add( mci );
    ba      = new BooleanPrefsMenuAction( getResourceString( "menuViewChanMeters" ), null );
    mci      = new MenuCheckItem( "channelMeters", ba );
    ba.setCheckItem( mci );
    ba.setPreferences( prefs, PrefsUtil.KEY_VIEWCHANMETERS );
    mg.add( mci );
    ba      = new BooleanPrefsMenuAction( getResourceString( "menuViewMarkers" ), null );
    mci      = new MenuCheckItem( "markers", ba );
    ba.setCheckItem( mci );
    ba.setPreferences( prefs, PrefsUtil.KEY_VIEWMARKERS );
    mg.add( mci );
    add( mg, i + 4 );

    // --- window menu ---
//    mWindowRadioGroup = new MenuRadioGroup();
//    mgWindow = new MenuGroup( "window", getResourceString( "menuWindow" ));
    mg  = (MenuGroup) get( "window" );
    mg.add( new MenuItem( "ioSetup", new ActionIOSetup( getResourceString( "frameIOSetup" ), null )), 0 );
    mg.add( new MenuSeparator(), 1 );
    mg.add( new MenuItem( "main", new ActionShowWindow( getResourceString( "frameMain" ), null, Main.COMP_MAIN )), 2 );
    mg.add( new MenuItem( "observer", new ActionObserver( getResourceString( "paletteObserver" ), KeyStroke.getKeyStroke( KeyEvent.VK_3, MENU_SHORTCUT ))), 3 );
    mg.add( new MenuItem( "ctrlRoom", new ActionCtrlRoom( getResourceString( "paletteCtrlRoom" ), KeyStroke.getKeyStroke( KeyEvent.VK_2, MENU_SHORTCUT ))), 4 );
//    mg.add( new MenuSeparator(), 5 );
//    mgWindow.add( new MenuItem( "collect", ((WindowHandler) root.getWindowHandler()).getCollectAction() ));
//    mgWindow.addSeparator();
//    add( mgWindow );

    // --- debug menu ---
    mg   = new MenuGroup( "debug", "Debug" );
    mg.add( new MenuItem( "dumpPrefs", PrefsUtil.getDebugDumpAction() ));
    mg.add( new MenuItem( "dumpRegions", "Dump Region Structure" ));
    mg.add( new MenuItem( "verifyRegions", "Verify Regions Consistency" ));
    mg.add( new MenuItem( "dumpCache", PrefCacheManager.getInstance().getDebugDumpAction() ));
    mg.add( new MenuItem( "dumpAudioStakes", AudioStake.getDebugDumpAction() ));
    mg.add( new MenuItem( "dumpNodeTree", SuperColliderClient.getInstance().getDebugNodeTreeAction() ));
    mg.add( new MenuItem( "dumpKillAll", SuperColliderClient.getInstance().getDebugKillAllAction() ));
    i  = indexOf( "help" );
    add( mg, i );

//    // --- help menu ---
//    mg  = new MenuGroup( "help", getResourceString( "menuHelp" ));
View Full Code Here

 
  // @todo  this should eventually read the tree from an xml file
  protected void addMenuItems()
  {
    final Preferences    prefs; // = getApplication().getUserPrefs();
    MenuGroup        mg, smg;
    MenuCheckItem      mci;
    BooleanPrefsMenuAction  ba;
    int            i;
   
    // Ctrl on Mac / Ctrl+Alt on PC
//    final int myCtrl = MENU_SHORTCUT == InputEvent.CTRL_MASK ? InputEvent.CTRL_MASK | InputEvent.ALT_MASK : InputEvent.CTRL_MASK;

    // --- file menu ---
    mg  = (MenuGroup) get( "file" );
    mg.add( new MenuItem( "clearSession", getResourceString( "menuClearSession" ), KeyStroke.getKeyStroke( KeyEvent.VK_N, MENU_SHORTCUT )));
    i  = mg.indexOf( "saveAs" );
    smg = new MenuGroup( "insert", getResourceString( "menuInsert" ));
    smg.add( new MenuItem( "newReceivers", actionNewReceivers ));
    smg.add( new MenuItem( "newTransmitters", actionNewTransmitters ));
    smg.add( new MenuItem( "newGroup", actionNewGroup ));
    mg.add( smg, i + 1 );
    smg = new MenuGroup( "remove", getResourceString( "menuRemove" ));
    smg.add( new MenuItem( "removeReceivers", actionRemoveReceivers ));
    smg.add( new MenuItem( "removeTransmitters", actionRemoveTransmitters ));
    smg.add( new MenuItem( "removeGroup", actionRemoveGroups ));
    mg.add( smg, i + 2 );
    mg.add( new MenuSeparator(), i + 3 );
    mg.add( new MenuItem( "bounce", actionBounce ), i + 4 );
   
    // --- timeline menu ---
    i  = indexOf( "edit" );
    mg  = new MenuGroup( "timeline", getResourceString( "menuTimeline" ));
//    mg.add( new MenuItem( "insTimeSpan", actionInsTimeSpan ));
    mg.add( new MenuItem( "trimToSelection", getResourceString( "menuTrimToSelection" )));
    mg.add( new MenuItem( "insertSilence", getResourceString( "menuInsTimeSpan" ),
                KeyStroke.getKeyStroke( KeyEvent.VK_E, MENU_SHORTCUT + InputEvent.SHIFT_MASK )));
    mg.add( new MenuItem( "selectionForward", actionSelectionForward ));
    mg.add( new MenuItem( "selectionBackwards", actionSelectionBackwards ));
    mg.addSeparator();
    mg.add( new MenuItem( "filter", actionFilter ));
    add( mg, i + 1 );

    // --- view menu ---
    mg      = new MenuGroup( "view", getResourceString( "menuView" ));
    prefs    = getApplication().getUserPrefs().node( PrefsUtil.NODE_SHARED );
    ba      = new BooleanPrefsMenuAction( getResourceString( "menuSnapToObjects" ), KeyStroke.getKeyStroke(
                     KeyEvent.VK_LESS, MENU_SHORTCUT + KeyEvent.SHIFT_MASK ));
    mci      = new MenuCheckItem( "snapToObjects", ba );
    ba.setCheckItem( mci );
    ba.setPreferences( prefs, PrefsUtil.KEY_SNAP );
    mg.add( mci );

    smg      = new MenuGroup( "viewSurface", getResourceString( "menuViewSurface" ));
    ba      = new BooleanPrefsMenuAction( getResourceString( "menuViewRcvSense" ), null );
    mci      = new MenuCheckItem( "viewRcvSense", ba );
    ba.setCheckItem( mci );
    ba.setPreferences( prefs, PrefsUtil.KEY_VIEWRCVSENSE );
    smg.add( mci );
    ba      = new BooleanPrefsMenuAction( getResourceString( "menuViewRcvSenseEqP" ), null );
    mci      = new MenuCheckItem( "viewRcvSenseEqP", ba );
    ba.setCheckItem( mci );
    ba.setPreferences( prefs, PrefsUtil.KEY_VIEWEQPRECEIVER );
    smg.add( mci );
    ba      = new BooleanPrefsMenuAction( getResourceString( "menuViewTrnsTraj" ), null );
    mci      = new MenuCheckItem( "viewTrnsTraj", ba );
    ba.setCheckItem( mci );
    ba.setPreferences( prefs, PrefsUtil.KEY_VIEWTRNSTRAJ );
    smg.add( mci );
    ba      = new BooleanPrefsMenuAction( getResourceString( "menuViewUserImages" ), null );
    mci      = new MenuCheckItem( "viewUserImages", ba );
    ba.setCheckItem( mci );
    ba.setPreferences( prefs, PrefsUtil.KEY_VIEWUSERIMAGES );
    smg.add( mci );
    ba      = new BooleanPrefsMenuAction( getResourceString( "menuViewRulers" ), null );
    mci      = new MenuCheckItem( "viewRulers", ba );
    ba.setCheckItem( mci );
    ba.setPreferences( prefs, PrefsUtil.KEY_VIEWRULERS );
    smg.add( mci );
    mg.add( smg );
    add( mg, i + 2 );

    // --- extras menu ---
    mg   = new MenuGroup( "extras", getResourceString( "menuExtras" ));
    mg.add( new MenuItem( "jathaDiddler", actionJathaDiddler ));
    mg.add( new MenuItem( "hrirPrepare", actionHRIRPrepare ));
    add( mg, i + 3 );
   
    // --- window menu ---
    mg  = (MenuGroup) get( "window" );
    mg.add( new MenuItem( "showSurface", actionShowSurface ), 0 );
    mg.add( new MenuItem( "showTimeline", actionShowTimeline ), 1 );
    mg.add( new MenuSeparator(), 2 );
    mg.add( new MenuItem( "showTransport", actionShowTransport ), 3 );
    mg.add( new MenuItem( "observer", new ActionObserver( getResourceString( "paletteObserver" ), KeyStroke.getKeyStroke( KeyEvent.VK_NUMPAD3, MENU_SHORTCUT ))), 4 );
    mg.add( new MenuItem( "showMeter", actionShowMeter ), 5 );
    mg.add( new MenuItem( "showRealtime", actionShowRealtime ), 6 );

    // --- debug menu ---
    mg   = new MenuGroup( "debug", "Debug" );
    mg.add( new MenuItem( "debugDumpUndo", actionDebugDumpUndo ));
//    mg.add( new MenuItem( "debugDumpTracks", actionDebugDumpTracks ));
//    mg.add( new MenuItem( "debugViewTrack", actionDebugViewTrack ));
    mg.add( new MenuItem( "debugDumpPrefs", actionDebugDumpPrefs ));
//    mg.add( new MenuItem( "debugDumpRealtime", actionDebugDumpRealtime ));
    mg.add( new MenuItem( "debugDumpListeners", actionDebugDumpListeners ));
    i  = indexOf( "help" );
    add( mg, i );

  }
View Full Code Here

  }
 
  // @todo  this should eventually read the tree from an xml file
  private void createProtoType()
  {
    MenuGroup        mg; //, smg;
//    MenuCheckItem      mci;
//    MenuRadioGroup      rg;
    Action          a;
//    BooleanPrefsMenuAction  ba;
//    IntPrefsMenuAction    ia;
//    Preferences        prefs;
   
    // Ctrl on Mac / Ctrl+Alt on PC
//    final int myCtrl = MENU_SHORTCUT == KeyEvent.CTRL_MASK ? KeyEvent.CTRL_MASK | KeyEvent.ALT_MASK : KeyEvent.CTRL_MASK;

    // --- file menu ---
   
    mg  = new MenuGroup( "file", getResourceString( "menuFile" ));
//    smg = new MenuGroup( "new", getResourceString( "menuNew" ));
//    smg.add( new MenuItem( "empty", actionNewEmpty ));
//    smg.add( new MenuItem( "fromSelection", getResourceString( "menuNewFromSelection" )));
//    mg.add( smg );
    mg.add( new MenuItem( "open", getOpenAction() ));
//    mg.add( new MenuItem( "openMultipleMono", actionOpenMM ));
    mgRecent = new MenuGroup( "openRecent", actionOpenRecent );
    if( openRecentPaths.getPathCount() > 0 ) {
      for( int i = 0; i < openRecentPaths.getPathCount(); i++ ) {
        mgRecent.add( new MenuItem( String.valueOf( uniqueNumber++ ), createOpenRecentAction( null, openRecentPaths.getPath( i ))));
      }
      actionOpenRecent.setPath( openRecentPaths.getPath( 0 ));
      actionOpenRecent.setEnabled( true );
      actionClearRecent.setEnabled( true );
    }
    mgRecent.addSeparator();
    mgRecent.add( new MenuItem( "clearRecent", actionClearRecent ));
    mg.add( mgRecent );
    if( root.getDocumentHandler().isMultiDocumentApplication() ) {
      mg.add( new MenuItem( "close", getResourceString( "menuClose" ), KeyStroke.getKeyStroke( KeyEvent.VK_W, MENU_SHORTCUT )));
      mg.add( new MenuItem( "closeAll", actionCloseAll ));
    }
    mg.add( new MenuSeparator() );
//    smg  = new MenuGroup( "import", getResourceString( "menuImport" ));
//    smg.add( new MenuItem( "markers", getResourceString( "menuImportMarkers" )));
//    mg.add( smg );
//    mg.addSeparator();
    mg.add( new MenuItem( "save", getResourceString( "menuSave" ), KeyStroke.getKeyStroke( KeyEvent.VK_S, MENU_SHORTCUT )));
    mg.add( new MenuItem( "saveAs", getResourceString( "menuSaveAs" ), KeyStroke.getKeyStroke( KeyEvent.VK_S, MENU_SHORTCUT + InputEvent.SHIFT_MASK )));
    mg.add( new MenuItem( "saveCopyAs", getResourceString( "menuSaveCopyAs" )));
//    mg.add( new MenuItem( "saveSelectionAs", getResourceString( "menuSaveSelectionAs" )));
    if( QuitJMenuItem.isAutomaticallyPresent() ) {
      root.getQuitJMenuItem().setAction( root.getQuitAction() );
    } else {
      mg.addSeparator();
      mg.add( new MenuItem( "quit", root.getQuitAction() ));
    }
    add( mg );

    // --- edit menu ---
    mg  = new MenuGroup( "edit", getResourceString( "menuEdit" ));
    mg.add( new MenuItem( "undo", getResourceString( "menuUndo" ), KeyStroke.getKeyStroke( KeyEvent.VK_Z, MENU_SHORTCUT )));
    mg.add( new MenuItem( "redo", getResourceString( "menuRedo" ), KeyStroke.getKeyStroke( KeyEvent.VK_Z, MENU_SHORTCUT + InputEvent.SHIFT_MASK )));
    mg.addSeparator();
    mg.add( new MenuItem( "cut", getResourceString( "menuCut" ), KeyStroke.getKeyStroke( KeyEvent.VK_X, MENU_SHORTCUT )));
    mg.add( new MenuItem( "copy", getResourceString( "menuCopy" ), KeyStroke.getKeyStroke( KeyEvent.VK_C, MENU_SHORTCUT )));
    mg.add( new MenuItem( "paste", getResourceString( "menuPaste" ), KeyStroke.getKeyStroke( KeyEvent.VK_V, MENU_SHORTCUT )));
    mg.add( new MenuItem( "clear", getResourceString( "menuClear" ), KeyStroke.getKeyStroke( KeyEvent.VK_BACK_SPACE, 0 )));
    mg.addSeparator();
    mg.add( new MenuItem( "selectAll", getResourceString( "menuSelectAll" ), KeyStroke.getKeyStroke( KeyEvent.VK_A, MENU_SHORTCUT )));
    a  = new ActionPreferences( getResourceString( "menuPreferences" ), KeyStroke.getKeyStroke( KeyEvent.VK_COMMA, MENU_SHORTCUT ));
    if( PreferencesJMenuItem.isAutomaticallyPresent() ) {
      root.getPreferencesJMenuItem().setAction( a );
    } else {
      mg.addSeparator();
      mg.add( new MenuItem( "preferences", a ));
    }
    add( mg );
   
    // --- window menu ---
    mWindowRadioGroup = new MenuRadioGroup();
    mgWindow = new MenuGroup( "window", getResourceString( "menuWindow" ));
//    mgWindow.add( new MenuItem( "ioSetup", new actionIOSetupClass( getResourceString( "frameIOSetup" ), null )));
//    mgWindow.addSeparator();
//    mgWindow.add( new MenuItem( "main", new actionShowWindowClass( getResourceString( "frameMain" ), null, Main.COMP_MAIN )));
//    mgWindow.add( new MenuItem( "observer", new actionObserverClass( getResourceString( "paletteObserver" ), KeyStroke.getKeyStroke( KeyEvent.VK_NUMPAD3, MENU_SHORTCUT ))));
//    mgWindow.add( new MenuItem( "ctrlRoom", new actionCtrlRoomClass( getResourceString( "paletteCtrlRoom" ), KeyStroke.getKeyStroke( KeyEvent.VK_NUMPAD2, MENU_SHORTCUT ))));
    mgWindow.addSeparator();
    mgWindow.add( new MenuItem( "collect", ((BasicWindowHandler) root.getWindowHandler()).getCollectAction() ));
    mgWindow.addSeparator();
    add( mgWindow );

    // --- help menu ---
    mg  = new MenuGroup( "help", getResourceString( "menuHelp" ));
    // this is pretty weird, but it works at least on german keyboards: command+questionmark is defaut help shortcut
    // on mac os x. KeyEvent.VK_QUESTION_MARK doesn't exist, plus apple's vm ignore german keyboard layout, therefore the
    // the question mark becomes a minus. however it's wrongly displayed in the menu...
    mg.add( new MenuItem( "manual", new ActionURLViewer( getResourceString( "menuHelpManual" ), KeyStroke.getKeyStroke( KeyEvent.VK_MINUS, MENU_SHORTCUT + InputEvent.SHIFT_MASK ), "index", false )));
    mg.add( new MenuItem( "shortcuts", new ActionURLViewer( getResourceString( "menuHelpShortcuts" ), null, "Shortcuts", false )));
    mg.addSeparator();
    mg.add( new MenuItem( "website", new ActionURLViewer( getResourceString( "menuHelpWebsite" ), null, getResourceString( "appURL" ), true )));
    a = new ActionAbout( getResourceString( "menuAbout" ), null );
    if( AboutJMenuItem.isAutomaticallyPresent() ) {
      root.getAboutJMenuItem().setAction( a );
    } else {
      mg.addSeparator();
      mg.add( new MenuItem( "about", a ));
    }

    add( mg );
   
    addMenuItems();
View Full Code Here

TOP

Related Classes of de.sciss.gui.MenuGroup

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.