tools/drawMapTest/mainwindow.ui
author nemo
Thu, 03 Mar 2016 16:36:05 -0500
changeset 11589 c453620cc6d6
parent 4477 63a21fac8bf7
permissions -rw-r--r--
Break up the hog/object collision. Currently is $7F, allowing 128 overlapping objects accurately. Breaking it up into 15 for hogs, 7 for other objects. I'm thinking the overall accuracy should be just fine as far as people noticing even with a ton of overlapping hogs, and this way we can tell the difference between a hog and "something else". For experiment and rope-breaking purposes, make rope pass through hogs.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4425
2314bb0c433d Small testing app for DrawMap scene
unc0rr
parents:
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
2314bb0c433d Small testing app for DrawMap scene
unc0rr
parents:
diff changeset
     2
<ui version="4.0">
2314bb0c433d Small testing app for DrawMap scene
unc0rr
parents:
diff changeset
     3
 <class>MainWindow</class>
2314bb0c433d Small testing app for DrawMap scene
unc0rr
parents:
diff changeset
     4
 <widget class="QMainWindow" name="MainWindow">
2314bb0c433d Small testing app for DrawMap scene
unc0rr
parents:
diff changeset
     5
  <property name="geometry">
2314bb0c433d Small testing app for DrawMap scene
unc0rr
parents:
diff changeset
     6
   <rect>
2314bb0c433d Small testing app for DrawMap scene
unc0rr
parents:
diff changeset
     7
    <x>0</x>
2314bb0c433d Small testing app for DrawMap scene
unc0rr
parents:
diff changeset
     8
    <y>0</y>
2314bb0c433d Small testing app for DrawMap scene
unc0rr
parents:
diff changeset
     9
    <width>600</width>
2314bb0c433d Small testing app for DrawMap scene
unc0rr
parents:
diff changeset
    10
    <height>400</height>
2314bb0c433d Small testing app for DrawMap scene
unc0rr
parents:
diff changeset
    11
   </rect>
2314bb0c433d Small testing app for DrawMap scene
unc0rr
parents:
diff changeset
    12
  </property>
2314bb0c433d Small testing app for DrawMap scene
unc0rr
parents:
diff changeset
    13
  <property name="windowTitle">
2314bb0c433d Small testing app for DrawMap scene
unc0rr
parents:
diff changeset
    14
   <string>MainWindow</string>
2314bb0c433d Small testing app for DrawMap scene
unc0rr
parents:
diff changeset
    15
  </property>
2314bb0c433d Small testing app for DrawMap scene
unc0rr
parents:
diff changeset
    16
  <widget class="QWidget" name="centralWidget">
4439
27a896207aae Some more improvements
unC0Rr
parents: 4434
diff changeset
    17
   <layout class="QGridLayout" name="gridLayout" rowstretch="3,1">
4426
969e411c72aa Improve map editor a bit
unc0rr
parents: 4425
diff changeset
    18
    <item row="1" column="2">
4439
27a896207aae Some more improvements
unC0Rr
parents: 4434
diff changeset
    19
     <widget class="QPlainTextEdit" name="plainTextEdit"/>
4425
2314bb0c433d Small testing app for DrawMap scene
unc0rr
parents:
diff changeset
    20
    </item>
4426
969e411c72aa Improve map editor a bit
unc0rr
parents: 4425
diff changeset
    21
    <item row="0" column="0" rowspan="2">
969e411c72aa Improve map editor a bit
unc0rr
parents: 4425
diff changeset
    22
     <layout class="QVBoxLayout" name="verticalLayout">
969e411c72aa Improve map editor a bit
unc0rr
parents: 4425
diff changeset
    23
      <item>
969e411c72aa Improve map editor a bit
unc0rr
parents: 4425
diff changeset
    24
       <widget class="QPushButton" name="pbUndo">
969e411c72aa Improve map editor a bit
unc0rr
parents: 4425
diff changeset
    25
        <property name="text">
969e411c72aa Improve map editor a bit
unc0rr
parents: 4425
diff changeset
    26
         <string>Undo</string>
969e411c72aa Improve map editor a bit
unc0rr
parents: 4425
diff changeset
    27
        </property>
969e411c72aa Improve map editor a bit
unc0rr
parents: 4425
diff changeset
    28
       </widget>
969e411c72aa Improve map editor a bit
unc0rr
parents: 4425
diff changeset
    29
      </item>
969e411c72aa Improve map editor a bit
unc0rr
parents: 4425
diff changeset
    30
      <item>
969e411c72aa Improve map editor a bit
unc0rr
parents: 4425
diff changeset
    31
       <spacer name="verticalSpacer">
969e411c72aa Improve map editor a bit
unc0rr
parents: 4425
diff changeset
    32
        <property name="orientation">
