Skip to content

Commit

Permalink
Merge pull request #42 from jontaylor010/next
Browse files Browse the repository at this point in the history
GUI changes
  • Loading branch information
KedoKudo authored Dec 15, 2022
2 parents 06f2e53 + 7122bb9 commit 55d00d4
Show file tree
Hide file tree
Showing 4 changed files with 6,840 additions and 312 deletions.
18 changes: 18 additions & 0 deletions reflectivity_ui/interfaces/event_handlers/main_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,24 @@ def empty_cache(self):
self._data_manager.clear_cache()
self.cache_indicator.setText("Files loaded: 0")

def hide_sidebar(self):
if self.main_window.leftEntries.isHidden():
self.main_window.leftEntries.show()
else:
self.main_window.leftEntries.hide()

def hide_run_data(self):
if self.main_window.runDataFrame.isHidden():
self.main_window.runDataFrame.show()
else:
self.main_window.runDataFrame.hide()

def hide_data_table(self):
if self.main_window.frame_2.isHidden():
self.main_window.frame_2.show()
else:
self.main_window.frame_2.hide()

def open_file(self, file_path, force=False, silent=False):
# type: (str, Optional[bool], Optional[bool]) -> None
r"""
Expand Down
9 changes: 9 additions & 0 deletions reflectivity_ui/interfaces/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,15 @@ def initialize_instrument(self):

self.file_handler.populate_from_configuration()

def hide_sidebar(self):
self.file_handler.hide_sidebar()

def hide_run_data(self):
self.file_handler.hide_run_data()

def hide_data_table(self):
self.file_handler.hide_data_table()

def hide_unsupported(self):
"""
Hide what we don't support
Expand Down
Loading

1 comment on commit 55d00d4

@github-actions
Copy link

Choose a reason for hiding this comment

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

GitLab pipeline for quicknxs2-dev has been submitted for this commit: "https://code.ornl.gov/sns-hfir-scse/deployments/quicknxs-deploy/-/pipelines/313802"

Please sign in to comment.