Changeset 89 in tmcsimulator-scriptbuilder for trunk/src/event/editor/Editor.form


Ignore:
Timestamp:
08/28/2017 01:38:15 PM (9 years ago)
Author:
bmcguffin
Message:

Added dropdown menu item to ScriptBuilderFrame?: "Delete Incident". When clicked, user may select an existing incident to delete. Program will prompt user to confirm the deletion, then remove the incident from the script and refresh the display.

Added button to individual event editor window: "Remove this event". When clicked, the currently displayed event will be removed from the timeslice it is in. The display will be refreshed accordingly. NOTE: This still has some bugs, namely that the last remaining event in a timeslice fails to be deleted.

Restructured Interface ScriptEventEditorPanel? to include a removeAssociatedEvent method, which calls a new method in I_ScriptEvent called removeThis, which causes the event to be removed from its timeslice.

Editor.Java previously contained several classes and enums, none of which were set to private scope. Moved these extra classes to their own files to decrease clutter in Editor.java and increase readability of all files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/event/editor/Editor.form

    r1 r89  
    33<Form version="1.3" maxVersion="1.7" type="org.netbeans.modules.form.forminfo.JFrameFormInfo"> 
    44  <NonVisualComponents> 
     5    <Container class="javax.swing.JPanel" name="jPanel1"> 
     6 
     7      <Layout> 
     8        <DimensionLayout dim="0"> 
     9          <Group type="103" groupAlignment="0" attributes="0"> 
     10              <EmptySpace min="0" pref="100" max="32767" attributes="0"/> 
     11          </Group> 
     12        </DimensionLayout> 
     13        <DimensionLayout dim="1"> 
     14          <Group type="103" groupAlignment="0" attributes="0"> 
     15              <EmptySpace min="0" pref="100" max="32767" attributes="0"/> 
     16          </Group> 
     17        </DimensionLayout> 
     18      </Layout> 
     19    </Container> 
    520    <Menu class="javax.swing.JMenuBar" name="jMenuBar1"> 
    621      <SubComponents> 
     
    271286    <DimensionLayout dim="0"> 
    272287      <Group type="103" groupAlignment="0" attributes="0"> 
    273           <Group type="102" alignment="0" attributes="0"> 
    274               <EmptySpace max="-2" attributes="0"/> 
    275               <Component id="jTabbedPane1" pref="921" max="32767" attributes="0"/> 
    276               <EmptySpace max="-2" attributes="0"/> 
    277           </Group> 
     288          <Component id="jTabbedPane1" alignment="1" max="32767" attributes="0"/> 
     289          <Component id="jPanel2" alignment="0" max="32767" attributes="0"/> 
    278290      </Group> 
    279291    </DimensionLayout> 
     
    282294          <Group type="102" alignment="0" attributes="0"> 
    283295              <EmptySpace max="-2" attributes="0"/> 
    284               <Component id="jTabbedPane1" pref="580" max="32767" attributes="0"/> 
     296              <Component id="jTabbedPane1" pref="539" max="32767" attributes="0"/> 
    285297              <EmptySpace max="-2" attributes="0"/> 
     298              <Component id="jPanel2" min="-2" max="-2" attributes="0"/> 
    286299          </Group> 
    287300      </Group> 
     
    293306      <Layout class="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout"/> 
    294307    </Container> 
     308    <Container class="javax.swing.JPanel" name="jPanel2"> 
     309 
     310      <Layout> 
     311        <DimensionLayout dim="0"> 
     312          <Group type="103" groupAlignment="0" attributes="0"> 
     313              <Group type="102" alignment="1" attributes="0"> 
     314                  <EmptySpace pref="701" max="32767" attributes="0"/> 
     315                  <Component id="btnRemoveCurrentEvent" min="-2" pref="226" max="-2" attributes="0"/> 
     316                  <EmptySpace max="-2" attributes="0"/> 
     317              </Group> 
     318          </Group> 
     319        </DimensionLayout> 
     320        <DimensionLayout dim="1"> 
     321          <Group type="103" groupAlignment="0" attributes="0"> 
     322              <Component id="btnRemoveCurrentEvent" min="-2" max="-2" attributes="0"/> 
     323          </Group> 
     324        </DimensionLayout> 
     325      </Layout> 
     326      <SubComponents> 
     327        <Component class="javax.swing.JButton" name="btnRemoveCurrentEvent"> 
     328          <Properties> 
     329            <Property name="text" type="java.lang.String" value="Remove This Event"/> 
     330          </Properties> 
     331          <Events> 
     332            <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="btnRemoveCurrentEventActionPerformed"/> 
     333          </Events> 
     334        </Component> 
     335      </SubComponents> 
     336    </Container> 
    295337  </SubComponents> 
    296338</Form> 
Note: See TracChangeset for help on using the changeset viewer.