969e411c72aa Improve map editor a bit
unc0rr
parents: 4425
diff changeset
    33
         <enum>Qt::Vertical</enum>
969e411c72aa Improve map editor a bit
unc0rr
parents: 4425
diff changeset
    34
        </property>
969e411c72aa Improve map editor a bit
unc0rr
parents: 4425
diff changeset
    35
        <property name="sizeHint" stdset="0">
969e411c72aa Improve map editor a bit
unc0rr
parents: 4425
diff changeset
    36
         <size>
969e411c72aa Improve map editor a bit
unc0rr
parents: 4425
diff changeset
    37
          <width>20</width>
969e411c72aa Improve map editor a bit
unc0rr
parents: 4425
diff changeset
    38
          <height>40</height>
969e411c72aa Improve map editor a bit
unc0rr
parents: 4425
diff changeset
    39
         </size>
969e411c72aa Improve map editor a bit
unc0rr
parents: 4425
diff changeset
    40
        </property>
969e411c72aa Improve map editor a bit
unc0rr
parents: 4425
diff changeset
    41
       </spacer>
969e411c72aa Improve map editor a bit
unc0rr
parents: 4425
diff changeset
    42
      </item>
4434
34c305fbc63c Simple simplify() function
unc0rr
parents: 4426
diff changeset
    43
      <item>
4442
f8424e1bc936 - Implement decode() function.
unc0rr
parents: 4439
diff changeset
    44
       <widget class="QPushButton" name="pbSave">
f8424e1bc936 - Implement decode() function.
unc0rr
parents: 4439
diff changeset
    45
        <property name="text">
f8424e1bc936 - Implement decode() function.
unc0rr
parents: 4439
diff changeset
    46
         <string>Save</string>
f8424e1bc936 - Implement decode() function.
unc0rr
parents: 4439
diff changeset
    47
        </property>
f8424e1bc936 - Implement decode() function.
unc0rr
parents: 4439
diff changeset
    48
       </widget>
f8424e1bc936 - Implement decode() function.
unc0rr
parents: 4439
diff changeset
    49
      </item>
f8424e1bc936 - Implement decode() function.
unc0rr
parents: 4439
diff changeset
    50
      <item>
f8424e1bc936 - Implement decode() function.
unc0rr
parents: 4439
diff changeset
    51
       <widget class="QPushButton" name="pbLoad">
f8424e1bc936 - Implement decode() function.
unc0rr
parents: 4439
diff changeset
    52
        <property name="text">
f8424e1bc936 - Implement decode() function.
unc0rr
parents: 4439
diff changeset
    53
         <string>Load</string>
f8424e1bc936 - Implement decode() function.
unc0rr
parents: 4439
diff changeset
    54
        </property>
f8424e1bc936 - Implement decode() function.
unc0rr
parents: 4439
diff changeset
    55
       </widget>
f8424e1bc936 - Implement decode() function.
unc0rr
parents: 4439
diff changeset
    56
      </item>
f8424e1bc936 - Implement decode() function.
unc0rr
parents: 4439
diff changeset
    57
      <item>
4439
27a896207aae Some more improvements
unC0Rr
parents: 4434
diff changeset
    58
       <widget class="QSpinBox" name="sbBytes">
27a896207aae Some more improvements
unC0Rr
parents: 4434
diff changeset
    59
        <property name="readOnly">
27a896207aae Some more improvements
unC0Rr
parents: 4434
diff changeset
    60
         <bool>true</bool>
27a896207aae Some more improvements
unC0Rr
parents: 4434
diff changeset
    61
        </property>
27a896207aae Some more improvements
unC0Rr
parents: 4434
diff changeset
    62
        <property name="buttonSymbols">
27a896207aae Some more improvements
unC0Rr
parents: 4434
diff changeset
    63
         <enum>QAbstractSpinBox::NoButtons</enum>
27a896207aae Some more improvements
unC0Rr
parents: 4434
diff changeset
    64
        </property>
27a896207aae Some more improvements
unC0Rr
parents: 4434
diff changeset
    65
        <property name="suffix">
27a896207aae Some more improvements
unC0Rr
parents: 4434
diff changeset
    66
         <string> bytes</string>
27a896207aae Some more improvements
unC0Rr
parents: 4434
diff changeset
    67
        </property>
27a896207aae Some more improvements
unC0Rr
parents: 4434
diff changeset
    68
        <property name="maximum">
27a896207aae Some more improvements
unC0Rr
parents: 4434
diff changeset
    69
         <number>999999</number>
4434
34c305fbc63c Simple simplify() function
unc0rr
parents: 4426
diff changeset
    70
        </property>
34c305fbc63c Simple simplify() function
unc0rr
parents: 4426
diff changeset
    71
       </widget>
34c305fbc63c Simple simplify() function
unc0rr
parents: 4426
diff changeset
    72
      </item>
