Re: SIGCHLD: how to do this for Qt?

2004-03-23 Thread Angus Leeming
John Levon wrote: On Mon, Mar 22, 2004 at 10:00:22PM +, Angus Leeming wrote: We only need to reap children every 10 minutes or whatever Then we go back to the timer and the whole thing has been a waste of time? Why do you say that? It's completely normal and expected practice.

Dispatch question

2004-03-23 Thread Angus Leeming
This from BufferView::Pimpl::workAreaDispatch: // Try to dispatch to an non-editable inset near this position DispatchResult res; if (inset) inset-dispatch(cur, cmd); // Dispatch to the temp cursor. // An inset (or LyXText) can assign this to bv-cursor() // if it

Test of non-member posting

2004-03-23 Thread Claus Hindsgaul
If this gets through, the non-member posting works again. Please disregard this mail. It is only a test. Claus -- Ph.D.-studerende Claus Hindsgaul Reberbanegade 53, 4. th, DK-2300 KBH S Copenhagen, Denmark

Re: more on rebreaking

2004-03-23 Thread Andre Poenitz
On Sun, Mar 21, 2004 at 02:18:59PM +0100, Alfredo Braunstein wrote: Angus Leeming wrote: Most important comment is that all these solutions are temporary hacks if the ultimate goal is an inset is three boxes. IOW, I don't think we should be t worried about which ever choice is

Re: lyx --export was working, now it is not again...

2004-03-23 Thread Andre Poenitz
On Sun, Mar 21, 2004 at 11:21:11AM +0100, Alfredo Braunstein wrote: Kayvan A. Sylvan wrote: A cvs diff patch is attached. Commited. Thanks to both of you. Andre'

Re: more on rebreaking

2004-03-23 Thread Alfredo Braunstein
Alfredo Braunstein wrote: Angus Leeming wrote: Cute, but doesn't scale well if you have multiple insets on one line. True. Otherwise (snapshot7) , Yes please! There are still a number of problems, mainly due to the fact that the inset doesn't have his own row but just vertically

Re: New Feature: enter enter enter

2004-03-23 Thread Lars Gullik Bjønnes
Christian Ridderström [EMAIL PROTECTED] writes: | Or would this be considered bad UI? I would. -- Lgb

Re: Branch: titlepage gets read as color?

2004-03-23 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes [EMAIL PROTECTED] writes: Angus == Angus Leeming [EMAIL PROTECTED] writes: | Angus Martin Vermeer wrote: On Mon, Mar 22, 2004 at 09:12:56AM +, Angus Leeming spake thusly: Should this be made more clearly a warning or info message? Like ... Color \ lyxname ''

Re: Branch: titlepage gets read as color?

2004-03-23 Thread Angus Leeming
Lars Gullik Bjønnes wrote: | Angus Looking at debug.h, I think we've run out of space in the | Angus lyx_debug_trai::type enum. 2^24 0xff (by 1 ;-) we should be able to go to 2^32. (or at least 31) In that case, (and I agree), shouldn't ANY be reset: ANY = 0xff 2^(32)-1 ==

Re: New Feature: enter enter enter

2004-03-23 Thread Christian Ridderström
On Tue, 23 Mar 2004, Lars Gullik Bjønnes wrote: Christian Ridderström [EMAIL PROTECTED] writes: | Or would this be considered bad UI? I would. Just out of curiousity, could you exand on why? Do you dislike double-clicking with a mouse for instance? I don't mind double-clicking when I

[PATCH] fix i18n code to find documentation

2004-03-23 Thread Jean-Marc Lasgouttes
The following patch changes the logic that is used to find the localized documentation. In many cases with the old code, it was possible to have french menus with english docs, for example. I am going to apply that now, but I'd appreciate if people could check that it gets the locale right in

Re: Branch: titlepage gets read as color?

2004-03-23 Thread Martin Vermeer
On Mon, Mar 22, 2004 at 05:47:31PM +0100, Jean-Marc Lasgouttes spake thusly: Angus == Angus Leeming [EMAIL PROTECTED] writes: Angus Martin Vermeer wrote: On Mon, Mar 22, 2004 at 09:12:56AM +, Angus Leeming spake thusly: Should this be made more clearly a warning or info

Re: SIGCHLD: how to do this for Qt?

