Package de.sciss.gui

Examples of de.sciss.gui.PrefComboBox


    ggBandsPerOct.addSpace( new ParamSpace( 1, 96, 1, 0, 0, 24 ));
    ggBandsPerOct.setPreferences( prefs, ConstQ.KEY_BANDSPEROCT );
    ggMaxTimeRes  = new PrefParamField();
    ggMaxTimeRes.addSpace( spcTime );
    ggMaxTimeRes.setPreferences( prefs, ConstQ.KEY_MAXTIMERES );
    ggMaxFFTSize  = new PrefComboBox();
    for( int i = 256; i <= 32768; i <<= 1 ) {
      final String s = String.valueOf( i );
      ggMaxFFTSize.addItem( new StringItem( s, s ));
    }
    ggMaxFFTSize.setPreferences( prefs, ConstQ.KEY_MAXFFTSIZE );
View Full Code Here


   
    recPane    = new SpringPanel( 4, 2, 4, 2 );
//    affp    = new AudioFileFormatPane( AudioFileFormatPane.ENCODING );
//    recPane.gridAdd( new JLabel( getResourceString( "labelFormat" ), SwingConstants.RIGHT ), 0, 1 );
//    recPane.gridAdd( affp, 1, 1 );
    ggRecordConfig  = new PrefComboBox();
    ggRecordConfig.setFocusable( false );
    lbPeak      = new JLabel();
    actionPeakReset  = new ActionPeakReset();
    ggPeakReset    = new JButton( actionPeakReset );
    ggPeakReset.setFocusable( false );
View Full Code Here

  public JComponent getSettingsView( RenderContext context )
  {
    final JPanel        p      = new JPanel( new FlowLayout() );
    final PrefParamField    ggGain    = new PrefParamField( ut );
    final PrefComboBox      ggGainType  = new PrefComboBox();
//    final Application      app      = AbstractApplication.getApplication();
   
    ggGain.addSpace( ParamSpace.spcAmpDecibels );
    ggGain.addSpace( ParamSpace.spcAmpPercentF );
    ggGainType.addItem( new StringItem( GAIN_ABSOLUTE, getResourceString( "plugInGainAbsolute" )));
    ggGainType.addItem( new StringItem( GAIN_NORMALIZED, getResourceString( "plugInGainNormalized" )));
   
    p.add( new JLabel( getResourceString( "plugInGain" ), SwingConstants.RIGHT ));
    p.add( ggGain );
    p.add( ggGainType );
    ggGain.setValueAndSpace( DEFAULT_GAIN );
    ggGain.setPreferences( prefs, KEY_GAIN );
    ggGainType.setSelectedIndex( 1 );
    ggGainType.setPreferences( prefs, KEY_GAINTYPE );

    return p;
  }
View Full Code Here

    final List            collAudioAdvanced;
    SpringPanel            tab;
    PrefParamField          ggParam;
    BasicPathField          ggPath;
    PrefCheckBox          ggCheckBox;
        PrefComboBox          ggChoice;
    JTabbedPane            ggTabPane;
    JLabel              lb;
    JComboBox            ggCombo;
        UIManager.LookAndFeelInfo[]    lafInfos;
    Box                b;

    Preferences            prefs;
    String              key, key2, title;
    int                row;

    ggTabPane  = new JTabbedPane();

    // ---------- global pane ----------

    tab    = createTab();

    row    = 0;
    prefs   = IOUtil.getUserPrefs();
    key    = IOUtil.KEY_TEMPDIR;
    key2  = "prefsTmpDir";
    lb    = new JLabel( getResourceString( key2 ), TRAILING );
    tab.gridAdd( lb, 0, row );
    ggPath  = new BasicPathField( PathField.TYPE_FOLDER, getResourceString( key2 ));
    ggPath.setPreferences( prefs, key );
    tab.gridAdd( ggPath, 1, row );

    row++;
    cm    = PrefCacheManager.getInstance();
    prefs   = cm.getPreferences();
    key    = PrefCacheManager.KEY_ACTIVE;
    key2  = "prefsCache";
    lb    = new JLabel( getResourceString( key2 ), TRAILING );
    tab.gridAdd( lb, 0, row );
    ggCheckBox = new PrefCheckBox( getResourceString( "prefsCacheActive" ));
    ggCheckBox.setPreferences( prefs, key );
