Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix/windows fix configurators #11

Open
wants to merge 83 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
8136ca7
ENH: Added the ability to override context menus for qtTaskNodes
BobObara Mar 12, 2024
6bc70a1
Merge topic 'expandingTaskNodeWidgetContextMenu'
BobObara Mar 25, 2024
767b5a9
BUG: Fixing Iterator API for ValueItems
BobObara Mar 25, 2024
f675953
Merge topic 'fixingIteratorTypeDefs'
BobObara Mar 26, 2024
837e48a
ENH: Added Template Support When Defining Analyses
BobObara Apr 9, 2024
014d8f4
ENH: Replaced GridLayout in qtDiagram
BobObara Apr 17, 2024
fe03bef
Fix a connect mode crash; allow modes to observe operations.
vibraphone Apr 20, 2024
6501704
Fix a reference-to-temporary issue.
vibraphone Apr 20, 2024
5bbb9dc
Merge topic 'removingGridLayoutFromDiagram'
BobObara Apr 20, 2024
6ebd1c6
Merge topic 'fix-connect-crash'
vibraphone Apr 21, 2024
e92813e
Merge topic 'addingTemplateSupportForAnalyses'
BobObara Apr 23, 2024
71d276f
ENH: Supporting Category Expressions
BobObara Apr 19, 2024
1f1436a
Merge topic 'supportingCategoryExpressions'
BobObara Apr 26, 2024
937102f
smtk/attribute: install the `categories/Grammar.h` header
mathstuf Apr 27, 2024
93dc28d
Merge topic 'categories-header-typo'
mathstuf Apr 27, 2024
ff1731a
smtk/io: fix `XmlV8StringWriter.h` filename typo
mathstuf Apr 28, 2024
fcfd3bd
Merge topic 'io-header-typo'
mathstuf Apr 28, 2024
d1a4899
ci: update superbuild bundle for Xcode update
mathstuf May 4, 2024
e8a4341
Merge topic 'ci-superbuild-bump' into release-24.01
mathstuf May 4, 2024
630da3f
Merge topic 'ci-superbuild-bump'
mathstuf May 4, 2024
e9dd6c1
Merge branch 'release-24.01'
mathstuf May 4, 2024
66596af
ENH: Adding Splitter to Diagram UI
BobObara May 15, 2024
a09e8d4
ENH: Expanding the symbols that can be used in Category Expressions
BobObara May 15, 2024
2670530
Merge topic 'categoryExpressionChanges'
BobObara May 16, 2024
846e675
Merge topic 'addingSplitterToDiagram'
BobObara May 16, 2024
4ba3180
ENH: Supporting Vector Properties in XML Attribute Templates
BobObara May 29, 2024
fc59324
Merge topic 'addingVectorPropertiesToXML'
BobObara Jun 4, 2024
631e337
ENH: Supporting Explicit Units for DoubleItems
BobObara Jun 5, 2024
acd47e6
Merge topic 'addingExplicitUnitsToDoubleItem'
BobObara Jun 6, 2024
e8904d5
ENH: Added ability to assign custom relevancy functions to Items
BobObara May 30, 2024
33507e1
Merge topic 'addingCustomIsRelevantSupport'
BobObara Jun 7, 2024
6366746
BUG: Fix qtReferenceItem::updateItem
BobObara Jun 18, 2024
68b56cb
Merge topic 'fixQtReferenceItemUpdateItem'
BobObara Jun 26, 2024
0eea374
ENH: Add Custom isEnumRelevant Functionality
BobObara Jun 17, 2024
8ccee20
Merge topic 'addCustomIsEnumRelevantFunctionality'
BobObara Jun 26, 2024
eed8ecf
BUG: Adding Missing cassert include
BobObara Jul 1, 2024
39bfb70
Merge topic 'addingMissingAssertInclude'
BobObara Jul 1, 2024
0ccb188
Fix #540 by using `units::PreferredUnits`.
vibraphone Jul 2, 2024
00a8f4b
Merge topic 'unit-completion'
vibraphone Jul 3, 2024
57b3100
BUG: Adding Issues with Copying Attribute Resources
BobObara Jul 5, 2024
c929563
Merge topic 'fixingAttributeResourceCopyIssues'
BobObara Jul 8, 2024
7fd49b5
ENH: Adding Units Support for Definitions and Attributes
BobObara Jul 9, 2024
95933a5
Merge topic 'addingUnitsToAttributes'
BobObara Jul 10, 2024
8391421
BUG: Attribute Resource Copy Finalize Ignoring Attribute Copy Options
BobObara Jul 10, 2024
815bef6
Merge topic 'fixingAttributeCopyFinalize'
BobObara Jul 11, 2024
d6fd13c
Fix an issue with the way 3-d widgets were updated.
vibraphone Jul 12, 2024
0432f77
Add documentation of `qtItem` design patterns.
vibraphone Jul 15, 2024
5e9f789
Copy links properly.
vibraphone Jul 15, 2024
b61b70b
Merge topic 'fix-3d-widgets'
vibraphone Jul 15, 2024
f3103d0
Merge topic 'fix-copy-links'
vibraphone Jul 16, 2024
d8a4da4
Changes to "CallObserversOnMain" behaviors.
Jul 8, 2024
fb78645
ENH: Attribute Definitions are now Resource Components
BobObara Jul 15, 2024
42e2f1a
Merge topic 'makingDefinitionsComponents'
BobObara Jul 16, 2024
1d01633
TESTING: Modifying Test for XML Support for Properties on Definitions
BobObara Jul 17, 2024
a1fafdf
Merge topic 'bugfix/fix-observer-sequencing'
justin2wilson Jul 17, 2024
d7f0c3e
BUG: Fixing Issue with Copying Items using Expressions
BobObara Jul 17, 2024
3112845
Merge topic 'fixingExpressionCopying'
BobObara Jul 17, 2024
b5149d4
Merge topic 'addingDefinitionPropTest'
BobObara Jul 22, 2024
883db23
ENH: Adding Support for vector of int and long Properties for XML Par…
BobObara Jul 22, 2024
aaa88a6
Merge topic 'addingIntAndLongVecPropSupport'
BobObara Jul 23, 2024
6480331
ENH: Displaying Attribute with Units
BobObara Jul 22, 2024
2d44300
Merge topic 'addingUnitsLineEditWidget'
BobObara Jul 24, 2024
1861c0d
ENH: Updated CI for SMTK
BobObara Jul 24, 2024
68ec112
Merge topic 'updatingCI'
BobObara Jul 25, 2024
ee7d27c
ENH: Supporting Definitions that can take any units
BobObara Jul 23, 2024
2e49213
Merge topic 'supportingAnyUnitsDefiniitons'
BobObara Jul 29, 2024
fd29ce6
ENH: Handling Expressions with Units
BobObara Jul 23, 2024
1ef4b4e
Added an optional shortcut parameter for changing modes
Jul 30, 2024
270e935
Merge topic 'supportingUnitsWithExpressions'
BobObara Jul 30, 2024
fffed54
Improve resource locking scheme in operations.
Jul 18, 2024
c797dd0
Merge topic 'feature/improve-resource-locking-scheme-for-operations'
justin2wilson Aug 7, 2024
7049708
Merge topic 'feature/add-shortcuts-to-diagram-modes'
Aug 7, 2024
f4cca8d
ENH: Adding Custom Filter Support for Attributes
BobObara Aug 1, 2024
7b84caa
Merge topic 'expandingAttributeFilter'
BobObara Aug 7, 2024
9561633
Changed operation helper to use BaseKey
Aug 8, 2024
56f3a8e
Merge branch 'master' into 'feature/operation-helper-use-base-key'
Aug 8, 2024
37e4dad
Merge topic 'feature/operation-helper-use-base-key'
justin2wilson Aug 8, 2024
a0e1d98
Remove mesh/model-worker docs.
vibraphone Aug 7, 2024
cdac86a
Fix the `testCloneResource` test.
vibraphone Aug 9, 2024
8eac604
Merge topic 'docs'
vibraphone Aug 12, 2024
7876ca5
Run event loop when waiting for operation result
Aug 19, 2024
c202c38
Merge topic 'feature/qtlauncher-run-event-loop-while-waiting-for-result'
justin2wilson Aug 21, 2024
411d354
Export explicit template instantiations on Windows.
Aug 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .gitlab/ci/download_superbuild.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ cmake_minimum_required(VERSION 3.12)
set(data_host "https://data.kitware.com")

