From c90f1052a3cd9f3af26b20531668d8c53a7da225 Mon Sep 17 00:00:00 2001 From: Deyan Nenov Date: Fri, 15 Mar 2024 15:42:36 +0000 Subject: [PATCH] DYN-6607 - Input/Output Node - part 1 (#14987) * initialize definedata model - starting with the model and the test suite * added test structure, node customization - now types are contained inside an enum - added the basic primitives to the test structure, including lists checks - reworked the node to start getting the customization going (and make sense of the whole thing) * hierarchical container, geometry tests - created hierarchical container capable of tracking type inheritance - added all geometry tests * primitive tests done - finished all primitive date type tests * ggroup * Revert "ggroup" This reverts commit 1621855d3edacde667af1d474ef6be856d88e720. * inheritance tests done - completed tests checking inf inheritance works on individual and on list level * comments - added a few additional comments - additional test checking if inheritance stops at the desired level (ie. `Cone` does not inherit from `Curve`) * finished refactoring for tests - removed the Enum, replaced directly with Type * refactor, comments - removed dictionary in favor of list of datatypes - renamed methods to better suit the specificity of the node functionality they were serving --------- Co-authored-by: Ashish Aggarwal --- .../UI/Themes/Modern/DynamoModern.xaml | 130 +++++++ src/Libraries/CoreNodeModels/DefineData.cs | 161 ++++++++ .../Controls/DefineDataControl.xaml | 81 ++++ .../Controls/DefineDataControl.xaml.cs | 23 ++ .../CoreNodeModelsWpf.csproj | 1 + .../CoreNodeModelsWpf/DefineDataViewModel.cs | 21 ++ .../NodeViewCustomizations/DefineData.cs | 47 +++ src/Libraries/CoreNodes/Data.cs | 161 +++++++- test/DynamoCoreTests/DSCoreDataTests.cs | 349 +++++++++++++++++- 9 files changed, 952 insertions(+), 22 deletions(-) create mode 100644 src/Libraries/CoreNodeModels/DefineData.cs create mode 100644 src/Libraries/CoreNodeModelsWpf/Controls/DefineDataControl.xaml create mode 100644 src/Libraries/CoreNodeModelsWpf/Controls/DefineDataControl.xaml.cs create mode 100644 src/Libraries/CoreNodeModelsWpf/DefineDataViewModel.cs create mode 100644 src/Libraries/CoreNodeModelsWpf/NodeViewCustomizations/DefineData.cs diff --git a/src/DynamoCoreWpf/UI/Themes/Modern/DynamoModern.xaml b/src/DynamoCoreWpf/UI/Themes/Modern/DynamoModern.xaml index abf88c0e770..474efa30ab6 100644 --- a/src/DynamoCoreWpf/UI/Themes/Modern/DynamoModern.xaml +++ b/src/DynamoCoreWpf/UI/Themes/Modern/DynamoModern.xaml @@ -489,6 +489,136 @@ + + + + + + + + + + + + + + + +