//    tab.gridAdd( ggCheckBox, 1, row, -1, 1 );
    b    = Box.createHorizontalBox();
    b.add( ggCheckBox );
//
//    row++;
    key    = PrefCacheManager.KEY_CAPACITY;
    key2  = "prefsCacheCapacity";
    lb    = new JLabel( getResourceString( key2 ) + " [" +
                getResourceString( "labelMegaBytes" ) + "]", TRAILING );
//    tab.gridAdd( lb, 0, row );
    b.add( Box.createHorizontalStrut( 16 ));
    b.add( lb );
    ggParam  = new PrefParamField();
    ggParam.addSpace( spcIntegerFromOne );
    ggParam.setPreferences( prefs, key );
//    tab.gridAdd( ggParam, 1, row, -1, 1 );
    b.add( ggParam );
    tab.gridAdd( b, 1, row, -1, 1 );

    row++;   
    key    = PrefCacheManager.KEY_FOLDER;
    key2  = "prefsCacheFolder";
    lb    = new JLabel( getResourceString( key2 ), TRAILING );
    tab.gridAdd( lb, 0, row );
    ggPath  = new BasicPathField( PathField.TYPE_FOLDER, getResourceString( key2 ));
    ggPath.setPreferences( prefs, key );
    tab.gridAdd( ggPath, 1, row );

    row++;
    prefs   = app.getUserPrefs();
        key     = PrefsUtil.KEY_LOOKANDFEEL;
    key2  = "prefsLookAndFeel";
    title  = getResourceString( key2 );
    lb    = new JLabel( title, TRAILING );
    tab.gridAdd( lb, 0, row );
    ggChoice = new PrefComboBox();
    lafInfos = UIManager.getInstalledLookAndFeels();
        for( int i = 0; i < lafInfos.length; i++ ) {
            ggChoice.addItem( new StringItem( lafInfos[i].getClassName(), lafInfos[i].getName() ));
        }
    ggChoice.setPreferences( prefs, key );
    ggChoice.addActionListener( new WarnPrefsChange( ggChoice, ggChoice, haveWarned, txtWarnLookAndFeel, title ));
   
    tab.gridAdd( ggChoice, 1, row, -1, 1 );

    row++;
         key    = BasicWindowHandler.KEY_LAFDECORATION;
    key2  = "prefsLAFDecoration";
    title  = getResourceString( key2 );
    ggCheckBox  = new PrefCheckBox( title );
    ggCheckBox.setPreferences( prefs, key );
    tab.gridAdd( ggCheckBox, 1, row, -1, 1 );
    ggCheckBox.addActionListener( new WarnPrefsChange( ggCheckBox, ggCheckBox, haveWarned, txtWarnLookAndFeel, title ));

    row++;
         key    = BasicWindowHandler.KEY_INTERNALFRAMES;
    key2  = "prefsInternalFrames";
    title  = getResourceString( key2 );
    ggCheckBox  = new PrefCheckBox( title );
    ggCheckBox.setPreferences( prefs, key );
    tab.gridAdd( ggCheckBox, 1, row, -1, 1 );
    ggCheckBox.addActionListener( new WarnPrefsChange( ggCheckBox, ggCheckBox, haveWarned, txtWarnLookAndFeel, title ));

    row++;
         key    = CoverGrowBox.KEY_INTRUDINGSIZE;
    key2  = "prefsIntrudingSize";
    ggCheckBox  = new PrefCheckBox( getResourceString( key2 ));
    ggCheckBox.setPreferences( prefs, key );
    tab.gridAdd( ggCheckBox, 1, row, -1, 1 );

    row++;
         key    = BasicWindowHandler.KEY_FLOATINGPALETTES;
    key2  = "prefsFloatingPalettes";
    ggCheckBox  = new PrefCheckBox( getResourceString( key2 ));
    ggCheckBox.setPreferences( prefs, key );
    tab.gridAdd( ggCheckBox, 1, row, -1, 1 );
    ggCheckBox.addActionListener( new WarnPrefsChange( ggCheckBox, ggCheckBox, haveWarned, txtWarnLookAndFeel, title ));

