Sliptronic has been giving me a lot of feedback lately, and I am trying to squash the bugs as fast as he puts them on my desk, It’s kinda fun working this way and I am very grateful he does test CADuntu and provides feedback. So today I have been working on getting the screen properly updated after a entity is de-selected. There are/many of these sort of issues because the way QCad used to renders on the screen isn’t supported by Qt4 anymore. Mostly notiably XOR operations during drawing and in Qt3 3 it was possible to draw outside of the paint event. With Qt4 all this work has been brought inside the paint event. For this, 3 QPixmaps where created:
- Layer 1 -> Draws grid and paper, basically the bottom layer
- Layer 2 -> Draws the actual drawing
- Layer 3 -> Draws the overlay, items that are currently in action like moving and drawing of lines, but also the Snapper and selection boxes.
This will speed up overlay performance of CADuntu by not drawing everything over an over again unless we have to. Second, by moving this all in the paintEvent we can take advantage of graphics acceleration.
So, today I worked on getting the [Edit] menu fixed with proper check marks for [Grid], [Draft] and [Status bar] and with accelerators so they can be accessed through they keyboard commands.
On last item I made today, was a colored box with alpha layer selection of entities. This looks a lot better, and I feel it’s much more clear then the original cyan colored rectangle. Here is a small video that snow’s that in action : http://screencast.com/t/MzMyYzg5O