~ubuntu-branches/ubuntu/natty/electric/natty

« back to all changes in this revision

Viewing changes to com/sun/electric/tool/user/tecEditWizard/General.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:
25
25
 
26
26
import com.sun.electric.database.text.TextUtils;
27
27
 
28
 
import javax.swing.JPanel;
 
28
import java.awt.*;
29
29
 
30
30
/**
31
31
 * Class to handle the "General" tab of the Numeric Technology Editor dialog.
40
40
        }
41
41
 
42
42
        /** return the panel to use for this Numeric Technology Editor tab. */
43
 
        public JPanel getPanel() { return general; }
 
43
        public Component getComponent() { return general; }
44
44
 
45
45
        /** return the name of this Numeric Technology Editor tab. */
46
46
        public String getName() { return "General"; }
53
53
        {
54
54
                TechEditWizardData data = wizard.getTechEditData();
55
55
                stepSize.setText(Integer.toString(data.getStepSize()));
56
 
                techName.setText(data.getTechName());
 
56
        resolution.setText(Double.toString(data.getResolution()));
 
57
        techName.setText(data.getTechName());
57
58
                description.setText(data.getTechDescription());
58
59
 
59
 
        pwellButton.setSelected(data.getPWellProcess());
 
60
        psubstrateButton.setSelected(data.getPSubstratelProcess());
60
61
        horizontalButton.setSelected(data.getHorizontalTransistors());
61
62
    }
62
63
 
68
69
        {
69
70
                TechEditWizardData data = wizard.getTechEditData();
70
71
                data.setStepSize(TextUtils.atoi(stepSize.getText()));
71
 
                data.setTechName(techName.getText());
 
72
        data.setResolution(TextUtils.atof(resolution.getText()));
 
73
        data.setTechName(techName.getText());
72
74
                data.setTechDescription(description.getText());
73
 
        data.setPWellProcess(pwellButton.isSelected());
 
75
        data.setPSubstratelProcess(psubstrateButton.isSelected());
74
76
        data.setHorizontalTransistors(horizontalButton.isSelected());
75
77
    }
76
78
 
79
81
         * WARNING: Do NOT modify this code. The content of this method is
80
82
         * always regenerated by the Form Editor.
81
83
         */
82
 
    // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
 
