8000 refactor/viewdock/show-hide-models by pRottinghuis · Pull Request #192 · RBVI/ChimeraX · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

refactor/viewdock/show-hide-models #192

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

Merged

Conversation

pRottinghuis
Copy link
Contributor

Refactor: Docking Model Visibility Via Table Row Selection

Refactor the ViewDock tool to simplify model visibility control via table row selection. This change removes the need for dedicated "Show All", "Hide All", and "Show" column UI elements.

Changes

  • Removed:

    • "Show All" and "Hide All" buttons
    • The "Show" column from the ViewDock structure table
    • MODEL_DISPLAY_CHANGED trigger handler (no longer necessary)
  • Refactored:

    • Model display is now fully controlled by table selection
    • table_selection_changed method added to respond to selection changes
    • New method update_structure_displays updates visibility of selected/unselected models
  • Improved:

    • Tool run() calls for show/hide commands are now made with log=False to prevent log clutter from frequent selection changes

Remove the "Show all" and "Hide all" buttons as part of refactor to make table row selection control visibility.
Purpose: refactoring the viewdock tool to use table selection for model display.

- remove the "Show" column from the viewdock tool
- remove the "MODEL_DISPLAY_CHANGED" trigger handler which was associated with the "Show" col.
Purpose: refactoring the viewdock tool to use table selection for model display.

- add table_selection_changed function between the table callback an updating the model description
- table_selection_changed function can handle model display adjustment
Purpose: refactoring the viewdock tool to use table selection for model display.

- new method update_structure_displays which accpets structures to display and hides all other docking structures.
- table_selection_changed method calls update_structure displays.
Hide the show/hide commands from the log when the ViewDock tool changes selection. Table gets scrolled a lot and this change prevents the log from getting cluttered.
@e-pettersen e-pettersen merged commit 9980a39 into RBVI:develop Jun 2, 2025
4 of 5 checks passed
@pRottinghuis pRottinghuis deleted the refactor/viewdock/show-hide-models branch June 3, 2025 02:22
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
0