//    row++;
//    prefs   = GUIUtil.getUserPrefs();
//    key2  = "prefsKeyStrokeHelp";
//    lb    = new JLabel( getResourceString( key2 ), JLabel.TRAILING );
//    tab.gridAdd( lb, 0, row );
//    ggKeyStroke = new KeyStrokeTextField();
//    ggKeyStroke.setPreferences( prefs, key );
//    tab.gridAdd( ggKeyStroke, 1, row, -1, 1 );

    addTab( ggTabPane, tab, "prefsGeneral");

    // ---------- audio pane ----------

    prefs   = app.getUserPrefs().node( PrefsUtil.NODE_AUDIO );
    audioPrefs  = prefs;
    abPrefs  = audioPrefs.node( PrefsUtil.NODE_AUDIOBOXES );
    tab    = createTab();

    row    = 0;
    key    = PrefsUtil.KEY_SUPERCOLLIDERAPP;
    key2  = "prefsSuperColliderApp";
    lb    = new JLabel( getResourceString( key2 ), TRAILING );
    tab.gridAdd( lb, 0, row );
    ggPath = new BasicPathField( PathField.TYPE_INPUTFILE, getResourceString( key2 ));
    ggPath.setPreferences( prefs, key );
//    HelpGlassPane.setHelp( ggPath, key2 );
    tab.gridAdd( ggPath, 1, row );

//    row++;
//    key    = PrefsUtil.KEY_SUPERCOLLIDEROSC;
//    key2  = "prefsSuperColliderOSC";
//    lb    = new JLabel( getResourceString( key2 ), JLabel.TRAILING );
//    tab.gridAdd( lb, 0, row );
//    ggText  = new PrefTextField( 32 );
//    ggText.setPreferences( prefs, key );
//    tab.gridAdd( ggText, 1, row, -1, 1 );

        row++;
        key    = PrefsUtil.KEY_AUTOBOOT;
        key2  = "prefsAutoBoot";
//    lb    = new JLabel( getResourceString( key2 ), JLabel.TRAILING );
//    tab.gridAdd( lb, 0, row );
        ggCheckBox  = new PrefCheckBox( getResourceString( key2 ));
        ggCheckBox.setPreferences( prefs, key );
//    HelpGlassPane.setHelp( ggCheckBox, key2 );
        tab.gridAdd( ggCheckBox, 1, row, -1, 1 );

     row++;
        key    = PrefsUtil.KEY_AUTOPLAYFROMFINDER;
    key2  = "prefsAutoPlayFromFinder";
    lb    = new JLabel( getResourceString( key2 ), JLabel.TRAILING );
    tab.gridAdd( lb, 0, row );
        ggChoice = new PrefComboBox();
        ggChoice.addItem( new StringItem( PrefsUtil.AUTOPLAYFROMFINDER_NONE, getResourceString( key2 + "." + PrefsUtil.AUTOPLAYFROMFINDER_NONE )));
        ggChoice.addItem( new StringItem( PrefsUtil.AUTOPLAYFROMFINDER_PLAY, getResourceString( key2 + "." + PrefsUtil.AUTOPLAYFROMFINDER_PLAY )));
        ggChoice.addItem( new StringItem( PrefsUtil.AUTOPLAYFROMFINDER_LOOP, getResourceString( key2 + "." + PrefsUtil.AUTOPLAYFROMFINDER_LOOP )));
        ggChoice.setPreferences( prefs, key );
        tab.gridAdd( ggChoice, 1, row, -1, 1 );

    row++;
    lb    = new JLabel( getResourceString( "labelAudioIFs" ), TRAILING );
    tab.gridAdd( lb, 0, row );
    tab.gridAdd( createAudioBoxGUI(), 1, row, 1, -1 );

    row++;
    key    = PrefsUtil.KEY_AUDIORATE;
    key2  = "prefsAudioRate";
    lb    = new JLabel( getResourceString( key2 ), TRAILING );
    tab.gridAdd( lb, 0, row );
    ggParam  = new PrefParamField();
    ggParam.addSpace( ParamSpace.spcFreqHertz );
    ggCombo = new JComboBox();
    for( int i = 0; i < RATE_ITEMS.length; i++ ) {
      ggCombo.addItem( RATE_ITEMS[ i ]);
    }
    ggParam.setBorder( new ComboBoxEditorBorder() );
    ggCombo.setEditor( ggParam );
    ggCombo.setEditable( true );
    ggParam.setPreferences( prefs, key ); // important to be _afer_ setEditor because otherwise prefs get overwritten!
