#14580 closed enhancement (fixed)

preserve docked tool sizes

Reported by: guillaume.gaullier@… Owned by: Eric Pettersen
Priority: moderate Milestone:
Component: UI Version:
Keywords: Cc: Elaine Meng, chimerax-programmers
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

Hi Guillaume,

As you have observed, for docked tools ChimeraX only preserves which side the tool was docked to and whether it was tabbed with other tools. It might be possible to preserve the size as well, but the initial tool-placement code is pretty complex and I'm not 100% sure that the Qt call (QMainWindow::resizeDocks) will actually produce the desired outcome. There are also issues with producing the desired graphics window size from the user's preferences and when restoring from a session. Nonetheless, I will open a enhancement-request ticket in our bug-tracking database, with you cc'ed, and will try to find time to investigate soonish.

--Eric

Eric Pettersen
UCSF Computer Graphics Lab

On Feb 13, 2024, at 12:46 AM, Guillaume Gaullier via ChimeraX-users <chimerax-users@…> wrote:

Hello chimerax-users,

I recently started using ChimeraX in more custom ways for specific analyses, for which I need several tools displayed at once. I need some docked and others floating. So the "Save tool position" option is very helpful.
However, it saves window size only for floating tools, not docked ones, so I have to resize the docked tools at every restart (their position is saved correctly, but not their size relative to the main ChimeraX window). This happens for the model panel and log, that I have docked to the right of the 3D display: they systematically start much wider than I want (and than I resized them to last time I started ChimeraX). This doesn't happen for a custom button panel that I have docked to the right of the toolbar (but maybe because the command file generating the panel sets a fixed size explicitly?). I have not checked whether this happens with other tools.

Is this normal behavior? If so, is there any way I can make docked tools remember not only their position but also their size? A quick search in the documentation didn't answer this question.

Thank you,

Guillaume

Change History (1)

comment:1 by Eric Pettersen, 20 months ago

Resolution: fixed
Status: assignedclosed

Okay, I preserve the docked tool's size as best I can, though it seems to only restore width for tools docked on the side (and presumably the height if any were ever docked on the top/bottom).

Change: https://github.com/RBVI/ChimeraX/commit/ced764db00bed4fa8fb67c7fee149553383e37b7

Note: See TracTickets for help on using tickets.