Re: qt4: clipboard

2006-06-03 Thread Georg Baum
Am Donnerstag, 1. Juni 2006 22:20 schrieb Edwin Leuven: > it looks like this whole clipboard thing needs a serious overhaul (small > cosmetics is not really worth the trouble i think). > > i agree with one of the bugzilla posters that lyx's copy/paste behavior > is a mayor annoyance and probably

Re: qt4: clipboard

2006-06-01 Thread Edwin Leuven
it looks like this whole clipboard thing needs a serious overhaul (small cosmetics is not really worth the trouble i think). i agree with one of the bugzilla posters that lyx's copy/paste behavior is a mayor annoyance and probably confusing for many. i am not sure i have the skills to repair t

Re: qt4: clipboard

2006-06-01 Thread Edwin Leuven
thanks, will investigate... Georg Baum wrote: Edwin Leuven wrote: atm copy paste primary selection (ie from outside lyx) doesn't work for me the attached solves it does this look ok? Unfortunately not ;-( getClipboard() is misnamed, it really acts like a hypotheticaal getSelection(), becau

Re: qt4: clipboard

2006-06-01 Thread Edwin Leuven
Georg Baum wrote: IIRC it is not needed in the windows case, because \r is ignored later in the copy/paste code, not when i paste into tabulars though...

Re: qt4: clipboard

2006-06-01 Thread Georg Baum
Abdelrazak Younes wrote: >> Perhaps you should factor the code into a utility function? Maybe even >> into fromqstr inself? > > Yes, I wanted to do that for a long time. IIRC it is not needed in the windows case, because \r is ignored later in the copy/paste code, but the other way round (\r ->

Re: qt4: clipboard

2006-06-01 Thread Abdelrazak Younes
Angus Leeming wrote: #ifdef Q_WS_MACX // The MAC clipboard uses \r for lineendings, and we use \n return subst(fromqstr(str), '\r', '\n'); +#endif +#ifdef Q_WS_WIN + // The WIN clipboard uses \r\n for lineendings, and we use \n + return subst(fromqstr(str), "\r\n", "\

Re: qt4: clipboard

2006-06-01 Thread Angus Leeming
Edwin Leuven <[EMAIL PROTECTED]> writes: > atm copy paste primary selection (ie from outside lyx) doesn't work for me > the attached solves it > does this look ok? I see Georg has given you the "big picture" answer, so I'll restrict myself to the comment that your patch hardcodes this in a couple

Re: qt4: clipboard

2006-06-01 Thread Georg Baum
Edwin Leuven wrote: > atm copy paste primary selection (ie from outside lyx) doesn't work for me > > the attached solves it > > does this look ok? Unfortunately not ;-( getClipboard() is misnamed, it really acts like a hypotheticaal getSelection(), because it is used for middle-mouse-button-cop

Re: qt4: clipboard

2006-06-01 Thread Abdelrazak Younes
Edwin Leuven wrote: atm copy paste primary selection (ie from outside lyx) doesn't work for me the attached solves it does this look ok? I don't know but in any case your patch will conflict with mine. As I was first, please wait until I put it in ;-) Thanks, Abdel.

qt4: clipboard

2006-06-01 Thread Edwin Leuven
atm copy paste primary selection (ie from outside lyx) doesn't work for me the attached solves it does this look ok? thanks Index: QWorkArea.C === --- QWorkArea.C (revision 13976) +++ QWorkArea.C (working copy) @@ -50,6 +50,11 @@