Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Add clipboard functionality (cut/copy/paste) to symbol and package editors #442
This implements the clipboard functionality for the library editor. It allows to copy symbol elements (pins, polygons etc.) between symbols, and footprint elements (pads, polygons etc.) between packages. This also works across different libraries, i.e. it's possible to copy elements from one library to another.
I even spent some time to copy the elements as an image to the clipboard, so after pressing CTRL+C you have nice images like these in your clipboard:
Isn't this cool?
The only problem so far is that footprint pads can't be pasted if there is no corresponding package pad available, or if it is already used. That's a limitation of the current file format (a footprint pad must be assigned to a package pad). This might be fixed in a future file format version...
Fixes the first two tasks of #13.
But if there are 8 package pads available, and you create a footprint pad, can you copy-paste that 7 times so that it uses the next free package pad every time?
No, currently not. Basically because it could be dangerous as the user don't see to which package pad a footprint pad is connected to. The only way to see it is to open the pad properties dialog. So the pads might not be connected to the package pad you would expect. In addition, it's not clear which the "next free package pad" is - what order of pads should be used?
I'm not sure which variant would be better:
I decided to go with variant 2. Would you prefer variant 1 @dbrgn?
Yeah, maybe 2 is the safe choice for now.
I think it would be good if pads could be unconnected (with a big warning/error in the messages list). One reason for that is that right now you can't swap two package pads because you cannot temporarily disconnect one of them, and you can't have two footprint pads with the same package pad either.