Changeset 98 in tmcsimulator-scriptbuilder for trunk/src/scriptbuilder/gui/IncidentEditorFrame.form


Ignore:
Timestamp:
08/29/2017 10:40:27 AM (9 years ago)
Author:
bmcguffin
Message:

Added "Add 15 minutes" button, btnAddTime, to both Script Builder and Incident Editor windows. Clicking the button allows the user to add 15 minutes of scrollable space to the end of the timeline window, so that new events can be added after the end. This extra time does not interact with the model and so does not enter the save file, or persist between iterations of the program.

File:
1 edited

Legend:

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

    r89 r98  
    447447              <EmptySpace max="-2" attributes="0"/> 
    448448              <Group type="103" groupAlignment="0" attributes="0"> 
    449                   <Component id="timelinesScrollPane" alignment="0" min="0" pref="0" max="32767" attributes="1"/> 
    450                   <Component id="timeStampScrollPane" alignment="0" max="32767" attributes="0"/> 
    451                   <Group type="102" alignment="1" attributes="0"> 
    452                       <Component id="scriptEventsPanel1" max="32767" attributes="0"/> 
    453                       <EmptySpace max="-2" attributes="0"/> 
    454                       <Component id="scriptEventsPanel" max="32767" attributes="0"/> 
    455                   </Group> 
    456449                  <Group type="102" alignment="0" attributes="0"> 
    457450                      <Component id="selectButton" min="-2" pref="40" max="-2" attributes="0"/> 
     
    462455                      <EmptySpace type="separate" max="-2" attributes="0"/> 
    463456                      <Group type="103" groupAlignment="0" attributes="0"> 
    464                           <Component id="zoomInIcon" alignment="0" min="-2" max="-2" attributes="0"/> 
    465                           <Component id="zoomSlider" alignment="0" min="-2" pref="31" max="-2" attributes="0"/> 
    466                           <Component id="zoomOutIcon" alignment="0" min="-2" max="-2" attributes="0"/> 
    467                       </Group> 
     457                          <Group type="102" alignment="0" attributes="0"> 
     458                              <Group type="103" groupAlignment="0" attributes="0"> 
     459                                  <Component id="zoomInIcon" alignment="0" min="-2" max="-2" attributes="0"/> 
     460                                  <Component id="zoomOutIcon" alignment="0" min="-2" max="-2" attributes="0"/> 
     461                              </Group> 
     462                              <EmptySpace min="0" pref="0" max="32767" attributes="0"/> 
     463                          </Group> 
     464                          <Group type="102" alignment="0" attributes="0"> 
     465                              <Component id="zoomSlider" min="-2" pref="31" max="-2" attributes="0"/> 
     466                              <EmptySpace max="-2" attributes="0"/> 
     467                              <Component id="btnAddTime" max="32767" attributes="0"/> 
     468                          </Group> 
     469                      </Group> 
     470                  </Group> 
     471                  <Component id="timelinesScrollPane" alignment="0" min="0" pref="0" max="32767" attributes="1"/> 
     472                  <Component id="timeStampScrollPane" alignment="0" max="32767" attributes="0"/> 
     473                  <Group type="102" alignment="1" attributes="0"> 
     474                      <Component id="scriptEventsPanel1" max="32767" attributes="0"/> 
     475                      <EmptySpace max="-2" attributes="0"/> 
     476                      <Component id="scriptEventsPanel" max="32767" attributes="0"/> 
    468477                  </Group> 
    469478              </Group> 
     
    490499                      <EmptySpace min="-2" pref="20" max="-2" attributes="0"/> 
    491500                      <Component id="zoomInIcon" min="-2" max="-2" attributes="0"/> 
    492                       <EmptySpace min="-2" pref="1" max="-2" attributes="0"/> 
    493                       <Component id="zoomSlider" min="-2" pref="69" max="-2" attributes="1"/> 
     501                      <Group type="103" groupAlignment="0" attributes="0"> 
     502                          <Group type="102" attributes="0"> 
     503                              <EmptySpace min="-2" pref="1" max="-2" attributes="0"/> 
     504                              <Component id="zoomSlider" min="-2" pref="69" max="-2" attributes="1"/> 
     505                          </Group> 
     506                          <Group type="102" alignment="0" attributes="0"> 
     507                              <EmptySpace min="-2" pref="17" max="-2" attributes="0"/> 
     508                              <Component id="btnAddTime" min="-2" pref="44" max="-2" attributes="0"/> 
     509                          </Group> 
     510                      </Group> 
    494511                      <EmptySpace max="-2" attributes="0"/> 
    495512                      <Component id="zoomOutIcon" min="-2" max="-2" attributes="0"/> 
     
    12711288            <DimensionLayout dim="0"> 
    12721289              <Group type="103" groupAlignment="0" attributes="0"> 
    1273                   <EmptySpace min="0" pref="1032" max="32767" attributes="0"/> 
     1290                  <EmptySpace min="0" pref="1036" max="32767" attributes="0"/> 
    12741291              </Group> 
    12751292            </DimensionLayout> 
     
    12831300      </SubComponents> 
    12841301    </Container> 
     1302    <Component class="javax.swing.JButton" name="btnAddTime"> 
     1303      <Properties> 
     1304        <Property name="text" type="java.lang.String" value="+15:00"/> 
     1305      </Properties> 
     1306      <Events> 
     1307        <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="btnAddTimeActionPerformed"/> 
     1308      </Events> 
     1309    </Component> 
    12851310  </SubComponents> 
    12861311</Form> 
Note: See TracChangeset for help on using the changeset viewer.