2004-03-23 Thread John Levon
On Tue, Mar 23, 2004 at 08:53:55AM +, Angus Leeming wrote: I don't think you've read my proposed code. I'm pretty sure it's Maybe I just misread it (and now it's deleted). We drop out of the Qt loop to check the sigatomic_t. If it's set, then we go and reap the child, secure that

Re: SIGCHLD: how to do this for Qt?

2004-03-23 Thread Angus Leeming
John Levon wrote: Angus, this has *nothing* to do with second signals. Yes, we need to take care of that issue, but it's not what I'm talking about. This is about interrupting *non-signal context* code. Sorry about the tone of that mail. I think I got out of the wrong side of bed this

Re: Branch: titlepage gets read as color?

2004-03-23 Thread Jean-Marc Lasgouttes
Martin == Martin Vermeer [EMAIL PROTECTED] writes: Martin Yes, this sounds good. I did this, calling the creating Martin function LColor::getFromLyXNameOrAdd(). Not a splendid choice, Martin but... This is not exactly what I had in mind, but rather something like the patch below (which is

Re: Branch: titlepage gets read as color?

2004-03-23 Thread Jean-Marc Lasgouttes
Jean-Marc == Jean-Marc Lasgouttes [EMAIL PROTECTED] writes: Martin == Martin Vermeer [EMAIL PROTECTED] writes: Martin Yes, this sounds good. I did this, calling the creating Martin function LColor::getFromLyXNameOrAdd(). Not a splendid choice, Martin but... Jean-Marc This is not exactly what I

Re: New Feature: enter enter enter

2004-03-23 Thread Lars Gullik Bjønnes
Christian Ridderström [EMAIL PROTECTED] writes: | On Tue, 23 Mar 2004, Lars Gullik Bjønnes wrote: Christian Ridderström [EMAIL PROTECTED] writes: | Or would this be considered bad UI? I would. | Just out of curiousity, could you exand on why? Do you dislike | double-clicking with a

Re: Branch: titlepage gets read as color?

2004-03-23 Thread Lars Gullik Bjønnes
Angus Leeming [EMAIL PROTECTED] writes: | Lars Gullik Bjønnes wrote: | Angus Looking at debug.h, I think we've run out of space in the | Angus lyx_debug_trai::type enum. 2^24 0xff (by 1 ;-) we should be able to go to 2^32. (or at least 31) | In that case, (and I agree), shouldn't ANY

Re: Branch: titlepage gets read as color?

2004-03-23 Thread Angus Leeming
Lars Gullik Bjønnes wrote: | Angus Looking at debug.h, I think we've run out of space in the | Angus lyx_debug_trai::type enum. 2^24 0xff (by 1 ;-) we should be able to go to 2^32. (or at least 31) | In that case, (and I agree), shouldn't ANY be reset: | ANY = 0xff | 2^(32)-1 ==

Re: Branch: titlepage gets read as color?

2004-03-23 Thread Lars Gullik Bjønnes
Angus Leeming [EMAIL PROTECTED] writes: | The maximum positive integer that can fit into an int is 0x7fff or | 2^(32)-1. And before you tell me that enum is unsigned, it isn't. I think we can force it to be. What does the standard say about enums again? -- Lgb

Re: Branch: titlepage gets read as color?

2004-03-23 Thread Martin Vermeer
On Tue, Mar 23, 2004 at 05:17:12PM +0100, Jean-Marc Lasgouttes spake thusly: Jean-Marc == Jean-Marc Lasgouttes [EMAIL PROTECTED] writes: Martin == Martin Vermeer [EMAIL PROTECTED] writes: Martin Yes, this sounds good. I did this, calling the creating Martin function

Re: Branch: titlepage gets read as color?

2004-03-23 Thread Alfredo Braunstein
Angus Leeming wrote: The maximum positive integer that can fit into an int is 0x7fff or 2^(32)-1. And I suppose that when you say 32 you mean 31 :-) Alfredo

Re: SIGCHLD: how to do this for Qt?

2004-03-23 Thread John Levon
On Tue, Mar 23, 2004 at 04:02:55PM +, Angus Leeming wrote: Details follow below. Please try and rip it to shreds. Can't pick a hole in it. Looks fine to me cheers john

Re: Branch: titlepage gets read as color?

2004-03-23 Thread Angus Leeming
Lars Gullik Bjønnes wrote: What does the standard say about enums again? Dunno. The 1996 Draft Standard says this: [dcl.enum] 7.2 Enumeration declarations 1 An enumeration is a distinct type (3.9.1) with named constants. Its name becomes an enumname, within its scope. enumname:

include openoffice export and import filter

2004-03-23 Thread Uwe Brauer
Hello May be this suggestion has already be made: there exists now an openoffice to latex export and import filter, including mathematical formula. 1. Oolatex is a script shipped with tex4ht, which converts latex to sxw files. 2. Writer2latex is java export filter which converts sxw files to

Re: Branch: titlepage gets read as color?

2004-03-23 Thread Angus Leeming
Alfredo Braunstein wrote: Angus Leeming wrote: The maximum positive integer that can fit into an int is 0x7fff or 2^(32)-1. And I suppose that when you say 32 you mean 31 :-) Alfredo Looks like ;-) #include iostream #include cmath int main() { int const ANY = (1 31) - 1;

