-
Notifications
You must be signed in to change notification settings - Fork 13
Generating the Master Settings File
mborish edited this page May 9, 2023
·
1 revision
The mss_for_json.ods
file, located in the root directory of the project, defines all available settings and their related info like display name, type, tooltip, dependencies, etc. This file is used to generate the json in resources/configs/master.conf
that Slicer 2 parses.
To create or edit a setting:
- Make the necessary changes to the
mss_for_json.ods
file. - Run the CMake by clicking "Build" > "Run CMake" in Qt Creator (or your preferred IDE)
- Verify that
master.conf
has changed as you expect
DO NOT edit master.conf
directly.
Note: Settings should no longer be generated manually.
- Make the desired changes to spreadsheet document in root of repo. This should be mms_for_json.ods
- In Excel/Open Office, export the spreadsheet as a CSV file.
- Goto: https://www.csvjson.com/csv2json and open up the CSV file.
- On the output, select Hash.
- Generate the json and save the file to the repo under resources/configs/master.conf