//    ggCombo.setSelectedIndex( 0 ); // DEFAULT_RATE
//ggParam.setPreferredSize( new Dimension( ggParam.getPreferredSize().width, Math.max( 24, ggParam.getPreferredSize().height )));
//ggCombo.setPreferredSize( new Dimension( ggCombo.getPreferredSize().width, Math.max( 24, ggCombo.getPreferredSize().height )));
    tab.gridAdd( ggCombo, 1, row, -1, 1 );

    row++;
    b  = Box.createHorizontalBox();
    b.add( Box.createHorizontalGlue() );
    ggTreeAudio  = new TreeExpanderButton();
    b.add( ggTreeAudio );
    b.add( new JLabel( getResourceString( "prefsAdvanced" )));
    tab.gridAdd( b, 0, row );

    collAudioAdvanced = new ArrayList();

    row++;
    key2  = "prefsSuperColliderOSC";
    lb    = new JLabel( getResourceString( key2 ), TRAILING );
    lb.setVisible( false );
    collAudioAdvanced.add( lb );
    tab.gridAdd( lb, 0, row );
    key    = PrefsUtil.KEY_SCPROTOCOL;
    key2  = "prefsOSCProtocol";
    lb    = new JLabel( getResourceString( key2 ), TRAILING );
//    tab.gridAdd( lb, 2, row );
    b    = Box.createHorizontalBox();
    b.add( Box.createHorizontalStrut( 4 ));
    b.add( lb );
    ggChoice = new PrefComboBox();
    ggChoice.addItem( new StringItem( OSCChannel.TCP, "TCP" ));
    ggChoice.addItem( new StringItem( OSCChannel.UDP, "UDP" ));
    ggChoice.setPreferences( prefs, key );
//    tab.gridAdd( ggChoice, 3, row, -1, 1 );
    b.add( ggChoice );

    key    = PrefsUtil.KEY_SCPORT;
    key2  = "prefsOSCPort";
    lb    = new JLabel( getResourceString( key2 ), TRAILING );
//    tab.gridAdd( lb, 4, row );
    b.add( Box.createHorizontalStrut( 16 ));
    b.add( lb );
    ggParam  = new PrefParamField();
    ggParam.addSpace( spcIntegerFromZero );
    ggParam.setPreferences( prefs, key );
//    tab.gridAdd( ggParam, 5, row, -1, 1 );
    b.add( ggParam );
    b.setVisible( false );
    collAudioAdvanced.add( b );
    tab.gridAdd( b, 1, row, -1, 1 );

    row++;
    key    = PrefsUtil.KEY_SCBLOCKSIZE;
    key2  = "prefsSCBlockSize";
    lb    = new JLabel( getResourceString( key2 ), TRAILING );
    lb.setVisible( false );
    collAudioAdvanced.add( lb );
    tab.gridAdd( lb, 0, row );
    ggParam  = new PrefParamField();
    ggParam.addSpace( spcIntegerFromOne );
    ggParam.setPreferences( prefs, key );
    ggParam.setVisible( false );
    collAudioAdvanced.add( ggParam );
    tab.gridAdd( ggParam, 1, row, -1, 1 );

    row++;
    key    = PrefsUtil.KEY_AUDIOBUSSES;
    key2  = "prefsAudioBusses";
    lb    = new JLabel( getResourceString( key2 ), TRAILING );
    lb.setVisible( false );
    collAudioAdvanced.add( lb );
    tab.gridAdd( lb, 0, row );
    ggParam  = new PrefParamField();
    ggParam.addSpace( spcIntegerFromOne );
    ggParam.setPreferences( prefs, key );
    ggParam.setVisible( false );
    collAudioAdvanced.add( ggParam );
    tab.gridAdd( ggParam, 1, row, -1, 1 );
//    pAudio.makeCompactGrid();
//    pAudio.setVisible( false );

    row++;
    key    = PrefsUtil.KEY_SCMEMSIZE;
    key2  = "prefsSCMemSize";
    lb    = new JLabel( getResourceString( key2 ), TRAILING );
    lb.setVisible( false );
    collAudioAdvanced.add( lb );
    tab.gridAdd( lb, 0, row );
    ggParam  = new PrefParamField();
    ggParam.addSpace( spcIntegerFromOne );
    ggParam.setPreferences( prefs, key );
    ggParam.setVisible( false );
    collAudioAdvanced.add( ggParam );
    tab.gridAdd( ggParam, 1, row, -1, 1 );

    row++;
    key    = PrefsUtil.KEY_SCRENDEZVOUS;
    key2  = "prefsSCRendezvous";
    lb    = new JLabel( getResourceString( key2 ), TRAILING );
    lb.setVisible( false );
    collAudioAdvanced.add( lb );
    tab.gridAdd( lb, 0, row );
    ggCheckBox  = new PrefCheckBox();
    ggCheckBox.setPreferences( prefs, key );
    ggCheckBox.setVisible( false );
    collAudioAdvanced.add( ggCheckBox );
    tab.gridAdd( ggCheckBox, 1, row, -1, 1 );

final SpringPanel tabAudio = tab;
    ggTreeAudio.addActionListener( new ActionListener() {
      public void actionPerformed( ActionEvent e )
      {
        final int    width  = getWindow().getWidth();
        final int    height  = getWindow().getHeight();
        final boolean  visible  = ggTreeAudio.isExpanded();
        int        delta  = 0;
        int        d2;
       
        for( int i = 0; i < collAudioAdvanced.size(); ) {
          d2 = 0;
          for( int j = i + 2; i < j; i++ ) {
            d2 = Math.max( d2, ((JComponent) collAudioAdvanced.get( i )).getPreferredSize().height );
          }
          delta = delta + d2 + 2;
        }

        for( int i = 0; i < collAudioAdvanced.size(); i++ ) {
          ((JComponent) collAudioAdvanced.get( i )).setVisible( visible );
        }
        tabAudio.makeCompactGrid();
        getWindow().setSize( width, height + (visible ? delta : -delta ));
      }
    });

    addTab( ggTabPane, tab, "prefsAudio" );

    // ---------- osc pane ----------

    tab    = createTab();

    row    = 0;
    osc    = OSCRoot.getInstance();
    prefs   = osc.getPreferences();
    key    = OSCRoot.KEY_ACTIVE;
//    key2  = "prefsOSCActive";
    key2  = "prefsOSCServer";
    lb    = new JLabel( getResourceString( key2 ), TRAILING );
    tab.gridAdd( lb, 0, row );
    b    = Box.createHorizontalBox();
    ggCheckBox = new PrefCheckBox( getResourceString( "prefsOSCActive" ));
    ggCheckBox.setPreferences( prefs, key );
//    tab.gridAdd( ggCheckBox, 1, row, -1, 1 );
    b.add( ggCheckBox );

    key    = OSCRoot.KEY_PROTOCOL;
    key2  = "prefsOSCProtocol";
    lb    = new JLabel( getResourceString( key2 ), TRAILING );
