Changeset 98 in tmcsimulator-scriptbuilder for trunk/src/scriptbuilder/gui/IncidentEditorFrame.java
- Timestamp:
- 08/29/2017 10:40:27 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/scriptbuilder/gui/IncidentEditorFrame.java
r89 r98 22 22 import javax.swing.DefaultListModel; 23 23 import javax.swing.JButton; 24 import scriptbuilder.gui.panels.IncidentTimelinePanel; 24 25 import scriptbuilder.structures.ScriptEvent; 25 26 import scriptbuilder.structures.ScriptEvent.ScriptEventType; … … 310 311 theIncident = (ScriptIncident) arg; 311 312 312 timelineTickPanel.update(theIncident );313 timeStampPanel.update(theIncident );313 timelineTickPanel.update(theIncident, incidentTimelinePanel1); 314 timeStampPanel.update(theIncident, incidentTimelinePanel1); 314 315 315 316 incidentTimelinePanel1.timelinePanelUpdate(theIncident); … … 438 439 timeStampScrollPane = new javax.swing.JScrollPane(); 439 440 timeStampPanel = new scriptbuilder.gui.panels.TimeStampPanel(); 441 btnAddTime = new javax.swing.JButton(); 440 442 441 443 cadEvent.setText("CAD Event"); … … 1245 1247 timeStampPanelLayout.setHorizontalGroup( 1246 1248 timeStampPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 1247 .addGap(0, 103 2, Short.MAX_VALUE)1249 .addGap(0, 1036, Short.MAX_VALUE) 1248 1250 ); 1249 1251 timeStampPanelLayout.setVerticalGroup( … … 1253 1255 1254 1256 timeStampScrollPane.setViewportView(timeStampPanel); 1257 1258 btnAddTime.setText("+15:00"); 1259 btnAddTime.addActionListener(new java.awt.event.ActionListener() 1260 { 1261 public void actionPerformed(java.awt.event.ActionEvent evt) 1262 { 1263 btnAddTimeActionPerformed(evt); 1264 } 1265 }); 1255 1266 1256 1267 javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); … … 1261 1272 .addContainerGap() 1262 1273 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 1263 .addComponent(timelinesScrollPane, 0, 0, Short.MAX_VALUE)1264 .addComponent(timeStampScrollPane)1265 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()1266 .addComponent(scriptEventsPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)1267 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)1268 .addComponent(scriptEventsPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))1269 1274 .addGroup(layout.createSequentialGroup() 1270 1275 .addComponent(selectButton, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE) … … 1275 1280 .addGap(18, 18, 18) 1276 1281 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 1277 .addComponent(zoomInIcon) 1278 .addComponent(zoomSlider, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE) 1279 .addComponent(zoomOutIcon)))) 1282 .addGroup(layout.createSequentialGroup() 1283 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 1284 .addComponent(zoomInIcon) 1285 .addComponent(zoomOutIcon)) 1286 .addGap(0, 0, Short.MAX_VALUE)) 1287 .addGroup(layout.createSequentialGroup() 1288 .addComponent(zoomSlider, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE) 1289 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 1290 .addComponent(btnAddTime, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))) 1291 .addComponent(timelinesScrollPane, 0, 0, Short.MAX_VALUE) 1292 .addComponent(timeStampScrollPane) 1293 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() 1294 .addComponent(scriptEventsPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 1295 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 1296 .addComponent(scriptEventsPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) 1280 1297 .addContainerGap()) 1281 1298 ); … … 1295 1312 .addGap(20, 20, 20) 1296 1313 .addComponent(zoomInIcon) 1297 .addGap(1, 1, 1) 1298 .addComponent(zoomSlider, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE) 1314 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 1315 .addGroup(layout.createSequentialGroup() 1316 .addGap(1, 1, 1) 1317 .addComponent(zoomSlider, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE)) 1318 .addGroup(layout.createSequentialGroup() 1319 .addGap(17, 17, 17) 1320 .addComponent(btnAddTime, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE))) 1299 1321 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 1300 1322 .addComponent(zoomOutIcon))) … … 1691 1713 zoomSlider.setValue(zoomSlider.getValue() <= 5 ? 5 : zoomSlider.getValue() - 1); 1692 1714 }//GEN-LAST:event_zoomOutIconMouseClicked 1715 1716 private void btnAddTimeActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_btnAddTimeActionPerformed 1717 {//GEN-HEADEREND:event_btnAddTimeActionPerformed 1718 incidentTimelinePanel1.requestedEditorFillerTime += IncidentTimelinePanel.FILLER_INTERVAL_SECONDS; 1719 this.update(null, theIncident); 1720 }//GEN-LAST:event_btnAddTimeActionPerformed 1693 1721 1694 1722 /** … … 1781 1809 private javax.swing.JButton atmsEvalButton; 1782 1810 private javax.swing.JButton audioButton; 1811 private javax.swing.JButton btnAddTime; 1783 1812 private javax.swing.JButton cadButton; 1784 1813 private javax.swing.JButton cadEvalButton;
Note: See TracChangeset
for help on using the changeset viewer.
