User:Gandalf/About:Config: Difference between revisions

Line 56: Line 56:
** If you want something easily editable, why not stick each option's value into a textfield?  Then users can simply edit it immediately if they want to, without any other UI.  When the user hits enter or changes focus, validate the entry and complain (or do something smart) if it's not valid.
** If you want something easily editable, why not stick each option's value into a textfield?  Then users can simply edit it immediately if they want to, without any other UI.  When the user hits enter or changes focus, validate the entry and complain (or do something smart) if it's not valid.
*** '' I don't know if I can put a textbox/checkbox inside the tree cell in XUL, but that may solve it [gandalf]''
*** '' I don't know if I can put a textbox/checkbox inside the tree cell in XUL, but that may solve it [gandalf]''
**** Checkboxes are not a problem. The tree has built-in support for them starting with Gecko 1.8 (treecol type="checkbox"), the images are missing in the default theme however (at least Firefox, SeaMonkey has them). Text boxes on the other hand require quite a few hacks (Adblock Plus 0.7 has inline editing in its preferences dialog - it works). Generally, editable trees have been discussed quite a few times already, maybe we will finally see them in Gecko 1.9. But still - I don't think it will be possible to display a textbox for every single row of the tree at the same time, this would be a waste of memory. All that I expect is an editor for one row once the editing mode has been activated. [Wladimir Palant]
** Overall I guess I would say that working from the current UI, but changing to a treeview, allowing options to be more easily edited, and adding descriptions of all the items (visible at top/bottom for whatever item is selected) would go a long way toward addressing the shortcomings of about:config.  Perhaps a few buttons (for adding/deleting an option, or editing one? maybe this is a better replacement for doubleclick than the textfield idea) at top would be good too.
** Overall I guess I would say that working from the current UI, but changing to a treeview, allowing options to be more easily edited, and adding descriptions of all the items (visible at top/bottom for whatever item is selected) would go a long way toward addressing the shortcomings of about:config.  Perhaps a few buttons (for adding/deleting an option, or editing one? maybe this is a better replacement for doubleclick than the textfield idea) at top would be good too.