RE: Touch support in Abiword
Martin Edmund Sevior <[email protected]>
| Newsgroups | gmane.editors.abiword.devel |
|---|---|
| Message-ID | <323132D956C9584B8B1E9DC491FF9CB539913C95@000S-EX-MBX-QS4.unimelb.edu.au> |
Hi Carlos, > > * text selection, in that branch, there's a private GtkTextHandle helper > > object that text widgets use to manipulate the selection, if it remains > > private API, Abiword could need its own copy of it. > > I seriously doubt this can be of any help for Abiword. The models are > too much different. The helper object I'm referring to [1] doesn't interact at all with the text model itself, it's in fact used by GtkEntry and GtkTextView in that branch, which don't share a lot internally :). The object just takes care of the handle(s) being displayed and signals the text widget about those being dragged, the text widget is in turn responsible of relocating them wherever it makes sense anytime. Cheers, Carlos [1] http://git.gnome.org/browse/gtk+/tree/gtk/gtktexthandleprivate.h?h=touch-text-selection ----------------------------------------------------------------------------------- OK this should work quite well with abiword. The code would interact wih src/text/fmt/xp/Fv_View.(h,cpp). With can put the gtk specific code with in src/text/fmt/gtk where we already have code for gtk drang and drop. We will need to add code to change the start and end points of text selection but that should be straight forward. This will be fun :-) Cheers Martin