|
|
| (5 intermediate revisions by the same user not shown) |
| Line 15: |
Line 15: |
| | Allows property values exposed to the user to be saved and loaded using an external file. Simplifies the process of storing and retreiving the property values. Also works with nested properties using the "::" syntax. | | Allows property values exposed to the user to be saved and loaded using an external file. Simplifies the process of storing and retreiving the property values. Also works with nested properties using the "::" syntax. |
| | | | |
| − | ==Component Source Code== | + | ==Detailed description== |
| | | | |
| − | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_PropertyManager.fcsx FC_Comp_Source_PropertyManager.fcsx]
| |
| | | | |
| − | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_PropertyManager.fcsx FC_Comp_Source_PropertyManager.fcsx]
| |
| − |
| |
| − | ==Detailed description==
| |
| | | | |
| | | | |
| Line 68: |
Line 64: |
| | | | |
| | | | |
| − | ''<span style="color:red;">No additional examples</span>''
| |
| | | | |
| | | | |
| − | ==Macro reference== | + | ''<span style="color:red;">No additional examples</span>'' |
| | | | |
| − | {| class="wikitable" style="width:60%; background-color:#FFFFFF;"
| |
| − | |-
| |
| − | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| |
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Save'''
| |
| − | |-
| |
| − | | colspan="2" | Saves the registered property values to the config file.
| |
| − | |-
| |
| − | |-
| |
| − | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
| |
| − | | width="90%" style="border-top: 2px solid #000;" | ''Return''
| |
| − | |}
| |
| | | | |
| | | | |
| − | {| class="wikitable" style="width:60%; background-color:#FFFFFF;"
| |
| − | |-
| |
| − | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| |
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Load'''
| |
| − | |-
| |
| − | | colspan="2" | Loads the registered property values from the config file.
| |
| − | |-
| |
| − | |-
| |
| − | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
| |
| − | | width="90%" style="border-top: 2px solid #000;" | ''Return''
| |
| − | |}
| |
| | | | |
| | | | |
| − | {| class="wikitable" style="width:60%; background-color:#FFFFFF;"
| |
| − | |-
| |
| − | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| |
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''RegisterProperty'''
| |
| − | |-
| |
| − | | colspan="2" | Registers a property to be saved or loaded
| |
| − | |-
| |
| − | |-
| |
| − | | width="10%" align="center" | [[File:Fc9-string-icon.png]] - STRING
| |
| − | | width="90%" | PropertyVariable
| |
| − | |-
| |
| − | | colspan="2" | Property variable exposed to the user, highlight property and variable is shown at the bottom of the window.
| |
| − | |-
| |
| − | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
| |
| − | | width="90%" style="border-top: 2px solid #000;" | ''Return''
| |
| − | |}
| |
| | | | |
| | | | |
| | | | |
| | | | |
| − | ==Property reference==
| |
| | | | |
| − | {| class="wikitable" style="width:60%; background-color:#FFFFFF;"
| |
| − | |-
| |
| − | | width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]]
| |
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties'''
| |
| − | |-
| |
| − | |-
| |
| − | | width="10%" align="center" | [[File:Fc9-type-20-icon.png]]
| |
| − | | width="90%" | Filepath
| |
| − | |-
| |
| − | | colspan="2" | Sets the path of the file to write to. $(srcdir) default sets the path to be the same as the Flowcode project path.
| |
| − | |-
| |
| − | | width="10%" align="center" | [[File:Fc9-type-10-icon.png]]
| |
| − | | width="90%" | Filename
| |
| − | |-
| |
| − | | colspan="2" |
| |
| − | |-
| |
| − | | width="10%" align="center" | [[File:Fc9-type-7-icon.png]]
| |
| − | | width="90%" | Show Dialogue On Load
| |
| − | |-
| |
| − | | colspan="2" | Forces the user to check if they are sure before loading saved values.
| |
| − | |-
| |
| − | | width="10%" align="center" | [[File:Fc9-type-7-icon.png]]
| |
| − | | width="90%" | Show Dialogue On Save
| |
| − | |-
| |
| − | | colspan="2" | Forces the user to check if they are sure before overwriting previous values.
| |
| − | |}==Macro reference==
| |
| | | | |
| − | {| class="wikitable" style="width:60%; background-color:#FFFFFF;"
| |
| − | |-
| |
| − | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| |
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Save'''
| |
| − | |-
| |
| − | | colspan="2" | Saves the registered property values to the config file.
| |
| − | |-
| |
| − | |-
| |
| − | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
| |
| − | | width="90%" style="border-top: 2px solid #000;" | ''Return''
| |
| − | |}
| |
| | | | |
| | + | ==Macro reference== |
| | | | |
| | + | ===Load=== |
| | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" |
| | |- | | |- |
| Line 174: |
Line 95: |
| | | | |
| | | | |
| | + | ===RegisterProperty=== |
| | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" |
| | |- | | |- |
| Line 179: |
Line 101: |
| | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''RegisterProperty''' | | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''RegisterProperty''' |
| | |- | | |- |
| − | | colspan="2" | Registers a property to be saved or loaded | + | | colspan="2" | Registers a property to be saved or loaded. The property name should also include the component name e.g. Top level property - "PropVarName" Component property - "ComponentName::PropVarName" |
| | |- | | |- |
| | |- | | |- |
| Line 192: |
Line 114: |
| | | | |
| | | | |
| − | | + | ===Save=== |
| − | | |
| − | ==Property reference== | |
| − | | |
| − | {| class="wikitable" style="width:60%; background-color:#FFFFFF;"
| |
| − | |-
| |
| − | | width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]]
| |
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties'''
| |
| − | |-
| |
| − | |-
| |
| − | | width="10%" align="center" | [[File:Fc9-type-20-icon.png]]
| |
| − | | width="90%" | Filepath
| |
| − | |-
| |
| − | | colspan="2" | Sets the path of the file to write to. $(srcdir) default sets the path to be the same as the Flowcode project path.
| |
| − | |-
| |
| − | | width="10%" align="center" | [[File:Fc9-type-10-icon.png]]
| |
| − | | width="90%" | Filename
| |
| − | |-
| |
| − | | colspan="2" |
| |
| − | |-
| |
| − | | width="10%" align="center" | [[File:Fc9-type-7-icon.png]]
| |
| − | | width="90%" | Show Dialogue On Load
| |
| − | |-
| |
| − | | colspan="2" | Forces the user to check if they are sure before loading saved values.
| |
| − | |-
| |
| − | | width="10%" align="center" | [[File:Fc9-type-7-icon.png]]
| |
| − | | width="90%" | Show Dialogue On Save
| |
| − | |-
| |
| − | | colspan="2" | Forces the user to check if they are sure before overwriting previous values.
| |
| − | |}==Macro reference==
| |
| − | | |
| | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" |
| | |- | | |- |
| Line 234: |
Line 126: |
| | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | | | width="90%" style="border-top: 2px solid #000;" | ''Return'' |
| | |} | | |} |
| − |
| |
| − |
| |
| − | {| class="wikitable" style="width:60%; background-color:#FFFFFF;"
| |
| − | |-
| |
| − | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| |
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Load'''
| |
| − | |-
| |
| − | | colspan="2" | Loads the registered property values from the config file.
| |
| − | |-
| |
| − | |-
| |
| − | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
| |
| − | | width="90%" style="border-top: 2px solid #000;" | ''Return''
| |
| − | |}
| |
| − |
| |
| − |
| |
| − | {| class="wikitable" style="width:60%; background-color:#FFFFFF;"
| |
| − | |-
| |
| − | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| |
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''RegisterProperty'''
| |
| − | |-
| |
| − | | colspan="2" | Registers a property to be saved or loaded
| |
| − | |-
| |
| − | |-
| |
| − | | width="10%" align="center" | [[File:Fc9-string-icon.png]] - STRING
| |
| − | | width="90%" | PropertyVariable
| |
| − | |-
| |
| − | | colspan="2" | Property variable exposed to the user, highlight property and variable is shown at the bottom of the window.
| |
| − | |-
| |
| − | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
| |
| − | | width="90%" style="border-top: 2px solid #000;" | ''Return''
| |
| − | |}
| |
| − |
| |
| − |
| |
| | | | |
| | | | |
| Line 277: |
Line 136: |
| | |- | | |- |
| | |- | | |- |
| − | | width="10%" align="center" | [[File:Fc9-type-20-icon.png]] | + | | width="10%" align="center" | [[File:Fc9-type-10-icon.png]] |
| | | width="90%" | Filepath | | | width="90%" | Filepath |
| | |- | | |- |
| − | | colspan="2" | Sets the path of the file to write to. $(srcdir) default sets the path to be the same as the Flowcode project path. | + | | colspan="2" | Directory path on the system of where to store the file. $(srcdir) is the Flowcode project directory. |
| | |- | | |- |
| | | width="10%" align="center" | [[File:Fc9-type-10-icon.png]] | | | width="10%" align="center" | [[File:Fc9-type-10-icon.png]] |
| Line 296: |
Line 155: |
| | |- | | |- |
| | | colspan="2" | Forces the user to check if they are sure before overwriting previous values. | | | colspan="2" | Forces the user to check if they are sure before overwriting previous values. |
| − | |}==Macro reference==
| |
| − |
| |
| − | {| class="wikitable" style="width:60%; background-color:#FFFFFF;"
| |
| − | |-
| |
| − | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| |
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Save'''
| |
| − | |-
| |
| − | | colspan="2" | Saves the registered property values to the config file.
| |
| − | |-
| |
| − | |-
| |
| − | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
| |
| − | | width="90%" style="border-top: 2px solid #000;" | ''Return''
| |
| | |} | | |} |
| | | | |
| | + | ==Component Source Code== |
| | | | |
| − | {| class="wikitable" style="width:60%; background-color:#FFFFFF;"
| + | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_PropertyManager.fcsx FC_Comp_Source_PropertyManager.fcsx] |
| − | |-
| |
| − | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| |
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Load'''
| |
| − | |-
| |
| − | | colspan="2" | Loads the registered property values from the config file.
| |
| − | |-
| |
| − | |-
| |
| − | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
| |
| − | | width="90%" style="border-top: 2px solid #000;" | ''Return''
| |
| − | |}
| |
| | | | |
| − | | + | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_PropertyManager.fcsx FC_Comp_Source_PropertyManager.fcsx] |
| − | {| class="wikitable" style="width:60%; background-color:#FFFFFF;"
| |
| − | |-
| |
| − | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| |
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''RegisterProperty'''
| |
| − | |-
| |
| − | | colspan="2" | Registers a property to be saved or loaded
| |
| − | |-
| |
| − | |-
| |
| − | | width="10%" align="center" | [[File:Fc9-string-icon.png]] - STRING
| |
| − | | width="90%" | PropertyVariable
| |
| − | |-
| |
| − | | colspan="2" | Property variable exposed to the user, highlight property and variable is shown at the bottom of the window.
| |
| − | |-
| |
| − | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
| |
| − | | width="90%" style="border-top: 2px solid #000;" | ''Return''
| |
| − | |}
| |
| − | | |
| − | | |
| − | | |
| − | | |
| − | ==Property reference==
| |
| − | | |
| − | {| class="wikitable" style="width:60%; background-color:#FFFFFF;"
| |
| − | |-
| |
| − | | width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]]
| |
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties'''
| |
| − | |-
| |
| − | |-
| |
| − | | width="10%" align="center" | [[File:Fc9-type-20-icon.png]]
| |
| − | | width="90%" | Filepath
| |
| − | |-
| |
| − | | colspan="2" | Sets the path of the file to write to. $(srcdir) default sets the path to be the same as the Flowcode project path.
| |
| − | |-
| |
| − | | width="10%" align="center" | [[File:Fc9-type-10-icon.png]]
| |
| − | | width="90%" | Filename
| |
| − | |-
| |
| − | | colspan="2" |
| |
| − | |-
| |
| − | | width="10%" align="center" | [[File:Fc9-type-7-icon.png]]
| |
| − | | width="90%" | Show Dialogue On Load
| |
| − | |-
| |
| − | | colspan="2" | Forces the user to check if they are sure before loading saved values.
| |
| − | |-
| |
| − | | width="10%" align="center" | [[File:Fc9-type-7-icon.png]]
| |
| − | | width="90%" | Show Dialogue On Save
| |
| − | |-
| |
| − | | colspan="2" | Forces the user to check if they are sure before overwriting previous values.
| |
| − | |}
| |