Combining schematic and library editors into one

From @ouabache on Thu Oct 18 2018 17:05:56 GMT+0000 (UTC)

Is there a reason why LibrePCB has two separate programs for these editors? They have a huge overlap between them and some of the features in the library editor would also be useful to have in the schematic editor. Most schematic editors have the ability to draw graphics like lines,circles and shapes but LibrePCB only has lines. Both editors should have these.

Combining them into one would help it when you add design hierarchy and you have to sync schematic sheets with their symbols.

John Eaton

Copied from original issue: https://github.com/LibrePCB/librepcb-rfcs/issues/30

From @ubruhin on Thu Oct 18 2018 19:27:48 GMT+0000 (UTC)

> Is there a reason why LibrePCB has two separate programs for these editors?

Actually these aren’t two programs, these are just two windows in the same program :wink: One reason for having separate windows is to clearly distinguish between library management and project management.

They have a huge overlap between them and some of the features in the library editor would also be useful to have in the schematic editor.

Maybe it looks like there is a huge overlap, but technically there is a big difference between a symbol and a schematic. Using separate windows helps to reduce the complexity of the code and was much easier to implement. At least with the current software architecture - maybe this changes some time (for example when adding support for hierarchical sheets, as you already mentioned).

Most schematic editors have the ability to draw graphics like lines,circles and shapes but LibrePCB only has lines. Both editors should have these.

Actually I just didn’t implement circles and polygons because they have very low priority :wink: I think it shouldn’t be too hard to add support for these shapes in schematics. But it’s not just a matter of the editor, also the underlying data structure currently misses support for such shapes.