| 1 | <?xml version="1.0" encoding="UTF-8"?>
|
|---|
| 2 | <ui version="4.0">
|
|---|
| 3 | <class>Window</class>
|
|---|
| 4 | <widget class="QWidget" name="Window">
|
|---|
| 5 | <property name="geometry">
|
|---|
| 6 | <rect>
|
|---|
| 7 | <x>0</x>
|
|---|
| 8 | <y>0</y>
|
|---|
| 9 | <width>339</width>
|
|---|
| 10 | <height>353</height>
|
|---|
| 11 | </rect>
|
|---|
| 12 | </property>
|
|---|
| 13 | <property name="windowTitle">
|
|---|
| 14 | <string>SVG Generator</string>
|
|---|
| 15 | </property>
|
|---|
| 16 | <layout class="QGridLayout" name="gridLayout_2">
|
|---|
| 17 | <property name="sizeConstraint">
|
|---|
| 18 | <enum>QLayout::SetFixedSize</enum>
|
|---|
| 19 | </property>
|
|---|
| 20 | <item row="0" column="0">
|
|---|
| 21 | <spacer name="horizontalSpacer_2">
|
|---|
| 22 | <property name="orientation">
|
|---|
| 23 | <enum>Qt::Horizontal</enum>
|
|---|
| 24 | </property>
|
|---|
| 25 | <property name="sizeHint" stdset="0">
|
|---|
| 26 | <size>
|
|---|
| 27 | <width>40</width>
|
|---|
| 28 | <height>20</height>
|
|---|
| 29 | </size>
|
|---|
| 30 | </property>
|
|---|
| 31 | </spacer>
|
|---|
| 32 | </item>
|
|---|
| 33 | <item row="0" column="1">
|
|---|
| 34 | <widget class="DisplayWidget" name="displayWidget" native="true">
|
|---|
| 35 | <property name="sizePolicy">
|
|---|
| 36 | <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
|---|
| 37 | <horstretch>200</horstretch>
|
|---|
| 38 | <verstretch>200</verstretch>
|
|---|
| 39 | </sizepolicy>
|
|---|
| 40 | </property>
|
|---|
| 41 | <property name="minimumSize">
|
|---|
| 42 | <size>
|
|---|
| 43 | <width>200</width>
|
|---|
| 44 | <height>200</height>
|
|---|
| 45 | </size>
|
|---|
| 46 | </property>
|
|---|
| 47 | <property name="maximumSize">
|
|---|
| 48 | <size>
|
|---|
| 49 | <width>200</width>
|
|---|
| 50 | <height>200</height>
|
|---|
| 51 | </size>
|
|---|
| 52 | </property>
|
|---|
| 53 | </widget>
|
|---|
| 54 | </item>
|
|---|
| 55 | <item row="0" column="2">
|
|---|
| 56 | <spacer name="horizontalSpacer_3">
|
|---|
| 57 | <property name="orientation">
|
|---|
| 58 | <enum>Qt::Horizontal</enum>
|
|---|
| 59 | </property>
|
|---|
| 60 | <property name="sizeHint" stdset="0">
|
|---|
| 61 | <size>
|
|---|
| 62 | <width>40</width>
|
|---|
| 63 | <height>20</height>
|
|---|
| 64 | </size>
|
|---|
| 65 | </property>
|
|---|
| 66 | </spacer>
|
|---|
| 67 | </item>
|
|---|
| 68 | <item row="1" column="0" colspan="3">
|
|---|
| 69 | <layout class="QGridLayout" name="gridLayout">
|
|---|
| 70 | <item row="0" column="0">
|
|---|
| 71 | <widget class="QLabel" name="label">
|
|---|
| 72 | <property name="text">
|
|---|
| 73 | <string>&Shape:</string>
|
|---|
| 74 | </property>
|
|---|
| 75 | <property name="buddy">
|
|---|
| 76 | <cstring>shapeComboBox</cstring>
|
|---|
| 77 | </property>
|
|---|
| 78 | </widget>
|
|---|
| 79 | </item>
|
|---|
| 80 | <item row="0" column="1">
|
|---|
| 81 | <widget class="QComboBox" name="shapeComboBox">
|
|---|
| 82 | <item>
|
|---|
| 83 | <property name="text">
|
|---|
| 84 | <string>House</string>
|
|---|
| 85 | </property>
|
|---|
| 86 | </item>
|
|---|
| 87 | <item>
|
|---|
| 88 | <property name="text">
|
|---|
| 89 | <string>Car</string>
|
|---|
| 90 | </property>
|
|---|
| 91 | </item>
|
|---|
| 92 | </widget>
|
|---|
| 93 | </item>
|
|---|
| 94 | <item row="1" column="0">
|
|---|
| 95 | <widget class="QLabel" name="label_2">
|
|---|
| 96 | <property name="text">
|
|---|
| 97 | <string>&Color:</string>
|
|---|
| 98 | </property>
|
|---|
| 99 | <property name="buddy">
|
|---|
| 100 | <cstring>colorButton</cstring>
|
|---|
| 101 | </property>
|
|---|
| 102 | </widget>
|
|---|
| 103 | </item>
|
|---|
| 104 | <item row="1" column="1">
|
|---|
| 105 | <widget class="QToolButton" name="colorButton">
|
|---|
| 106 | <property name="text">
|
|---|
| 107 | <string>Choose Color...</string>
|
|---|
| 108 | </property>
|
|---|
| 109 | </widget>
|
|---|
| 110 | </item>
|
|---|
| 111 | <item row="2" column="0">
|
|---|
| 112 | <widget class="QLabel" name="label_3">
|
|---|
| 113 | <property name="text">
|
|---|
| 114 | <string>&Background:</string>
|
|---|
| 115 | </property>
|
|---|
| 116 | <property name="buddy">
|
|---|
| 117 | <cstring>shapeComboBox_2</cstring>
|
|---|
| 118 | </property>
|
|---|
| 119 | </widget>
|
|---|
| 120 | </item>
|
|---|
| 121 | <item row="2" column="1">
|
|---|
| 122 | <widget class="QComboBox" name="shapeComboBox_2">
|
|---|
| 123 | <item>
|
|---|
| 124 | <property name="text">
|
|---|
| 125 | <string>Sky</string>
|
|---|
| 126 | </property>
|
|---|
| 127 | </item>
|
|---|
| 128 | <item>
|
|---|
| 129 | <property name="text">
|
|---|
| 130 | <string>Trees</string>
|
|---|
| 131 | </property>
|
|---|
| 132 | </item>
|
|---|
| 133 | <item>
|
|---|
| 134 | <property name="text">
|
|---|
| 135 | <string>Road</string>
|
|---|
| 136 | </property>
|
|---|
| 137 | </item>
|
|---|
| 138 | </widget>
|
|---|
| 139 | </item>
|
|---|
| 140 | </layout>
|
|---|
| 141 | </item>
|
|---|
| 142 | <item row="2" column="0" colspan="3">
|
|---|
| 143 | <layout class="QHBoxLayout" name="horizontalLayout">
|
|---|
| 144 | <item>
|
|---|
| 145 | <spacer name="horizontalSpacer">
|
|---|
| 146 | <property name="orientation">
|
|---|
| 147 | <enum>Qt::Horizontal</enum>
|
|---|
| 148 | </property>
|
|---|
| 149 | <property name="sizeHint" stdset="0">
|
|---|
| 150 | <size>
|
|---|
| 151 | <width>40</width>
|
|---|
| 152 | <height>20</height>
|
|---|
| 153 | </size>
|
|---|
| 154 | </property>
|
|---|
| 155 | </spacer>
|
|---|
| 156 | </item>
|
|---|
| 157 | <item>
|
|---|
| 158 | <widget class="QToolButton" name="toolButton_2">
|
|---|
| 159 | <property name="text">
|
|---|
| 160 | <string>Save &As...</string>
|
|---|
| 161 | </property>
|
|---|
| 162 | </widget>
|
|---|
| 163 | </item>
|
|---|
| 164 | </layout>
|
|---|
| 165 | </item>
|
|---|
| 166 | </layout>
|
|---|
| 167 | </widget>
|
|---|
| 168 | <customwidgets>
|
|---|
| 169 | <customwidget>
|
|---|
| 170 | <class>DisplayWidget</class>
|
|---|
| 171 | <extends>QWidget</extends>
|
|---|
| 172 | <header>displaywidget.h</header>
|
|---|
| 173 | <container>1</container>
|
|---|
| 174 | </customwidget>
|
|---|
| 175 | </customwidgets>
|
|---|
| 176 | <resources/>
|
|---|
| 177 | <connections>
|
|---|
| 178 | <connection>
|
|---|
| 179 | <sender>shapeComboBox</sender>
|
|---|
| 180 | <signal>currentIndexChanged(int)</signal>
|
|---|
| 181 | <receiver>Window</receiver>
|
|---|
| 182 | <slot>updateShape(int)</slot>
|
|---|
| 183 | <hints>
|
|---|
| 184 | <hint type="sourcelabel">
|
|---|
| 185 | <x>288</x>
|
|---|
| 186 | <y>232</y>
|
|---|
| 187 | </hint>
|
|---|
| 188 | <hint type="destinationlabel">
|
|---|
| 189 | <x>336</x>
|
|---|
| 190 | <y>234</y>
|
|---|
| 191 | </hint>
|
|---|
| 192 | </hints>
|
|---|
| 193 | </connection>
|
|---|
| 194 | <connection>
|
|---|
| 195 | <sender>colorButton</sender>
|
|---|
| 196 | <signal>clicked()</signal>
|
|---|
| 197 | <receiver>Window</receiver>
|
|---|
| 198 | <slot>updateColor()</slot>
|
|---|
| 199 | <hints>
|
|---|
| 200 | <hint type="sourcelabel">
|
|---|
| 201 | <x>301</x>
|
|---|
| 202 | <y>262</y>
|
|---|
| 203 | </hint>
|
|---|
| 204 | <hint type="destinationlabel">
|
|---|
| 205 | <x>337</x>
|
|---|
| 206 | <y>267</y>
|
|---|
| 207 | </hint>
|
|---|
| 208 | </hints>
|
|---|
| 209 | </connection>
|
|---|
| 210 | <connection>
|
|---|
| 211 | <sender>shapeComboBox_2</sender>
|
|---|
| 212 | <signal>currentIndexChanged(int)</signal>
|
|---|
| 213 | <receiver>Window</receiver>
|
|---|
| 214 | <slot>updateBackground(int)</slot>
|
|---|
| 215 | <hints>
|
|---|
| 216 | <hint type="sourcelabel">
|
|---|
| 217 | <x>306</x>
|
|---|
| 218 | <y>299</y>
|
|---|
| 219 | </hint>
|
|---|
| 220 | <hint type="destinationlabel">
|
|---|
| 221 | <x>337</x>
|
|---|
| 222 | <y>311</y>
|
|---|
| 223 | </hint>
|
|---|
| 224 | </hints>
|
|---|
| 225 | </connection>
|
|---|
| 226 | <connection>
|
|---|
| 227 | <sender>toolButton_2</sender>
|
|---|
| 228 | <signal>clicked()</signal>
|
|---|
| 229 | <receiver>Window</receiver>
|
|---|
| 230 | <slot>saveSvg()</slot>
|
|---|
| 231 | <hints>
|
|---|
| 232 | <hint type="sourcelabel">
|
|---|
| 233 | <x>298</x>
|
|---|
| 234 | <y>336</y>
|
|---|
| 235 | </hint>
|
|---|
| 236 | <hint type="destinationlabel">
|
|---|
| 237 | <x>307</x>
|
|---|
| 238 | <y>348</y>
|
|---|
| 239 | </hint>
|
|---|
| 240 | </hints>
|
|---|
| 241 | </connection>
|
|---|
| 242 | </connections>
|
|---|
| 243 | <slots>
|
|---|
| 244 | <slot>updateBackground(int)</slot>
|
|---|
| 245 | <slot>updateColor()</slot>
|
|---|
| 246 | <slot>updateShape(int)</slot>
|
|---|
| 247 | <slot>saveSvg()</slot>
|
|---|
| 248 | </slots>
|
|---|
| 249 | </ui>
|
|---|