Skip to content
Snippets Groups Projects

ENH: Added the ability of Reference Items to have Active Children

Merged Robert M. O'Bara requested to merge bob.obara/smtk:addingChildrenToReferenceItem into master

Example SBI Syntax:

        <Component Name="material" Label="material" Version="0" EnforceCategories="false" Role="-2" NumberOfRequiredValues="1">
          <CategoryInfo Inherit="true" Combination="All" />
          <Accepts>
            <Resource Name="smtk::attribute::Resource" Filter="attribute[type='Material']" />
          </Accepts>
          <Rejects />
          <ChildrenDefinitions>
            <Double Name="initialFlow" Label="initialFlow" Version="0" NumberOfRequiredValues="3">
              <CategoryInfo Inherit="true" Combination="All" />
            </Double>
            <Double Name="initialTemp" Label="initialTemp" Version="0" NumberOfRequiredValues="1">
              <CategoryInfo Inherit="true" Combination="All" />
            </Double>
          </ChildrenDefinitions>
          <ConditionalInfo>
            <Condition Resource="smtk::attribute::Resource" Component="attribute[type='SolidMaterial']">
              <Items>
                <Item>initialTemp</Item>
              </Items>
            </Condition>
            <Condition Component="attribute[type='LiquidMaterial']">
              <Items>
                <Item>initialTemp</Item>
                <Item>initialFlow</Item>
              </Items>
            </Condition>
          </ConditionalInfo>
        </Component>

qtReferenceItemComboBox has been renamed to qtReferenceItemEditor to reflect the fact that the class now supports the active children of ReferenceItems

Also fixed resizing issue with the attribute definition combobox in qtAttributeView

Closes #408 (closed)

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading