Сегодня застал на #kde активно чатящегося aseigo. Его как раз спрашивали про поддержку макосовских виджетов в Плазме, на что он отвечал, что поддержка-то уже есть (кстати, ещё с 4.1), но никакие динамические действия в них пока что не поддерживается, ибо ни у кого ещё не доходили руки реализовать поддержку их JavaScript API.
Вы, возможно, помните, что я ещё в марте сообщал о начале поддержке Mac OS-виджетов, а позже приводил скриншот виджета с Чаком Норрисом, который в то время украшал половину блогов на KDE Planet. Видимо, это оказался самый интересный Mac OS-виджет без JavaScript’а. Понятное дело, когда я сам начал тестировать Mac OS-виджеты, то я ставил всякие калькуляторы и погодные информеры, которые ничерта не работали.
<aseigo> xjunior: it already works today, but as you’ve probably noticed we don’t have an implementation of their js stuff
<aseigo> xjunior: what would be awesome is if someone (like you =) who knows JS well took their JS API and reimplemented it so we could ship it with palsa
<aseigo> xjunior: loading up the js files into the runtime is trivial
<aseigo> xjunior: hm.. and i’m assuming that the macos widget js files aren’t open source ;)
<xjunior> aseigo, so, we would need to make some reverse engineering right?
<aseigo> xjunior: well, i assume that the API is well documented
<aseigo> xjunior: so it’s just a matter of taking the API and implementing methods that do what it says it does =)
<xjunior> aseigo, well… can I implement it testing on a normal browser such as Arora or Firefox and then send it to you or open a ticket on KDE ?
<aseigo> if it was FOSS licensed, then we could have 100% support tomorrow, just as we have with google gadgets
<aseigo> xjunior: yep
<xjunior> aseigo, good :D
<xjunior> aseigo, I’ll take a look on this
Что, Google Gadgets? Да, оказывается, в SVN-версии Plasma уже реализована их поддержка! При чём в отличии от Mac OS X-виджетов нашлись люди, которые реализовали их полную поддержку.
<LXj> aseigo, google gadges? you support it now?
<aseigo> LXj: yep, 100%
<aseigo> LXj: some of the google gadget guys contributed it
<aseigo> LXj: as is edje (englightenment 17)
<aseigo> last thing we’re working on for google gadgets is that ability to have the Add Widgets dialog browse their store
Я, кстати, не преминул сказать aseigo, что у меня в системе куча неработающих виджетов, от которых я не могу избавиться, потому как Plasma сейчас не предоставляет такую функцию. В ответ он мне сказал, что в коде-то такая функция есть, но в GUI она пока что не отображена. Поначалу он предложил мне самому это исправить, но потом признался, что сам хотел бы сделать ре-дизайн соответствующего диалога
<aseigo> LXj: if you know C++ i can point in the direction of where to go ;)
<aseigo> LXj: the code to remove packages is already there, just needs to be exposed in the GUI
<aseigo> installer->uninstallPackage(package, packageRoot)
<aseigo> LXj: though i want to re-do the add widgets dialog as well (where this belongs, UI wise) so .. hm..
<aseigo> and have Download from Internet, Install from file and Remove
<aseigo> or we could turn that into a button that just says “Widget Manager” or something better than that ;) and have a window that lets you download, install and remove
Комментарии