Re: New Feature: enter enter enter

2004-03-23 Thread Helge Hafting
On Tue, Mar 23, 2004 at 02:56:03PM +0100, Christian Ridderström wrote: On Tue, 23 Mar 2004, Lars Gullik Bjønnes wrote: Christian Ridderström [EMAIL PROTECTED] writes: | Or would this be considered bad UI? I would. Just out of curiousity, could you exand on why? Do you dislike

Re: SIGCHLD: how to do this for Qt?

2004-03-23 Thread Angus Leeming
John Levon wrote: On Tue, Mar 23, 2004 at 04:02:55PM +, Angus Leeming wrote: Details follow below. Please try and rip it to shreds. Can't pick a hole in it. Looks fine to me Magic. One thing I have been wondering about though. Why don't you like while (!finished) {

Re: SIGCHLD: how to do this for Qt?

2004-03-23 Thread Angus Leeming
On Tuesday 23 March 2004 7:13 pm, John Levon wrote: On Tue, Mar 23, 2004 at 07:06:30PM +, Angus Leeming wrote: Maybe I misunderstood what you wanted to change in Qt. A busy loop would be one that chewed CPU despite no events arriving. This is what seems to happen in the

Re: SIGCHLD: how to do this for Qt?

2004-03-23 Thread John Levon
On Tue, Mar 23, 2004 at 07:38:48PM +, Angus Leeming wrote: Me too, if only because hacking into the Qt event loop turns out to be a right PITA. Nonetheless, playing devil's advocate, why is Strategy 2 better than the existing strategy of using a Timeout to reap the children also?

Re: SIGCHLD: how to do this for Qt?

2004-03-23 Thread Angus Leeming
On Tuesday 23 March 2004 8:07 pm, John Levon wrote: On Tue, Mar 23, 2004 at 07:38:48PM +, Angus Leeming wrote: Me too, if only because hacking into the Qt event loop turns out to be a right PITA. Nonetheless, playing devil's advocate, why is Strategy 2 better than the existing

Re: include openoffice export and import filter

2004-03-23 Thread Georg Baum
Am Dienstag, 23. März 2004 19:23 schrieb Uwe Brauer: Hello May be this suggestion has already be made: there exists now an openoffice to latex export and import filter, including mathematical formula. 1. Oolatex is a script shipped with tex4ht, which converts latex to sxw files. 2.

Re: SIGCHLD: how to do this for Qt?

2004-03-23 Thread John Levon
On Tue, Mar 23, 2004 at 07:06:30PM +, Angus Leeming wrote: Maybe I misunderstood what you wanted to change in Qt. A busy loop would be one that chewed CPU despite no events arriving. This is what seems to happen in the Qt-equivalent. We get a never-ending stream of calls to

Re: SIGCHLD: how to do this for Qt?

2004-03-23 Thread John Levon
On Tue, Mar 23, 2004 at 06:46:12PM +, Angus Leeming wrote: Why don't you like while (!finished) { someNonTrivialFunction(); if (fl_check_forms() == FL_EVENT) { ... } } (I guess that this is what you call a 'busy loop'?) I think this is

Re: New Feature: enter enter enter

2004-03-23 Thread Christian Ridderström
On Tue, 23 Mar 2004, Helge Hafting wrote: Just out of curiousity, could you exand on why? Do you dislike double-clicking with a mouse for instance? Indeed! There's lots of trouble with it. The mouse might slide, turning it into a short drag or something. I might be too slow sometimes,

Re: New Feature: enter enter enter

2004-03-23 Thread Christian Ridderström
On Tue, 23 Mar 2004, Lars Gullik Bjønnes wrote: Christian Ridderström [EMAIL PROTECTED] writes: | On Tue, 23 Mar 2004, Lars Gullik Bjønnes wrote: Christian Ridderström [EMAIL PROTECTED] writes: | Or would this be considered bad UI? I would. | Just out of curiousity, could you

Re: SIGCHLD: how to do this for Qt?

2004-03-23 Thread John Levon
On Tue, Mar 23, 2004 at 08:14:57PM +, Angus Leeming wrote: What ever happened to the quote of the month? ;-) Hmm, I stopped doing it. But I may well restart for my own benefit! John, have a medal! Thank you! Does this mean Alfredo doesn't hate me any more? john -- Spammers get STABBED

Re: [patch] SIGCHLD and the forked calls controller

