klayout icon indicating copy to clipboard operation
klayout copied to clipboard

Feature request: cell view titles

Open klayoutmatthias opened this issue 4 years ago • 1 comments

For details see this discussion: https://www.klayout.de/forum/discussion/1733/changing-layoutview-title#latest

klayoutmatthias avatar Mar 10 '21 22:03 klayoutmatthias

I have looked in that implementation and there is something like this already. It's the cellview name and it's already serialized into the session.

However, there are some limitations:

  • Changing the name is not immediately reflected in the UI in all cases. This is a bug.
  • The name is actually not the cell view's name, but the name of the layout loaded. It can be changed, but will be reverted on "save_as". There is also the option to share the same layout across multiple cell views and in this case, the name is shared too. So it's not exactly a "cell view title".
  • The name is used in many places to identify the layout. Sometimes it identifies the layout, sometimes the cellview.
  • The layout view's title adds the cell name in square brackets to indicate what is shown in the view. That seems fair as this is the important information for someone editing a specific cell.

So adding another title to the cell view would add a source of confusion: In cases where the layout is addressed, the cell view title cannot be used. So essentially there would be two titles for almost the same item.

My suggestion is to use the name for identifying a *layout". It can be modified (the update flaws should be fixed) and add a way to configure how the cellview's title is constructed from the cellview content.

klayoutmatthias avatar Mar 22 '21 17:03 klayoutmatthias