The add property dialog (introduced by the LinkMerge) previously showed "Document" which is confusing. The edit box is there to provide an explanation on the new property, that is, "Documentation". Also improve the tooltips. Also change "Append" to "Prefix" in the checkbox as it's more clear that the `Group` is added at the beginning to form the full name of the property.
131 lines
3.5 KiB
XML
131 lines
3.5 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0">
|
|
<class>Gui::Dialog::DlgAddProperty</class>
|
|
<widget class="QDialog" name="Gui::Dialog::DlgAddProperty">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>418</width>
|
|
<height>258</height>
|
|
</rect>
|
|
</property>
|
|
<property name="windowTitle">
|
|
<string>Add property</string>
|
|
</property>
|
|
<layout class="QFormLayout" name="formLayout">
|
|
<item row="0" column="0">
|
|
<widget class="QLabel" name="label_type">
|
|
<property name="text">
|
|
<string>Type</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="1">
|
|
<widget class="QComboBox" name="comboType"/>
|
|
</item>
|
|
<item row="1" column="0">
|
|
<widget class="QLabel" name="label_group">
|
|
<property name="text">
|
|
<string>Group</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="1">
|
|
<widget class="QLineEdit" name="edtGroup"/>
|
|
</item>
|
|
<item row="2" column="0">
|
|
<widget class="QLabel" name="label_name">
|
|
<property name="text">
|
|
<string>Name</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="1">
|
|
<widget class="QLineEdit" name="edtName"/>
|
|
</item>
|
|
<item row="3" column="0">
|
|
<widget class="QLabel" name="label_doc">
|
|
<property name="toolTip">
|
|
<string>Verbose description of the new property.</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>Documentation</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="3" column="1">
|
|
<widget class="QPlainTextEdit" name="edtDoc">
|
|
<property name="toolTip">
|
|
<string>Verbose description of the new property.</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="4" column="1">
|
|
<widget class="QCheckBox" name="chkAppend">
|
|
<property name="toolTip">
|
|
<string>Prefix the property name with the group name in the form 'Group_Name' to avoid conflicts with an existing property.
|
|
In this case the prefix will be automatically trimmed when shown in the property editor.
|
|
However, the property is still used in a script with the full name, like 'obj.Group_Name'.
|
|
|
|
If this is not ticked, then the property must be uniquely named, and it is accessed like 'obj.Name'.</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>Prefix group name</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="5" column="0" colspan="2">
|
|
<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>
|
|
<tabstops>
|
|
<tabstop>comboType</tabstop>
|
|
<tabstop>edtGroup</tabstop>
|
|
<tabstop>edtName</tabstop>
|
|
</tabstops>
|
|
<resources/>
|
|
<connections>
|
|
<connection>
|
|
<sender>buttonBox</sender>
|
|
<signal>accepted()</signal>
|
|
<receiver>Gui::Dialog::DlgAddProperty</receiver>
|
|
<slot>accept()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>199</x>
|
|
<y>99</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>199</x>
|
|
<y>58</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>buttonBox</sender>
|
|
<signal>rejected()</signal>
|
|
<receiver>Gui::Dialog::DlgAddProperty</receiver>
|
|
<slot>reject()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>199</x>
|
|
<y>99</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>199</x>
|
|
<y>58</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
</connections>
|
|
</ui>
|