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

CSSTUDIO-1761 (Part 2/2) Functionality to save the layout of an individual window #2551

Merged
merged 11 commits into from
Feb 27, 2023

Conversation

abrahamwolk
Copy link
Collaborator

@abrahamwolk abrahamwolk commented Feb 16, 2023

CSSTUDIO-1761 asks for implementation of:

  1. The functionality to save the layout of individual windows.
  2. The functionality to add windows that have been saved in this way to the current layout.

This merge-request implements point 1. Merge-request #2550 implements point 2.

The implemented save-functionality is accessed through the added menu item "Save Layout of Containing Window As..." in the context menu that appears when one right-clicks on a tab.

In order to enable code-sharing between the implemented functionality and the existing functionality to save a complete layout ("Window" -> "Save Layout As..."), the class SaveLayoutMenuItem was renamed to SaveLayoutHelper, its methods were turned into static methods, and its inheritance from Menuitem was removed.

…t from "Application" to "PhoebusApplication".
…m the constructors of "DeleteLayoutsMenuItem" and "SaveLayoutMenuItem" by using "PhoebusApplication.INSTANCE" instead.
…saveLayout() and make saveLayout() "public". Add call to save_layout.setOnAction() in "PhoebusApplication". Remove the helper function MementoHelper.saveStages().
… the menu that appears when one right-clicks on a tab.
…ages to be saved. This prevents an unrelated window from being focused when saving the layout using "Save Layout of Containing Window".
…per", remove the inheritance of "SaveLayoutHelper" from the class "MenuItem", and make all the methods of "SaveLayoutHelper" "static".
…item to the bottom of the menu that appears when one right-clicks on a tab.
@abrahamwolk abrahamwolk requested a review from kasemir February 16, 2023 08:28
@abrahamwolk abrahamwolk changed the title CSSTUDIO-1761 (Part 2/2) CSSTUDIO-1761 (Part 2/2) Functionality to save the layout of an individual window Feb 16, 2023
@abrahamwolk abrahamwolk merged commit b6ef659 into master Feb 27, 2023
@abrahamwolk abrahamwolk deleted the CSSTUDIO-1761-part2 branch February 27, 2023 08:49
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.

2 participants