- Timestamp:
- 08/14/2017 12:33:56 PM (9 years ago)
- Location:
- trunk/src/scriptbuilder/gui
- Files:
-
- 5 edited
-
IncidentEditorFrame.form (modified) (4 diffs)
-
IncidentEditorFrame.java (modified) (3 diffs)
-
ScriptBuilderFrame.form (modified) (4 diffs)
-
ScriptBuilderFrame.java (modified) (17 diffs)
-
application.properties (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/scriptbuilder/gui/IncidentEditorFrame.form
r54 r55 416 416 </NonVisualComponents> 417 417 <Properties> 418 <Property name="defaultCloseOperation" type="int" value=" 3"/>418 <Property name="defaultCloseOperation" type="int" value="2"/> 419 419 <Property name="title" type="java.lang.String" value="Script Builder"/> 420 420 <Property name="cursor" type="java.awt.Cursor" editor="org.netbeans.modules.form.editors2.CursorEditor"> … … 422 422 </Property> 423 423 <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> 424 <Dimension value="[800, 800]"/> 424 <Dimension value="[800, 700]"/> 425 </Property> 426 <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> 427 <Dimension value="[945, 1545]"/> 428 </Property> 429 <Property name="size" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> 430 <Dimension value="[800, 700]"/> 425 431 </Property> 426 432 </Properties> … … 499 505 <Component id="timeStampScrollPane" min="-2" pref="20" max="-2" attributes="0"/> 500 506 <EmptySpace max="-2" attributes="0"/> 501 <Component id="timelinesScrollPane" min="-2" pref="3 65" max="-2" attributes="0"/>502 <EmptySpace type="unrelated"max="-2" attributes="0"/>503 <Group type="103" groupAlignment="0" max="-2"attributes="0">504 <Component id="scriptEventsPanel " max="32767" attributes="1"/>505 <Component id="scriptEventsPanel 1" alignment="0" max="32767" attributes="1"/>507 <Component id="timelinesScrollPane" min="-2" pref="324" max="-2" attributes="0"/> 508 <EmptySpace max="-2" attributes="0"/> 509 <Group type="103" groupAlignment="0" attributes="0"> 510 <Component id="scriptEventsPanel1" min="-2" max="-2" attributes="1"/> 511 <Component id="scriptEventsPanel" min="-2" max="-2" attributes="1"/> 506 512 </Group> 507 513 <EmptySpace max="32767" attributes="0"/> … … 631 637 <Group type="103" groupAlignment="0" attributes="0"> 632 638 <Group type="102" alignment="0" attributes="0"> 633 <Component id="scriptEventsPane" pref=" 197" max="32767" attributes="0"/>639 <Component id="scriptEventsPane" pref="215" max="32767" attributes="0"/> 634 640 <EmptySpace max="-2" attributes="0"/> 635 641 </Group> -
trunk/src/scriptbuilder/gui/IncidentEditorFrame.java
r54 r55 710 710 ); 711 711 712 setDefaultCloseOperation(javax.swing.WindowConstants. EXIT_ON_CLOSE);712 setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); 713 713 setTitle("Script Builder"); 714 714 setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR)); 715 setMinimumSize(new java.awt.Dimension(800, 800)); 715 setMinimumSize(new java.awt.Dimension(800, 700)); 716 setPreferredSize(new java.awt.Dimension(945, 1545)); 717 setSize(new java.awt.Dimension(800, 700)); 716 718 717 719 timelinesScrollPane.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS); … … 796 798 scriptEventsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 797 799 .addGroup(scriptEventsPanelLayout.createSequentialGroup() 798 .addComponent(scriptEventsPane, javax.swing.GroupLayout.DEFAULT_SIZE, 197, Short.MAX_VALUE)800 .addComponent(scriptEventsPane, javax.swing.GroupLayout.DEFAULT_SIZE, 215, Short.MAX_VALUE) 799 801 .addContainerGap()) 800 802 ); … … 1307 1309 .addComponent(timeStampScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE) 1308 1310 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 1309 .addComponent(timelinesScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 3 65, javax.swing.GroupLayout.PREFERRED_SIZE)1310 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement. UNRELATED)1311 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING , false)1312 .addComponent(scriptEventsPanel , javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)1313 .addComponent(scriptEventsPanel 1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))1311 .addComponent(timelinesScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 324, javax.swing.GroupLayout.PREFERRED_SIZE) 1312 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 1313 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 1314 .addComponent(scriptEventsPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) 1315 .addComponent(scriptEventsPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) 1314 1316 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) 1315 1317 ); -
trunk/src/scriptbuilder/gui/ScriptBuilderFrame.form
r53 r55 896 896 <Component id="timelinesScrollPane" alignment="0" min="0" pref="0" max="32767" attributes="1"/> 897 897 <Component id="timeStampScrollPane" alignment="0" max="32767" attributes="0"/> 898 <Group type="102" alignment="0" attributes="0"> 899 <Component id="selectButton" min="-2" pref="40" max="-2" attributes="0"/> 898 <Group type="102" alignment="1" attributes="0"> 899 <EmptySpace min="0" pref="597" max="32767" attributes="0"/> 900 <Component id="zoomOutIcon" min="-2" max="-2" attributes="0"/> 900 901 <EmptySpace max="-2" attributes="0"/> 901 <Component id=" incidentEventsPanel" min="-2" max="-2" attributes="0"/>902 <Component id="zoomSlider" min="-2" pref="140" max="-2" attributes="0"/> 902 903 <EmptySpace max="-2" attributes="0"/> 903 <Component id="evaluationEventsPanel" min="-2" max="-2" attributes="0"/> 904 <EmptySpace type="separate" max="-2" attributes="0"/> 905 <Group type="103" groupAlignment="0" attributes="0"> 906 <Component id="zoomInIcon" alignment="0" min="-2" max="-2" attributes="0"/> 907 <Component id="zoomSlider" alignment="0" min="-2" pref="31" max="-2" attributes="0"/> 908 <Component id="zoomOutIcon" alignment="0" min="-2" max="-2" attributes="0"/> 909 </Group> 904 <Component id="zoomInIcon" min="-2" max="-2" attributes="0"/> 905 <EmptySpace min="-2" pref="136" max="-2" attributes="0"/> 910 906 </Group> 911 907 </Group> … … 917 913 <Group type="103" groupAlignment="0" attributes="0"> 918 914 <Group type="102" alignment="1" attributes="0"> 919 <Group type="103" groupAlignment="0" attributes="0"> 920 <Group type="102" attributes="0"> 921 <EmptySpace max="-2" attributes="0"/> 922 <Group type="103" groupAlignment="0" attributes="0"> 923 <Component id="evaluationEventsPanel" alignment="0" min="-2" max="-2" attributes="1"/> 924 <Component id="incidentEventsPanel" alignment="0" min="-2" max="-2" attributes="1"/> 925 <Group type="102" alignment="0" attributes="0"> 926 <EmptySpace min="-2" pref="47" max="-2" attributes="0"/> 927 <Component id="selectButton" min="-2" pref="55" max="-2" attributes="1"/> 928 </Group> 929 </Group> 930 </Group> 931 <Group type="102" alignment="0" attributes="0"> 932 <EmptySpace min="-2" pref="20" max="-2" attributes="0"/> 933 <Component id="zoomInIcon" min="-2" max="-2" attributes="0"/> 934 <EmptySpace min="-2" pref="1" max="-2" attributes="0"/> 935 <Component id="zoomSlider" min="-2" pref="69" max="-2" attributes="1"/> 936 <EmptySpace max="-2" attributes="0"/> 937 <Component id="zoomOutIcon" min="-2" max="-2" attributes="0"/> 938 </Group> 915 <EmptySpace max="-2" attributes="0"/> 916 <Group type="103" groupAlignment="1" attributes="0"> 917 <Component id="zoomOutIcon" min="-2" max="-2" attributes="0"/> 918 <Component id="zoomSlider" min="-2" max="-2" attributes="1"/> 919 <Component id="zoomInIcon" min="-2" max="-2" attributes="0"/> 939 920 </Group> 940 <EmptySpace m ax="-2" attributes="0"/>921 <EmptySpace min="-2" max="-2" attributes="0"/> 941 922 <Component id="timeStampScrollPane" min="-2" pref="20" max="-2" attributes="0"/> 942 923 <EmptySpace max="-2" attributes="0"/> 943 <Component id="timelinesScrollPane" max="32767" attributes="0"/>924 <Component id="timelinesScrollPane" pref="1289" max="32767" attributes="0"/> 944 925 <EmptySpace max="-2" attributes="0"/> 945 926 </Group> … … 1451 1432 <Property name="maximum" type="int" value="22"/> 1452 1433 <Property name="minimum" type="int" value="4"/> 1453 <Property name="orientation" type="int" value="1"/>1454 1434 <Property name="value" type="int" value="4"/> 1455 1435 <Property name="cursor" type="java.awt.Cursor" editor="org.netbeans.modules.form.editors2.CursorEditor"> … … 1462 1442 </Events> 1463 1443 </Component> 1464 <Component class="javax.swing.JButton" name="selectButton">1465 <Properties>1466 <Property name="toolTipText" type="java.lang.String" value="Select"/>1467 <Property name="focusPainted" type="boolean" value="false"/>1468 <Property name="iconTextGap" type="int" value="0"/>1469 <Property name="margin" type="java.awt.Insets" editor="org.netbeans.beaninfo.editors.InsetsEditor">1470 <Insets value="[2, 10, 2, 10]"/>1471 </Property>1472 <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">1473 <Dimension value="[30, 25]"/>1474 </Property>1475 </Properties>1476 <Events>1477 <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="selectButtonActionPerformed"/>1478 </Events>1479 </Component>1480 <Container class="javax.swing.JPanel" name="incidentEventsPanel">1481 <Properties>1482 <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">1483 <Border info="org.netbeans.modules.form.compat2.border.TitledBorderInfo">1484 <TitledBorder title="Incident Events"/>1485 </Border>1486 </Property>1487 </Properties>1488 1489 <Layout>1490 <DimensionLayout dim="0">1491 <Group type="103" groupAlignment="0" attributes="0">1492 <Group type="102" alignment="0" attributes="0">1493 <EmptySpace max="-2" attributes="0"/>1494 <Group type="103" groupAlignment="0" attributes="0">1495 <Group type="103" alignment="0" groupAlignment="0" attributes="0">1496 <Group type="102" alignment="1" attributes="0">1497 <Component id="maintenanceRadioButton" min="-2" pref="120" max="-2" attributes="0"/>1498 <EmptySpace max="-2" attributes="0"/>1499 <Component id="tmtRadioButton" min="-2" pref="120" max="-2" attributes="0"/>1500 <EmptySpace max="-2" attributes="0"/>1501 <Component id="telephoneButton" min="-2" pref="120" max="-2" attributes="0"/>1502 <EmptySpace max="-2" attributes="0"/>1503 <Component id="paramicsButton" min="-2" pref="120" max="-2" attributes="0"/>1504 </Group>1505 <Group type="102" alignment="0" attributes="0">1506 <Component id="towButton" min="-2" pref="120" max="-2" attributes="0"/>1507 <EmptySpace max="-2" attributes="0"/>1508 <Component id="unitButton" min="-2" pref="120" max="-2" attributes="0"/>1509 <EmptySpace max="-2" attributes="0"/>1510 <Component id="witnessButton" min="-2" pref="120" max="-2" attributes="0"/>1511 <EmptySpace max="-2" attributes="0"/>1512 <Component id="audioButton" min="-2" pref="120" max="-2" attributes="0"/>1513 </Group>1514 </Group>1515 <Group type="102" alignment="0" attributes="0">1516 <Component id="cadButton" min="-2" pref="120" max="-2" attributes="0"/>1517 <EmptySpace max="-2" attributes="0"/>1518 <Component id="cctvButton" min="-2" pref="120" max="-2" attributes="0"/>1519 <EmptySpace max="-2" attributes="0"/>1520 <Component id="chpRadioButton" min="-2" pref="120" max="-2" attributes="0"/>1521 </Group>1522 </Group>1523 <EmptySpace max="32767" attributes="0"/>1524 </Group>1525 </Group>1526 </DimensionLayout>1527 <DimensionLayout dim="1">1528 <Group type="103" groupAlignment="0" attributes="0">1529 <Group type="102" alignment="0" attributes="0">1530 <Group type="103" groupAlignment="0" attributes="0">1531 <Group type="102" attributes="0">1532 <Group type="103" groupAlignment="3" attributes="0">1533 <Component id="maintenanceRadioButton" alignment="3" min="-2" pref="30" max="-2" attributes="0"/>1534 <Component id="tmtRadioButton" alignment="3" min="-2" pref="30" max="-2" attributes="0"/>1535 <Component id="telephoneButton" alignment="3" min="-2" pref="30" max="-2" attributes="0"/>1536 </Group>1537 <EmptySpace max="-2" attributes="0"/>1538 <Group type="103" groupAlignment="3" attributes="0">1539 <Component id="towButton" alignment="3" min="-2" pref="30" max="-2" attributes="0"/>1540 <Component id="unitButton" alignment="3" min="-2" pref="30" max="-2" attributes="0"/>1541 <Component id="witnessButton" alignment="3" min="-2" pref="30" max="-2" attributes="0"/>1542 <Component id="audioButton" alignment="3" min="-2" pref="30" max="-2" attributes="0"/>1543 </Group>1544 </Group>1545 <Component id="paramicsButton" min="-2" pref="30" max="-2" attributes="0"/>1546 </Group>1547 <EmptySpace max="-2" attributes="0"/>1548 <Group type="103" groupAlignment="1" attributes="0">1549 <Group type="103" alignment="1" groupAlignment="3" attributes="0">1550 <Component id="cctvButton" alignment="3" min="-2" pref="30" max="-2" attributes="0"/>1551 <Component id="chpRadioButton" alignment="3" min="-2" pref="30" max="-2" attributes="0"/>1552 </Group>1553 <Component id="cadButton" min="-2" pref="30" max="-2" attributes="0"/>1554 </Group>1555 </Group>1556 </Group>1557 </DimensionLayout>1558 </Layout>1559 <SubComponents>1560 <Component class="javax.swing.JButton" name="maintenanceRadioButton">1561 <Properties>1562 <Property name="text" type="java.lang.String" value="Maintenance Radio"/>1563 <Property name="toolTipText" type="java.lang.String" value=""/>1564 <Property name="focusPainted" type="boolean" value="false"/>1565 <Property name="iconTextGap" type="int" value="0"/>1566 <Property name="margin" type="java.awt.Insets" editor="org.netbeans.beaninfo.editors.InsetsEditor">1567 <Insets value="[2, 10, 2, 10]"/>1568 </Property>1569 <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">1570 <Dimension value="[30, 25]"/>1571 </Property>1572 </Properties>1573 <Events>1574 <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="maintenanceRadioButtonActionPerformed"/>1575 </Events>1576 </Component>1577 <Component class="javax.swing.JButton" name="tmtRadioButton">1578 <Properties>1579 <Property name="text" type="java.lang.String" value="TMT Radio"/>1580 <Property name="toolTipText" type="java.lang.String" value=""/>1581 <Property name="focusPainted" type="boolean" value="false"/>1582 <Property name="iconTextGap" type="int" value="0"/>1583 <Property name="margin" type="java.awt.Insets" editor="org.netbeans.beaninfo.editors.InsetsEditor">1584 <Insets value="[2, 10, 2, 10]"/>1585 </Property>1586 <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">1587 <Dimension value="[30, 25]"/>1588 </Property>1589 </Properties>1590 <Events>1591 <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="tmtRadioButtonActionPerformed"/>1592 </Events>1593 </Component>1594 <Component class="javax.swing.JButton" name="telephoneButton">1595 <Properties>1596 <Property name="text" type="java.lang.String" value="Telephone"/>1597 <Property name="toolTipText" type="java.lang.String" value=""/>1598 <Property name="focusPainted" type="boolean" value="false"/>1599 <Property name="iconTextGap" type="int" value="0"/>1600 <Property name="margin" type="java.awt.Insets" editor="org.netbeans.beaninfo.editors.InsetsEditor">1601 <Insets value="[2, 10, 2, 10]"/>1602 </Property>1603 <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">1604 <Dimension value="[30, 25]"/>1605 </Property>1606 </Properties>1607 <Events>1608 <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="telephoneButtonActionPerformed"/>1609 </Events>1610 </Component>1611 <Component class="javax.swing.JButton" name="unitButton">1612 <Properties>1613 <Property name="text" type="java.lang.String" value="Unit"/>1614 <Property name="toolTipText" type="java.lang.String" value=""/>1615 <Property name="focusPainted" type="boolean" value="false"/>1616 <Property name="iconTextGap" type="int" value="0"/>1617 <Property name="margin" type="java.awt.Insets" editor="org.netbeans.beaninfo.editors.InsetsEditor">1618 <Insets value="[2, 10, 2, 10]"/>1619 </Property>1620 <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">1621 <Dimension value="[30, 25]"/>1622 </Property>1623 </Properties>1624 <Events>1625 <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="unitButtonActionPerformed"/>1626 </Events>1627 </Component>1628 <Component class="javax.swing.JButton" name="witnessButton">1629 <Properties>1630 <Property name="text" type="java.lang.String" value="Witness"/>1631 <Property name="toolTipText" type="java.lang.String" value=""/>1632 <Property name="focusPainted" type="boolean" value="false"/>1633 <Property name="iconTextGap" type="int" value="0"/>1634 <Property name="margin" type="java.awt.Insets" editor="org.netbeans.beaninfo.editors.InsetsEditor">1635 <Insets value="[2, 10, 2, 10]"/>1636 </Property>1637 <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">1638 <Dimension value="[30, 25]"/>1639 </Property>1640 </Properties>1641 <Events>1642 <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="witnessButtonActionPerformed"/>1643 </Events>1644 </Component>1645 <Component class="javax.swing.JButton" name="paramicsButton">1646 <Properties>1647 <Property name="text" type="java.lang.String" value="Paramics"/>1648 <Property name="toolTipText" type="java.lang.String" value=""/>1649 <Property name="focusPainted" type="boolean" value="false"/>1650 <Property name="iconTextGap" type="int" value="0"/>1651 <Property name="margin" type="java.awt.Insets" editor="org.netbeans.beaninfo.editors.InsetsEditor">1652 <Insets value="[2, 10, 2, 10]"/>1653 </Property>1654 <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">1655 <Dimension value="[30, 25]"/>1656 </Property>1657 </Properties>1658 <Events>1659 <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="paramicsButtonActionPerformed"/>1660 </Events>1661 </Component>1662 <Component class="javax.swing.JButton" name="towButton">1663 <Properties>1664 <Property name="text" type="java.lang.String" value="Tow"/>1665 <Property name="toolTipText" type="java.lang.String" value=""/>1666 <Property name="focusPainted" type="boolean" value="false"/>1667 <Property name="iconTextGap" type="int" value="0"/>1668 <Property name="margin" type="java.awt.Insets" editor="org.netbeans.beaninfo.editors.InsetsEditor">1669 <Insets value="[2, 10, 2, 10]"/>1670 </Property>1671 <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">1672 <Dimension value="[30, 25]"/>1673 </Property>1674 </Properties>1675 <Events>1676 <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="towButtonActionPerformed"/>1677 </Events>1678 </Component>1679 <Component class="javax.swing.JButton" name="audioButton">1680 <Properties>1681 <Property name="text" type="java.lang.String" value="Audio"/>1682 <Property name="toolTipText" type="java.lang.String" value=""/>1683 <Property name="focusPainted" type="boolean" value="false"/>1684 <Property name="iconTextGap" type="int" value="0"/>1685 <Property name="margin" type="java.awt.Insets" editor="org.netbeans.beaninfo.editors.InsetsEditor">1686 <Insets value="[2, 10, 2, 10]"/>1687 </Property>1688 <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">1689 <Dimension value="[30, 25]"/>1690 </Property>1691 </Properties>1692 <Events>1693 <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="audioButtonActionPerformed"/>1694 </Events>1695 </Component>1696 <Component class="javax.swing.JButton" name="cctvButton">1697 <Properties>1698 <Property name="text" type="java.lang.String" value="CCTV"/>1699 <Property name="toolTipText" type="java.lang.String" value=""/>1700 <Property name="focusPainted" type="boolean" value="false"/>1701 <Property name="iconTextGap" type="int" value="0"/>1702 <Property name="margin" type="java.awt.Insets" editor="org.netbeans.beaninfo.editors.InsetsEditor">1703 <Insets value="[2, 10, 2, 10]"/>1704 </Property>1705 <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">1706 <Dimension value="[30, 25]"/>1707 </Property>1708 </Properties>1709 <Events>1710 <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="cctvButtonActionPerformed"/>1711 </Events>1712 </Component>1713 <Component class="javax.swing.JButton" name="cadButton">1714 <Properties>1715 <Property name="text" type="java.lang.String" value="CAD"/>1716 <Property name="toolTipText" type="java.lang.String" value=""/>1717 <Property name="focusPainted" type="boolean" value="false"/>1718 <Property name="iconTextGap" type="int" value="0"/>1719 <Property name="margin" type="java.awt.Insets" editor="org.netbeans.beaninfo.editors.InsetsEditor">1720 <Insets value="[2, 10, 2, 10]"/>1721 </Property>1722 <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">1723 <Dimension value="[30, 25]"/>1724 </Property>1725 </Properties>1726 <Events>1727 <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="cadButtonActionPerformed"/>1728 </Events>1729 </Component>1730 <Component class="javax.swing.JButton" name="chpRadioButton">1731 <Properties>1732 <Property name="text" type="java.lang.String" value="CHP Radio"/>1733 <Property name="toolTipText" type="java.lang.String" value=""/>1734 <Property name="focusPainted" type="boolean" value="false"/>1735 <Property name="iconTextGap" type="int" value="0"/>1736 <Property name="margin" type="java.awt.Insets" editor="org.netbeans.beaninfo.editors.InsetsEditor">1737 <Insets value="[2, 10, 2, 10]"/>1738 </Property>1739 <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">1740 <Dimension value="[30, 25]"/>1741 </Property>1742 </Properties>1743 <Events>1744 <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="chpRadioButtonActionPerformed"/>1745 </Events>1746 </Component>1747 </SubComponents>1748 </Container>1749 <Container class="javax.swing.JPanel" name="evaluationEventsPanel">1750 <Properties>1751 <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">1752 <Border info="org.netbeans.modules.form.compat2.border.TitledBorderInfo">1753 <TitledBorder title="Evaluation Events"/>1754 </Border>1755 </Property>1756 </Properties>1757 1758 <Layout>1759 <DimensionLayout dim="0">1760 <Group type="103" groupAlignment="0" attributes="0">1761 <Group type="102" attributes="0">1762 <EmptySpace max="-2" attributes="0"/>1763 <Group type="103" groupAlignment="0" attributes="0">1764 <Group type="102" alignment="0" attributes="0">1765 <Component id="atmsEvalButton" min="-2" pref="140" max="-2" attributes="0"/>1766 <EmptySpace max="-2" attributes="0"/>1767 <Component id="activityLogEvalButton" min="-2" pref="140" max="-2" attributes="0"/>1768 </Group>1769 <Group type="102" alignment="0" attributes="0">1770 <Component id="cmsEvalButton" min="-2" pref="140" max="-2" attributes="0"/>1771 <EmptySpace max="-2" attributes="0"/>1772 <Component id="facilitatorEvalButton" min="-2" pref="140" max="-2" attributes="0"/>1773 </Group>1774 <Group type="102" alignment="0" attributes="0">1775 <Component id="cadEvalButton" min="-2" pref="140" max="-2" attributes="0"/>1776 <EmptySpace max="-2" attributes="0"/>1777 <Component id="radioEvalButton" min="-2" pref="140" max="-2" attributes="0"/>1778 </Group>1779 </Group>1780 <EmptySpace max="32767" attributes="0"/>1781 </Group>1782 </Group>1783 </DimensionLayout>1784 <DimensionLayout dim="1">1785 <Group type="103" groupAlignment="0" attributes="0">1786 <Group type="102" alignment="0" attributes="0">1787 <Group type="103" groupAlignment="0" attributes="0">1788 <Component id="cmsEvalButton" alignment="0" min="-2" pref="30" max="-2" attributes="0"/>1789 <Component id="facilitatorEvalButton" alignment="0" min="-2" pref="30" max="-2" attributes="0"/>1790 </Group>1791 <EmptySpace max="-2" attributes="0"/>1792 <Group type="103" groupAlignment="0" attributes="0">1793 <Component id="atmsEvalButton" alignment="0" min="-2" pref="30" max="-2" attributes="0"/>1794 <Component id="activityLogEvalButton" alignment="0" min="-2" pref="30" max="-2" attributes="0"/>1795 </Group>1796 <EmptySpace max="-2" attributes="0"/>1797 <Group type="103" groupAlignment="3" attributes="0">1798 <Component id="cadEvalButton" alignment="3" min="-2" pref="30" max="-2" attributes="0"/>1799 <Component id="radioEvalButton" alignment="3" min="-2" pref="30" max="-2" attributes="0"/>1800 </Group>1801 </Group>1802 </Group>1803 </DimensionLayout>1804 </Layout>1805 <SubComponents>1806 <Component class="javax.swing.JButton" name="atmsEvalButton">1807 <Properties>1808 <Property name="text" type="java.lang.String" value="ATMS Evaluation"/>1809 <Property name="toolTipText" type="java.lang.String" value=""/>1810 <Property name="focusPainted" type="boolean" value="false"/>1811 <Property name="iconTextGap" type="int" value="0"/>1812 <Property name="margin" type="java.awt.Insets" editor="org.netbeans.beaninfo.editors.InsetsEditor">1813 <Insets value="[2, 10, 2, 10]"/>1814 </Property>1815 <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">1816 <Dimension value="[30, 25]"/>1817 </Property>1818 </Properties>1819 <Events>1820 <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="atmsEvalButtonActionPerformed"/>1821 </Events>1822 </Component>1823 <Component class="javax.swing.JButton" name="cmsEvalButton">1824 <Properties>1825 <Property name="text" type="java.lang.String" value="CMS Evaluation"/>1826 <Property name="toolTipText" type="java.lang.String" value=""/>1827 <Property name="focusPainted" type="boolean" value="false"/>1828 <Property name="iconTextGap" type="int" value="0"/>1829 <Property name="margin" type="java.awt.Insets" editor="org.netbeans.beaninfo.editors.InsetsEditor">1830 <Insets value="[2, 10, 2, 10]"/>1831 </Property>1832 <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">1833 <Dimension value="[30, 25]"/>1834 </Property>1835 </Properties>1836 <Events>1837 <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="cmsEvalButtonActionPerformed"/>1838 </Events>1839 </Component>1840 <Component class="javax.swing.JButton" name="cadEvalButton">1841 <Properties>1842 <Property name="text" type="java.lang.String" value="CAD Evaluation"/>1843 <Property name="toolTipText" type="java.lang.String" value=""/>1844 <Property name="focusPainted" type="boolean" value="false"/>1845 <Property name="iconTextGap" type="int" value="0"/>1846 <Property name="margin" type="java.awt.Insets" editor="org.netbeans.beaninfo.editors.InsetsEditor">1847 <Insets value="[2, 10, 2, 10]"/>1848 </Property>1849 <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">1850 <Dimension value="[30, 25]"/>1851 </Property>1852 </Properties>1853 <Events>1854 <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="cadEvalButtonActionPerformed"/>1855 </Events>1856 </Component>1857 <Component class="javax.swing.JButton" name="facilitatorEvalButton">1858 <Properties>1859 <Property name="text" type="java.lang.String" value="Facilitator Evaluation"/>1860 <Property name="toolTipText" type="java.lang.String" value=""/>1861 <Property name="focusPainted" type="boolean" value="false"/>1862 <Property name="iconTextGap" type="int" value="0"/>1863 <Property name="margin" type="java.awt.Insets" editor="org.netbeans.beaninfo.editors.InsetsEditor">1864 <Insets value="[2, 10, 2, 10]"/>1865 </Property>1866 <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">1867 <Dimension value="[30, 25]"/>1868 </Property>1869 </Properties>1870 <Events>1871 <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="facilitatorEvalButtonActionPerformed"/>1872 </Events>1873 </Component>1874 <Component class="javax.swing.JButton" name="activityLogEvalButton">1875 <Properties>1876 <Property name="text" type="java.lang.String" value="Activity Log Evaluation"/>1877 <Property name="toolTipText" type="java.lang.String" value=""/>1878 <Property name="focusPainted" type="boolean" value="false"/>1879 <Property name="iconTextGap" type="int" value="0"/>1880 <Property name="margin" type="java.awt.Insets" editor="org.netbeans.beaninfo.editors.InsetsEditor">1881 <Insets value="[2, 10, 2, 10]"/>1882 </Property>1883 <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">1884 <Dimension value="[30, 25]"/>1885 </Property>1886 </Properties>1887 <Events>1888 <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="activityLogEvalButtonActionPerformed"/>1889 </Events>1890 </Component>1891 <Component class="javax.swing.JButton" name="radioEvalButton">1892 <Properties>1893 <Property name="text" type="java.lang.String" value="Radio Evaluation"/>1894 <Property name="toolTipText" type="java.lang.String" value=""/>1895 <Property name="focusPainted" type="boolean" value="false"/>1896 <Property name="iconTextGap" type="int" value="0"/>1897 <Property name="margin" type="java.awt.Insets" editor="org.netbeans.beaninfo.editors.InsetsEditor">1898 <Insets value="[2, 10, 2, 10]"/>1899 </Property>1900 <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">1901 <Dimension value="[30, 25]"/>1902 </Property>1903 </Properties>1904 <Events>1905 <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="radioEvalButtonActionPerformed"/>1906 </Events>1907 </Component>1908 </SubComponents>1909 </Container>1910 1444 <Component class="javax.swing.JLabel" name="zoomInIcon"> 1911 1445 <Properties> -
trunk/src/scriptbuilder/gui/ScriptBuilderFrame.java
r54 r55 56 56 public ScriptEventType currentEventType; 57 57 /** 58 * A list of all the event type buttons.59 */60 private ArrayList<JButton> eventButtons = null;61 /**62 58 * True if we are currently editing an incident. 63 59 */ … … 66 62 * Index of the previous incident. 67 63 */ 68 int oldIncidentIndex;64 private int oldIncidentIndex; 69 65 70 66 /** … … 121 117 public void keyPressed(KeyEvent e) 122 118 { 123 JButton lastButton = null;124 for (JButton eb : eventButtons)125 {126 eb.setFocusPainted(false);127 if (eb.isSelected())128 {129 lastButton = eb;130 }131 eb.setSelected(false);132 }133 134 JButton newButton = null;135 switch (e.getKeyChar())136 {137 case 'u':138 currentEventType = ScriptEventType.AUDIO_EVENT;139 newButton = audioButton;140 break;141 case 'c':142 currentEventType = ScriptEventType.CAD_EVENT;143 newButton = cadButton;144 break;145 case 'v':146 currentEventType = ScriptEventType.CCTV_EVENT;147 newButton = cctvButton;148 break;149 case 'h':150 currentEventType = ScriptEventType.CHP_RADIO_EVENT;151 newButton = chpRadioButton;152 break;153 case 'p':154 currentEventType = ScriptEventType.PARAMICS_EVENT;155 newButton = paramicsButton;156 break;157 case 'o':158 currentEventType = ScriptEventType.TOW_EVENT;159 newButton = towButton;160 break;161 case 'n':162 currentEventType = ScriptEventType.UNIT_EVENT;163 newButton = unitButton;164 break;165 case 'w':166 currentEventType = ScriptEventType.WITNESS_EVENT;167 newButton = witnessButton;168 break;169 case 'm':170 currentEventType = ScriptEventType.MAINTENANCE_RADIO_EVENT;171 newButton = maintenanceRadioButton;172 break;173 case 't':174 currentEventType = ScriptEventType.TMT_RADIO_EVENT;175 newButton = tmtRadioButton;176 break;177 case 'e':178 currentEventType = ScriptEventType.TELEPHONE_EVENT;179 newButton = telephoneButton;180 break;181 case 'a':182 currentEventType = ScriptEventType.ATMS_EVAL_EVENT;183 newButton = atmsEvalButton;184 break;185 case 'l':186 currentEventType = ScriptEventType.ACTIVITY_LOG_EVAL_EVENT;187 newButton = activityLogEvalButton;188 break;189 case 'd':190 currentEventType = ScriptEventType.CAD_EVAL_EVENT;191 newButton = cadEvalButton;192 break;193 case 's':194 currentEventType = ScriptEventType.CMS_EVAL_EVENT;195 newButton = cmsEvalButton;196 break;197 case 'f':198 currentEventType = ScriptEventType.FACILITATOR_EVAL_EVENT;199 newButton = facilitatorEvalButton;200 break;201 case 'r':202 currentEventType = ScriptEventType.RADIO_EVAL_EVENT;203 newButton = radioEvalButton;204 break;205 default:206 newButton = lastButton;207 }208 209 if (e.getKeyCode() == KeyEvent.VK_ESCAPE)210 {211 currentEventType = null;212 newButton = selectButton;213 }214 215 if (newButton != null)216 {217 newButton.setSelected(true);218 }219 220 119 repaint(); 221 120 } … … 252 151 initComponents(); 253 152 this.update(null, script); 254 selectButton.addKeyListener(new TimelineKeyListener());255 cadButton.addKeyListener(new TimelineKeyListener());256 cctvButton.addKeyListener(new TimelineKeyListener());257 chpRadioButton.addKeyListener(new TimelineKeyListener());258 paramicsButton.addKeyListener(new TimelineKeyListener());259 towButton.addKeyListener(new TimelineKeyListener());260 unitButton.addKeyListener(new TimelineKeyListener());261 witnessButton.addKeyListener(new TimelineKeyListener());262 maintenanceRadioButton.addKeyListener(new TimelineKeyListener());263 tmtRadioButton.addKeyListener(new TimelineKeyListener());264 telephoneButton.addKeyListener(new TimelineKeyListener());265 atmsEvalButton.addKeyListener(new TimelineKeyListener());266 activityLogEvalButton.addKeyListener(new TimelineKeyListener());267 cadEvalButton.addKeyListener(new TimelineKeyListener());268 cmsEvalButton.addKeyListener(new TimelineKeyListener());269 facilitatorEvalButton.addKeyListener(new TimelineKeyListener());270 radioEvalButton.addKeyListener(new TimelineKeyListener());271 153 272 154 // Hack to refresh the zoom 273 //This is stupid tbh274 155 /* 275 156 zoomSlider.setValue(zoomSlider.getValue() - 1); … … 280 161 timelinesScrollPane.getHorizontalScrollBar().addAdjustmentListener(listener); 281 162 timelinesScrollPane.getVerticalScrollBar().addAdjustmentListener(listener); 282 283 // Button list284 eventButtons = new ArrayList<JButton>();285 eventButtons.add(maintenanceRadioButton);286 eventButtons.add(tmtRadioButton);287 eventButtons.add(telephoneButton);288 eventButtons.add(paramicsButton);289 eventButtons.add(towButton);290 eventButtons.add(witnessButton);291 eventButtons.add(unitButton);292 eventButtons.add(audioButton);293 eventButtons.add(cadButton);294 eventButtons.add(cctvButton);295 eventButtons.add(chpRadioButton);296 eventButtons.add(selectButton);297 eventButtons.add(cmsEvalButton);298 eventButtons.add(atmsEvalButton);299 eventButtons.add(cadEvalButton);300 eventButtons.add(activityLogEvalButton);301 eventButtons.add(facilitatorEvalButton);302 eventButtons.add(radioEvalButton);303 163 } 304 164 … … 470 330 incidentNumberPanel10 = new scriptbuilder.gui.panels.ScriptBuilderNumberPanel(); 471 331 zoomSlider = new javax.swing.JSlider(); 472 selectButton = new javax.swing.JButton();473 incidentEventsPanel = new javax.swing.JPanel();474 maintenanceRadioButton = new javax.swing.JButton();475 tmtRadioButton = new javax.swing.JButton();476 telephoneButton = new javax.swing.JButton();477 unitButton = new javax.swing.JButton();478 witnessButton = new javax.swing.JButton();479 paramicsButton = new javax.swing.JButton();480 towButton = new javax.swing.JButton();481 audioButton = new javax.swing.JButton();482 cctvButton = new javax.swing.JButton();483 cadButton = new javax.swing.JButton();484 chpRadioButton = new javax.swing.JButton();485 evaluationEventsPanel = new javax.swing.JPanel();486 atmsEvalButton = new javax.swing.JButton();487 cmsEvalButton = new javax.swing.JButton();488 cadEvalButton = new javax.swing.JButton();489 facilitatorEvalButton = new javax.swing.JButton();490 activityLogEvalButton = new javax.swing.JButton();491 radioEvalButton = new javax.swing.JButton();492 332 zoomInIcon = new javax.swing.JLabel(); 493 333 zoomOutIcon = new javax.swing.JLabel(); … … 1289 1129 zoomSlider.setMaximum(22); 1290 1130 zoomSlider.setMinimum(4); 1291 zoomSlider.setOrientation(javax.swing.JSlider.VERTICAL);1292 1131 zoomSlider.setValue(4); 1293 1132 zoomSlider.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR)); … … 1300 1139 } 1301 1140 }); 1302 1303 selectButton.setToolTipText("Select");1304 selectButton.setFocusPainted(false);1305 selectButton.setIconTextGap(0);1306 selectButton.setMargin(new java.awt.Insets(2, 10, 2, 10));1307 selectButton.setPreferredSize(new java.awt.Dimension(30, 25));1308 selectButton.addActionListener(new java.awt.event.ActionListener()1309 {1310 public void actionPerformed(java.awt.event.ActionEvent evt)1311 {1312 selectButtonActionPerformed(evt);1313 }1314 });1315 1316 incidentEventsPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Incident Events"));1317 1318 maintenanceRadioButton.setText("Maintenance Radio");1319 maintenanceRadioButton.setToolTipText("");1320 maintenanceRadioButton.setFocusPainted(false);1321 maintenanceRadioButton.setIconTextGap(0);1322 maintenanceRadioButton.setMargin(new java.awt.Insets(2, 10, 2, 10));1323 maintenanceRadioButton.setPreferredSize(new java.awt.Dimension(30, 25));1324 maintenanceRadioButton.addActionListener(new java.awt.event.ActionListener()1325 {1326 public void actionPerformed(java.awt.event.ActionEvent evt)1327 {1328 maintenanceRadioButtonActionPerformed(evt);1329 }1330 });1331 1332 tmtRadioButton.setText("TMT Radio");1333 tmtRadioButton.setToolTipText("");1334 tmtRadioButton.setFocusPainted(false);1335 tmtRadioButton.setIconTextGap(0);1336 tmtRadioButton.setMargin(new java.awt.Insets(2, 10, 2, 10));1337 tmtRadioButton.setPreferredSize(new java.awt.Dimension(30, 25));1338 tmtRadioButton.addActionListener(new java.awt.event.ActionListener()1339 {1340 public void actionPerformed(java.awt.event.ActionEvent evt)1341 {1342 tmtRadioButtonActionPerformed(evt);1343 }1344 });1345 1346 telephoneButton.setText("Telephone");1347 telephoneButton.setToolTipText("");1348 telephoneButton.setFocusPainted(false);1349 telephoneButton.setIconTextGap(0);1350 telephoneButton.setMargin(new java.awt.Insets(2, 10, 2, 10));1351 telephoneButton.setPreferredSize(new java.awt.Dimension(30, 25));1352 telephoneButton.addActionListener(new java.awt.event.ActionListener()1353 {1354 public void actionPerformed(java.awt.event.ActionEvent evt)1355 {1356 telephoneButtonActionPerformed(evt);1357 }1358 });1359 1360 unitButton.setText("Unit");1361 unitButton.setToolTipText("");1362 unitButton.setFocusPainted(false);1363 unitButton.setIconTextGap(0);1364 unitButton.setMargin(new java.awt.Insets(2, 10, 2, 10));1365 unitButton.setPreferredSize(new java.awt.Dimension(30, 25));1366 unitButton.addActionListener(new java.awt.event.ActionListener()1367 {1368 public void actionPerformed(java.awt.event.ActionEvent evt)1369 {1370 unitButtonActionPerformed(evt);1371 }1372 });1373 1374 witnessButton.setText("Witness");1375 witnessButton.setToolTipText("");1376 witnessButton.setFocusPainted(false);1377 witnessButton.setIconTextGap(0);1378 witnessButton.setMargin(new java.awt.Insets(2, 10, 2, 10));1379 witnessButton.setPreferredSize(new java.awt.Dimension(30, 25));1380 witnessButton.addActionListener(new java.awt.event.ActionListener()1381 {1382 public void actionPerformed(java.awt.event.ActionEvent evt)1383 {1384 witnessButtonActionPerformed(evt);1385 }1386 });1387 1388 paramicsButton.setText("Paramics");1389 paramicsButton.setToolTipText("");1390 paramicsButton.setFocusPainted(false);1391 paramicsButton.setIconTextGap(0);1392 paramicsButton.setMargin(new java.awt.Insets(2, 10, 2, 10));1393 paramicsButton.setPreferredSize(new java.awt.Dimension(30, 25));1394 paramicsButton.addActionListener(new java.awt.event.ActionListener()1395 {1396 public void actionPerformed(java.awt.event.ActionEvent evt)1397 {1398 paramicsButtonActionPerformed(evt);1399 }1400 });1401 1402 towButton.setText("Tow");1403 towButton.setToolTipText("");1404 towButton.setFocusPainted(false);1405 towButton.setIconTextGap(0);1406 towButton.setMargin(new java.awt.Insets(2, 10, 2, 10));1407 towButton.setPreferredSize(new java.awt.Dimension(30, 25));1408 towButton.addActionListener(new java.awt.event.ActionListener()1409 {1410 public void actionPerformed(java.awt.event.ActionEvent evt)1411 {1412 towButtonActionPerformed(evt);1413 }1414 });1415 1416 audioButton.setText("Audio");1417 audioButton.setToolTipText("");1418 audioButton.setFocusPainted(false);1419 audioButton.setIconTextGap(0);1420 audioButton.setMargin(new java.awt.Insets(2, 10, 2, 10));1421 audioButton.setPreferredSize(new java.awt.Dimension(30, 25));1422 audioButton.addActionListener(new java.awt.event.ActionListener()1423 {1424 public void actionPerformed(java.awt.event.ActionEvent evt)1425 {1426 audioButtonActionPerformed(evt);1427 }1428 });1429 1430 cctvButton.setText("CCTV");1431 cctvButton.setToolTipText("");1432 cctvButton.setFocusPainted(false);1433 cctvButton.setIconTextGap(0);1434 cctvButton.setMargin(new java.awt.Insets(2, 10, 2, 10));1435 cctvButton.setPreferredSize(new java.awt.Dimension(30, 25));1436 cctvButton.addActionListener(new java.awt.event.ActionListener()1437 {1438 public void actionPerformed(java.awt.event.ActionEvent evt)1439 {1440 cctvButtonActionPerformed(evt);1441 }1442 });1443 1444 cadButton.setText("CAD");1445 cadButton.setToolTipText("");1446 cadButton.setFocusPainted(false);1447 cadButton.setIconTextGap(0);1448 cadButton.setMargin(new java.awt.Insets(2, 10, 2, 10));1449 cadButton.setPreferredSize(new java.awt.Dimension(30, 25));1450 cadButton.addActionListener(new java.awt.event.ActionListener()1451 {1452 public void actionPerformed(java.awt.event.ActionEvent evt)1453 {1454 cadButtonActionPerformed(evt);1455 }1456 });1457 1458 chpRadioButton.setText("CHP Radio");1459 chpRadioButton.setToolTipText("");1460 chpRadioButton.setFocusPainted(false);1461 chpRadioButton.setIconTextGap(0);1462 chpRadioButton.setMargin(new java.awt.Insets(2, 10, 2, 10));1463 chpRadioButton.setPreferredSize(new java.awt.Dimension(30, 25));1464 chpRadioButton.addActionListener(new java.awt.event.ActionListener()1465 {1466 public void actionPerformed(java.awt.event.ActionEvent evt)1467 {1468 chpRadioButtonActionPerformed(evt);1469 }1470 });1471 1472 javax.swing.GroupLayout incidentEventsPanelLayout = new javax.swing.GroupLayout(incidentEventsPanel);1473 incidentEventsPanel.setLayout(incidentEventsPanelLayout);1474 incidentEventsPanelLayout.setHorizontalGroup(1475 incidentEventsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)1476 .addGroup(incidentEventsPanelLayout.createSequentialGroup()1477 .addContainerGap()1478 .addGroup(incidentEventsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)1479 .addGroup(incidentEventsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)1480 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, incidentEventsPanelLayout.createSequentialGroup()1481 .addComponent(maintenanceRadioButton, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)1482 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)1483 .addComponent(tmtRadioButton, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)1484 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)1485 .addComponent(telephoneButton, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)1486 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)1487 .addComponent(paramicsButton, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE))1488 .addGroup(incidentEventsPanelLayout.createSequentialGroup()1489 .addComponent(towButton, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)1490 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)1491 .addComponent(unitButton, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)1492 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)1493 .addComponent(witnessButton, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)1494 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)1495 .addComponent(audioButton, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)))1496 .addGroup(incidentEventsPanelLayout.createSequentialGroup()1497 .addComponent(cadButton, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)1498 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)1499 .addComponent(cctvButton, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)1500 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)1501 .addComponent(chpRadioButton, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)))1502 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))1503 );1504 incidentEventsPanelLayout.setVerticalGroup(1505 incidentEventsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)1506 .addGroup(incidentEventsPanelLayout.createSequentialGroup()1507 .addGroup(incidentEventsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)1508 .addGroup(incidentEventsPanelLayout.createSequentialGroup()1509 .addGroup(incidentEventsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)1510 .addComponent(maintenanceRadioButton, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)1511 .addComponent(tmtRadioButton, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)1512 .addComponent(telephoneButton, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))1513 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)1514 .addGroup(incidentEventsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)1515 .addComponent(towButton, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)1516 .addComponent(unitButton, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)1517 .addComponent(witnessButton, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)1518 .addComponent(audioButton, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)))1519 .addComponent(paramicsButton, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))1520 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)1521 .addGroup(incidentEventsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)1522 .addGroup(incidentEventsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)1523 .addComponent(cctvButton, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)1524 .addComponent(chpRadioButton, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))1525 .addComponent(cadButton, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)))1526 );1527 1528 evaluationEventsPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Evaluation Events"));1529 1530 atmsEvalButton.setText("ATMS Evaluation");1531 atmsEvalButton.setToolTipText("");1532 atmsEvalButton.setFocusPainted(false);1533 atmsEvalButton.setIconTextGap(0);1534 atmsEvalButton.setMargin(new java.awt.Insets(2, 10, 2, 10));1535 atmsEvalButton.setPreferredSize(new java.awt.Dimension(30, 25));1536 atmsEvalButton.addActionListener(new java.awt.event.ActionListener()1537 {1538 public void actionPerformed(java.awt.event.ActionEvent evt)1539 {1540 atmsEvalButtonActionPerformed(evt);1541 }1542 });1543 1544 cmsEvalButton.setText("CMS Evaluation");1545 cmsEvalButton.setToolTipText("");1546 cmsEvalButton.setFocusPainted(false);1547 cmsEvalButton.setIconTextGap(0);1548 cmsEvalButton.setMargin(new java.awt.Insets(2, 10, 2, 10));1549 cmsEvalButton.setPreferredSize(new java.awt.Dimension(30, 25));1550 cmsEvalButton.addActionListener(new java.awt.event.ActionListener()1551 {1552 public void actionPerformed(java.awt.event.ActionEvent evt)1553 {1554 cmsEvalButtonActionPerformed(evt);1555 }1556 });1557 1558 cadEvalButton.setText("CAD Evaluation");1559 cadEvalButton.setToolTipText("");1560 cadEvalButton.setFocusPainted(false);1561 cadEvalButton.setIconTextGap(0);1562 cadEvalButton.setMargin(new java.awt.Insets(2, 10, 2, 10));1563 cadEvalButton.setPreferredSize(new java.awt.Dimension(30, 25));1564 cadEvalButton.addActionListener(new java.awt.event.ActionListener()1565 {1566 public void actionPerformed(java.awt.event.ActionEvent evt)1567 {1568 cadEvalButtonActionPerformed(evt);1569 }1570 });1571 1572 facilitatorEvalButton.setText("Facilitator Evaluation");1573 facilitatorEvalButton.setToolTipText("");1574 facilitatorEvalButton.setFocusPainted(false);1575 facilitatorEvalButton.setIconTextGap(0);1576 facilitatorEvalButton.setMargin(new java.awt.Insets(2, 10, 2, 10));1577 facilitatorEvalButton.setPreferredSize(new java.awt.Dimension(30, 25));1578 facilitatorEvalButton.addActionListener(new java.awt.event.ActionListener()1579 {1580 public void actionPerformed(java.awt.event.ActionEvent evt)1581 {1582 facilitatorEvalButtonActionPerformed(evt);1583 }1584 });1585 1586 activityLogEvalButton.setText("Activity Log Evaluation");1587 activityLogEvalButton.setToolTipText("");1588 activityLogEvalButton.setFocusPainted(false);1589 activityLogEvalButton.setIconTextGap(0);1590 activityLogEvalButton.setMargin(new java.awt.Insets(2, 10, 2, 10));1591 activityLogEvalButton.setPreferredSize(new java.awt.Dimension(30, 25));1592 activityLogEvalButton.addActionListener(new java.awt.event.ActionListener()1593 {1594 public void actionPerformed(java.awt.event.ActionEvent evt)1595 {1596 activityLogEvalButtonActionPerformed(evt);1597 }1598 });1599 1600 radioEvalButton.setText("Radio Evaluation");1601 radioEvalButton.setToolTipText("");1602 radioEvalButton.setFocusPainted(false);1603 radioEvalButton.setIconTextGap(0);1604 radioEvalButton.setMargin(new java.awt.Insets(2, 10, 2, 10));1605 radioEvalButton.setPreferredSize(new java.awt.Dimension(30, 25));1606 radioEvalButton.addActionListener(new java.awt.event.ActionListener()1607 {1608 public void actionPerformed(java.awt.event.ActionEvent evt)1609 {1610 radioEvalButtonActionPerformed(evt);1611 }1612 });1613 1614 javax.swing.GroupLayout evaluationEventsPanelLayout = new javax.swing.GroupLayout(evaluationEventsPanel);1615 evaluationEventsPanel.setLayout(evaluationEventsPanelLayout);1616 evaluationEventsPanelLayout.setHorizontalGroup(1617 evaluationEventsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)1618 .addGroup(evaluationEventsPanelLayout.createSequentialGroup()1619 .addContainerGap()1620 .addGroup(evaluationEventsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)1621 .addGroup(evaluationEventsPanelLayout.createSequentialGroup()1622 .addComponent(atmsEvalButton, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)1623 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)1624 .addComponent(activityLogEvalButton, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE))1625 .addGroup(evaluationEventsPanelLayout.createSequentialGroup()1626 .addComponent(cmsEvalButton, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)1627 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)1628 .addComponent(facilitatorEvalButton, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE))1629 .addGroup(evaluationEventsPanelLayout.createSequentialGroup()1630 .addComponent(cadEvalButton, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)1631 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)1632 .addComponent(radioEvalButton, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)))1633 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))1634 );1635 evaluationEventsPanelLayout.setVerticalGroup(1636 evaluationEventsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)1637 .addGroup(evaluationEventsPanelLayout.createSequentialGroup()1638 .addGroup(evaluationEventsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)1639 .addComponent(cmsEvalButton, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)1640 .addComponent(facilitatorEvalButton, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))1641 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)1642 .addGroup(evaluationEventsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)1643 .addComponent(atmsEvalButton, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)1644 .addComponent(activityLogEvalButton, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))1645 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)1646 .addGroup(evaluationEventsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)1647 .addComponent(cadEvalButton, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)1648 .addComponent(radioEvalButton, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)))1649 );1650 1141 1651 1142 zoomInIcon.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/ZoomIn.png"))); // NOI18N … … 1898 1389 .addComponent(timelinesScrollPane, 0, 0, Short.MAX_VALUE) 1899 1390 .addComponent(timeStampScrollPane) 1900 .addGroup(layout.createSequentialGroup() 1901 .addComponent(selectButton, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE) 1391 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() 1392 .addGap(0, 597, Short.MAX_VALUE) 1393 .addComponent(zoomOutIcon) 1902 1394 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 1903 .addComponent( incidentEventsPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)1395 .addComponent(zoomSlider, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE) 1904 1396 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 1905 .addComponent(evaluationEventsPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) 1906 .addGap(18, 18, 18) 1907 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 1908 .addComponent(zoomInIcon) 1909 .addComponent(zoomSlider, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE) 1910 .addComponent(zoomOutIcon)))) 1397 .addComponent(zoomInIcon) 1398 .addGap(136, 136, 136))) 1911 1399 .addContainerGap()) 1912 1400 ); … … 1914 1402 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 1915 1403 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() 1916 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 1917 .addGroup(layout.createSequentialGroup() 1918 .addContainerGap() 1919 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 1920 .addComponent(evaluationEventsPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) 1921 .addComponent(incidentEventsPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) 1922 .addGroup(layout.createSequentialGroup() 1923 .addGap(47, 47, 47) 1924 .addComponent(selectButton, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)))) 1925 .addGroup(layout.createSequentialGroup() 1926 .addGap(20, 20, 20) 1927 .addComponent(zoomInIcon) 1928 .addGap(1, 1, 1) 1929 .addComponent(zoomSlider, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE) 1930 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 1931 .addComponent(zoomOutIcon))) 1404 .addContainerGap() 1405 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) 1406 .addComponent(zoomOutIcon) 1407 .addComponent(zoomSlider, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) 1408 .addComponent(zoomInIcon)) 1932 1409 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 1933 1410 .addComponent(timeStampScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE) 1934 1411 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 1935 .addComponent(timelinesScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)1412 .addComponent(timelinesScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 1289, Short.MAX_VALUE) 1936 1413 .addContainerGap()) 1937 1414 ); … … 2089 1566 }//GEN-LAST:event_newIncidentActionPerformed 2090 1567 2091 /**2092 * Deselects new event type upon click of blank "select" button.2093 *2094 * @param evt the button press event2095 */2096 private void selectButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_selectButtonActionPerformed2097 currentEventType = null;2098 for (JButton eb : eventButtons)2099 {2100 eb.setSelected(false);2101 }2102 selectButton.setSelected(true);2103 }//GEN-LAST:event_selectButtonActionPerformed2104 2105 /**2106 * Selects CAD_EVENT as the current type of new event, upon click of "CAD2107 * Event" button.2108 *2109 * @param evt the button press event2110 */2111 private void cadButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cadButtonActionPerformed2112 currentEventType = ScriptEventType.CAD_EVENT;2113 for (JButton eb : eventButtons)2114 {2115 eb.setSelected(false);2116 }2117 cadButton.setSelected(true);2118 }//GEN-LAST:event_cadButtonActionPerformed2119 2120 /**2121 * Selects CCTV_EVENT as the current type of new event, upon click of "CCTV2122 * Event" button.2123 *2124 * @param evt the button press event2125 */2126 private void cctvButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cctvButtonActionPerformed2127 currentEventType = ScriptEventType.CCTV_EVENT;2128 for (JButton eb : eventButtons)2129 {2130 eb.setSelected(false);2131 }2132 cctvButton.setSelected(true);2133 }//GEN-LAST:event_cctvButtonActionPerformed2134 2135 /**2136 * Selects CHP_RADIO_EVENT as the current type of new event, upon click of2137 * "CHP Radio Event" button.2138 *2139 * @param evt the button press event2140 */2141 private void chpRadioButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_chpRadioButtonActionPerformed2142 currentEventType = ScriptEventType.CHP_RADIO_EVENT;2143 for (JButton eb : eventButtons)2144 {2145 eb.setSelected(false);2146 }2147 chpRadioButton.setSelected(true);2148 }//GEN-LAST:event_chpRadioButtonActionPerformed2149 2150 1568 private void fileMenuActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_fileMenuActionPerformed 2151 1569 }//GEN-LAST:event_fileMenuActionPerformed … … 2418 1836 fc.showSaveDialog(this); 2419 1837 }//GEN-LAST:event_generateOrganizationChartActionPerformed 2420 2421 /**2422 * Selects WITNESS_EVENT as the current type of new event, upon click of2423 * "Witness Event" button.2424 *2425 * @param evt the button press event2426 */2427 private void witnessButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_witnessButtonActionPerformed2428 currentEventType = ScriptEventType.WITNESS_EVENT;2429 for (JButton eb : eventButtons)2430 {2431 eb.setSelected(false);2432 }2433 witnessButton.setSelected(true);2434 }//GEN-LAST:event_witnessButtonActionPerformed2435 2436 /**2437 * Selects UNIT_EVENT as the current type of new event, upon click of "Unit2438 * Event" button.2439 *2440 * @param evt the button press event2441 */2442 private void unitButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_unitButtonActionPerformed2443 currentEventType = ScriptEventType.UNIT_EVENT;2444 for (JButton eb : eventButtons)2445 {2446 eb.setSelected(false);2447 }2448 unitButton.setSelected(true);2449 }//GEN-LAST:event_unitButtonActionPerformed2450 2451 /**2452 * Selects TOW_EVENT as the current type of new event, upon click of "TOW2453 * Event" button.2454 *2455 * @param evt the button press event2456 */2457 private void towButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_towButtonActionPerformed2458 currentEventType = ScriptEventType.TOW_EVENT;2459 for (JButton eb : eventButtons)2460 {2461 eb.setSelected(false);2462 }2463 towButton.setSelected(true);2464 }//GEN-LAST:event_towButtonActionPerformed2465 2466 /**2467 * Selects PARAMICS_EVENT as the current type of new event, upon click of2468 * "Paramics Event" button.2469 *2470 * @param evt the button press event2471 */2472 private void paramicsButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_paramicsButtonActionPerformed2473 currentEventType = ScriptEventType.PARAMICS_EVENT;2474 for (JButton eb : eventButtons)2475 {2476 eb.setSelected(false);2477 }2478 paramicsButton.setSelected(true);2479 }//GEN-LAST:event_paramicsButtonActionPerformed2480 2481 /**2482 * Selects MAINTENANCE_RADIO_EVENT as the current type of new event, upon2483 * click of "Maintenance Radio Event" button.2484 *2485 * @param evt the button press event2486 */2487 private void maintenanceRadioButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_maintenanceRadioButtonActionPerformed2488 currentEventType = ScriptEventType.MAINTENANCE_RADIO_EVENT;2489 for (JButton eb : eventButtons)2490 {2491 eb.setSelected(false);2492 }2493 maintenanceRadioButton.setSelected(true);2494 }//GEN-LAST:event_maintenanceRadioButtonActionPerformed2495 2496 /**2497 * Selects ATMS_EVAL_EVENT as the current type of new event, upon click of2498 * "ATMS Evaluation Event" button.2499 *2500 * @param evt the button press event2501 */2502 private void atmsEvalButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_atmsEvalButtonActionPerformed2503 currentEventType = ScriptEventType.ATMS_EVAL_EVENT;2504 for (JButton eb : eventButtons)2505 {2506 eb.setSelected(false);2507 }2508 atmsEvalButton.setSelected(true);2509 }//GEN-LAST:event_atmsEvalButtonActionPerformed2510 2511 /**2512 * Selects TELEPHONE_EVENT as the current type of new event, upon click of2513 * "Telephone Event" button.2514 *2515 * @param evt the button press event2516 */2517 private void telephoneButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_telephoneButtonActionPerformed2518 currentEventType = ScriptEventType.TELEPHONE_EVENT;2519 for (JButton eb : eventButtons)2520 {2521 eb.setSelected(false);2522 }2523 telephoneButton.setSelected(true);2524 }//GEN-LAST:event_telephoneButtonActionPerformed2525 2526 /**2527 * Selects TMT_RADIO_EVENT as the current type of new event, upon click of2528 * "TMT Radio Event" button.2529 *2530 * @param evt the button press event2531 */2532 private void tmtRadioButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_tmtRadioButtonActionPerformed2533 currentEventType = ScriptEventType.TMT_RADIO_EVENT;2534 for (JButton eb : eventButtons)2535 {2536 eb.setSelected(false);2537 }2538 tmtRadioButton.setSelected(true);2539 }//GEN-LAST:event_tmtRadioButtonActionPerformed2540 2541 /**2542 * Selects CMS_EVAL_EVENT as the current type of new event, upon click of2543 * "CMS Evaluation Event" button.2544 *2545 * @param evt the button press event2546 */2547 private void cmsEvalButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cmsEvalButtonActionPerformed2548 currentEventType = ScriptEventType.CMS_EVAL_EVENT;2549 for (JButton eb : eventButtons)2550 {2551 eb.setSelected(false);2552 }2553 cmsEvalButton.setSelected(true);2554 }//GEN-LAST:event_cmsEvalButtonActionPerformed2555 2556 /**2557 * Selects CAD_EVAL_EVENT as the current type of new event, upon click of2558 * "CAD Evaluation Event" button.2559 *2560 * @param evt the button press event2561 */2562 private void cadEvalButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cadEvalButtonActionPerformed2563 currentEventType = ScriptEventType.CAD_EVAL_EVENT;2564 for (JButton eb : eventButtons)2565 {2566 eb.setSelected(false);2567 }2568 cadEvalButton.setSelected(true);2569 }//GEN-LAST:event_cadEvalButtonActionPerformed2570 2571 /**2572 * Selects ACTIVITY_LOG_EVAL_EVENT as the current type of new event, upon2573 * click of "Activity Log Evaluation Event" button.2574 *2575 * @param evt the button press event2576 */2577 private void activityLogEvalButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_activityLogEvalButtonActionPerformed2578 currentEventType = ScriptEventType.ACTIVITY_LOG_EVAL_EVENT;2579 for (JButton eb : eventButtons)2580 {2581 eb.setSelected(false);2582 }2583 activityLogEvalButton.setSelected(true);2584 }//GEN-LAST:event_activityLogEvalButtonActionPerformed2585 2586 /**2587 * Selects RADIO_EVAL_EVENT as the current type of new event, upon click of2588 * "Radio Evaluation Event" button.2589 *2590 * @param evt the button press event2591 */2592 private void radioEvalButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_radioEvalButtonActionPerformed2593 currentEventType = ScriptEventType.RADIO_EVAL_EVENT;2594 for (JButton eb : eventButtons)2595 {2596 eb.setSelected(false);2597 }2598 radioEvalButton.setSelected(true);2599 }//GEN-LAST:event_radioEvalButtonActionPerformed2600 2601 /**2602 * Selects FACILITATOR_EVAL_EVENT as the current type of new event, upon2603 * click of "Facilitator Evaluation Event" button.2604 *2605 * @param evt the button press event2606 */2607 private void facilitatorEvalButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_facilitatorEvalButtonActionPerformed2608 currentEventType = ScriptEventType.FACILITATOR_EVAL_EVENT;2609 for (JButton eb : eventButtons)2610 {2611 eb.setSelected(false);2612 }2613 facilitatorEvalButton.setSelected(true);2614 }//GEN-LAST:event_facilitatorEvalButtonActionPerformed2615 2616 /**2617 * Selects AUDIO_EVENT as the current type of new event, upon click of2618 * "Audio Event" button.2619 *2620 * @param evt the button press event2621 */2622 private void audioButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_audioButtonActionPerformed2623 currentEventType = ScriptEventType.AUDIO_EVENT;2624 for (JButton eb : eventButtons)2625 {2626 eb.setSelected(false);2627 }2628 audioButton.setSelected(true);2629 }//GEN-LAST:event_audioButtonActionPerformed2630 1838 2631 1839 /** … … 2801 2009 } 2802 2010 // Variables declaration - do not modify//GEN-BEGIN:variables 2803 private javax.swing.JButton activityLogEvalButton;2804 2011 private javax.swing.JTextArea addIncidentDescription; 2805 2012 private javax.swing.JSpinner addIncidentLength; … … 2808 2015 private javax.swing.JSpinner addIncidentStart; 2809 2016 private javax.swing.JFrame addNoiseFrame; 2810 private javax.swing.JButton atmsEvalButton;2811 private javax.swing.JButton audioButton;2812 private javax.swing.JButton cadButton;2813 private javax.swing.JButton cadEvalButton;2814 2017 private javax.swing.JMenuItem cadEvent; 2815 2018 private javax.swing.JFrame cadEventFrame; 2816 2019 private javax.swing.JButton cancelButton; 2817 private javax.swing.JButton cctvButton;2818 private javax.swing.JButton chpRadioButton;2819 private javax.swing.JButton cmsEvalButton;2820 2020 private javax.swing.JMenuItem deleteEventList; 2821 2021 private javax.swing.JMenuItem editEventList; 2822 2022 private javax.swing.JMenuItem editIncident; 2823 private javax.swing.JPanel evaluationEventsPanel;2824 2023 private javax.swing.JPopupMenu eventListPopupMenu; 2825 2024 private javax.swing.JPopupMenu eventPopupMenu; 2826 private javax.swing.JButton facilitatorEvalButton;2827 2025 private javax.swing.JMenu fileMenu; 2828 2026 private javax.swing.JMenuItem fileNew; … … 2844 2042 private javax.swing.JTextField incidentColorField; 2845 2043 private javax.swing.JMenuItem incidentDetails; 2846 private javax.swing.JPanel incidentEventsPanel;2847 2044 private javax.swing.JFrame incidentFrame; 2848 2045 private javax.swing.JMenu incidentMenu; … … 2904 2101 private javax.swing.JTextArea jTextArea1; 2905 2102 private javax.swing.JMenuItem loadIncident; 2906 private javax.swing.JButton maintenanceRadioButton;2907 2103 private javax.swing.JMenuItem newIncident; 2908 2104 private javax.swing.JButton okButton; 2909 private javax.swing.JButton paramicsButton;2910 2105 private javax.swing.JMenuItem popupDeleteIncident; 2911 private javax.swing.JButton radioEvalButton;2912 2106 private javax.swing.JMenuItem radioEvent; 2913 2107 private javax.swing.JFrame radioEventFrame; … … 2918 2112 private javax.swing.JMenuItem saveIncident; 2919 2113 private javax.swing.JMenuBar scriptBuilderMenuBar; 2920 private javax.swing.JButton selectButton;2921 private javax.swing.JButton telephoneButton;2922 2114 private scriptbuilder.gui.panels.TimeStampPanel timeStampPanel; 2923 2115 private javax.swing.JScrollPane timeStampScrollPane; 2924 2116 private scriptbuilder.gui.panels.TimelineTickPanel timelineTickPanel; 2925 2117 private javax.swing.JScrollPane timelinesScrollPane; 2926 private javax.swing.JButton tmtRadioButton;2927 private javax.swing.JButton towButton;2928 private javax.swing.JButton unitButton;2929 private javax.swing.JButton witnessButton;2930 2118 private javax.swing.JLabel zoomInIcon; 2931 2119 private javax.swing.JLabel zoomOutIcon; -
trunk/src/scriptbuilder/gui/application.properties
r15 r55 1 # Thu, 27 Jul 2017 10:39:30 -07001 #Mon, 14 Aug 2017 08:54:10 -0700 2 2 3 Application.revision= 143 Application.revision=0 4 4 5 5 Application.buildnumber=3
Note: See TracChangeset
for help on using the changeset viewer.
