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


Ignore:
Timestamp:
09/07/2017 02:51:49 PM (9 years ago)
Author:
bmcguffin
Message:

Added a pair of radio buttons under the +15 button on IncidentEditorFrame? which can be toggled between. If "to start" is selected, then pressing the +15 button will add (up to) 15 minutes of screen space to the beginning of the incident. If "to end" is selected, then pressing the +15 button will add 15 minutes of screen space to the end of the incident. Selecting one button deselects the other.

File:
1 edited

Legend:

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

    r117 r118  
    453453                      <EmptySpace max="-2" attributes="0"/> 
    454454                      <Component id="evaluationEventsPanel" min="-2" max="-2" attributes="0"/> 
    455                       <EmptySpace type="separate" max="-2" attributes="0"/> 
     455                      <EmptySpace min="-2" max="-2" attributes="0"/> 
    456456                      <Group type="103" groupAlignment="0" attributes="0"> 
    457                           <Group type="102" alignment="0" attributes="0"> 
    458                               <Component id="zoomSlider" min="-2" pref="31" max="-2" attributes="0"/> 
    459                               <EmptySpace max="-2" attributes="0"/> 
    460                               <Component id="btnAddTime" max="32767" attributes="0"/> 
    461                           </Group> 
    462                           <Group type="102" attributes="0"> 
    463                               <Group type="103" groupAlignment="0" attributes="0"> 
    464                                   <Component id="zoomInIcon" min="-2" max="-2" attributes="0"/> 
    465                                   <Component id="zoomOutIcon" min="-2" max="-2" attributes="0"/> 
    466                               </Group> 
    467                               <EmptySpace min="0" pref="0" max="32767" attributes="0"/> 
    468                           </Group> 
    469                       </Group> 
     457                          <Component id="zoomInIcon" alignment="0" min="-2" max="-2" attributes="0"/> 
     458                          <Component id="zoomOutIcon" alignment="0" min="-2" max="-2" attributes="0"/> 
     459                          <Component id="zoomSlider" alignment="0" min="-2" max="-2" attributes="0"/> 
     460                      </Group> 
     461                      <EmptySpace max="32767" attributes="0"/> 
     462                      <Component id="addTimePanel" min="-2" max="-2" attributes="0"/> 
    470463                  </Group> 
    471464                  <Component id="timelinesScrollPane" alignment="0" min="0" pref="0" max="32767" attributes="1"/> 
    472                   <Component id="timeStampScrollPane" alignment="0" max="32767" attributes="0"/> 
     465                  <Component id="timeStampScrollPane" alignment="0" pref="0" max="32767" attributes="0"/> 
    473466                  <Group type="102" alignment="1" attributes="0"> 
    474                       <Component id="scriptEventsPanel1" max="32767" attributes="0"/> 
     467                      <Component id="incidentInformationPanel" max="32767" attributes="0"/> 
    475468                      <EmptySpace max="-2" attributes="0"/> 
    476469                      <Component id="scriptEventsPanel" max="32767" attributes="0"/> 
    477470                  </Group> 
    478                   <Component id="timeStampScrollPane1" alignment="0" max="32767" attributes="0"/> 
     471                  <Component id="timeStampScrollPane1" alignment="0" pref="0" max="32767" attributes="0"/> 
    479472              </Group> 
    480473              <EmptySpace max="-2" attributes="0"/> 
     
    498491                  </Group> 
    499492                  <Group type="102" attributes="0"> 
     493                      <EmptySpace min="-2" pref="9" max="-2" attributes="0"/> 
    500494                      <Group type="103" groupAlignment="0" max="-2" attributes="0"> 
    501495                          <Group type="102" attributes="0"> 
    502                               <EmptySpace min="-2" pref="9" max="-2" attributes="0"/> 
    503496                              <Component id="zoomInIcon" min="-2" max="-2" attributes="0"/> 
    504                               <EmptySpace max="32767" attributes="0"/> 
     497                              <EmptySpace min="-2" max="-2" attributes="0"/> 
    505498                              <Component id="zoomSlider" min="-2" pref="69" max="-2" attributes="1"/> 
     499                              <EmptySpace max="-2" attributes="0"/> 
     500                              <Component id="zoomOutIcon" min="-2" max="-2" attributes="0"/> 
    506501                          </Group> 
    507                           <Group type="102" attributes="0"> 
    508                               <EmptySpace min="-2" pref="61" max="-2" attributes="0"/> 
    509                               <Component id="btnAddTime" min="-2" pref="44" max="-2" attributes="0"/> 
    510                           </Group> 
    511                       </Group> 
    512                       <EmptySpace max="32767" attributes="0"/> 
    513                       <Component id="zoomOutIcon" min="-2" max="-2" attributes="0"/> 
    514                   </Group> 
    515               </Group> 
    516               <EmptySpace max="-2" attributes="0"/> 
     502                          <Component id="addTimePanel" max="32767" attributes="0"/> 
     503                      </Group> 
     504                  </Group> 
     505              </Group> 
     506              <EmptySpace min="-2" max="-2" attributes="0"/> 
    517507              <Component id="timeStampScrollPane" min="-2" pref="20" max="-2" attributes="0"/> 
    518               <EmptySpace max="-2" attributes="0"/> 
     508              <EmptySpace min="-2" max="-2" attributes="0"/> 
    519509              <Component id="timeStampScrollPane1" min="-2" pref="20" max="-2" attributes="0"/> 
    520510              <EmptySpace min="-2" max="-2" attributes="0"/> 
     
    522512              <EmptySpace max="-2" attributes="0"/> 
    523513              <Group type="103" groupAlignment="0" attributes="0"> 
    524                   <Component id="scriptEventsPanel1" min="-2" max="-2" attributes="1"/> 
     514                  <Component id="incidentInformationPanel" min="-2" max="-2" attributes="1"/> 
    525515                  <Component id="scriptEventsPanel" min="-2" max="-2" attributes="1"/> 
    526516              </Group> 
     
    700690      </Events> 
    701691    </Component> 
    702     <Container class="javax.swing.JPanel" name="scriptEventsPanel1"> 
     692    <Container class="javax.swing.JPanel" name="incidentInformationPanel"> 
    703693      <Properties> 
    704694        <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> 
     
    12941284            <DimensionLayout dim="0"> 
    12951285              <Group type="103" groupAlignment="0" attributes="0"> 
    1296                   <EmptySpace min="0" pref="1036" max="32767" attributes="0"/> 
     1286                  <EmptySpace min="0" pref="1088" max="32767" attributes="0"/> 
    12971287              </Group> 
    12981288            </DimensionLayout> 
     
    13061296      </SubComponents> 
    13071297    </Container> 
    1308     <Component class="javax.swing.JButton" name="btnAddTime"> 
    1309       <Properties> 
    1310         <Property name="text" type="java.lang.String" value="+15:00"/> 
    1311       </Properties> 
    1312       <Events> 
    1313         <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="btnAddTimeActionPerformed"/> 
    1314       </Events> 
    1315     </Component> 
    13161298    <Container class="javax.swing.JScrollPane" name="timeStampScrollPane1"> 
    13171299      <Properties> 
     
    13301312            <DimensionLayout dim="0"> 
    13311313              <Group type="103" groupAlignment="0" attributes="0"> 
    1332                   <EmptySpace min="0" pref="1036" max="32767" attributes="0"/> 
     1314                  <EmptySpace min="0" pref="1088" max="32767" attributes="0"/> 
    13331315              </Group> 
    13341316            </DimensionLayout> 
     
    13421324      </SubComponents> 
    13431325    </Container> 
     1326    <Container class="javax.swing.JPanel" name="addTimePanel"> 
     1327 
     1328      <Layout> 
     1329        <DimensionLayout dim="0"> 
     1330          <Group type="103" groupAlignment="0" attributes="0"> 
     1331              <Component id="btnAddTime" pref="0" max="32767" attributes="0"/> 
     1332              <Group type="102" attributes="0"> 
     1333                  <Group type="103" groupAlignment="0" attributes="0"> 
     1334                      <Component id="btnToggleTimeStart" min="-2" max="-2" attributes="0"/> 
     1335                      <Component id="btnToggleTimeEnd" alignment="0" min="-2" max="-2" attributes="0"/> 
     1336                  </Group> 
     1337                  <EmptySpace min="0" pref="0" max="32767" attributes="0"/> 
     1338              </Group> 
     1339          </Group> 
     1340        </DimensionLayout> 
     1341        <DimensionLayout dim="1"> 
     1342          <Group type="103" groupAlignment="0" attributes="0"> 
     1343              <Group type="102" alignment="0" attributes="0"> 
     1344                  <Component id="btnAddTime" min="-2" pref="44" max="-2" attributes="0"/> 
     1345                  <EmptySpace max="-2" attributes="0"/> 
     1346                  <Component id="btnToggleTimeStart" min="-2" max="-2" attributes="0"/> 
     1347                  <EmptySpace max="-2" attributes="0"/> 
     1348                  <Component id="btnToggleTimeEnd" min="-2" max="-2" attributes="0"/> 
     1349                  <EmptySpace min="0" pref="0" max="32767" attributes="0"/> 
     1350              </Group> 
     1351          </Group> 
     1352        </DimensionLayout> 
     1353      </Layout> 
     1354      <SubComponents> 
     1355        <Component class="javax.swing.JButton" name="btnAddTime"> 
     1356          <Properties> 
     1357            <Property name="text" type="java.lang.String" value="+15:00"/> 
     1358          </Properties> 
     1359          <Events> 
     1360            <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="btnAddTimeActionPerformed"/> 
     1361          </Events> 
     1362        </Component> 
     1363        <Component class="javax.swing.JRadioButton" name="btnToggleTimeStart"> 
     1364          <Properties> 
     1365            <Property name="text" type="java.lang.String" value="to Start"/> 
     1366          </Properties> 
     1367          <Events> 
     1368            <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="btnToggleTimeStartActionPerformed"/> 
     1369          </Events> 
     1370        </Component> 
     1371        <Component class="javax.swing.JRadioButton" name="btnToggleTimeEnd"> 
     1372          <Properties> 
     1373            <Property name="selected" type="boolean" value="true"/> 
     1374            <Property name="text" type="java.lang.String" value="to End"/> 
     1375          </Properties> 
     1376          <Events> 
     1377            <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="btnToggleTimeEndActionPerformed"/> 
     1378          </Events> 
     1379        </Component> 
     1380      </SubComponents> 
     1381    </Container> 
    13441382  </SubComponents> 
    13451383</Form> 
Note: See TracChangeset for help on using the changeset viewer.