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

File import #49

Merged
merged 3 commits into from
Aug 30, 2020
Merged

File import #49

merged 3 commits into from
Aug 30, 2020

Conversation

jmaglic
Copy link
Member

@jmaglic jmaglic commented Aug 30, 2020

Resolves #39
Resolves #42

If no file path textboxes are empty, the software attempts to import all
files after file selection.

Resolves: #42
When GUI elements are disabled using the enableGuiElements() function,
all interactable GUI elements are disables. When they are reenabled,
only those elements are enabled, that have their default state set to
true.

The default states of all interactable GUI controls is stored in a map
inside the MainFrame class in base.h. The default states can be obtained
by using the GUI element object as key.

The map is initialised in base_init.cpp. A function is run when the
software is started, that initialised the map. The default accessibility
of all GUI elements has to be set manually in this function.

Afterwards, when the accessibility of a widget changes, its default
state can be set with setDefaultState(wxWindow*, bool). A set of toggle
functions have been added to base_event.cpp, that act as wrapper
functions for setDefaultState().
Copy link
Collaborator

@rlavendomme rlavendomme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes seem to work as intended. I didn't detect any bug while testing.
It compiles successfully with mingw gcc on windows 10.

@jmaglic jmaglic merged commit 8b70b4f into master Aug 30, 2020
@jmaglic jmaglic deleted the file-import branch August 30, 2020 19:45
jmaglic added a commit that referenced this pull request Mar 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Atom radii aren't imported after atom file selection Separate GUI control from GUI settings
2 participants