//    tab.gridAdd( lb, 2, row );
    b.add( Box.createHorizontalStrut( 16 ));
    b.add( lb );
    ggChoice = new PrefComboBox();
    ggChoice.addItem( new StringItem( OSCChannel.TCP, "TCP" ));
    ggChoice.addItem( new StringItem( OSCChannel.UDP, "UDP" ));
    ggChoice.setPreferences( prefs, key );
//    tab.gridAdd( ggChoice, 3, row, -1, 1 );
    b.add( ggChoice );

    key    = OSCRoot.KEY_PORT;
    key2  = "prefsOSCPort";
View Full Code Here

    final Object      comboProto    = "XXXXXXXX";

    b1        = new SpringPanel( 2, 4, 2, 4 );
    lmm.setDynamicComponent( b1 );
    ggVolume    = new VolumeFader();
    ggOutputConfig  = new PrefComboBox();
    ggOutputConfig.putClientProperty( "JComboBox.isSquare", Boolean.TRUE );
    ggAudioBox    = new PrefComboBox();
    ggAudioBox.putClientProperty( "JComboBox.isSquare", Boolean.TRUE );
    ggOutputConfig.setPrototypeDisplayValue( comboProto );
    ggAudioBox.setPrototypeDisplayValue( comboProto );
    refillConfigs();
    ggOutputConfig.setPreferences( audioPrefs, PrefsUtil.KEY_OUTPUTCONFIG );
View Full Code Here

    KeyStrokeTextField        ggKeyStroke;
    PrefTextArea          ggArea;
    PrefNumberField          ggNumber;
    PrefPathField          ggPath;
    PrefCheckBox          ggCheckBox;
        PrefComboBox          ggChoice;
    JTabbedPane            ggTabPane;
    JLabel              lb;
        UIManager.LookAndFeelInfo[]    lafInfos;
    SpringPanel            tab;

    Preferences            prefs;
    String              key, key2, title;
    int                row;

    ggTabPane      = new JTabbedPane();

      setTitle( getResourceString( "framePrefs" ));

      // ---------- global pane ----------

    tab    = createTab();

    row  = 0;
    prefs   = IOUtil.getUserPrefs();
    key    = IOUtil.KEY_TEMPDIR;
    key2  = "prefsTmpDir";
    lb    = new JLabel( getResourceString( key2 ), JLabel.TRAILING );
    tab.gridAdd( lb, 0, row );
    ggPath = new PrefPathField( PathField.TYPE_FOLDER, getResourceString( key2 ));
    ggPath.setPreferences( prefs, key );
//        HelpGlassPane.setHelp( ggPath, key2 );  // EEE
    tab.gridAdd( ggPath, 1, row );

    row++;
    prefs   = app.getUserPrefs();
    key    = PrefsUtil.KEY_RECALLFRAMES;
    key2  = "prefsRecallFrames";
    lb    = new JLabel( getResourceString( key2 ), JLabel.TRAILING );
    tab.gridAdd( lb, 0, row );
    ggCheckBox  = new PrefCheckBox();
    ggCheckBox.setPreferences( prefs, key );
//        HelpGlassPane.setHelp( ggCheckBox, key2 );  // EEE
    tab.gridAdd( ggCheckBox, 1, row );
   
    row++;
    prefs   = app.getUserPrefs();
        key     = PrefsUtil.KEY_LOOKANDFEEL;
    key2  = "prefsLookAndFeel";
    title  = getResourceString( key2 );
    lb    = new JLabel( title, TRAILING );
    tab.gridAdd( lb, 0, row );
    ggChoice = new PrefComboBox();
    lafInfos = UIManager.getInstalledLookAndFeels();
        for( int i = 0; i < lafInfos.length; i++ ) {
            ggChoice.addItem( new StringItem( lafInfos[i].getClassName(), lafInfos[i].getName() ));
        }
    ggChoice.setPreferences( prefs, key );
    ggChoice.addActionListener( new WarnPrefsChange( ggChoice, ggChoice, haveWarned, txtWarnLookAndFeel, title ));
   
    tab.gridAdd( ggChoice, 1, row, -1, 1 );

    row++;
         key    = BasicWindowHandler.KEY_LAFDECORATION;
