Skip to content

Add save to Clipboard#20

Open
valentin-seitz wants to merge 2 commits intobsc-performance-tools:masterfrom
valentin-seitz:add-save-toclipboard
Open

Add save to Clipboard#20
valentin-seitz wants to merge 2 commits intobsc-performance-tools:masterfrom
valentin-seitz:add-save-toclipboard

Conversation

@valentin-seitz
Copy link

@valentin-seitz valentin-seitz commented Mar 14, 2025

This MR adds the functionality to save a Timeline window and the legend thereof to the clipboard.
Its extremely useful when working with larger traces and preparing slides as the current Save normally writes the image to the cluster filesystem. These files then need to be copied over manually.

I only tested it on my machine (standard Ubuntu22.04.5) and Marenostrum 5, but there it works like charm.

I also added some changes to prevent code replication in the saveImage functionality.
For the Legend there is still some duplicate code, but it would require a bigger refactoring of the current classes to remove it.
If you require this before this MR is accept i can give it a shot :)
Just let me know! :)

A preview:
image

@valentin-seitz valentin-seitz changed the title Add save toclipboard Add save to Clipboard Mar 14, 2025
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.

1 participant