2004-03-23 Thread John Levon
On Tue, Mar 23, 2004 at 10:40:27PM +, Angus Leeming wrote: I do believe that we've got there. Attached is the final patch with a description of the design embedded in forkedcontr.C. By all means burn my extremities, but I believe that tinyurl URLs are cached, and expire after a certain

[patch] SIGCHLD and the forked calls controller

2004-03-23 Thread Angus Leeming
I do believe that we've got there. Attached is the final patch with a description of the design embedded in forkedcontr.C. I'll commit this tomorrow to give everybody a fair chance to complain loudly. Many thanks to John Levon for holding my hand through all this. -- AngusIndex:

Re: Current CVS can not select with mouse

2004-03-23 Thread Andre Poenitz
On Mon, Mar 22, 2004 at 10:20:26AM +, Angus Leeming wrote: Kayvan A. Sylvan wrote: I don't know when this bug popped up, but I can no longer select with the mouse (click-hold-drag) although the SHIFT-move method of text selection seems to work. The problem is that the relevant code

Re: more on rebreaking

2004-03-23 Thread Andre Poenitz
On Mon, Mar 22, 2004 at 11:34:06AM +0100, Alfredo Braunstein wrote: 2) row-driven cursor up and down get confused by it. This is sort of dead. We use mathed style up/down now, i.e. go to the closed position with a smaller y coordinate on 'up'. See LCursor::goUpDown (or however it is called...)

Re: [patch]: cursor.[Ch]

2004-03-23 Thread Andre Poenitz
On Mon, Mar 22, 2004 at 11:39:59AM +, Angus Leeming wrote: Gets rid of the unused nopop_ variable and rewrites Cursor::dispatch to: 1. Get rid of the horrible 'operator=(safe)' call; 2. Make clear that the only member variable updated is Cursor::disp_: DispatchResult

Re: [patch] collapsables

2004-03-23 Thread Andre Poenitz
On Mon, Mar 22, 2004 at 02:00:04PM +0100, Alfredo Braunstein wrote: + if (!pit-isInset(i) || pit-getInset(i)-isChar()) { + // some insets are line separators too + if (pit-isLineSeparator(i)) { + // register

Re: Cursor::noPop(), nopop_

2004-03-23 Thread Andre Poenitz
On Mon, Mar 22, 2004 at 10:50:55AM +, Angus Leeming wrote: Don't appear to be used anymore. $ grep -r noPop ../src ../src/cursor.h:void noPop(); $ grep -r nopop_ ../src ../src/cursor.C:nopop_ = false; ../src/cursor.C:if (nopop_ || !disp_.dispatched())

Re: [patch] collapsables

2004-03-23 Thread Andre Poenitz
On Mon, Mar 22, 2004 at 02:29:10PM +0100, Alfredo Braunstein wrote: [which reminds me: maybe it's time to talk about DEPM again? *ducking*] What about it? It's back to life after applying the 'patch previews' which I am probably going to do on Thursday. Andre'

Re: more on rebreaking

2004-03-23 Thread Andre Poenitz
On Sun, Mar 21, 2004 at 03:50:21PM +0100, Alfredo Braunstein wrote: We could ignore the intend in paragraphs with a text inset as first item in all three solutions as well... Funny, I proposed the same thing and got accused of boycotting your cleanup. :-) By me? This must have happend at

Re: Branch: titlepage gets read as color?

2004-03-23 Thread Andre Poenitz
On Mon, Mar 22, 2004 at 09:12:56AM +, Angus Leeming wrote: Should this be made more clearly a warning or info message? Like ... Color \ lyxname '' added to color table endl ? Yes. That is exactly what the code is doing, after all. Moreover, I think that the warning should be output

Re: Using SIGCHLD

2004-03-23 Thread Andre Poenitz
On Mon, Mar 22, 2004 at 10:37:30AM +, Angus Leeming wrote: and that the 'real' code handling the error is then handled in the main program loop. However, I don't see anyway to code that up without using throw/catch. Destructor of a static singleton? Andre'

.fig

2004-03-23 Thread Andre Poenitz
Is the XFig external inset working properly (i.e. fully automatically) in 1.3.4/5? From a quick glance at a colleagues box it looked like he had to convert the .fig into a pstex himself as LyX was writing out \include{foo.pstex} (or similar) [Had no time to check properly...] Andre'

Re: no patch

2004-03-23 Thread Andre Poenitz
On Sun, Mar 21, 2004 at 02:24:54PM +, John Levon wrote: Well, a couple of weeks ago I tried to look at a simple table problem, and got nowhere after two hours. This was also common for table work before stuff was redone, but this time I was under the disadvantage of all the code having

Re: New Feature: enter enter enter

2004-03-23 Thread Asger Kunuk Ottar Alstrup
On Tue, 23 Mar 2004, Christian Ridderström wrote: rant I take back what I said above, especially when it comes to the behaviour in Windows when I want to change the name of a file. It drives me nuts. First I click on the icon to select it. Then I have to wait a while before I can click on the

Re: more on rebreaking

2004-03-23 Thread Alfredo Braunstein
Andre Poenitz wrote: Funny, I proposed the same thing and got accused of boycotting your cleanup. :-) By me? No. Oh, nevermind. Alfredo

