- en version
- version fr
english version
There's a problem when developing an extension for Firefox Mobile (Fennec), the UI is really restricted, there's not a lot of place where we can insert a button (for example).
So, here's a proposal, an additional toolbar, where anybody can
insert what they want, like a button.
This toolbar appears (at the bottom of main window) with a button
situated in the right panel, or with the CTRL+E shortcut key, for the
devices who have a keyboard.
Then this toolbar automatically disapears after a short delay.
Here's a little screencast:
direct links to the video:
It's easy to use this toolbar from another extension, you have simply to overlay it:
<?xml version="1.0"?>
<overlay xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<window id="main-window">
<hbox id="jolitoolbar" hidden="true">
<scrollbox id="jolitoolbar-scrollbox">
<button id="mytool" label="my tool" oncommand="myToolCommand();"/>
</scrollbox>
</hbox>
</window>
</overlay>
Don't forget to put the attribute hidden="true"
on the toolbar element, this will hide it if JoliToolbar is not installed.
An example of a such extension is available in the download page
(sampletool.xpi).
And my new extensions for Fennec (GoTranslate, miniCards and TVzz-m)
use it as well.
Developers, end users, please let me know what you think about this proposal, even negative ;) .
version française
Il y a un problème quand on dévelope une extension pour Firefox Mobile (Fennec), l'interface est vraiment réduite, il n'y pas beaucoup de place où insérer un bouton (par exemple).
Et donc, voici une proposition, une barre d'outil additionnelle,
où tout le monde peut insérer ce qu'il veux, comme un bouton.
Cette barre apparait (au bas de la fenétre principale) via un bouton
situé dans le panneau de droite, ou avec le raccourci clavier
CTRL+E pour les appareils qui possèdent un clavier.
Puis la barre disparait automatiquement après un court délai.
En vidéo çà donne çà:
direct links to the video:
Il est facile d'utiliser cette barre depuis une autre extension, vous avez juste à appliquer un overlay sur elle:
<?xml version="1.0"?>
<overlay xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<window id="main-window">
<hbox id="jolitoolbar" hidden="true">
<scrollbox id="jolitoolbar-scrollbox">
<button id="mytool" label="my tool" oncommand="myToolCommand();"/>
</scrollbox>
</hbox>
</window>
</overlay>
N'oubliez pas de mettre l'attribut hidden="true"
sur l'élément de la barre, celà la cachera si JoliToolbar n'est pas installée.
Un exemple d'une telle extension est disponible depuis la page de
téléchargement.
Et mes nouvelles extensions pour Fennec (GoTranslate, miniCards et TVzz-m)
l'utilisent également.
Développeurs, utilisateurs finaux, s'il vous plait, dites moi ce que vous pensez de cette proposition, meme négatif ;) .