The layer GUI is almost done, it needs support for DxfLinePatterns now.
This widget allows to select a layer to draw entities, add new ones, delete them and modify them.
Instead of using in Lua
we should use
that will prevent crashes when the layer doesn't exist.