Re: more on rebreaking

2004-03-23 Thread Alfredo Braunstein
Andre Poenitz wrote: On Mon, Mar 22, 2004 at 11:34:06AM +0100, Alfredo Braunstein wrote: 2) row-driven cursor up and down get confused by it. This is sort of dead. We use mathed style up/down now, i.e. go to the closed position with a smaller y coordinate on 'up'. We should use you mean?

Re: SIGCHLD: how to do this for Qt?

2004-03-23 Thread Angus Leeming
John Levon wrote: > On Mon, Mar 22, 2004 at 10:00:22PM +, Angus Leeming wrote: > >> > We only need to reap children every 10 minutes or whatever >> >> Then we go back to the timer and the whole thing has been a waste >> of time? > > Why do you say that? It's completely normal and expected

Dispatch question

2004-03-23 Thread Angus Leeming
This from BufferView::Pimpl::workAreaDispatch: // Try to dispatch to an non-editable inset near this position DispatchResult res; if (inset) inset->dispatch(cur, cmd); // Dispatch to the temp cursor. // An inset (or LyXText) can assign this to bv->cursor() // if it

Test of non-member posting

2004-03-23 Thread Claus Hindsgaul
If this gets through, the non-member posting works again. Please disregard this mail. It is only a test. Claus -- Ph.D.-studerende Claus Hindsgaul Reberbanegade 53, 4. th, DK-2300 KBH S Copenhagen, Denmark

Re: more on rebreaking

2004-03-23 Thread Andre Poenitz
On Sun, Mar 21, 2004 at 02:18:59PM +0100, Alfredo Braunstein wrote: > Angus Leeming wrote: > > > Most important comment is that all these solutions are temporary hacks > > if the ultimate goal is "an inset is three boxes". IOW, I don't think > > we should be t worried about which ever choice

Re: lyx --export was working, now it is not again...

2004-03-23 Thread Andre Poenitz
On Sun, Mar 21, 2004 at 11:21:11AM +0100, Alfredo Braunstein wrote: > Kayvan A. Sylvan wrote: > > > A cvs diff patch is attached. > > Commited. Thanks to both of you. Andre'

Re: more on rebreaking

2004-03-23 Thread Alfredo Braunstein
Alfredo Braunstein wrote: > Angus Leeming wrote: > >> Cute, but doesn't scale well if you have multiple insets on one line. > > True. > >>> Otherwise (snapshot7) , >> >> Yes please! > > There are still a number of problems, mainly due to the fact that the > inset doesn't have his own row but

Re: New Feature: enter enter enter

2004-03-23 Thread Lars Gullik Bjønnes
Christian Ridderström <[EMAIL PROTECTED]> writes: | Or would this be considered bad UI? I would. -- Lgb

Re: "Branch: titlepage" gets read as color?

2004-03-23 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: >> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: > | Angus> Martin Vermeer wrote: >>> On Mon, Mar 22, 2004 at 09:12:56AM +, Angus Leeming spake >>> thusly: >>> > > Should this be made more clearly a warning or info message?

Re: "Branch: titlepage" gets read as color?

2004-03-23 Thread Angus Leeming
Lars Gullik Bjønnes wrote: > | Angus> Looking at debug.h, I think we've run out of space in the > | Angus> lyx_debug_trai::type enum. 2^24 > 0xff (by 1 ;-) > > we should be able to go to 2^32. (or at least 31) In that case, (and I agree), shouldn't ANY be reset: ANY = 0xff 2^(32)-1 ==

Re: New Feature: enter enter enter

2004-03-23 Thread Christian Ridderström
On Tue, 23 Mar 2004, Lars Gullik Bjønnes wrote: > Christian Ridderström <[EMAIL PROTECTED]> writes: > > | Or would this be considered bad UI? > > I would. Just out of curiousity, could you exand on why? Do you dislike double-clicking with a mouse for instance? I don't mind double-clicking

[PATCH] fix i18n code to find documentation

