Hey Adrian, 2009/6/23 Adrian Sutherland <[email protected]> >> >> You are probably right that it should be added. I would prefer the Qt >> style WWidget::setTabOrder(WWidget *first, WWidget *second) over a >> setTabIndex(int) method though as it does not get confused by other >> widgets present in the page ? > > I don't know Qt - but I suspect you might need to go down the same dual road > you did with layouts. I.e. you need methods which implement the javascript browser dom model (for webbies) - and methods which emulate Qt.
I'm afraid we will not be able to mix both methods: Qt's way may need to adjust the tabindex of all widgets, and this is not what you would expect when having a method setTabIndex(...). Therefore you would have unwanted interference between widgets that each use a different strategy. The Qt way is probably the way to go, as it is the only API that allows to put together arbitrary widgets on a single screen. > I am also going to attempt to implement setting and getting text cursor > positions in fields (aka selections) and detecting more special keys (tab, > perhaps cursors, function keys). If I succeed I will post pointers to the > code because I think it would be great to get these in Witty. I will only > bother with IE and FF - which may be too restrictive for Witty - I don't know > how you manage to support all these crazy browsers! Do you leverage the ExtJs > stuff? No, but given that IE families (6 and 7) are the most troublesome, I would be happy to take care of the other browsers :-) I think it is indeed a very useful addition -- I am not totally sure in how far it is possible but remember having read that GWT supports all aspects of selection. You might want to take a look at how they are doing it (for various browsers). To read the selection, you will eventually need to (automatically) propagate this information from the browser to the library. This is not as straight forward and I suggest that I take care of this part too (the cross-browser stuff is probably the most problematic part). Regards, koen ------------------------------------------------------------------------------ _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
