Examples of PrefComboBox


Examples of de.sciss.gui.PrefComboBox

    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

Examples of de.sciss.gui.PrefComboBox

    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

Examples of de.sciss.gui.PrefComboBox

    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

Examples of de.sciss.gui.PrefComboBox

 
    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

Examples of de.sciss.gui.PrefComboBox

      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
Copyright © 2018 www.massapi.com. 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.