2004-03-23 Thread Jean-Marc Lasgouttes
The following patch changes the logic that is used to find the localized documentation. In many cases with the old code, it was possible to have french menus with english docs, for example. I am going to apply that now, but I'd appreciate if people could check that it gets the locale right in

Re: "Branch: titlepage" gets read as color?

2004-03-23 Thread Martin Vermeer
On Mon, Mar 22, 2004 at 05:47:31PM +0100, Jean-Marc Lasgouttes spake thusly: > > "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: > > Angus> Martin Vermeer wrote: > >> On Mon, Mar 22, 2004 at 09:12:56AM +, Angus Leeming spake > >> thusly: > >> > >>> > > Should this be made more

Re: SIGCHLD: how to do this for Qt?

2004-03-23 Thread John Levon
On Tue, Mar 23, 2004 at 08:53:55AM +, Angus Leeming wrote: > I don't think you've read my proposed code. I'm pretty sure it's Maybe I just misread it (and now it's deleted). > > We drop out of the Qt loop to check the sigatomic_t. > > If it's set, then we go and reap the child, secure

Re: SIGCHLD: how to do this for Qt?

2004-03-23 Thread Angus Leeming
John Levon wrote: > Angus, this has *nothing* to do with "second signals". Yes, we need > to take care of that issue, but it's not what I'm talking about. > This is about interrupting *non-signal context* code. Sorry about the tone of that mail. I think I got out of the wrong side of bed this

Re: "Branch: titlepage" gets read as color?

2004-03-23 Thread Jean-Marc Lasgouttes
> "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes: Martin> Yes, this sounds good. I did this, calling the creating Martin> function LColor::getFromLyXNameOrAdd(). Not a splendid choice, Martin> but... This is not exactly what I had in mind, but rather something like the patch below

Re: "Branch: titlepage" gets read as color?

2004-03-23 Thread Jean-Marc Lasgouttes
> "Jean-Marc" == Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: > "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes: Martin> Yes, this sounds good. I did this, calling the creating Martin> function LColor::getFromLyXNameOrAdd(). Not a splendid choice, Martin> but... Jean-Marc> This

Re: New Feature: enter enter enter

2004-03-23 Thread Lars Gullik Bjønnes
Christian Ridderström <[EMAIL PROTECTED]> writes: | On Tue, 23 Mar 2004, Lars Gullik Bjønnes wrote: > >> Christian Ridderström <[EMAIL PROTECTED]> writes: >> >> | Or would this be considered bad UI? >> >> I would. | Just out of curiousity, could you exand on why? Do you dislike |

Re: "Branch: titlepage" gets read as color?

2004-03-23 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | Lars Gullik Bjønnes wrote: >> | Angus> Looking at debug.h, I think we've run out of space in the >> | Angus> lyx_debug_trai::type enum. 2^24 > 0xff (by 1 ;-) >> >> we should be able to go to 2^32. (or at least 31) > | In that case, (and I agree),

Re: "Branch: titlepage" gets read as color?

2004-03-23 Thread Angus Leeming
Lars Gullik Bjønnes wrote: >>> | Angus> Looking at debug.h, I think we've run out of space in the >>> | Angus> lyx_debug_trai::type enum. 2^24 > 0xff (by 1 ;-) >>> >>> we should be able to go to 2^32. (or at least 31) >> > | In that case, (and I agree), shouldn't ANY be reset: >> > | ANY =

Re: "Branch: titlepage" gets read as color?

2004-03-23 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | The maximum positive integer that can fit into an int is 0x7fff or | 2^(32)-1. And before you tell me that enum is unsigned, it isn't. I think we can force it to be. What does the standard say about enums again? -- Lgb

Re: "Branch: titlepage" gets read as color?

2004-03-23 Thread Martin Vermeer
On Tue, Mar 23, 2004 at 05:17:12PM +0100, Jean-Marc Lasgouttes spake thusly: > > > "Jean-Marc" == Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: > > > "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes: > Martin> Yes, this sounds good. I did this, calling the creating > Martin>

Re: "Branch: titlepage" gets read as color?

2004-03-23 Thread Alfredo Braunstein
Angus Leeming wrote: > The maximum positive integer that can fit into an int is 0x7fff or > 2^(32)-1. And I suppose that when you say 32 you mean 31 :-) Alfredo

Re: SIGCHLD: how to do this for Qt?

2004-03-23 Thread John Levon
On Tue, Mar 23, 2004 at 04:02:55PM +, Angus Leeming wrote: > Details follow below. Please try and rip it to shreds. Can't pick a hole in it. Looks fine to me cheers john

Re: "Branch: titlepage" gets read as color?

