nrc-cnrc / EGSnrc

Toolkit for Monte Carlo simulation of ionizing radiation — Trousse d'outils logiciels pour la simulation Monte Carlo du rayonnement ionisant
http://nrc-cnrc.github.io/EGSnrc
GNU Affero General Public License v3.0
242 stars 146 forks source link

Add egs_view egsinp editor with autocompletion for all egs++ apps #1164

Open Xuan-Zheng05 opened 4 months ago

Xuan-Zheng05 commented 4 months ago

Add a new tab in egs_view that allows for editing and saving egsinp files for egs++.

The new code all over the egs++ library provide a structure by which an external library like egs_view can extract all of the input parameters. It's used for input validation, syntax highlighting, autocompletion, etc.

Recent changes include support for application inputs, run control, transport parameters. Pegless material support is in progress.

Note that this includes an astyle run on all the sources, geometries and ausgab objects, so it looks like there are more changes than there are. If you view the diff while hiding whitespace, then you will see the real changes.

This replaces PR https://github.com/nrc-cnrc/EGSnrc/pull/885.

rtownson commented 2 months ago

Rebased on develop.

This PR still needs a bit of love to finish off. Double checking the tooltips for consistency & usefulness, showing the 'current application' in the editor, and improving the names of the examples in the drop-down.