View Full Code Here

    lay      = new SpringLayout();
    topPanel.setLayout( lay );
    rows    = 0;

    // plug-in gadget
    ggPlugIn  = new PrefComboBox();
    for( int i = 0; i < coll.size(); i++ ) {
      map = (Map) coll.get(i);
      ggPlugIn.addItem( new StringItem( map.get( Main.KEY_CLASSNAME ).toString(),
                        map.get( Main.KEY_HUMANREADABLENAME )));
    }  
    ggPlugIn.setPreferences( classPrefs, KEY_PLUGIN );
    lb  = new JLabel( app.getResourceString( "plugin" ));
    topPanel.add( lb );
    topPanel.add( ggPlugIn );
    rows++;

    // resampling gadget
    if( (flags & GADGET_RESAMPLING) != 0 ) {
      ggResampling  = new PrefComboBox();
      for( int i = 0; i < rsmpItems.length; i++ ) {
        ggResampling.addItem( rsmpItems[i] );
      }
      ggResampling.setSelectedIndex( 1 );
      ggResampling.setPreferences( classPrefs, KEY_RESAMPLING );
View Full Code Here

    final Insets        bourgeois    = new Insets( 2, 24, 14, 4 );
    final Application      app        = AbstractApplication.getApplication();

    this.setLayout( lay );

    ggMode      = new PrefComboBox();
    for( int i = 0; i < modes.length; i++ ) {
      ggMode.addItem( modes[i] );
    }
    ggMode.setSelectedIndex( MODE_CARTESIAN );
    ggMode.setPreferences( classPrefs, KEY_MODE );

    ggApplyX    = new PrefCheckBox(); // Main.getResourceString( "renderVTApplyX" ));
    ggApplyY    = new PrefCheckBox(); // Main.getResourceString( "renderVTApplyY" ));
    ggTransformX  = new PrefComboBox();
    ggTransformY  = new PrefComboBox();
    ggCenterX    = new PrefNumberField();
//    ggCenterX.setSpace( new NumberSpace( 0.0, 1.0, 0.0 ));
    ggCenterX.setSpace( new NumberSpace( -1.0, 1.0, 0.0 ));
//    ggCenterX.setNumber( new Double( 0.5 ));
    ggCenterX.setNumber( new Double( 0.0 ));
View Full Code Here

 
    this.setLayout( new BoxLayout( this, BoxLayout.Y_AXIS ));
    panelUs      = new JPanel( new SpringLayout() );
    rows      = 0;

    ggLispSource  = new PrefComboBox();
    ggLispSource.setPreferences( classPrefs, KEY_LISPSOURCE );
    lab        = new JLabel( app.getResourceString( "labelLispSource" ));
    ggReload    = new JButton( app.getResourceString( "labelReload" ));
    ggReload.addActionListener( new ActionListener() {
      public void actionPerformed( ActionEvent e )
View Full Code Here

      if( pEnc == null ) {
        pEnc = new SpringPanel( 4, 2, 4, 2 );
        gridAdd( pEnc, 0, 0, -1, 1 );
      }
      if( (flagsAdded & FORMAT) != 0 ) {
        ggFormat  = new PrefComboBox();
        items    = AudioFileDescr.getFormatItems();
        for( int i = 0; i < items.length; i++ ) {
          ggFormat.addItem( items[ i ]);
        }
        ggFormat.setSelectedIndex( 0 );
        if( prefs != null ) ggFormat.setPreferences( prefs, KEY_FORMAT );
        ggFormat.addItemListener( this );
        pEnc.gridAdd( ggFormat, 0, 0 );
      }
      if( (flagsAdded & ENCODING) != 0 ) {
        ggEncoding  = new PrefComboBox();
        items    = ENCODING_ITEMS;
        for( int i = 0; i < items.length; i++ ) {
          ggEncoding.addItem( items[ i ]);
        }
        ggEncoding.setSelectedIndex( DEFAULT_ENCODING );
View Full Code Here

TOP

Related Classes of de.sciss.gui.PrefComboBox

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.