Changeset 98 in tmcsimulator-scriptbuilder for trunk/src/scriptbuilder/gui/ScriptBuilderFrame.java
- Timestamp:
- 08/29/2017 10:40:27 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/scriptbuilder/gui/ScriptBuilderFrame.java
r95 r98 25 25 import javax.swing.UIManager; 26 26 import javax.swing.UnsupportedLookAndFeelException; 27 import scriptbuilder.gui.panels.IncidentTimelinePanel; 27 28 import scriptbuilder.structures.ScriptEvent; 28 29 import scriptbuilder.structures.ScriptEvent.ScriptEventType; … … 333 334 timeStampScrollPane = new javax.swing.JScrollPane(); 334 335 timeStampPanel = new scriptbuilder.gui.panels.TimeStampPanel(); 336 btnAddTime = new javax.swing.JButton(); 335 337 scriptBuilderMenuBar = new javax.swing.JMenuBar(); 336 338 fileMenu = new javax.swing.JMenu(); … … 1177 1179 timeStampScrollPane.setViewportView(timeStampPanel); 1178 1180 1181 btnAddTime.setText("+15:00"); 1182 btnAddTime.addActionListener(new java.awt.event.ActionListener() 1183 { 1184 public void actionPerformed(java.awt.event.ActionEvent evt) 1185 { 1186 btnAddTimeActionPerformed(evt); 1187 } 1188 }); 1189 1179 1190 fileMenu.setText("File"); 1180 1191 fileMenu.setMargin(new java.awt.Insets(0, 10, 0, 10)); … … 1400 1411 .addComponent(timeStampScrollPane) 1401 1412 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() 1402 .addGap(0, 597, Short.MAX_VALUE)1413 .addGap(0, 604, Short.MAX_VALUE) 1403 1414 .addComponent(zoomOutIcon) 1404 1415 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) … … 1406 1417 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 1407 1418 .addComponent(zoomInIcon) 1408 .addGap(136, 136, 136))) 1419 .addGap(18, 18, 18) 1420 .addComponent(btnAddTime) 1421 .addGap(21, 21, 21))) 1409 1422 .addContainerGap()) 1410 1423 ); … … 1416 1429 .addComponent(zoomOutIcon) 1417 1430 .addComponent(zoomSlider, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) 1418 .addComponent(zoomInIcon)) 1431 .addComponent(zoomInIcon) 1432 .addComponent(btnAddTime)) 1419 1433 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 1420 1434 .addComponent(timeStampScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE) … … 2025 2039 }//GEN-LAST:event_deleteIncidentActionPerformed 2026 2040 2041 private void btnAddTimeActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_btnAddTimeActionPerformed 2042 {//GEN-HEADEREND:event_btnAddTimeActionPerformed 2043 IncidentTimelinePanel.requestedScriptBuilderFillerTime += IncidentTimelinePanel.FILLER_INTERVAL_SECONDS; 2044 this.update(script, script); 2045 }//GEN-LAST:event_btnAddTimeActionPerformed 2046 2027 2047 /** 2028 2048 * Read the version number from the application properties. The file … … 2116 2136 private javax.swing.JSpinner addIncidentStart; 2117 2137 private javax.swing.JFrame addNoiseFrame; 2138 private javax.swing.JButton btnAddTime; 2118 2139 private javax.swing.JMenuItem cadEvent; 2119 2140 private javax.swing.JFrame cadEventFrame;
Note: See TracChangeset
for help on using the changeset viewer.
