Changeset 89 in tmcsimulator-scriptbuilder for trunk/src/event/editor/TelephonePanel.java


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/TelephonePanel.java

    r7 r89  
    106106    { 
    107107        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. 
     108    } 
     109     
     110    @Override 
     111    public boolean removeAssociatedEvent() 
     112    { 
     113        ((I_ScriptEvent)event).removeThis(); 
     114        event = null; 
     115        return true; 
    108116    } 
    109117 
Note: See TracChangeset for help on using the changeset viewer.