Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Draft
wants to merge 40 commits into
base: develop
Choose a base branch
from

Conversation

Xuan-Zheng05
Copy link

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 #885.

@Xuan-Zheng05 Xuan-Zheng05 requested a review from a team as a code owner July 26, 2024 20:09
@rtownson rtownson self-assigned this Aug 6, 2024
@rtownson rtownson marked this pull request as draft August 6, 2024 15:22
@ftessier ftessier added this to the Release 2025 milestone Aug 10, 2024
rtownson and others added 21 commits September 17, 2024 15:45
Initial commit with very basic groundwork for a text editor in egs_view.
Adds some syntax highlighting, and begins building a structure in
geometries to return input keys. Includes debug statements and nonsense
behaviour.
Initial commit with very basic groundwork for a text editor in egs_view.
Adds some syntax highlighting, and begins building a structure in
geometries to return input keys. Includes debug statements and nonsense
behaviour.
Add support for all of the geometries in the egs_view editor.
Townson and others added 19 commits September 17, 2024 16:41
Recent changes to egs_view were missing some necessary additions to the
ui file. These have been included, along with a couple minor changes.
Also set the compiler flags to use std=c++14 instead of std=c++11.
Add egs_editor support for iaea_phsp_source. Also remove the c++14 flag
for egs_view since it should already be included for all C++ in order
for egs++ to compile.
Remove or improve debug messages. Add handling of the EDITOR_DEBUG
define for egs_editor debugging.
Add auto-completion for apps, ausgab objects, materials and run control. Add dropdown for user to select application in egs_editor. Full support for pegsless materials not quite done.
@rtownson rtownson force-pushed the add-egs-view-editor3 branch from 88fda0d to 99e2cbb Compare September 18, 2024 13:54
@rtownson
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants