@@ -24,7 +24,7 @@ RowLayout {
2424 property int labelWidth // Shortcut to set the fixed size of the Label
2525
2626 readonly property bool editable: ! attribute .isOutput && ! attribute .isLink &&
27- ! readOnly && ! (attribute .keyable && _reconstruction .selectedViewId === " -1" )
27+ ! readOnly && ! (attribute .keyable && _currentScene .selectedViewId === " -1" )
2828
2929 signal doubleClicked (var mouse, var attr)
3030 signal inAttributeClicked (var srcItem, var mouse, var inAttributes)
@@ -144,7 +144,7 @@ RowLayout {
144144 text: " Reset To Default Value"
145145 enabled: root .editable && ! attribute .isDefault
146146 onTriggered: {
147- _reconstruction .resetAttribute (attribute)
147+ _currentScene .resetAttribute (attribute)
148148 updateAttributeLabel ()
149149 }
150150 }
@@ -160,7 +160,7 @@ RowLayout {
160160 text: " Paste"
161161 enabled: Clipboard .getText () != " " && ! attribute .keyable && root .editable
162162 onTriggered: {
163- _reconstruction .setAttribute (attribute, Clipboard .getText ())
163+ _currentScene .setAttribute (attribute, Clipboard .getText ())
164164 }
165165 }
166166
@@ -210,7 +210,7 @@ RowLayout {
210210
211211 MaterialLabel {
212212 property bool isDisplayable: attribute .isOutput && (attribute .is2dDisplayable || attribute .is3dDisplayable )
213- property bool isDisplayed: attribute === _reconstruction .displayedAttr2D || _reconstruction .displayedAttrs3D .count && _reconstruction .displayedAttrs3D .contains (attribute)
213+ property bool isDisplayed: attribute === _currentScene .displayedAttr2D || _currentScene .displayedAttrs3D .count && _currentScene .displayedAttrs3D .contains (attribute)
214214 text: isDisplayed ? MaterialIcons .visibility : MaterialIcons .visibility_off
215215 enabled: isDisplayed
216216 visible: isDisplayable
@@ -262,16 +262,16 @@ RowLayout {
262262 case " FloatParam" :
263263 // We don't set a number because we want to keep the invalid expression
264264 if (attribute .keyable )
265- _reconstruction .addAttributeKeyValue (root .attribute , _reconstruction .selectedViewId , Number (value))
265+ _currentScene .addAttributeKeyValue (root .attribute , _currentScene .selectedViewId , Number (value))
266266 else
267- _reconstruction .setAttribute (root .attribute , Number (value))
267+ _currentScene .setAttribute (root .attribute , Number (value))
268268 updateAttributeLabel ()
269269 break
270270 case " File" :
271- _reconstruction .setAttribute (root .attribute , value)
271+ _currentScene .setAttribute (root .attribute , value)
272272 break
273273 default :
274- _reconstruction .setAttribute (root .attribute , value .trim ())
274+ _currentScene .setAttribute (root .attribute , value .trim ())
275275 updateAttributeLabel ()
276276 break
277277 }
@@ -517,11 +517,11 @@ RowLayout {
517517 onClicked: {
518518 if (checked) {
519519 if (colorText .text == " " )
520- _reconstruction .setAttribute (attribute, " #0000FF" )
520+ _currentScene .setAttribute (attribute, " #0000FF" )
521521 else
522- _reconstruction .setAttribute (attribute, colorText .text )
522+ _currentScene .setAttribute (attribute, colorText .text )
523523 } else {
524- _reconstruction .setAttribute (attribute, " " )
524+ _currentScene .setAttribute (attribute, " " )
525525 }
526526 }
527527 }
@@ -583,7 +583,7 @@ RowLayout {
583583 enabled: root .editable
584584
585585 onEditingFinished : (value ) => {
586- _reconstruction .setAttribute (root .attribute , value)
586+ _currentScene .setAttribute (root .attribute , value)
587587 }
588588 }
589589 }
@@ -603,7 +603,7 @@ RowLayout {
603603 } else {
604604 currentValue .push (value);
605605 }
606- _reconstruction .setAttribute (attribute, currentValue);
606+ _currentScene .setAttribute (attribute, currentValue);
607607 }
608608 }
609609 }
@@ -618,7 +618,7 @@ RowLayout {
618618 enabled: root .editable
619619 // Cast value to string to avoid intrusive scientific notations on numbers
620620 property string displayValue: String (slider .active && slider .item .pressed ? slider .item .formattedValue :
621- attribute .keyable ? attribute .keyValues .getValueAtKeyOrDefault (_reconstruction .selectedViewId ) :
621+ attribute .keyable ? attribute .keyValues .getValueAtKeyOrDefault (_currentScene .selectedViewId ) :
622622 attribute .value )
623623 text: displayValue
624624 selectByMouse: true
@@ -667,7 +667,7 @@ RowLayout {
667667 readonly property int stepDecimalCount: stepSize < 1 ? String (stepSize).split (" ." ).pop ().length : 0
668668 readonly property real formattedValue: value .toFixed (stepDecimalCount)
669669 enabled: root .editable
670- value: attribute .keyable ? attribute .keyValues .getValueAtKeyOrDefault (_reconstruction .selectedViewId ) : attribute .value
670+ value: attribute .keyable ? attribute .keyValues .getValueAtKeyOrDefault (_currentScene .selectedViewId ) : attribute .value
671671 from: attribute .desc .range [0 ]
672672 to: attribute .desc .range [1 ]
673673 stepSize: attribute .desc .range [2 ]
@@ -676,9 +676,9 @@ RowLayout {
676676 onPressedChanged: {
677677 if (! pressed) {
678678 if (attribute .keyable )
679- _reconstruction .addAttributeKeyValue (attribute, _reconstruction .selectedViewId , formattedValue)
679+ _currentScene .addAttributeKeyValue (attribute, _currentScene .selectedViewId , formattedValue)
680680 else
681- _reconstruction .setAttribute (attribute, formattedValue)
681+ _currentScene .setAttribute (attribute, formattedValue)
682682 updateAttributeLabel ()
683683 }
684684 }
@@ -692,16 +692,16 @@ RowLayout {
692692 Row {
693693 CheckBox {
694694 enabled: root .editable
695- checked: attribute .keyable ? attribute .keyValues .getValueAtKeyOrDefault (_reconstruction .selectedViewId ) : attribute .value
695+ checked: attribute .keyable ? attribute .keyValues .getValueAtKeyOrDefault (_currentScene .selectedViewId ) : attribute .value
696696 onToggled: {
697697 if (attribute .keyable )
698698 {
699- const value = attribute .keyValues .getValueAtKeyOrDefault (_reconstruction .selectedViewId )
700- _reconstruction .addAttributeKeyValue (attribute, _reconstruction .selectedViewId , ! value)
699+ const value = attribute .keyValues .getValueAtKeyOrDefault (_currentScene .selectedViewId )
700+ _currentScene .addAttributeKeyValue (attribute, _currentScene .selectedViewId , ! value)
701701 }
702702 else
703703 {
704- _reconstruction .setAttribute (attribute, ! attribute .value )
704+ _currentScene .setAttribute (attribute, ! attribute .value )
705705 }
706706 }
707707 }
@@ -731,7 +731,7 @@ RowLayout {
731731 font .pointSize : 11
732732 padding: 2
733733 enabled: root .editable
734- onClicked: _reconstruction .appendAttribute (attribute, undefined )
734+ onClicked: _currentScene .appendAttribute (attribute, undefined )
735735 }
736736 }
737737 ListView {
@@ -779,7 +779,7 @@ RowLayout {
779779 padding: 2
780780 ToolTip .text : " Remove Element"
781781 ToolTip .visible : hovered
782- onClicked: _reconstruction .removeAttribute (item .childAttrib )
782+ onClicked: _currentScene .removeAttribute (item .childAttrib )
783783 }
784784 }
785785 }
@@ -860,7 +860,7 @@ RowLayout {
860860 snapMode: Slider .SnapAlways
861861 onPressedChanged: {
862862 if (! pressed)
863- _reconstruction .setAttribute (attribute, formattedValue)
863+ _currentScene .setAttribute (attribute, formattedValue)
864864 }
865865
866866 background: ShaderEffect {
@@ -882,13 +882,13 @@ RowLayout {
882882 padding: 6
883883 text: MaterialIcons .circle
884884 checkable: true
885- checked: attribute .keyable && attribute .keyValues .hasKey (_reconstruction .selectedViewId )
885+ checked: attribute .keyable && attribute .keyValues .hasKey (_currentScene .selectedViewId )
886886 enabled: root .editable
887887 onClicked: {
888- if (attribute .keyValues .hasKey (_reconstruction .selectedViewId ))
889- _reconstruction .removeAttributeKey (attribute, _reconstruction .selectedViewId )
888+ if (attribute .keyValues .hasKey (_currentScene .selectedViewId ))
889+ _currentScene .removeAttributeKey (attribute, _currentScene .selectedViewId )
890890 else
891- _reconstruction .addAttributeKeyDefaultValue (attribute, _reconstruction .selectedViewId )
891+ _currentScene .addAttributeKeyDefaultValue (attribute, _currentScene .selectedViewId )
892892 }
893893 }
894894 }
0 commit comments