mirror of
https://github.com/leozide/leocad.git
synced 2026-10-26 22:10:32 +00:00
Explain piece selection, template persistence, palette management, and online inventory imports with tooltips and contextual Help/F1 support. Link minifigure labels to their selectors and give unlabeled controls accessible names. Rename the inventory dialog to Import Set Inventory to describe its action. Show None for initially omitted minifigure pieces so selectors agree with the preview. Refresh catalogs while preserving existing translations and leaving new help untranslated. Validation: debug build, all 17 initial minifigure selections, 47 generated controls, 17 label buddies, eight F1 routes, Help/Escape behavior, and catalog preservation checks passed.
167 lines
6.4 KiB
XML
167 lines
6.4 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0">
|
|
<class>lcMinifigDialog</class>
|
|
<widget class="QDialog" name="lcMinifigDialog">
|
|
<property name="whatsThis">
|
|
<string><p><b>Minifig Wizard</b></p><p>Build a minifigure by choosing its pieces, colors, and pose. The preview updates as you make changes. Choose OK to insert the minifigure into the current model, or Cancel to close without inserting it.</p><p>Templates let you reuse a configuration. Saved, deleted, and imported templates are retained even if you cancel the wizard.</p></string>
|
|
</property>
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>979</width>
|
|
<height>416</height>
|
|
</rect>
|
|
</property>
|
|
<property name="windowTitle">
|
|
<string>Minifig Wizard</string>
|
|
</property>
|
|
<layout class="QVBoxLayout" name="verticalLayout">
|
|
<item>
|
|
<widget class="QWidget" name="widget" native="true">
|
|
<property name="whatsThis">
|
|
<string><p><b>Minifigure Pieces</b></p><p>Each section has a piece selector and a color button. Some sections also have a rotation control in degrees. Choose None in a piece selector to omit that piece.</p></string>
|
|
</property>
|
|
<layout class="QGridLayout" name="MinifigLayout"/>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QGroupBox" name="TemplateGroup">
|
|
<property name="whatsThis">
|
|
<string><p><b>Templates</b></p><p>Load a saved configuration of pieces, colors, and angles, or save the current configuration under a name. Choosing another template replaces the current preview configuration.</p><p>Changes to the preview are not saved as a template until you use Save. Template operations are retained when the wizard closes, including after Cancel.</p></string>
|
|
</property>
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="title">
|
|
<string>Templates</string>
|
|
</property>
|
|
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
|
<item>
|
|
<widget class="QComboBox" name="TemplateComboBox">
|
|
<property name="toolTip">
|
|
<string>Load a saved configuration of pieces, colors, and angles.</string>
|
|
</property>
|
|
<property name="accessibleName">
|
|
<string>Minifigure Template</string>
|
|
</property>
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QPushButton" name="TemplateSaveButton">
|
|
<property name="toolTip">
|
|
<string>Save the current minifigure configuration as a named template.</string>
|
|
</property>
|
|
<property name="whatsThis">
|
|
<string><p><b>Save Template</b></p><p>Enter a name for the current pieces, colors, and pose. Reusing an existing name asks before replacing that template. The Default template cannot be overwritten.</p></string>
|
|
</property>
|
|
<property name="text">
|
|
<string>Save...</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QPushButton" name="TemplateDeleteButton">
|
|
<property name="toolTip">
|
|
<string>Delete the selected saved template.</string>
|
|
</property>
|
|
<property name="whatsThis">
|
|
<string><p><b>Delete Template</b></p><p>Remove the selected named template after confirmation. This does not remove pieces from the preview or an existing model. The Default template cannot be deleted.</p></string>
|
|
</property>
|
|
<property name="text">
|
|
<string>Delete...</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QPushButton" name="TemplateImportButton">
|
|
<property name="toolTip">
|
|
<string>Add templates from a .minifig file.</string>
|
|
</property>
|
|
<property name="whatsThis">
|
|
<string><p><b>Import Templates</b></p><p>Add saved configurations from a .minifig file to the template collection. Existing template names are kept when the imported file contains the same names.</p></string>
|
|
</property>
|
|
<property name="text">
|
|
<string>Import...</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QPushButton" name="TemplateExportButton">
|
|
<property name="toolTip">
|
|
<string>Save the entire template collection to a .minifig file.</string>
|
|
</property>
|
|
<property name="whatsThis">
|
|
<string><p><b>Export Templates</b></p><p>Write all templates to a .minifig file for backup or sharing. Export includes the entire collection, not just the selected template.</p></string>
|
|
</property>
|
|
<property name="text">
|
|
<string>Export...</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QDialogButtonBox" name="buttonBox">
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
<property name="standardButtons">
|
|
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Help|QDialogButtonBox::Ok</set>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<tabstops>
|
|
<tabstop>TemplateComboBox</tabstop>
|
|
<tabstop>TemplateSaveButton</tabstop>
|
|
<tabstop>TemplateDeleteButton</tabstop>
|
|
</tabstops>
|
|
<resources/>
|
|
<connections>
|
|
<connection>
|
|
<sender>buttonBox</sender>
|
|
<signal>accepted()</signal>
|
|
<receiver>lcMinifigDialog</receiver>
|
|
<slot>accept()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>248</x>
|
|
<y>254</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>157</x>
|
|
<y>274</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>buttonBox</sender>
|
|
<signal>rejected()</signal>
|
|
<receiver>lcMinifigDialog</receiver>
|
|
<slot>reject()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>316</x>
|
|
<y>260</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>286</x>
|
|
<y>274</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
</connections>
|
|
</ui>
|