- At the moment using e.g. the thickness dialog and change from the default "1.0" to e.g. "21.3" triggers 4 recomputes. This takes a lot of time and is unnecessary. Qt offers therefore to disable keyboardTracking (and we use it already in the TechDraw workbench). - also change the default draft angle from 1.5° to more common 10° and the step to 1° so that one can quickly get usual angles for drafts
247 lines
7.0 KiB
XML
247 lines
7.0 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0">
|
|
<class>PartDesignGui::TaskChamferParameters</class>
|
|
<widget class="QWidget" name="PartDesignGui::TaskChamferParameters">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>263</width>
|
|
<height>240</height>
|
|
</rect>
|
|
</property>
|
|
<property name="windowTitle">
|
|
<string>Form</string>
|
|
</property>
|
|
<layout class="QVBoxLayout" name="verticalLayout">
|
|
<item>
|
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
|
<item>
|
|
<widget class="QToolButton" name="buttonRefAdd">
|
|
<property name="toolTip">
|
|
<string>Click button to enter selection mode,
|
|
click again to end selection</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>Add</string>
|
|
</property>
|
|
<property name="checkable">
|
|
<bool>true</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QToolButton" name="buttonRefRemove">
|
|
<property name="toolTip">
|
|
<string>Click button to enter selection mode,
|
|
click again to end selection</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>Remove</string>
|
|
</property>
|
|
<property name="checkable">
|
|
<bool>true</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item>
|
|
<widget class="QListWidget" name="listWidgetReferences">
|
|
<property name="toolTip">
|
|
<string>- select an item to highlight it
|
|
- double-click on an item to see the chamfers</string>
|
|
</property>
|
|
<property name="selectionMode">
|
|
<enum>QAbstractItemView::ExtendedSelection</enum>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
|
<item>
|
|
<layout class="QFormLayout" name="formLayout">
|
|
<item row="1" column="0">
|
|
<widget class="QLabel" name="typeLabel">
|
|
<property name="text">
|
|
<string>Type</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="1">
|
|
<widget class="QComboBox" name="chamferType">
|
|
<item>
|
|
<property name="text">
|
|
<string>Equal distance</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>Two distances</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>Distance and angle</string>
|
|
</property>
|
|
</item>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item>
|
|
<widget class="QToolButton" name="flipDirection">
|
|
<property name="enabled">
|
|
<bool>false</bool>
|
|
</property>
|
|
<property name="toolTip">
|
|
<string>Flip direction</string>
|
|
</property>
|
|
<property name="text">
|
|
<string/>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset>
|
|
<normaloff>:/icons/PartDesign_Flip_Direction.svg</normaloff>:/icons/PartDesign_Flip_Direction.svg</iconset>
|
|
</property>
|
|
<property name="checkable">
|
|
<bool>true</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item>
|
|
<layout class="QFormLayout" name="formLayout_4">
|
|
<item row="0" column="0">
|
|
<widget class="QLabel" name="sizeLabel">
|
|
<property name="text">
|
|
<string>Size</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="1">
|
|
<widget class="Gui::QuantitySpinBox" name="chamferSize">
|
|
<property name="keyboardTracking">
|
|
<bool>false</bool>
|
|
</property>
|
|
<property name="value">
|
|
<double>1.000000000000000</double>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item>
|
|
<widget class="QStackedWidget" name="stackedWidget">
|
|
<property name="currentIndex">
|
|
<number>0</number>
|
|
</property>
|
|
<widget class="QWidget" name="page_1"/>
|
|
<widget class="QWidget" name="page_2">
|
|
<layout class="QFormLayout" name="formLayout_2">
|
|
<property name="leftMargin">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="topMargin">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="rightMargin">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="bottomMargin">
|
|
<number>0</number>
|
|
</property>
|
|
<item row="0" column="0">
|
|
<widget class="QLabel" name="size2Label">
|
|
<property name="text">
|
|
<string>Size 2</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="1">
|
|
<widget class="Gui::QuantitySpinBox" name="chamferSize2">
|
|
<property name="keyboardTracking">
|
|
<bool>false</bool>
|
|
</property>
|
|
<property name="value">
|
|
<double>1.000000000000000</double>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<widget class="QWidget" name="page_3">
|
|
<layout class="QFormLayout" name="formLayout_3">
|
|
<property name="leftMargin">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="topMargin">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="rightMargin">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="bottomMargin">
|
|
<number>0</number>
|
|
</property>
|
|
<item row="0" column="0">
|
|
<widget class="QLabel" name="angleLabel">
|
|
<property name="text">
|
|
<string>Angle</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="1">
|
|
<widget class="Gui::QuantitySpinBox" name="chamferAngle">
|
|
<property name="keyboardTracking">
|
|
<bool>false</bool>
|
|
</property>
|
|
<property name="minimum">
|
|
<double>0.000000000000000</double>
|
|
</property>
|
|
<property name="maximum">
|
|
<double>180.000000000000000</double>
|
|
</property>
|
|
<property name="singleStep">
|
|
<double>1.000000000000000</double>
|
|
</property>
|
|
<property name="value">
|
|
<double>45.000000000000000</double>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<customwidgets>
|
|
<customwidget>
|
|
<class>Gui::QuantitySpinBox</class>
|
|
<extends>QWidget</extends>
|
|
<header>Gui/QuantitySpinBox.h</header>
|
|
</customwidget>
|
|
</customwidgets>
|
|
<resources/>
|
|
<connections>
|
|
<connection>
|
|
<sender>chamferType</sender>
|
|
<signal>currentIndexChanged(int)</signal>
|
|
<receiver>stackedWidget</receiver>
|
|
<slot>setCurrentIndex(int)</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>149</x>
|
|
<y>196</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>131</x>
|
|
<y>222</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
</connections>
|
|
</ui>
|