4426
969e411c72aa Improve map editor a bit
unc0rr
parents: 4425
diff changeset
    73
     </layout>
969e411c72aa Improve map editor a bit
unc0rr
parents: 4425
diff changeset
    74
    </item>
4477
63a21fac8bf7 Add QAspectRatioLayout borrowed from http://wiki.forum.nokia.com/index.php/CS001309_-_Maintaining_square_form_for_a_widget_in_Qt to maintain width == height * 2 aspect ratio for map drawing widget
unc0rr
parents: 4442
diff changeset
    75
    <item row="0" column="2">
63a21fac8bf7 Add QAspectRatioLayout borrowed from http://wiki.forum.nokia.com/index.php/CS001309_-_Maintaining_square_form_for_a_widget_in_Qt to maintain width == height * 2 aspect ratio for map drawing widget
unc0rr
parents: 4442
diff changeset
    76
     <widget class="DrawMapWidget" name="drawMapWidget" native="true"/>
63a21fac8bf7 Add QAspectRatioLayout borrowed from http://wiki.forum.nokia.com/index.php/CS001309_-_Maintaining_square_form_for_a_widget_in_Qt to maintain width == height * 2 aspect ratio for map drawing widget
unc0rr
parents: 4442
diff changeset
    77
    </item>
4425
2314bb0c433d Small testing app for DrawMap scene
unc0rr
parents:
diff changeset
    78
   </layout>
2314bb0c433d Small testing app for DrawMap scene
unc0rr
parents:
diff changeset
    79
  </widget>
2314bb0c433d Small testing app for DrawMap scene
unc0rr
parents:
diff changeset
    80
 </widget>
2314bb0c433d Small testing app for DrawMap scene
unc0rr
parents:
diff changeset
    81
 <layoutdefault spacing="6" margin="11"/>
4477
63a21fac8bf7 Add QAspectRatioLayout borrowed from http://wiki.forum.nokia.com/index.php/CS001309_-_Maintaining_square_form_for_a_widget_in_Qt to maintain width == height * 2 aspect ratio for map drawing widget
unc0rr
parents: 4442
diff changeset
    82
 <customwidgets>
63a21fac8bf7 Add QAspectRatioLayout borrowed from http://wiki.forum.nokia.com/index.php/CS001309_-_Maintaining_square_form_for_a_widget_in_Qt to maintain width == height * 2 aspect ratio for map drawing widget
unc0rr
parents: 4442
diff changeset
    83
  <customwidget>
63a21fac8bf7 Add QAspectRatioLayout borrowed from http://wiki.forum.nokia.com/index.php/CS001309_-_Maintaining_square_form_for_a_widget_in_Qt to maintain width == height * 2 aspect ratio for map drawing widget
unc0rr
parents: 4442
diff changeset
    84
   <class>DrawMapWidget</class>
63a21fac8bf7 Add QAspectRatioLayout borrowed from http://wiki.forum.nokia.com/index.php/CS001309_-_Maintaining_square_form_for_a_widget_in_Qt to maintain width == height * 2 aspect ratio for map drawing widget
unc0rr
parents: 4442
diff changeset
    85
   <extends>QWidget</extends>
63a21fac8bf7 Add QAspectRatioLayout borrowed from http://wiki.forum.nokia.com/index.php/CS001309_-_Maintaining_square_form_for_a_widget_in_Qt to maintain width == height * 2 aspect ratio for map drawing widget
unc0rr
parents: 4442
diff changeset
    86
   <header>drawmapwidget.h</header>
63a21fac8bf7 Add QAspectRatioLayout borrowed from http://wiki.forum.nokia.com/index.php/CS001309_-_Maintaining_square_form_for_a_widget_in_Qt to maintain width == height * 2 aspect ratio for map drawing widget
unc0rr
parents: 4442
diff changeset
    87
   <container>1</container>
63a21fac8bf7 Add QAspectRatioLayout borrowed from http://wiki.forum.nokia.com/index.php/CS001309_-_Maintaining_square_form_for_a_widget_in_Qt to maintain width == height * 2 aspect ratio for map drawing widget
unc0rr
parents: 4442
diff changeset
    88
  </customwidget>
63a21fac8bf7 Add QAspectRatioLayout borrowed from http://wiki.forum.nokia.com/index.php/CS001309_-_Maintaining_square_form_for_a_widget_in_Qt to maintain width == height * 2 aspect ratio for map drawing widget
unc0rr
parents: 4442
diff changeset
    89
 </customwidgets>
4425
2314bb0c433d Small testing app for DrawMap scene
unc0rr
parents:
diff changeset
    90
 <resources/>
2314bb0c433d Small testing app for DrawMap scene
unc0rr
parents:
diff changeset
    91
 <connections/>
2314bb0c433d Small testing app for DrawMap scene
unc0rr
parents:
diff changeset
    92
</ui>