Changeset 160 in tmcsimulator-scriptbuilder for trunk/src/scriptbuilder/gui/IncidentEditorFrame.java


Ignore:
Timestamp:
12/04/2019 02:41:53 PM (6 years ago)
Author:
sdanthin
Message:

IncidentEditorFrame?.java removed Audio button from GUI and removed associated functionality.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/scriptbuilder/gui/IncidentEditorFrame.java

    r155 r160  
    139139            switch (e.getKeyChar()) 
    140140            { 
    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; 
    145145                case 'c': 
    146146                    currentEventType = ScriptEventType.CAD_EVENT; 
     
    313313        eventButtons.add(witnessButton); 
    314314        eventButtons.add(unitButton); 
    315         eventButtons.add(audioButton); 
     315        //eventButtons.add(audioButton); 
    316316        eventButtons.add(cadButton); 
    317317        eventButtons.add(cctvButton); 
     
    386386        { 
    387387            //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"); 
    389389            TimeSlice slice = ((SliceChangedEvent) arg).slice; 
    390390 
     
    489489        paramicsButton = new javax.swing.JButton(); 
    490490        towButton = new javax.swing.JButton(); 
    491         audioButton = new javax.swing.JButton(); 
    492491        cctvButton = new javax.swing.JButton(); 
    493492        cadButton = new javax.swing.JButton(); 
     
    10161015        }); 
    10171016 
    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  
    10301017        cctvButton.setText("CCTV"); 
    10311018        cctvButton.setToolTipText(""); 
     
    10851072                            .addComponent(unitButton, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE) 
    10861073                            .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))) 
    10901075                    .addGroup(incidentEventsPanelLayout.createSequentialGroup() 
    10911076                        .addComponent(cadButton, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE) 
     
    11091094                            .addComponent(towButton, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) 
    11101095                            .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))) 
    11131097                    .addComponent(paramicsButton, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)) 
    11141098                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 
     
    16611645 
    16621646    /** 
    1663      * Selects AUDIO_EVENT as the current type of new event, upon click of 
    1664      * "Audio Event" button. 
    1665      * 
    1666      * @param evt the button press event 
    1667      */ 
    1668     private void audioButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_audioButtonActionPerformed 
    1669         toggleEventButton(audioButton, ScriptEventType.AUDIO_EVENT); 
    1670     }//GEN-LAST:event_audioButtonActionPerformed 
    1671  
    1672     /** 
    16731647     * Increases zoom level upon click of the "Zoom in" icon. 
    16741648     * 
     
    17771751    private javax.swing.JPanel addTimePanel; 
    17781752    private javax.swing.JButton atmsEvalButton; 
    1779     private javax.swing.JButton audioButton; 
    17801753    private javax.swing.JButton btnAddTime; 
    17811754    private javax.swing.JButton btnCancelNoise; 
Note: See TracChangeset for help on using the changeset viewer.