# Determine the tarball to download. ci-smtk-ci-developer-{date}-{git-sha}.tar.gz
# 20231127: Enable Python in bundles
# 20240724: Refresh for Units Library supporting "*" units
if ("$ENV{CMAKE_CONFIGURATION}" MATCHES "vs2022")
set(file_item "6564b7f7c5a2b36857ad16c4")
set(file_hash "8b3687c140346c6b23629ff5373694cab068b5197be963ccf699b42ec708baaad80aa9d5e2eff26ee36c5eaea72629d212866c735789d1b0509c6f9756ec7a32")
set(file_item "66a13fdd5d2551c516b1d5c7")
set(file_hash "e248699a4b7926b2bb5fc19880a460ac36c4ebe0896dab77d8232ce96fe934e539ec77ce7602d60490499b8edf756a1ad3a68c18365606e2d8b3e45c6488a240")
elseif ("$ENV{CMAKE_CONFIGURATION}" MATCHES "macos_x86_64")
set(file_item "6564b7f7c5a2b36857ad16c2")
set(file_hash "06513bdf597172315a27fa4dce524ea4a8588721b33f5c86833140214e3f94d2e312c80cc2d5efb4b61226d4736bb0860c377722d96f89e4a20a5c91584c1329")
set(file_item "66a13fdd5d2551c516b1d5c5")
set(file_hash "807ceb6fdfad77103b849659fa033f242d8211895ebd21d9492809cae96e16fb17050daffc7f71a7fc65b8746d34c66e8d05e479fbb523b8a1b4ce0ef9af7cb5")
elseif ("$ENV{CMAKE_CONFIGURATION}" MATCHES "macos_arm64")
set(file_item "6564b7f6c5a2b36857ad16c0")
set(file_hash "cb44f9cf11f18c3517828cb76f893e8265ee01a4f1a0ae89e96695c7fa5a930226a422cb9151e7845245584e85585772eca24e029846d459e934717a8b11aace")
set(file_item "66a13fdd5d2551c516b1d5c3")
set(file_hash "a4697df02417badf76f28ab51d51db4815f13cb861a3e5f0a0d224b5dde0a389c230d385a8f03f3959b32434cadfb375ebe105c041400481d93e70711e9c8389")
else ()
message(FATAL_ERROR
"Unknown build to use for the superbuild")
Expand Down
10 changes: 5 additions & 5 deletions .gitlab/os-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
### Fedora

