[SàT dev] [en] XMLUI now manages dialogs

Goffi goffi at goffi.org
Mer 13 Aou 14:53:10 CEST 2014


G'day,

a short technical note to say that XMLUI, the intern interface 
description language, now manages classical dialogs. Some remarks about 
this:
	- there is a distinction between "message" and "note" dialogs:
		* a message is an important message which need use action (usually a 
popup wich need a click on "OK" button).
		* a note is a message which must just be notified, a frontend can 
choose to make it disapear after a couple of seconds (like a desktop 
notification). It is Ok to use the same dialog for message and note if 
use action is required (it can just be a bit more annoying for the use 
to click on simple notes).

	- submit system is the same as for forms

	- dialogs are just a few classical dialogs which can be used by 
plugins. If you want to create a custom one, use a XMLUI wich 
C.XMLUI_POPUP type (a C.XMLUI_FORM can also be used, as submit 
mechanisms are already included with it).

	- FileDialog is really basic and not well implemented yet. It's 
inexistant in Libervia so far.

	- options are given in dialog_opt argument of XMLUI.__init__, details 
are given in docstring

	- askConfirmation is deprecated and XMLUI dialogs must be used instead. 
It will be totally removed in 0.6, plugins using it will be refactored 
to use XMLUI.

You can find a attachment with an example simple plugin creating a XMLUI 
dialog, it should work with Primitivus, Wix and Libervia (no 
implementation in jp yet).

Cheers
Goffi
-------------- section suivante --------------
Une pièce jointe autre que texte a été nettoyée...
Nom: plugin_test_dialog.py
Type: text/x-python
Taille: 1789 octets
Desc: non disponible
URL: <http://lists.goffi.org/pipermail/dev/attachments/20140813/4f195441/attachment.py>


Plus d'informations sur la liste de diffusion dev