> On 22.12.2010 14:50, Manolo Gouy wrote: > >> Great work, Greg ! > >> Your research of behavior in other tools and apps. is awesome ! > >> Thanks a lot !!! > > > > I join my congratulations to Albrecht's. > > > >> (1) The documentation mixes "selection (buffer)" and "clipboard" in some > >> places. The code seems to be okay, however. We must make clear that > >> selecting text moves it to the selection buffer (same as copy(0)) and > >> using CTRL/C puts the selected text into the clipboard (aka cut/paste > >> buffer, same as copy(1)). Unfortunately this is not clear at other places > >> as well, but I noticed that Manolo tried to improve it somewhere else > >> recently (I don't recall where exactly). The reverse is clicking with > >> mouse button 2 (selection buffer) and CTRL/V (clipboard or cut/paste > >> buffer). > > > > This was done for functions Fl::copy() and Fl::paste() documented > > using this language: > > Copies the data pointed to by stuff to the selection clipboard (0) > > or the copy clipboard (1). The selection clipboard is used for > > middle-mouse pastes and for drag-and-drop selections. The copy > > clipboard is used for traditional copy/cut/paste operations. > > Ah, thanks for clarification. While we are at it: I had some problems > with this wording when I read it (and still have), because "clipboard" > is something that has a special meaning (at least for me, and I think > also in 'X11 language'. "Selection clipboard" is very unusual and > ambiguous (or maybe contradictory) for me. > > I suggest to use: > > - Clipboard = copy/paste buffer (used with copy(1)) > - Selection Buffer = internal buffer for text selection (used with > copy(0)) > > IMHO "clipboard" may be used, but only in its meaning as such, the > other terms may be used freely. Or similar... > > Albrecht
I fully agree. The problem is that this is the doc of a function which prototype is void Fl::copy(const char *stuff, int len, int clipboard = 0) so the doc uses the word clipboard to relate to the prototype. We could also name differently the 3rd argument, but it will not be possible to name it both clipboard and buffer. I did not find a better expression. Suggestions welcome. _______________________________________________ fltk-bugs mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-bugs