.fedora33:
# Update to include Python support in containers.
image: "kitware/cmb:ci-smtk-fedora33-20231127"
# Update to use Units Library that supports "*" units.
image: "kitware/cmb:ci-smtk-fedora33-20240724"

variables:
GIT_SUBMODULE_STRATEGY: recursive
Expand Down Expand Up @@ -67,21 +67,21 @@

.fedora33_vtk_python3:
extends: .fedora33
image: "kitware/cmb:ci-smtk-fedora33-vtk-20231127"
image: "kitware/cmb:ci-smtk-fedora33-vtk-20240724"

variables:
CMAKE_CONFIGURATION: fedora33_vtk_python3

.fedora33_paraview:
extends: .fedora33
image: "kitware/cmb:ci-smtk-fedora33-paraview-20231127"
image: "kitware/cmb:ci-smtk-fedora33-paraview-20240724"

variables:
CMAKE_CONFIGURATION: fedora33_paraview

.fedora33_paraview59_compat:
extends: .fedora33
image: "kitware/cmb:ci-smtk-fedora33-paraview59-20231127"
image: "kitware/cmb:ci-smtk-fedora33-paraview59-20240724"

variables:
CMAKE_CONFIGURATION: fedora33_paraview59_compat
Expand Down
2 changes: 1 addition & 1 deletion applications/TemplateEditor/AttDefDataModel.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ bool AttDefDataModel::hasDerivedTypes(const QModelIndex& index) const
auto def = this->get(index);

DefinitionPtrVec defVec;
def->resource()->derivedDefinitions(def, defVec);
def->attributeResource()->derivedDefinitions(def, defVec);
return !defVec.empty();
}

Expand Down
2 changes: 1 addition & 1 deletion applications/TemplateEditor/AttDefDialog.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ bool AttDefDialog::validate_impl()
const QString type = this->Ui->leType->text();
valid &= !type.isEmpty();

auto def = this->BaseDef->resource()->findDefinition(type.toStdString());
auto def = this->BaseDef->attributeResource()->findDefinition(type.toStdString());
valid &= !def;

