mirror of
https://github.com/leozide/leocad.git
synced 2026-10-26 22:10:32 +00:00
Provide contextual Help/F1 descriptions and label buddies in Model Properties, Category, Edge Colors, About, and Check for Updates. Explain category expression operators, prefixes, and grouping with examples available from both Help and the Keywords field. Retain Help when update results rebuild the dialog buttons. Document both edge-color modes and the parent Preferences workflow, and make About system information keyboard-selectable. Refresh catalogs without changing existing translations or reviewing new strings. Validation: debug build; five-dialog Help/F1, Escape, layouts and buddy checks; both edge-color modes; update response states; category syntax examples; and translation preservation checks passed.
118 lines
7.3 KiB
XML
118 lines
7.3 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0">
|
|
<class>lcCategoryDialog</class>
|
|
<widget class="QDialog" name="lcCategoryDialog">
|
|
<property name="whatsThis">
|
|
<string><p><b>Piece Category</b></p><p>Name a category and enter the expression used to find its pieces in the library. Both fields are required. Choose OK to return the category changes to Preferences, then choose OK in Preferences to keep them. Cancel discards edits in this dialog.</p><p><b>Keyword Syntax</b></p><p>Expressions match text in library piece descriptions, ignoring case.</p><ul><li><tt>Brick</tt>: match this text anywhere in the description.</li><li><tt>^Brick</tt>: match Brick as a whole word.</li><li><tt>%Brick</tt>: match Brick at the beginning of the description.</li><li><tt>^%Brick</tt>: require both a whole word and the beginning of the description.</li><li><tt>A | B</tt>: match either expression.</li><li><tt>A &amp; B</tt>: match both expressions.</li><li><tt>!A</tt>: exclude descriptions matching A.</li><li><tt>(A | B)</tt>: group expressions.</li></ul><p>Put spaces around <tt>|</tt> and <tt>&amp;</tt>. Use parentheses when combining operators.</p><p><b>Examples</b></p><p><tt>^%Brick | ^%Plate</tt> matches descriptions beginning with the word Brick or Plate.<br><tt>(^%Brick | ^%Plate) &amp; !Pattern</tt> also excludes descriptions containing Pattern.</p><p>Use the language of the library descriptions for search terms; do not translate the syntax symbols.</p></string>
|
|
</property>
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>400</width>
|
|
<height>95</height>
|
|
</rect>
|
|
</property>
|
|
<property name="windowTitle">
|
|
<string>Category</string>
|
|
</property>
|
|
<layout class="QVBoxLayout" name="verticalLayout">
|
|
<item>
|
|
<layout class="QFormLayout" name="formLayout">
|
|
<item row="0" column="0">
|
|
<widget class="QLabel" name="label">
|
|
<property name="toolTip">
|
|
<string>Enter the category name shown in the piece browser.</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>Name:</string>
|
|
</property>
|
|
<property name="buddy">
|
|
<cstring>name</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="1">
|
|
<widget class="QLineEdit" name="name">
|
|
<property name="toolTip">
|
|
<string>Enter the category name shown in the piece browser.</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="0">
|
|
<widget class="QLabel" name="label_2">
|
|
<property name="toolTip">
|
|
<string>Enter an expression that matches piece descriptions.</string>
|
|
</property>
|
|
<property name="whatsThis">
|
|
<string><p><b>Keyword Syntax</b></p><p>Expressions match text in library piece descriptions, ignoring case.</p><ul><li><tt>Brick</tt>: match this text anywhere in the description.</li><li><tt>^Brick</tt>: match Brick as a whole word.</li><li><tt>%Brick</tt>: match Brick at the beginning of the description.</li><li><tt>^%Brick</tt>: require both a whole word and the beginning of the description.</li><li><tt>A | B</tt>: match either expression.</li><li><tt>A &amp; B</tt>: match both expressions.</li><li><tt>!A</tt>: exclude descriptions matching A.</li><li><tt>(A | B)</tt>: group expressions.</li></ul><p>Put spaces around <tt>|</tt> and <tt>&amp;</tt>. Use parentheses when combining operators.</p><p><b>Examples</b></p><p><tt>^%Brick | ^%Plate</tt> matches descriptions beginning with the word Brick or Plate.<br><tt>(^%Brick | ^%Plate) &amp; !Pattern</tt> also excludes descriptions containing Pattern.</p><p>Use the language of the library descriptions for search terms; do not translate the syntax symbols.</p></string>
|
|
</property>
|
|
<property name="text">
|
|
<string>Keywords:</string>
|
|
</property>
|
|
<property name="buddy">
|
|
<cstring>keywords</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="1">
|
|
<widget class="QLineEdit" name="keywords">
|
|
<property name="toolTip">
|
|
<string>Enter an expression that matches piece descriptions.</string>
|
|
</property>
|
|
<property name="whatsThis">
|
|
<string><p><b>Keyword Syntax</b></p><p>Expressions match text in library piece descriptions, ignoring case.</p><ul><li><tt>Brick</tt>: match this text anywhere in the description.</li><li><tt>^Brick</tt>: match Brick as a whole word.</li><li><tt>%Brick</tt>: match Brick at the beginning of the description.</li><li><tt>^%Brick</tt>: require both a whole word and the beginning of the description.</li><li><tt>A | B</tt>: match either expression.</li><li><tt>A &amp; B</tt>: match both expressions.</li><li><tt>!A</tt>: exclude descriptions matching A.</li><li><tt>(A | B)</tt>: group expressions.</li></ul><p>Put spaces around <tt>|</tt> and <tt>&amp;</tt>. Use parentheses when combining operators.</p><p><b>Examples</b></p><p><tt>^%Brick | ^%Plate</tt> matches descriptions beginning with the word Brick or Plate.<br><tt>(^%Brick | ^%Plate) &amp; !Pattern</tt> also excludes descriptions containing Pattern.</p><p>Use the language of the library descriptions for search terms; do not translate the syntax symbols.</p></string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</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>
|
|
<resources/>
|
|
<connections>
|
|
<connection>
|
|
<sender>buttonBox</sender>
|
|
<signal>accepted()</signal>
|
|
<receiver>lcCategoryDialog</receiver>
|
|
<slot>accept()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>222</x>
|
|
<y>88</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>157</x>
|
|
<y>102</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>buttonBox</sender>
|
|
<signal>rejected()</signal>
|
|
<receiver>lcCategoryDialog</receiver>
|
|
<slot>reject()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>290</x>
|
|
<y>94</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>286</x>
|
|
<y>102</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
</connections>
|
|
</ui>
|