[PD] gui toolkits
jancsika at yahoo.com
Wed Dec 24 06:18:23 CET 2014
Hi list,I've been investigating other guis as possible replacements for tcl/tk gui. A few reasons:* tk is slow to redraw
* no anti-aliasing except on OSX* poor support for theming* poor support for standard image formats* binary alpha channel* limited control of font properties on canvas
* lack of proper canvas zooming* non-standard file save/open dialogs* lack of common gui-toolkit tools like tooltips and rich text
* too much bit-rot in third-party libraries to work around all the above
But as it turns out, it's fairly difficult to find a decent replacement for tk canvas:* Gtk is a moving target and has reportedly poor documentation and poor community attitudes when trying to use it with OSX and Windows* Qt's "Qt Quick/QML" approach doesn't include Bezier curves or even lines as fundamental items (and they won't benefit from Qt's graphics acceleration if you add them manually). Probably related-- it seems to be geared mainly toward mobile apps. Desktop components seem to have been tacked on as an afterthought.
* Qt's QGraphicsView _seems_ to be deprecated in favor of QML. (Nobody has ever stated that it is deprecated, but it certainly doesn't seem to be getting the same advertising and development effort as QML.) But it looks to have everything needed for a Pd canvas.
* Nearly every other toolkit has cross-platform issues that make it a pain to use with one or more OSes
There's also this:
with a nice short introduction here:
What you should know before starting node-webkit| Do Great Things - 叶玎玎
Of course the _big_ problem is that node-webkit itself currently weighs in at 99M for linux amd64 (37M zipped). There doesn't seem to be a Debian package for it (and I'm not sure if there could be, given how it wraps around the Chromium browser).
Anyway, the only viable choices I see so far are:* Qt (through QGraphicsView or QML for tk canvas replacement)* node-webkit
Of course if someone with the knowledge and energy to do this the "right way" has any suggestions, I'm all ears. I have the inkling that if I could employ a full-time dev to do my bidding then Qt Quick would the "right way" to go-- it's in Debian, is cross-platform, well-documented, and it certainly has enough features for Pd's canvas editing. But I don't know how to retrofit a c program like Pd with Qt, nor how to replace Pd's current string-based communication with whatever one is supposed to use to do that.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Pd-list