return valid;
Expand Down
2 changes: 1 addition & 1 deletion applications/TemplateEditor/ItemDefDataModel.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ void ItemDefDataModel::remove(const QModelIndex& itemIndex, smtk::attribute::Def
void ItemDefDataModel::clearAttributes(smtk::attribute::DefinitionPtr def)
{
std::vector<smtk::attribute::AttributePtr> atts;
auto sys = def->resource();
auto sys = def->attributeResource();
sys->findAttributes(def->type(), atts);
for (const auto& att : atts)
{
Expand Down
238 changes: 238 additions & 0 deletions data/attribute/attribute_collection/ConfigurationTestV8.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,238 @@
<?xml version="1.0"?>
<!--Created by XmlV8StringWriter-->
<SMTK_AttributeResource Version="8" ID="8fe66bab-ac3a-4ee8-bf6c-f371946f58c0" NameSeparator="-" DisplayHint="true">
<!--********** Category and Analysis Information ***********-->
<Categories>
<Cat>Enclosure Radiation</Cat>
<Cat>Fluid Flow</Cat>
<Cat>Heat Transfer</Cat>
<Cat>Induction Heating</Cat>
<Cat>Solid Mechanics</Cat>
</Categories>
<ActiveCategories Enabled="false" />
<Analyses>
<Analysis Type="EC2">
<Cat>ec2</Cat>
</Analysis>
<Analysis Type="EC1">
<Cat>ec1</Cat>
</Analysis>
<Analysis Type="Solid Mechanics">
<Cat>Solid Mechanics</Cat>
</Analysis>
<Analysis Type="Fluid Flow">
<Cat>Fluid Flow</Cat>
</Analysis>
<Analysis Type="Heat Transfer">
<Cat>Heat Transfer</Cat>
</Analysis>
<Analysis Type="Induction Heating" BaseType="Heat Transfer">
<Cat>Induction Heating</Cat>
</Analysis>
<Analysis Type="Enclosure Radiation" BaseType="Heat Transfer">
<Cat>Enclosure Radiation</Cat>
</Analysis>
</Analyses>
<!--********** Attribute Definitions ***********-->
<Associations />
<Definitions>
<AttDef Type="description" Label="Description" BaseType="" Version="0" Unique="false" IgnoreCategories="false">
<CategoryExpression InheritanceMode="Or" />
<ItemDefinitions>
<String Name="s1" Label="Advance Level and Enum Test String" Version="0" NumberOfRequiredValues="1">
<CategoryExpression InheritanceMode="Or" />
<DiscreteInfo>
<Structure>
<Value Enum="e1" AdvanceLevel="1">a</Value>
<CategoryExpression>('ec1')</CategoryExpression>
</Structure>
<Structure>
<Value Enum="e2">b</Value>
<CategoryExpression>('ec2')</CategoryExpression>
</Structure>
<Structure>
<Value Enum="e3" AdvanceLevel="1">c</Value>
<CategoryExpression PassMode="All" />
</Structure>
</DiscreteInfo>
</String>
<String Name="description" Label="text:" Version="0" NumberOfRequiredValues="1" MultipleLines="true">
<CategoryExpression InheritanceMode="Or">
('Enclosure Radiation' + 'Induction Heating')
</CategoryExpression>
<BriefDescription>Text added to top of input file</BriefDescription>
<DefaultValue># Truchas simulation</DefaultValue>
</String>
</ItemDefinitions>
</AttDef>
<AttDef Type="numerics" Label="Numerics" BaseType="" Version="0" Unique="true" IgnoreCategories="false">
<CategoryExpression InheritanceMode="Or" />
<ItemDefinitions>
<Group Name="velocity-group" Label="Velocity" Version="0" NumberOfRequiredGroups="1" Extensible="true">
<CategoryExpression InheritanceMode="Or" />
<ComponentLabels CommonLabel="" />
<ItemDefinitions>
<Component Name="uniqueTest" Label="Unique Test" Version="0" EnforceCategories="false" Role="0" NumberOfRequiredValues="1">
<CategoryExpression InheritanceMode="Or">('Heat Transfer')</CategoryExpression>
<Accepts>
<Resource Name="smtk::model::Resource" Filter="face" />
</Accepts>
<Rejects />
</Component>
<Double Name="velocity-value" Label="Velocity" Version="0" NumberOfRequiredValues="4">
<CategoryExpression InheritanceMode="Or">('Fluid Flow')</CategoryExpression>
<ComponentLabels>
<Label>t</Label>
<Label>u</Label>
<Label>v</Label>
<Label>w</Label>
</ComponentLabels>
<DefaultValue>0.0</DefaultValue>
</Double>
</ItemDefinitions>
</Group>
<Double Name="dt_init" Label="Dt_Init" Version="0" NumberOfRequiredValues="1">
<CategoryExpression InheritanceMode="Or">('Fluid Flow')</CategoryExpression>
<BriefDescription>Integration time step value used for
the first computation cycle</BriefDescription>
<DefaultValue>1.0e-6</DefaultValue>
<RangeInfo>
<Min Inclusive="false">0</Min>
</RangeInfo>
</Double>
<Double Name="dt_grow" Label="Dt_Grow" Version="0" NumberOfRequiredValues="1">
<CategoryExpression InheritanceMode="Or">('Fluid Flow')</CategoryExpression>
<BriefDescription>A factor to multiply the current integration time step
when estimating the next cycle time step.</BriefDescription>
<DefaultValue>1.05</DefaultValue>
<RangeInfo>
<Min Inclusive="true">1</Min>
</RangeInfo>
</Double>
<Double Name="dt_max" Label="Dt_Max" Version="0" NumberOfRequiredValues="1">
<CategoryExpression InheritanceMode="Or">('Solid Mechanics')</CategoryExpression>
<BriefDescription>Maximum allowable value for the time step.</BriefDescription>
<DefaultValue>10.0</DefaultValue>
<RangeInfo>
<Min Inclusive="false">0</Min>
</RangeInfo>
</Double>
<Double Name="dt_min" Label="Dt_Min" Version="0" NumberOfRequiredValues="1">
<CategoryExpression InheritanceMode="Or">('Solid Mechanics')</CategoryExpression>
<BriefDescription>Minimum allowable value for the time step.</BriefDescription>
<DefaultValue>1.0e-6</DefaultValue>
<RangeInfo>
<Min Inclusive="false">0</Min>
</RangeInfo>
</Double>
</ItemDefinitions>
</AttDef>
<AttDef Type="outputs" Label="Outputs" BaseType="" Version="0" Unique="true" IgnoreCategories="false">
<CategoryExpression InheritanceMode="Or" />
<ItemDefinitions>
<Double Name="start-time" Label="Start Time" Version="0" NumberOfRequiredValues="1">
<CategoryExpression InheritanceMode="Or">
('Induction Heating' ∨ 'Solid Mechanics')
</CategoryExpression>
<DefaultValue>0.0</DefaultValue>
<RangeInfo>
<Min Inclusive="true">0</Min>
</RangeInfo>
</Double>
<Double Name="end-time" Label="End Time" Version="0" NumberOfRequiredValues="1">
<CategoryExpression InheritanceMode="Or">
('Induction Heating' | 'Solid Mechanics')
</CategoryExpression>
<DefaultValue>1.0</DefaultValue>
<RangeInfo>
<Min Inclusive="true">0</Min>
</RangeInfo>
</Double>
<Double Name="output-dt" Label="Initial Output Delta-Time" Version="0" NumberOfRequiredValues="1">
<CategoryExpression InheritanceMode="Or">('Heat Transfer')</CategoryExpression>
<DefaultValue>1.0</DefaultValue>
<RangeInfo>
<Min Inclusive="true">0</Min>
</RangeInfo>
</Double>
<Group Name="output-times" Label="Additional Output Control" Version="0" NumberOfRequiredGroups="0" Extensible="true">
<CategoryExpression InheritanceMode="Or" />
<ComponentLabels CommonLabel="" />
<ItemDefinitions>
<Double Name="time" Label="Output Times" Version="0" NumberOfRequiredValues="2">
<CategoryExpression InheritanceMode="Or">('Fluid Flow')</CategoryExpression>
<ComponentLabels>
<Label>After time:</Label>
<Label>Use delta time:</Label>
</ComponentLabels>
</Double>
</ItemDefinitions>
</Group>
</ItemDefinitions>
</AttDef>
<AttDef Type="simulation-control" Label="Simulation Control" BaseType="" Version="0" Unique="true" IgnoreCategories="false">
<CategoryExpression InheritanceMode="Or" />
<ItemDefinitions>
<Group Name="simulation-control" Label="Simulation Control" Version="0" Optional="true" IsEnabledByDefault="false" NumberOfRequiredGroups="1">
<CategoryExpression InheritanceMode="Or" />
<BriefDescription>This item is superseded by the displacement sequence when
moving-enclosure radiation is enabled</BriefDescription>
<ItemDefinitions>
<Double Name="phase-start-times" Label="Phase Start Times" Version="0" NumberOfRequiredValues="1" Extensible="true">
<CategoryExpression InheritanceMode="Or">('Heat Transfer')</CategoryExpression>
<BriefDescription>The list of starting times of each of the phases</BriefDescription>
</Double>
<Double Name="phase-init-dt-factor" Label="Phase Init Dt Factor" Version="0" NumberOfRequiredValues="1">
<CategoryExpression InheritanceMode="Or">('Fluid Flow' | 'Heat Transfer' | 'Solid Mechanics')
</CategoryExpression>
</Double>
</ItemDefinitions>
</Group>
</ItemDefinitions>
</AttDef>
</Definitions>
<Exclusions />
<!--********** Workflow Views ***********-->
<Views>
<View Type="Group" Name="TopLevel" ConfigurationLabel="My Configurations:" ConfigurationType="Analysis" FilterByAdvanceLevel="true" TabPosition="North" TopLevel="true" UseConfigurations="true">
<Views>
<View Title="Test" />
<View Title="Configurations" />
</Views>
</View>
<View Type="Attribute" Name="Configurations" IgnoreCategories="true">
<AttributeTypes>
<Att Type="Analysis" />
</AttributeTypes>
</View>
<View Type="Instanced" Name="Description">
<InstancedAttributes>
<Att Name="description" Type="description" />
</InstancedAttributes>
</View>
<View Type="Instanced" Name="General">
<InstancedAttributes>
<Att Name="numerics-att" Type="numerics">
<ItemViews>
<View InsertMode="Prepend" Item="velocity-group" Type="Default" />
<View EditPrecision="6" Item="dt_init" Precision="2" Type="Default" />
<View EditPrecision="6" Item="dt_max" Notation="Fixed" Precision="6" Type="Default" />
<View EditPrecision="6" Item="dt_min" Notation="Scientific" Precision="6" Type="Default" />
</ItemViews>
</Att>
<Att Name="outputs-att" Type="outputs" />
<Att Name="simulation-control-att" Type="simulation-control" />
</InstancedAttributes>
</View>
<View Type="Group" Name="Test" Style="Tiled">
<Views>
<View Title="Description" />
<View Title="General" />
</Views>
</View>
</Views>
<UniqueRoles>
<Role ID="0" />
<Role ID="10" />
</UniqueRoles>
</SMTK_AttributeResource>
22 changes: 17 additions & 5 deletions data/attribute/attribute_collection/DoubleItemExample.sbt
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
<?xml version="1.0"?>
<!--Created by XmlV4StringWriter-->
<SMTK_AttributeResource Version="4">
<SMTK_AttributeResource Version="8" DisplayHint="true">
<!--********** Attribute Definitions ***********-->
<Associations />
<Definitions>
<AttDef Type="doubleFunc" Association="None"/>
<AttDef Type="A" Label="A" BaseType="" Unique="false">
<AttDef Type="doubleFunc" Association="None" Units="*"/>
<AttDef Type="B" Label="B" BaseType="" Unique="false" Units="*"/>
<AttDef Type="A" Label="A" BaseType="" Unique="false" Units="m">
<ItemDefinitions>
<Double Name="d0" Label="Optional Double" Optional="true">
</Double>
<Double Name="d1" Label="Expression Double">
<Double Name="d1" Label="Expression Double" Units="feet">
<ExpressionType>doubleFunc</ExpressionType>
</Double>
</ItemDefinitions>
Expand All @@ -19,11 +20,22 @@
<Views>
<View Type="Instanced" Title="DoubleItemTest" Label="Simple Double Item Test" TopLevel="true">
<InstancedAttributes>
<Att Type="A" Name="doubleTestAttribute">
<Att Type="A" Name="Attribute (editable units)">
<ItemViews>
<View Item="d1" ExpressionOnly="true"/>
</ItemViews>
</Att>
<Att Type="A" Name="Attribute (read only units)" UnitsMode="ViewOnly">
<ItemViews>
<View Item="d1" ExpressionOnly="true"/>
</ItemViews>
</Att>
<Att Type="A" Name="Attribute (don't show units)" UnitsMode="None">
<ItemViews>
<View Item="d1" ExpressionOnly="true"/>
</ItemViews>
</Att>
<Att Type="B" Name="Attribute (any units)"/>
</InstancedAttributes>
</View>
</Views>
Expand Down
4 changes: 2 additions & 2 deletions data/attribute/attribute_collection/cloneTest.smtk
Git LFS file not shown
Loading