Changeset 160 in tmcsimulator-scriptbuilder for trunk/src/scriptbuilder
- Timestamp:
- 12/04/2019 02:41:53 PM (6 years ago)
- Location:
- trunk/src/scriptbuilder/gui
- Files:
-
- 3 edited
-
IncidentEditorFrame.form (modified) (3 diffs)
-
IncidentEditorFrame.java (modified) (9 diffs)
-
application.properties (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/scriptbuilder/gui/IncidentEditorFrame.form
r155 r160 834 834 <EmptySpace max="-2" attributes="0"/> 835 835 <Component id="witnessButton" min="-2" pref="120" max="-2" attributes="0"/> 836 <EmptySpace max="-2" attributes="0"/>837 <Component id="audioButton" min="-2" pref="120" max="-2" attributes="0"/>838 836 </Group> 839 837 </Group> … … 865 863 <Component id="unitButton" alignment="3" min="-2" pref="30" max="-2" attributes="0"/> 866 864 <Component id="witnessButton" alignment="3" min="-2" pref="30" max="-2" attributes="0"/> 867 <Component id="audioButton" alignment="3" min="-2" pref="30" max="-2" attributes="0"/>868 865 </Group> 869 866 </Group> … … 1000 997 <Events> 1001 998 <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="towButtonActionPerformed"/> 1002 </Events>1003 </Component>1004 <Component class="javax.swing.JButton" name="audioButton">1005 <Properties>1006 <Property name="text" type="java.lang.String" value="Audio"/>1007 <Property name="toolTipText" type="java.lang.String" value=""/>1008 <Property name="focusPainted" type="boolean" value="false"/>1009 <Property name="iconTextGap" type="int" value="0"/>1010 <Property name="margin" type="java.awt.Insets" editor="org.netbeans.beaninfo.editors.InsetsEditor">1011 <Insets value="[2, 10, 2, 10]"/>1012 </Property>1013 <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">1014 <Dimension value="[30, 25]"/>1015 </Property>1016 </Properties>1017 <Events>1018 <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="audioButtonActionPerformed"/>1019 999 </Events> 1020 1000 </Component> -
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; -
trunk/src/scriptbuilder/gui/application.properties
r158 r160 1 # Fri, 22 Nov 2019 17:54:32 -08001 #Wed, 04 Dec 2019 16:03:12 -0800 2 2 3 Application.revision=15 63 Application.revision=158 4 4 5 5 Application.buildnumber=52
Note: See TracChangeset
for help on using the changeset viewer.
