About UIs and the future of Pida

As Pida was started, there where two choices for the Toolkit in use. Gtk and Qt3 where available and gtk was the better choice at that time.

The years passed and so did the choices changed. The development on Gtk was rather slow compared to Qt and with the Qt4 a really major step was done which shifted the best choice to Qt.

Also looking at the available text widgets the choices are even more clear. GtkSourceView? got only very little improvement while with kate and other widgets are getting much improvement β€” while development on medit started stalling.

Now, while we are at it, why switch from one toolkit to another and not use the oportunity to make things right. So, the overall plan is to separate the gui elements from the logic first, and then start implementing a second gui in Qt.

With the XEmbed support in both toolkits, it as already possible to mix widgets with each other, but using it is rather ugly. For example can widget not be reparented without breaking the connection, but both run in the same main loop, which is a good thing.

As Qt does not provide such a cool widget as we use for the main window currently, this needs to be implemented first. Best would be in C++ so other projects could use it, too.

Investigation showed however, that it seems not to be impossible that a real mixing of widgets can be accomplished. We are already in the same mainloop on a X-Server at least. The best thing would be if we would find a way to use gtk widgets in a qt application.

This redesign is planned for the 0.7 release and 0.6 will become a long living gtk branch.

Comments

1. ubersoldat -- 2009-09-03 11:02

I've been using Pida for some time now and I really like it, great job.

"This redesign is planned for the 0.7 release and 0.6 will become a long living gtk branch."

So the gtk code will also be maintained or you guys are planning on focusing only on Qt?

2. poelzi -- 2009-09-03 12:28

the new design will be frontend independent, so a gtk and qt frontend will exist. how long and good the gtk frontend will stay is another question. gtk makes the development quite painful sometimes. please be aware that we will not use kde so no worry about performance ;-) also recent qt looks not distinguishable from gtk apps on a gtk desktop β€” so in my opinion it does not matter what toolkit a app is based on…