84
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
83
85
    private void initComponents() {
84
86
        java.awt.GridBagConstraints gridBagConstraints;
85
87
 
101
103
        jLabel12 = new javax.swing.JLabel();
102
104
        jLabel14 = new javax.swing.JLabel();
103
105
        jLabel15 = new javax.swing.JLabel();
104
 
        pwellButton = new javax.swing.JCheckBox();
 
106
        psubstrateButton = new javax.swing.JCheckBox();
105
107
        horizontalButton = new javax.swing.JCheckBox();
106
 
 
107
 
        getContentPane().setLayout(new java.awt.GridBagLayout());
 
108
        jLabel13 = new javax.swing.JLabel();
 
109
        resolution = new javax.swing.JTextField();
108
110
 
109
111
        setTitle("General");
110
 
        setName("");
 
112
        setName(""); // NOI18N
111
113
        addWindowListener(new java.awt.event.WindowAdapter() {
112
114
            public void windowClosing(java.awt.event.WindowEvent evt) {
113
115
                closeDialog(evt);
114
116
            }
115
117
        });
 
118
        getContentPane().setLayout(new java.awt.GridBagLayout());
116
119
 
117
120
        general.setLayout(new java.awt.GridBagLayout());
118
121
 
221
224
        gridBagConstraints.insets = new java.awt.Insets(1, 4, 1, 0);
222
225
        general.add(jLabel9, gridBagConstraints);
223
226
 
224
 
        jLabel10.setText("the \"Added Technologies\" project preferences.");
 
227
        jLabel10.setText("the \"Added Technologies\" project settings.");
225
228
        gridBagConstraints = new java.awt.GridBagConstraints();
226
229
        gridBagConstraints.gridx = 0;
227
230
        gridBagConstraints.gridy = 6;
266
269
        gridBagConstraints.insets = new java.awt.Insets(4, 4, 1, 0);
267
270
        general.add(jLabel15, gridBagConstraints);
268
271
 
269
 
        pwellButton.setText("PWell process technology");
270
 
        pwellButton.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
271
 
        pwellButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
 
272
        psubstrateButton.setText("Psubstrate process");
 
273
        psubstrateButton.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
 
274
        psubstrateButton.addActionListener(new java.awt.event.ActionListener() {
 
275
            public void actionPerformed(java.awt.event.ActionEvent evt) {
 
276
                psubstrateButtonActionPerformed(evt);
 
277
            }
 
278
        });
272
279
        gridBagConstraints = new java.awt.GridBagConstraints();
273
280
        gridBagConstraints.gridx = 0;
274
 
        gridBagConstraints.gridy = 15;
 
281
        gridBagConstraints.gridy = 16;
275
282
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
276
283
        gridBagConstraints.insets = new java.awt.Insets(4, 4, 0, 0);
277
 
        general.add(pwellButton, gridBagConstraints);
 
284
        general.add(psubstrateButton, gridBagConstraints);
278
285
 
279
286
        horizontalButton.setText("Horizontal transistors");
280
287
        horizontalButton.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
281
 
        horizontalButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
282
288
        gridBagConstraints = new java.awt.GridBagConstraints();
283
289
        gridBagConstraints.gridx = 0;
284
 
        gridBagConstraints.gridy = 16;
 
290
        gridBagConstraints.gridy = 17;
285
291
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
286
292
        gridBagConstraints.insets = new java.awt.Insets(4, 4, 0, 0);
287
293
        general.add(horizontalButton, gridBagConstraints);
288
294
 
 
295
        jLabel13.setText("Resolution (nm):");
 
296
        gridBagConstraints = new java.awt.GridBagConstraints();
 
297
        gridBagConstraints.gridx = 0;
 
298
        gridBagConstraints.gridy = 15;
 
299
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
 
300
        gridBagConstraints.insets = new java.awt.Insets(1, 4, 1, 0);
 
301
        general.add(jLabel13, gridBagConstraints);
 
302
 
 
303
        resolution.setColumns(15);
 
304
        gridBagConstraints = new java.awt.GridBagConstraints();
 
305
        gridBagConstraints.gridx = 1;
 
306
        gridBagConstraints.gridy = 15;
 
307
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
 
308
        gridBagConstraints.weightx = 1.0;
 
309
        gridBagConstraints.insets = new java.awt.Insets(1, 0, 1, 2);
 
310
        general.add(resolution, gridBagConstraints);
 
311
 
289
312
        getContentPane().add(general, new java.awt.GridBagConstraints());
290
313
 
291
314
        pack();
298
321
                dispose();
299
322
        }//GEN-LAST:event_closeDialog
300
323
 
 
324
    private void psubstrateButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_psubstrateButtonActionPerformed
 
325
        // TODO add your handling code here:
 
326
}//GEN-LAST:event_psubstrateButtonActionPerformed
 
327
 
301
328
    // Variables declaration - do not modify//GEN-BEGIN:variables
302
329
    private javax.swing.JTextField description;
303
330
    private javax.swing.JPanel general;
306
333
    private javax.swing.JLabel jLabel10;
307
334
    private javax.swing.JLabel jLabel11;
308
335
    private javax.swing.JLabel jLabel12;
 
336
    private javax.swing.JLabel jLabel13;
309
337
    private javax.swing.JLabel jLabel14;
310
338
    private javax.swing.JLabel jLabel15;
311
339
    private javax.swing.JLabel jLabel2;
316
344
    private javax.swing.JLabel jLabel7;
317
345
    private javax.swing.JLabel jLabel8;
318
346
    private javax.swing.JLabel jLabel9;
319
 
    private javax.swing.JCheckBox pwellButton;
 
347
    private javax.swing.JCheckBox psubstrateButton;
 
348
    private javax.swing.JTextField resolution;
320
349
    private javax.swing.JTextField stepSize;
321
350
    private javax.swing.JTextField techName;
322
351
    // End of variables declaration//GEN-END:variables