~ubuntu-branches/ubuntu/maverick/electric/maverick

« back to all changes in this revision

Viewing changes to com/sun/electric/tool/user/dialogs/options/SpiceTab.java

  • Committer: Bazaar Package Importer
  • Author(s): Onkar Shinde
  • Date: 2010-01-09 16:26:04 UTC
  • mfrom: (1.1.4 upstream) (3.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20100109162604-1ypvmy8ijmlc6oq7
Tags: 8.10-1
* New upstream version.
* debian/control
  - Add libjava3d-java and quilt build dependencies.
  - Update standards version to 3.8.3.
  - Add libjava3d-java as recommends to binary package.
* debian/rules
  - Use quilt patch system instead of simple patchsys.
  - Add java3d related jar files to DEB_JARS.
* debian/patches/*
  - Update as per current upstream source. Convert to quilt.
* debian/ant.properties
  - Do not disable 3D plugin anymore.
  - Use new property to disable compilation of OS X related classes.
* debian/wrappers/electric
  - Add java3d related jar files to runtime classpath.
* debian/README.source
  - Change text to the appropriate one for quilt.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
import com.sun.electric.tool.user.dialogs.EDialog;
32
32
import com.sun.electric.tool.user.dialogs.OpenFile;
33
33
 
 
34
import java.awt.Frame;
34
35
import java.awt.event.ActionEvent;
35
36
import java.awt.event.ActionListener;
36
37
 
48
49
        }
49
50
 
50
51
        /** Creates new form SpiceTab */
51
 
        public SpiceTab(java.awt.Frame parent, boolean modal)
 
52
        public SpiceTab(Frame parent, boolean modal)
52
53
        {
53
54
                super(parent, modal);
54
55
                initComponents();
391
392
         * WARNING: Do NOT modify this code. The content of this method is
392
393
         * always regenerated by the Form Editor.
393
394
         */
394
 
    // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
 
395
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
395
396
    private void initComponents() {
396
397
        java.awt.GridBagConstraints gridBagConstraints;
397
398
 
454
455
        jSeparator4 = new javax.swing.JSeparator();
455
456
        jSeparator5 = new javax.swing.JSeparator();
456
457
 
457
 
        getContentPane().setLayout(new java.awt.GridBagLayout());
458
 
 
459
458
        setTitle("Spice Preferences");
460
 
        setName("");
 
459
        setName(""); // NOI18N
461
460
        addWindowListener(new java.awt.event.WindowAdapter() {
462
461
            public void windowClosing(java.awt.event.WindowEvent evt) {
463
462
                closeDialog(evt);
464
463
            }
465
464
        });
 
465
        getContentPane().setLayout(new java.awt.GridBagLayout());
466
466
 
 
467
        spice.setToolTipText("Options for Spice deck generation");
467
468
        spice.setLayout(new java.awt.GridBagLayout());
468
469
 
469
 
        spice.setToolTipText("Options for Spice deck generation");
 
470
        readingOutput.setBorder(javax.swing.BorderFactory.createTitledBorder("Reading Spice Output"));
470
471
        readingOutput.setLayout(new java.awt.GridBagLayout());
471
472
 
472
 
        readingOutput.setBorder(javax.swing.BorderFactory.createTitledBorder("Reading Spice Output"));
473
473
        jLabel10.setText("Output format:");
474
474
        gridBagConstraints = new java.awt.GridBagConstraints();
475
475
        gridBagConstraints.gridx = 0;
483
483
                spiceOutputFormatPopupActionPerformed(evt);
484
484
            }
485
485
        });
486
 
 
487
486
        gridBagConstraints = new java.awt.GridBagConstraints();
488
487
        gridBagConstraints.gridx = 1;
489
488
        gridBagConstraints.gridy = 0;
518
517
        gridBagConstraints.gridwidth = 2;
519
518
        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
520
519
        readingOutput.add(jLabel7, gridBagConstraints);
521
 
 
522
520
        gridBagConstraints = new java.awt.GridBagConstraints();
523
521
        gridBagConstraints.gridx = 3;
524
522
        gridBagConstraints.gridy = 1;
533
531
        gridBagConstraints.weightx = 1.0;
534
532
        spice.add(readingOutput, gridBagConstraints);
535
533
 
 
534
        execution.setBorder(javax.swing.BorderFactory.createTitledBorder("Running Spice"));
536
535
        execution.setLayout(new java.awt.GridBagLayout());
537
536
 
538
 
        execution.setBorder(javax.swing.BorderFactory.createTitledBorder("Running Spice"));
539
537
        spiceRunPopup.addActionListener(new java.awt.event.ActionListener() {
540
538
            public void actionPerformed(java.awt.event.ActionEvent evt) {
541
539
                spiceRunPopupActionPerformed(evt);
542
540
            }
543
541
        });
544
 
 
545
542
        gridBagConstraints = new java.awt.GridBagConstraints();
546
543
        gridBagConstraints.gridx = 2;
547
544
        gridBagConstraints.gridy = 0;
578
575
                useDirCheckBoxActionPerformed(evt);
579
576
            }
580
577
        });
581
 
 
582
578
        gridBagConstraints = new java.awt.GridBagConstraints();
583
579
        gridBagConstraints.gridx = 0;
584
580
        gridBagConstraints.gridy = 2;
612
608
                spiceRunHelpActionPerformed(evt);
613
609
            }
614
610
        });
615
 
 
616
611
        gridBagConstraints = new java.awt.GridBagConstraints();
617
612
        gridBagConstraints.gridx = 4;
618
613
        gridBagConstraints.gridy = 3;
626
621
        gridBagConstraints.gridy = 1;
627
622
        gridBagConstraints.insets = new java.awt.Insets(0, 5, 0, 5);
