klayout icon indicating copy to clipboard operation
klayout copied to clipboard

Marker Database Browser doesn't keep Cell/Category tab size persistent

Open stefanottili opened this issue 1 year ago • 7 comments

This is an enhancement request.

image

It would be helpful if

a) the Cell/Category would be resized to display the full Cell/Category text. There is ample of space available, now used for Count and/or b) the Cell/Category tab size would be persistent. Currently it has to be resized every time klayout gets started.

stefanottili avatar Dec 12 '23 22:12 stefanottili

If this get's addressed, it would be very helpful if the "By Category" would be either always expanded or that the expand state of “by category” and “by cell” would be persistent. This will save yet another mouse click that is currently needed every time errors are viewed.

stefanottili avatar Feb 29 '24 04:02 stefanottili

I just tried to reproduce the problem, but at least on Ubuntu-22 with Qt 5.15 the browser window's dimensions and splitter section sizes are persisted (that is part b).

I am using the master branch currently.

This is what I do:

  • I load some layout
  • A create a marker database with "Shapes to markers"
  • I adjust the dimensions of the marker browser window's elements
  • I exit KLayout

When I reopen and do "Shapes to markers" again, the marker browser window opens with the previous geometry.

I will check on Windows and 0.28.17, if the problem exists there.

klayoutmatthias avatar Mar 23 '24 20:03 klayoutmatthias

Looks like the problem is Windows specific. On Windows, the column widths are not persisted :(

klayoutmatthias avatar Mar 23 '24 20:03 klayoutmatthias

I read rdb via command line, but that shouldn’t matter. So it seems to be a Mac issue too. With both homebrew 5.15.13 and 6.6.2_1 the tab splitter and the tree strings are not persistent.

stefanottili avatar Mar 24 '24 00:03 stefanottili

I need a little more time to debug the problem. It is likely that this is a Qt issue or I am using "restoreState" incorrectly.

I will schedule that for 0.29.1.

Matthias

klayoutmatthias avatar Mar 29 '24 12:03 klayoutmatthias

The closest way I came to a solution is by explicitly setting the section resize mode to "interactive". I assume that on some OS (like Windows), the resize mode defaults to "automatic", hence this problem.

klayoutmatthias avatar Apr 29 '24 17:04 klayoutmatthias

Sorry, need to shift milestone again. No clue yet :(

klayoutmatthias avatar Jun 08 '24 20:06 klayoutmatthias

I build klayout with homebrew qt 6.7 on MacOS and the tab sizes are persistent now !!! Yay. So this bug report can be closed.

It still would save me one click every time when the "Category" would remember that it was expanded last time. Should I file a separate enhancement request ?

stefanottili avatar Jul 06 '24 17:07 stefanottili