Wed, 08 Jan 2014 13:57:10 +0200
- if loading another file to replace an explicitly loaded file, this file won't get closed automatically and thus needs to be manually closed. We also need to check that it's safe to close before doing this. Also fixed a rather argh problem with ::save not using the proper path...
<?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>Edger2Dialog</class> <widget class="QDialog" name="Edger2Dialog"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>357</width> <height>257</height> </rect> </property> <property name="windowTitle"> <string>Edger 2</string> </property> <property name="windowOpacity"> <double>1.000000000000000</double> </property> <layout class="QVBoxLayout" name="verticalLayout_3"> <item> <layout class="QVBoxLayout" name="verticalLayout_4"> <item> <layout class="QFormLayout" name="formLayout"> <item row="0" column="0"> <widget class="QLabel" name="label"> <property name="text"> <string>Precision</string> </property> </widget> </item> <item row="0" column="1"> <widget class="QDoubleSpinBox" name="precision"> <property name="suffix"> <string/> </property> <property name="decimals"> <number>4</number> </property> <property name="value"> <double>0.001000000000000</double> </property> </widget> </item> <item row="1" column="1"> <widget class="QDoubleSpinBox" name="flatAngle"> <property name="suffix"> <string>°</string> </property> <property name="decimals"> <number>4</number> </property> <property name="minimum"> <double>0.000000000000000</double> </property> <property name="maximum"> <double>360.000000000000000</double> </property> <property name="singleStep"> <double>0.100000000000000</double> </property> <property name="value"> <double>0.100000000000000</double> </property> </widget> </item> <item row="1" column="0"> <widget class="QLabel" name="label_3"> <property name="text"> <string>Flat angle</string> </property> </widget> </item> <item row="2" column="0"> <widget class="QLabel" name="label_2"> <property name="text"> <string>Conditional line angle</string> </property> </widget> </item> <item row="2" column="1"> <widget class="QDoubleSpinBox" name="condAngle"> <property name="suffix"> <string>°</string> </property> <property name="decimals"> <number>4</number> </property> <property name="maximum"> <double>360.000000000000000</double> </property> <property name="singleStep"> <double>0.100000000000000</double> </property> <property name="value"> <double>60.000000000000000</double> </property> </widget> </item> <item row="3" column="1"> <widget class="QDoubleSpinBox" name="edgeAngle"> <property name="suffix"> <string>°</string> </property> <property name="decimals"> <number>4</number> </property> <property name="maximum"> <double>360.000000000000000</double> </property> <property name="singleStep"> <double>0.100000000000000</double> </property> <property name="value"> <double>60.000000000000000</double> </property> </widget> </item> <item row="3" column="0"> <widget class="QLabel" name="label_4"> <property name="text"> <string>Edge line angle</string> </property> </widget> </item> <item row="4" column="1"> <widget class="QComboBox" name="unmatched"> <property name="currentIndex"> <number>1</number> </property> <item> <property name="text"> <string>Only</string> </property> </item> <item> <property name="text"> <string>Normally</string> </property> </item> <item> <property name="text"> <string>Never</string> </property> </item> </widget> </item> <item row="4" column="0"> <widget class="QLabel" name="label_5"> <property name="text"> <string>Create unmatched edges</string> </property> </widget> </item> </layout> </item> <item> <layout class="QHBoxLayout" name="horizontalLayout"> <item> <layout class="QVBoxLayout" name="verticalLayout_5"> <item> <widget class="QCheckBox" name="colored"> <property name="text"> <string>Color-coded result</string> </property> </widget> </item> <item> <widget class="QCheckBox" name="delLines"> <property name="text"> <string>Delete existing lines</string> </property> </widget> </item> <item> <widget class="QCheckBox" name="delCondLines"> <property name="text"> <string>Delete existing cond. lines</string> </property> </widget> </item> </layout> </item> <item> <layout class="QVBoxLayout" name="verticalLayout_6"> <item> <widget class="QCheckBox" name="bfc"> <property name="text"> <string>File is BFCd</string> </property> </widget> </item> <item> <widget class="QCheckBox" name="convex"> <property name="enabled"> <bool>false</bool> </property> <property name="text"> <string>Convex cond. lines only</string> </property> </widget> </item> <item> <widget class="QCheckBox" name="concave"> <property name="enabled"> <bool>false</bool> </property> <property name="text"> <string>Concave cond. lines only</string> </property> </widget> </item> </layout> </item> </layout> </item> </layout> </item> <item> <widget class="QDialogButtonBox" name="buttonBox"> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> <property name="standardButtons"> <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set> </property> </widget> </item> </layout> </widget> <resources/> <connections> <connection> <sender>buttonBox</sender> <signal>accepted()</signal> <receiver>Edger2Dialog</receiver> <slot>accept()</slot> <hints> <hint type="sourcelabel"> <x>254</x> <y>250</y> </hint> <hint type="destinationlabel"> <x>157</x> <y>256</y> </hint> </hints> </connection> <connection> <sender>buttonBox</sender> <signal>rejected()</signal> <receiver>Edger2Dialog</receiver> <slot>reject()</slot> <hints> <hint type="sourcelabel"> <x>322</x> <y>250</y> </hint> <hint type="destinationlabel"> <x>286</x> <y>256</y> </hint> </hints> </connection> <connection> <sender>bfc</sender> <signal>clicked(bool)</signal> <receiver>convex</receiver> <slot>setEnabled(bool)</slot> <hints> <hint type="sourcelabel"> <x>249</x> <y>157</y> </hint> <hint type="destinationlabel"> <x>248</x> <y>185</y> </hint> </hints> </connection> <connection> <sender>bfc</sender> <signal>clicked(bool)</signal> <receiver>concave</receiver> <slot>setEnabled(bool)</slot> <hints> <hint type="sourcelabel"> <x>283</x> <y>154</y> </hint> <hint type="destinationlabel"> <x>283</x> <y>205</y> </hint> </hints> </connection> </connections> </ui>