2004-03-23 Thread Angus Leeming
Lars Gullik Bjønnes wrote: > What does the standard say about enums again? Dunno. The 1996 Draft Standard says this: [dcl.enum] 7.2 Enumeration declarations 1 An enumeration is a distinct type (3.9.1) with named constants. Its name becomes an enumname, within its scope. enumname:

include openoffice export and import filter

2004-03-23 Thread Uwe Brauer
Hello May be this suggestion has already be made: there exists now an openoffice to latex export and import filter, including mathematical formula. 1. Oolatex is a script shipped with tex4ht, which converts latex to sxw files. 2. Writer2latex is java export filter which converts sxw files to

Re: "Branch: titlepage" gets read as color?

2004-03-23 Thread Angus Leeming
Alfredo Braunstein wrote: > Angus Leeming wrote: > >> The maximum positive integer that can fit into an int is 0x7fff >> or 2^(32)-1. > > And I suppose that when you say 32 you mean 31 :-) > Alfredo Looks like ;-) #include #include int main() { int const ANY = (1 << 31) - 1;

Re: New Feature: enter enter enter

2004-03-23 Thread Helge Hafting
On Tue, Mar 23, 2004 at 02:56:03PM +0100, Christian Ridderström wrote: > On Tue, 23 Mar 2004, Lars Gullik Bjønnes wrote: > > > Christian Ridderström <[EMAIL PROTECTED]> writes: > > > > | Or would this be considered bad UI? > > > > I would. > > Just out of curiousity, could you exand on why? Do

Re: SIGCHLD: how to do this for Qt?

2004-03-23 Thread Angus Leeming
John Levon wrote: > On Tue, Mar 23, 2004 at 04:02:55PM +, Angus Leeming wrote: > >> Details follow below. Please try and rip it to shreds. > > Can't pick a hole in it. Looks fine to me Magic. One thing I have been wondering about though. Why don't you like while (!finished) {

Re: SIGCHLD: how to do this for Qt?

2004-03-23 Thread Angus Leeming
On Tuesday 23 March 2004 7:13 pm, John Levon wrote: > On Tue, Mar 23, 2004 at 07:06:30PM +, Angus Leeming wrote: > > > Maybe I misunderstood what you wanted to change in Qt. A "busy > > > loop" would be one that chewed CPU despite no events arriving. > > > > This is what seems to happen in

Re: SIGCHLD: how to do this for Qt?

2004-03-23 Thread John Levon
On Tue, Mar 23, 2004 at 07:38:48PM +, Angus Leeming wrote: > Me too, if only because hacking into the Qt event loop turns out to be > a right PITA. > > Nonetheless, playing devil's advocate, why is Strategy 2 better than > the existing strategy of using a Timeout to reap the children also?

Re: SIGCHLD: how to do this for Qt?

2004-03-23 Thread Angus Leeming
On Tuesday 23 March 2004 8:07 pm, John Levon wrote: > On Tue, Mar 23, 2004 at 07:38:48PM +, Angus Leeming wrote: > > Me too, if only because hacking into the Qt event loop turns out > > to be a right PITA. > > > > Nonetheless, playing devil's advocate, why is Strategy 2 better > > than the

Re: include openoffice export and import filter

2004-03-23 Thread Georg Baum
Am Dienstag, 23. März 2004 19:23 schrieb Uwe Brauer: > Hello > > May be this suggestion has already be made: there exists now an > openoffice to latex export and import filter, including mathematical > formula. > > 1. Oolatex is a script shipped with tex4ht, which converts latex to >sxw

Re: SIGCHLD: how to do this for Qt?

2004-03-23 Thread John Levon
On Tue, Mar 23, 2004 at 07:06:30PM +, Angus Leeming wrote: > > Maybe I misunderstood what you wanted to change in Qt. A "busy > > loop" would be one that chewed CPU despite no events arriving. > > This is what seems to happen in the Qt-equivalent. We get a > never-ending stream of calls to

Re: SIGCHLD: how to do this for Qt?

2004-03-23 Thread John Levon
On Tue, Mar 23, 2004 at 06:46:12PM +, Angus Leeming wrote: > Why don't you like > while (!finished) { > someNonTrivialFunction(); > if (fl_check_forms() == FL_EVENT) { > ... > } > } > > (I guess that this is what you call a 'busy loop'?) I think

Re: New Feature: enter enter enter

2004-03-23 Thread Christian Ridderström
On Tue, 23 Mar 2004, Helge Hafting wrote: > > Just out of curiousity, could you exand on why? Do you dislike > > double-clicking with a mouse for instance? > > > Indeed! There's lots of trouble with it. > The mouse might slide, turning it into a short drag or something. > I might be too slow

Re: New Feature: enter enter enter

2004-03-23 Thread Christian Ridderström
On Tue, 23 Mar 2004, Lars Gullik Bjønnes wrote: > Christian Ridderström <[EMAIL PROTECTED]> writes: > > | On Tue, 23 Mar 2004, Lars Gullik Bjønnes wrote: > > > >> Christian Ridderström <[EMAIL PROTECTED]> writes: > >> > >> | Or would this be considered bad UI? > >> > >> I would. > > | Just

Re: SIGCHLD: how to do this for Qt?

2004-03-23 Thread John Levon
On Tue, Mar 23, 2004 at 08:14:57PM +, Angus Leeming wrote: > What ever happened to the quote of the month? ;-) Hmm, I stopped doing it. But I may well restart for my own benefit! > John, have a medal! Thank you! Does this mean Alfredo doesn't hate me any more? john -- "Spammers get

