The new WonderBrush
Some of you may know that for quite some time, on and off, I am working on a rewrite of WonderBrush, the graphics tool that comes bundled with Haiku releases. Since I have last demonstrated the prototype publically, I have occasionally found the time to work on it some more. I’ve ported over most brush tool related code from the original WonderBrush. And in the past weeks, I have specifically worked on a new text tool (written from scratch).
The new text tool will address some of the shortcommings of the one in the original WonderBrush: On canvas editing and support for style ranges. In the current WonderBrush, a text object has one global font, font size, color and so on. And editing text works indirectly by entering it into a separate BTextView in the tool setup area. Both of these issues will be addressed by the new text tool. Different fonts, font sizes, colors and so on can be applied to individual ranges of the text and editing can happen directly on the canvas. Generally, I think a separate, regular text widget to enter the text is not such a bad idea. The text object on the canvas may be hard to see and read, either because it is partially behind other objects on the canvas, or because of applied effects or simply the current zoom setting of the canvas. So there is still a dedicated text entering widget inside the tool configuration area.
But progress on WonderBrush comes also from another direction. Ingo is on bord again :-). He recently picked up a lot of experience coding in the Qt framework, and is working on a port of WonderBrush to the tool kit. To keep the effort of this undertaking in check, he is often directly importing public Haiku classes into the port. The majority of the WonderBrush code stays unmodified, targeting the Haiku API only. Some of that API may just be implemented on top of Qt where it is necessary for the port. It’s a very practical approach that is already showing good results, although the Qt port is still far behind the Haiku version.
During the upcoming BeGeistert event in Düsseldorf, I plan to demonstrate the progress on the WonderBrush rewrite and the Qt port.
Unfortunately, at the current rate of development, it will still be a while before the new WonderBruch can replace the old one. But when it does, it will offer some cool professional features that are lacking from a lot of graphics tools for other platforms:
- Nested layer tree
- Full 16-Bit per color channel, linear RGB internal color format
- Heavily multi-threaded design from the ground up
- Powerful document model featuring global styles and global resources
I look forward to meeting fellow Haiku enthusiast and developers at BeGeistert, to celebrate the old times and the future! :-)
- The new WonderBrush
- How to transform the app_server code to use compositing
- Deskbar rewrite
- GNOME 3 and the focus on usability
- Overdue progress report on Media Kit and MediaPlayer
- Managing multiple documents in applications
- WebPositive gets a bit more stable
- WebPositive gets polishing
- WebPositive matures
- WebPositive emerges