On 05/21/2013 05:50 PM, Angelo Naselli wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Il 21/05/2013 17:25, Thomas Goettlicher ha scritto:
"Checkbox at the end" is okay. But "Checkbox at the left side" should be "Checkbox in front" or so. The reason is that e.g. Arabic uses right-to-left layout. Yes, it was not a final definition, i mean I'm going to add an enum we can call its items as we want to better understand it. So maybe left and right should be more appropriate since left and right are fixed despite of which way we're writing. I'd prefer 'first' and 'last column' because the columns are resorted when the ui is switched to right-to-left layout.
The default option should generate the widget that looks the same way as it used to look like. For default option i thought the same as it is by now if now is multiselection=false, we should have mode=Normal which i forgot in my previous mail.
So Normal No multiselection/no Check-boxes multi-selection Enable multi-selection mode Check on left Enable check-boxes on the left side of table Check on right Enable check-boxes on the right side of table
Why don't you use a constructor with following arguments: bool multiSelection = false and bool checkboxInLastColumn = false ?
These last can be discussed, but i'm not sure we can reverse the definition looking on user settings. But I'm open to discuss, and any help/improvemente later can be don by anybody :)
ycp-ui-bindings should be extended to allow ycp code to set these options as well. I have to understand how those buildings work, i just looked at libyui-bindings and for the most, they have just to be rebuilt to get new interfaces.
BTW, is there any documentations for ycp-* to understand how to extend YUI widgets? Because i'd expect that an extended widget must be done for QT, GTK, ncurses and at last for a binding of them, right?
The header file contains comments. See: https://github.com/libyui/libyui/blob/master/src/YUIPlugin.h Please let me know if you need additional help. Cheers, Thomas
Cheers, Angelo -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.13 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iEYEARECAAYFAlGbl94ACgkQqEs9DA4DquDUWwCeKVlF0i2bAhDIciFvDADc32B1 eKQAn2W6H6ihIrR+qtthlo7yD8evYdwZ =/lzA -----END PGP SIGNATURE-----
-- Thomas Goettlicher SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg) Maxfeldstraße 5 90409 Nürnberg Germany -- To unsubscribe, e-mail: libyui-devel+unsubscribe@opensuse.org To contact the owner, e-mail: libyui-devel+owner@opensuse.org