Re: [patch] SIGCHLD and the forked calls controller

2004-03-23 Thread John Levon
On Tue, Mar 23, 2004 at 10:40:27PM +, Angus Leeming wrote: > I do believe that we've got there. Attached is the final patch with a > description of the design embedded in forkedcontr.C. By all means burn my extremities, but I believe that tinyurl URLs are cached, and expire after a certain

[patch] SIGCHLD and the forked calls controller

2004-03-23 Thread Angus Leeming
I do believe that we've got there. Attached is the final patch with a description of the design embedded in forkedcontr.C. I'll commit this tomorrow to give everybody a fair chance to complain loudly. Many thanks to John Levon for holding my hand through all this. -- AngusIndex:

Re: Current CVS can not select with mouse

2004-03-23 Thread Andre Poenitz
On Mon, Mar 22, 2004 at 10:20:26AM +, Angus Leeming wrote: > Kayvan A. Sylvan wrote: > > > I don't know when this bug popped up, but I can no longer select > > with the mouse (click-hold-drag) although the SHIFT-move method of > > text selection seems to work. > > The problem is that the

Re: more on rebreaking

2004-03-23 Thread Andre Poenitz
On Mon, Mar 22, 2004 at 11:34:06AM +0100, Alfredo Braunstein wrote: > 2) row-driven cursor up and down get confused by it. This is sort of dead. We use mathed style up/down now, i.e. go to the closed position with a smaller y coordinate on 'up'. See LCursor::goUpDown (or however it is called...)

Re: [patch]: cursor.[Ch]

2004-03-23 Thread Andre Poenitz
On Mon, Mar 22, 2004 at 11:39:59AM +, Angus Leeming wrote: > Gets rid of the unused nopop_ variable and rewrites Cursor::dispatch > to: > 1. Get rid of the horrible 'operator=(safe)' call; > 2. Make clear that the only member variable updated is Cursor::disp_: > > DispatchResult

Re: [patch] collapsables

2004-03-23 Thread Andre Poenitz
On Mon, Mar 22, 2004 at 02:00:04PM +0100, Alfredo Braunstein wrote: + if (!pit->isInset(i) || pit->getInset(i)->isChar()) { + // some insets are line separators too + if (pit->isLineSeparator(i)) { + //

Re: Cursor::noPop(), nopop_

2004-03-23 Thread Andre Poenitz
On Mon, Mar 22, 2004 at 10:50:55AM +, Angus Leeming wrote: > Don't appear to be used anymore. > > $ grep -r noPop ../src > ../src/cursor.h:void noPop(); > $ grep -r nopop_ ../src > ../src/cursor.C:nopop_ = false; > ../src/cursor.C:if (nopop_ || !disp_.dispatched()) >

Re: [patch] collapsables

2004-03-23 Thread Andre Poenitz
On Mon, Mar 22, 2004 at 02:29:10PM +0100, Alfredo Braunstein wrote: > [which reminds me: maybe it's time to talk about DEPM again? *ducking*] What about it? It's back to life after applying the 'patch previews' which I am probably going to do on Thursday. Andre'

Re: more on rebreaking

2004-03-23 Thread Andre Poenitz
On Sun, Mar 21, 2004 at 03:50:21PM +0100, Alfredo Braunstein wrote: > > We could ignore the intend in paragraphs with a text inset as first item > > in all three solutions as well... > > Funny, I proposed the same thing and got accused of boycotting your > cleanup. :-) By me? This must have

Re: "Branch: titlepage" gets read as color?

2004-03-23 Thread Andre Poenitz
On Mon, Mar 22, 2004 at 09:12:56AM +, Angus Leeming wrote: > > Should this be made more clearly a warning or info message? Like > > "... Color \"" << lyxname << '"' added to color table" << endl ? > > Yes. That is exactly what the code is doing, after all. Moreover, I > think that the

  1   2   >