diff --git a/Projects/Superalgos/Function-Libraries/ActionSwitch.js b/Projects/Superalgos/Function-Libraries/ActionSwitch.js index 32693f0d3..9b9827128 100644 --- a/Projects/Superalgos/Function-Libraries/ActionSwitch.js +++ b/Projects/Superalgos/Function-Libraries/ActionSwitch.js @@ -111,6 +111,28 @@ function newSuperalgosActionSwitch() { , 50, UI.projects.superalgos.spaces.cockpitSpace.statusTypes.ALL_GOOD) } break + case 'Copy Node Value': + { + let value = action.node.payload.uiObject.getValue() + + UI.projects.superalgos.utilities.clipboard.copyTextToClipboard(value) + + UI.projects.superalgos.spaces.cockpitSpace.setStatus( + value + ' copied to the Clipboard.' + , 50, UI.projects.superalgos.spaces.cockpitSpace.statusTypes.ALL_GOOD) + } + break + case 'Copy Node Type': + { + let value = action.node.type + + UI.projects.superalgos.utilities.clipboard.copyTextToClipboard(value) + + UI.projects.superalgos.spaces.cockpitSpace.setStatus( + value + ' copied to the Clipboard.' + , 50, UI.projects.superalgos.spaces.cockpitSpace.statusTypes.ALL_GOOD) + } + break case 'Add UI Object': { functionLibraryUiObjectsFromNodes.addUIObject(action.node, action.relatedNodeType, action.rootNodes) diff --git a/Projects/Superalgos/Icons/copy-type.png b/Projects/Superalgos/Icons/copy-type.png new file mode 100644 index 000000000..b131de218 Binary files /dev/null and b/Projects/Superalgos/Icons/copy-type.png differ diff --git a/Projects/Superalgos/Icons/copy-value.png b/Projects/Superalgos/Icons/copy-value.png new file mode 100644 index 000000000..4c36b4bc3 Binary files /dev/null and b/Projects/Superalgos/Icons/copy-value.png differ diff --git a/Projects/Superalgos/Schemas/AppSchema.json b/Projects/Superalgos/Schemas/AppSchema.json index 69081fb2b..242aa1b41 100644 --- a/Projects/Superalgos/Schemas/AppSchema.json +++ b/Projects/Superalgos/Schemas/AppSchema.json @@ -2937,6 +2937,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -2977,6 +2991,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -3017,6 +3045,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -3057,6 +3099,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -3097,6 +3153,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -3137,6 +3207,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -3177,6 +3261,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -3293,6 +3391,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -3377,6 +3489,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -3455,6 +3581,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -3495,6 +3635,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -3535,6 +3689,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -3575,6 +3743,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -3615,6 +3797,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -3655,6 +3851,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -4337,6 +4547,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -4385,6 +4609,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -4425,6 +4663,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -4465,6 +4717,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -4505,6 +4771,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -4545,6 +4825,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -4585,6 +4879,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -4625,6 +4933,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -4665,6 +4987,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -4705,6 +5041,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -4745,6 +5095,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -4855,6 +5219,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -4895,6 +5273,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -4935,6 +5327,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -5057,6 +5463,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -5097,6 +5517,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -5137,6 +5571,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -5177,6 +5625,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -5217,6 +5679,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -5257,6 +5733,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -5297,6 +5787,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -5337,6 +5841,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -5377,6 +5895,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -5809,6 +6341,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -5849,6 +6395,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -5889,6 +6449,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -5929,6 +6503,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -5969,6 +6557,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -6009,6 +6611,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -6049,6 +6665,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -6089,6 +6719,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -6129,6 +6773,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -6169,6 +6827,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -6209,6 +6881,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -6249,6 +6935,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -6289,6 +6989,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -6329,6 +7043,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -6362,6 +7090,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -6389,6 +7131,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -6416,6 +7172,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -6443,6 +7213,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -6477,6 +7261,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -6517,6 +7315,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -6687,6 +7499,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -6727,6 +7553,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -6767,6 +7607,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -6807,6 +7661,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -6847,6 +7715,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -6887,6 +7769,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -6927,6 +7823,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -6967,6 +7877,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -7007,6 +7931,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -7047,6 +7985,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -7087,6 +8039,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -7127,6 +8093,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -7288,6 +8268,20 @@ "iconPathOff": "copy-path", "actionFunction": "payload.executeAction" }, + { + "action": "Copy Node Value", + "label": "Copy Node Value", + "iconPathOn": "copy-value", + "iconPathOff": "copy-value", + "actionFunction": "payload.executeAction" + }, + { + "action": "Copy Node Type", + "label": "Copy Node Type", + "iconPathOn": "copy-type", + "iconPathOff": "copy-type", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, diff --git a/Projects/Superalgos/Spaces/Floating-Space/UiObject.js b/Projects/Superalgos/Spaces/Floating-Space/UiObject.js index 7e983a9e1..4850f49ed 100644 --- a/Projects/Superalgos/Spaces/Floating-Space/UiObject.js +++ b/Projects/Superalgos/Spaces/Floating-Space/UiObject.js @@ -44,6 +44,7 @@ function newUiObject() { resetWarningMessage: resetWarningMessage, setInfoMessage: setInfoMessage, resetInfoMessage: resetInfoMessage, + getValue: getValue, setValue: setValue, resetValue: resetValue, setPercentage: setPercentage, @@ -880,6 +881,10 @@ function newUiObject() { thisObject.hasInfo = false } + function getValue() { + return currentValue + } + function setValue(value, counter, minDecimals) { if (value !== undefined) { currentValue = value