628
623
        execution.add(jLabel3, gridBagConstraints);
629
 
 
630
624
        gridBagConstraints = new java.awt.GridBagConstraints();
631
625
        gridBagConstraints.gridx = 3;
632
626
        gridBagConstraints.gridy = 1;
658
652
        gridBagConstraints.weightx = 1.0;
659
653
        spice.add(execution, gridBagConstraints);
660
654
 
 
655
        writingSpice.setBorder(javax.swing.BorderFactory.createTitledBorder("Writing Spice Deck"));
661
656
        writingSpice.setLayout(new java.awt.GridBagLayout());
662
657
 
663
 
        writingSpice.setBorder(javax.swing.BorderFactory.createTitledBorder("Writing Spice Deck"));
664
658
        upperLeft.setLayout(new java.awt.GridBagLayout());
665
659
 
666
660
        jLabel5.setText("Parasitics:");
686
680
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
687
681
        gridBagConstraints.insets = new java.awt.Insets(0, 2, 0, 0);
688
682
        upperLeft.add(jLabel9, gridBagConstraints);
689
 
 
690
683
        gridBagConstraints = new java.awt.GridBagConstraints();
691
684
        gridBagConstraints.gridx = 1;
692
685
        gridBagConstraints.gridy = 0;
694
687
        gridBagConstraints.weightx = 1.0;
695
688
        gridBagConstraints.insets = new java.awt.Insets(0, 4, 0, 4);
696
689
        upperLeft.add(spiceEnginePopup, gridBagConstraints);
697
 
 
698
690
        gridBagConstraints = new java.awt.GridBagConstraints();
699
691
        gridBagConstraints.gridx = 1;
700
692
        gridBagConstraints.gridy = 1;
710
702
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
711
703
        gridBagConstraints.insets = new java.awt.Insets(0, 2, 0, 0);
712
704
        upperLeft.add(jLabel13, gridBagConstraints);
713
 
 
714
705
        gridBagConstraints = new java.awt.GridBagConstraints();
715
706
        gridBagConstraints.gridx = 1;
716
707
        gridBagConstraints.gridy = 5;
720
711
        upperLeft.add(spicePrimitivesetPopup, gridBagConstraints);
721
712
 
722
713
        epicFrame.setLayout(new java.awt.GridBagLayout());
723
 
 
724
714
        gridBagConstraints = new java.awt.GridBagConstraints();
725
715
        gridBagConstraints.gridx = 0;
726
716
        gridBagConstraints.gridy = 3;
877
867
        gridBagConstraints.gridy = 6;
878
868
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
879
869
        modelCards.add(spiceTrailerCardsFromFile, gridBagConstraints);
880
 
 
881
870
        gridBagConstraints = new java.awt.GridBagConstraints();
882
871
        gridBagConstraints.gridx = 1;
883
872
        gridBagConstraints.gridy = 2;
909
898
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
910
899
        gridBagConstraints.weightx = 0.5;
911
900
        modelCards.add(spiceTrailerCardExtension, gridBagConstraints);
912
 
 
913
901
        gridBagConstraints = new java.awt.GridBagConstraints();
914
902
        gridBagConstraints.gridx = 1;
915
903
        gridBagConstraints.gridy = 6;
931
919
        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
932
920
        gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4);
933
921
        modelCards.add(spiceBrowseTrailerFile, gridBagConstraints);
934
 
 
935
922
        gridBagConstraints = new java.awt.GridBagConstraints();
936
923
        gridBagConstraints.gridx = 0;
937
924
        gridBagConstraints.gridy = 4;
939
926
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
940
927
        gridBagConstraints.insets = new java.awt.Insets(2, 0, 2, 0);
941
928
        modelCards.add(jSeparator4, gridBagConstraints);
942
 
 
943
929
        gridBagConstraints = new java.awt.GridBagConstraints();
944
930
        gridBagConstraints.gridx = 0;
945
931
        gridBagConstraints.gridy = 0;
982
968
    }//GEN-LAST:event_spiceRunPopupActionPerformed
983
969
 
984
970
    private void spiceRunHelpActionPerformed(ActionEvent evt) {//GEN-FIRST:event_spiceRunHelpActionPerformed
985
 
                String [] message ={"IMPORTANT: This executes a single program with the given args.  It does NOT run a command-line command.",
 
971
                String [] message ={"IMPORTANT: This executes a single program with the given arguments.  It does NOT run a command-line command.",
986
972
                                                        "For example, 'echo blah > file' will NOT work. Encapsulate it in a script if you want to do such things.",
987
973
                                                        "-----------------",
988
974
                                                        "The following variables are available to use in the program name and arguments:",
989
975
                                                        "   ${WORKING_DIR}:  The current working directory",
990
 
                                                        "   ${USE_DIR}:  The Use Dir field, if specified (otherwise defaults to WORKING_DIR)",
 
976
                                                        "   ${USE_DIR}:  The path entered in the 'Use Directory' field, if specified (defaults to WORKING_DIR)",
 
977
                                                        "   ${FILEPATH}:  The full path of the output file",
991
978
                                                        "   ${FILENAME}:  The output file name (with extension)",
992
979
                                                        "   ${FILENAME_NO_EXT}:  The output file name (without extension)",
993
 
                                                        "Example: Program: \"hspice\".  Args: \"${FILENAME}\"" };
 
980
                                                        "Example: Program: \"hspice\".  Arguments: \"${FILEPATH}\"" };
994
981
                JOptionPane.showMessageDialog(this, message, "Spice Run Help", JOptionPane.INFORMATION_MESSAGE);
995
982
    }//GEN-LAST:event_spiceRunHelpActionPerformed
996
983