Added object, viewprovider, icon; gui command definition, task panel, add command to InitGui; add callbacks, and delay system.
293 lines
9.7 KiB
XML
293 lines
9.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0">
|
|
<class>DraftCircularArrayTaskPanel</class>
|
|
<widget class="QWidget" name="DraftCircularArrayTaskPanel">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>445</width>
|
|
<height>488</height>
|
|
</rect>
|
|
</property>
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>250</width>
|
|
<height>0</height>
|
|
</size>
|
|
</property>
|
|
<property name="windowTitle">
|
|
<string>Circular array</string>
|
|
</property>
|
|
<layout class="QGridLayout" name="gridLayout_3">
|
|
<item row="1" column="0">
|
|
<widget class="QGroupBox" name="main_group">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Preferred" vsizetype="Minimum">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="title">
|
|
<string/>
|
|
</property>
|
|
<layout class="QGridLayout" name="gridLayout_4">
|
|
<item row="9" column="0">
|
|
<spacer name="verticalSpacer">
|
|
<property name="orientation">
|
|
<enum>Qt::Vertical</enum>
|
|
</property>
|
|
<property name="sizeHint" stdset="0">
|
|
<size>
|
|
<width>20</width>
|
|
<height>40</height>
|
|
</size>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
<item row="5" column="0">
|
|
<widget class="QGroupBox" name="group_center">
|
|
<property name="toolTip">
|
|
<string>The coordinates of the point through which the axis of rotation passes.</string>
|
|
</property>
|
|
<property name="title">
|
|
<string>Center of rotation</string>
|
|
</property>
|
|
<layout class="QGridLayout" name="gridLayout_2">
|
|
<item row="0" column="0">
|
|
<layout class="QGridLayout" name="gridLayout">
|
|
<item row="2" column="0">
|
|
<widget class="QLabel" name="label_c_z">
|
|
<property name="text">
|
|
<string>Z</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="0">
|
|
<widget class="QLabel" name="label_c_x">
|
|
<property name="text">
|
|
<string>X</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="0">
|
|
<widget class="QLabel" name="label_c_y">
|
|
<property name="text">
|
|
<string>Y</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="1">
|
|
<widget class="Gui::InputField" name="input_c_z">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="unit" stdset="0">
|
|
<string notr="true"/>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="1">
|
|
<widget class="Gui::InputField" name="input_c_y">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="unit" stdset="0">
|
|
<string notr="true"/>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="1">
|
|
<widget class="Gui::InputField" name="input_c_x">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="unit" stdset="0">
|
|
<string notr="true"/>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item row="1" column="0">
|
|
<widget class="QPushButton" name="button_reset">
|
|
<property name="toolTip">
|
|
<string>Reset the coordinates of the center of rotation</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>Reset point</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
<item row="6" column="0">
|
|
<layout class="QVBoxLayout" name="vertical_layout">
|
|
<item>
|
|
<widget class="QCheckBox" name="checkbox_fuse">
|
|
<property name="toolTip">
|
|
<string>If checked, the resulting objects in the array will be fused if they touch each other</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>Fuse</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QCheckBox" name="checkbox_link">
|
|
<property name="toolTip">
|
|
<string>If checked, the resulting objects in the array will be Links instead of simple copies</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>Use Links</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item row="1" column="0">
|
|
<layout class="QGridLayout" name="grid_values">
|
|
<item row="1" column="0">
|
|
<widget class="QLabel" name="label_tan_distance">
|
|
<property name="toolTip">
|
|
<string>Distance from one element in the array to the next element in the same layer. It cannot be zero.</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>Tangential distance</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="1">
|
|
<widget class="Gui::QuantitySpinBox" name="spinbox_tan_distance">
|
|
<property name="toolTip">
|
|
<string>Distance from one element in the array to the next element in the same layer. It cannot be zero.</string>
|
|
</property>
|
|
<property name="unit" stdset="0">
|
|
<string notr="true"/>
|
|
</property>
|
|
<property name="value">
|
|
<double>100.000000000000000</double>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="0">
|
|
<widget class="QLabel" name="label_r_distance">
|
|
<property name="toolTip">
|
|
<string>Distance from the center of the array to the outer layers</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>Radial distance</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="1">
|
|
<widget class="Gui::QuantitySpinBox" name="spinbox_r_distance">
|
|
<property name="toolTip">
|
|
<string>Distance from the center of the array to the outer layers</string>
|
|
</property>
|
|
<property name="unit" stdset="0">
|
|
<string notr="true"/>
|
|
</property>
|
|
<property name="value">
|
|
<double>200.000000000000000</double>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="3" column="1">
|
|
<widget class="QSpinBox" name="spinbox_symmetry">
|
|
<property name="toolTip">
|
|
<string>Number that controls how the objects will be distributed</string>
|
|
</property>
|
|
<property name="value">
|
|
<number>1</number>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="1">
|
|
<widget class="QSpinBox" name="spinbox_number">
|
|
<property name="toolTip">
|
|
<string>Number of circular arrays to create, including a copy of the original object. It must be at least 2.</string>
|
|
</property>
|
|
<property name="value">
|
|
<number>3</number>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="0">
|
|
<widget class="QLabel" name="label_number">
|
|
<property name="toolTip">
|
|
<string>Number of circular arrays to create, including a copy of the original object. It must be at least 2.</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>Number of circular layers</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="3" column="0">
|
|
<widget class="QLabel" name="label_symmetry">
|
|
<property name="toolTip">
|
|
<string>Number that controls how the objects will be distributed</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>Symmetry</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item row="0" column="0">
|
|
<widget class="QLabel" name="label_icon">
|
|
<property name="text">
|
|
<string>(Placeholder for the icon)</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<customwidgets>
|
|
<customwidget>
|
|
<class>Gui::InputField</class>
|
|
<extends>QLineEdit</extends>
|
|
<header>Gui/InputField.h</header>
|
|
</customwidget>
|
|
<customwidget>
|
|
<class>Gui::QuantitySpinBox</class>
|
|
<extends>QWidget</extends>
|
|
<header>Gui/QuantitySpinBox.h</header>
|
|
</customwidget>
|
|
</customwidgets>
|
|
<tabstops>
|
|
<tabstop>spinbox_r_distance</tabstop>
|
|
<tabstop>spinbox_tan_distance</tabstop>
|
|
<tabstop>spinbox_number</tabstop>
|
|
<tabstop>spinbox_symmetry</tabstop>
|
|
<tabstop>input_c_x</tabstop>
|
|
<tabstop>input_c_y</tabstop>
|
|
<tabstop>input_c_z</tabstop>
|
|
<tabstop>button_reset</tabstop>
|
|
<tabstop>checkbox_fuse</tabstop>
|
|
<tabstop>checkbox_link</tabstop>
|
|
</tabstops>
|
|
<resources/>
|
|
<connections/>
|
|
</ui>
|