Changeset 160 in tmcsimulator-scriptbuilder for trunk/src/scriptbuilder/gui/IncidentEditorFrame.java
- Timestamp:
- 12/04/2019 02:41:53 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/scriptbuilder/gui/IncidentEditorFrame.java
r155 r160 139 139 switch (e.getKeyChar()) 140 140 { 141 case 'u':142 currentEventType = ScriptEventType.AUDIO_EVENT;143 newButton = audioButton;144 break;141 // case 'u': 142 // currentEventType = ScriptEventType.AUDIO_EVENT; 143 // newButton = audioButton; 144 // break; 145 145 case 'c': 146 146 currentEventType = ScriptEventType.CAD_EVENT; … … 313 313 eventButtons.add(witnessButton); 314 314 eventButtons.add(unitButton); 315 eventButtons.add(audioButton);315 //eventButtons.add(audioButton); 316 316 eventButtons.add(cadButton); 317 317 eventButtons.add(cctvButton); … … 386 386 { 387 387 //this seems to be only called when the window is initialized again 388 System.out.println("you got the hover over a timeslice");388 //System.out.println("you got the hover over a timeslice"); 389 389 TimeSlice slice = ((SliceChangedEvent) arg).slice; 390 390 … … 489 489 paramicsButton = new javax.swing.JButton(); 490 490 towButton = new javax.swing.JButton(); 491 audioButton = new javax.swing.JButton();492 491 cctvButton = new javax.swing.JButton(); 493 492 cadButton = new javax.swing.JButton(); … … 1016 1015 }); 1017 1016 1018 audioButton.setText("Audio");1019 audioButton.setToolTipText("");1020 audioButton.setFocusPainted(false);1021 audioButton.setIconTextGap(0);1022 audioButton.setMargin(new java.awt.Insets(2, 10, 2, 10));1023 audioButton.setPreferredSize(new java.awt.Dimension(30, 25));1024 audioButton.addActionListener(new java.awt.event.ActionListener() {1025 public void actionPerformed(java.awt.event.ActionEvent evt) {1026 audioButtonActionPerformed(evt);1027 }1028 });1029 1030 1017 cctvButton.setText("CCTV"); 1031 1018 cctvButton.setToolTipText(""); … … 1085 1072 .addComponent(unitButton, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE) 1086 1073 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 1087 .addComponent(witnessButton, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE) 1088 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 1089 .addComponent(audioButton, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE))) 1074 .addComponent(witnessButton, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE))) 1090 1075 .addGroup(incidentEventsPanelLayout.createSequentialGroup() 1091 1076 .addComponent(cadButton, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE) … … 1109 1094 .addComponent(towButton, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) 1110 1095 .addComponent(unitButton, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) 1111 .addComponent(witnessButton, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) 1112 .addComponent(audioButton, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))) 1096 .addComponent(witnessButton, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))) 1113 1097 .addComponent(paramicsButton, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)) 1114 1098 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) … … 1661 1645 1662 1646 /** 1663 * Selects AUDIO_EVENT as the current type of new event, upon click of1664 * "Audio Event" button.1665 *1666 * @param evt the button press event1667 */1668 private void audioButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_audioButtonActionPerformed1669 toggleEventButton(audioButton, ScriptEventType.AUDIO_EVENT);1670 }//GEN-LAST:event_audioButtonActionPerformed1671 1672 /**1673 1647 * Increases zoom level upon click of the "Zoom in" icon. 1674 1648 * … … 1777 1751 private javax.swing.JPanel addTimePanel; 1778 1752 private javax.swing.JButton atmsEvalButton; 1779 private javax.swing.JButton audioButton;1780 1753 private javax.swing.JButton btnAddTime; 1781 1754 private javax.swing.JButton btnCancelNoise;
Note: See TracChangeset
for help on using the changeset viewer.
