Warning: Can't use blame annotator:
svn blame failed on trunk/src/event/editor/ScriptEventEditorPanel.java: ("Can't find a temporary directory: Internal error", 20014)

source: tmcsimulator-scriptbuilder/trunk/src/event/editor/ScriptEventEditorPanel.java @ 89

Revision 89, 745 bytes checked in by bmcguffin, 9 years ago (diff)

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.

RevLine 
1/*
2 * To change this license header, choose License Headers in Project Properties.
3 * To change this template file, choose Tools | Templates
4 * and open the template in the editor.
5 */
6package event.editor;
7
8import java.util.Observer;
9import scriptbuilder.structures.events.I_ScriptEvent;
10
11/**
12 *
13 * @author Bryan McGuffin
14 */
15public interface ScriptEventEditorPanel extends Observer
16{
17
18    /**
19     * Load the script event associated with this editor panel.
20     *
21     * @param sei The script event in question
22     */
23    void getEventObject(I_ScriptEvent sei);
24   
25     /**
26     * Remove the event associated with this panel.
27     *
28     * @return true if the event was successfully deleted.
29     */
30    boolean removeAssociatedEvent();
31}
Note: See TracBrowser for help on using the repository browser.