Re: [PATCH] use toobar buttons instead of labeled buttons in the Toc widget (was Re: Table of contents crashes (again)

2007-05-04 Thread Abdelrazak Younes
Michael Gerz wrote: Abdelrazak Younes schrieb: Here is a slightly modified version of Stefan's patch. I am not a QT expert but the patch seems to make sense! OK. As Jurgen agreed and Jose did not object, I've committed it. We are now *forced* to find proper bindings for the outline LFUNs. I'

Re: [PATCH] use toobar buttons instead of labeled buttons in the Toc widget (was Re: Table of contents crashes (again)

2007-05-04 Thread Andre Poenitz
On Fri, May 04, 2007 at 05:46:40PM +0200, Michael Gerz wrote: > Abdelrazak Younes schrieb: > >Here is a slightly modified version of Stefan's patch. > I am not a QT expert but the patch seems to make sense! I'd wager a guess that none of us is a QuickTime expert ;-) Andre'

Re: [PATCH] use toobar buttons instead of labeled buttons in the Toc widget (was Re: Table of contents crashes (again)

2007-05-04 Thread Michael Gerz
Abdelrazak Younes schrieb: Here is a slightly modified version of Stefan's patch. I am not a QT expert but the patch seems to make sense! Michael

[PATCH] use toobar buttons instead of labeled buttons in the Toc widget (was Re: Table of contents crashes (again)

2007-05-04 Thread Abdelrazak Younes
Michael Gerz wrote: Jürgen Spitzmüller schrieb: Michael Gerz wrote: Any comments on this issues are welcome. I would like to get some opinions before I change the po file. remove the shortcuts from the dialog and introduce general shortcuts for the outliner actions. Abdel, do you

Re: Table of contents crashes (again)

2007-05-03 Thread Abdelrazak Younes
Edwin Leuven wrote: Abdelrazak Younes wrote: So, does this need to be fixed? I have erased my user dir and restarted and still don't see the icon. just commited the fix... thanks.

Re: Table of contents crashes (again)

2007-05-03 Thread Michael Gerz
Abdelrazak Younes schrieb: Edwin Leuven wrote: Abdelrazak Younes wrote: Yes, the patch from Stefan. I would like to commit it but I have a problem: I can see that the toggle TOC menu item works correctly but the former TOC toolbar button is not there anymore, I don't know why... Do you see it

Re: Table of contents crashes (again)

2007-05-03 Thread Edwin Leuven
Abdelrazak Younes wrote: So, does this need to be fixed? I have erased my user dir and restarted and still don't see the icon. just commited the fix...

Re: Table of contents crashes (again)

2007-05-03 Thread Michael Gerz
Abdelrazak Younes schrieb: Edwin Leuven wrote: Abdelrazak Younes wrote: Yes, the patch from Stefan. I would like to commit it but I have a problem: I can see that the toggle TOC menu item works correctly but the former TOC toolbar button is not there anymore, I don't know why... Do you see it

Re: Table of contents crashes (again)

2007-05-03 Thread Abdelrazak Younes
Edwin Leuven wrote: Abdelrazak Younes wrote: Yes, the patch from Stefan. I would like to commit it but I have a problem: I can see that the toggle TOC menu item works correctly but the former TOC toolbar button is not there anymore, I don't know why... Do you see it? the correct toolbar item

Re: Table of contents crashes (again)

2007-05-03 Thread Edwin Leuven
Abdelrazak Younes wrote: Yes, the patch from Stefan. I would like to commit it but I have a problem: I can see that the toggle TOC menu item works correctly but the former TOC toolbar button is not there anymore, I don't know why... Do you see it? the correct toolbar item has become dialog-t

Re: Table of contents crashes (again)

2007-05-03 Thread Abdelrazak Younes
Michael Gerz wrote: Jürgen Spitzmüller schrieb: Michael Gerz wrote: Any comments on this issues are welcome. I would like to get some opinions before I change the po file. remove the shortcuts from the dialog and introduce general shortcuts for the outliner actions. Abdel, do you

Re: Table of contents crashes (again)

2007-05-03 Thread Michael Gerz
Jürgen Spitzmüller schrieb: Michael Gerz wrote: Any comments on this issues are welcome. I would like to get some opinions before I change the po file. remove the shortcuts from the dialog and introduce general shortcuts for the outliner actions. Abdel, do you have a suitable pat

Re: Table of contents crashes (again)

2007-05-01 Thread Jürgen Spitzmüller
Abdelrazak Younes wrote: > If you agree with that, I'll commit his patch which I have locally > applied for some days already. I agree, but please check whether it interferes with some of my recent changes (I remember the patch also did something about the menu toogle thing). Jürgen

Re: Table of contents crashes (again)

2007-05-01 Thread Abdelrazak Younes
Michael Gerz wrote: Jürgen Spitzmüller schrieb: Michael Gerz wrote: Any comments on this issues are welcome. I would like to get some opinions before I change the po file. remove the shortcuts from the dialog and introduce general shortcuts for the outliner actions. Abdel, shouldn'

Re: Table of contents crashes (again)

2007-05-01 Thread Jürgen Spitzmüller
Michael Gerz wrote: > Abdel, shouldn't we remove the shortcuts in the UI files, too (i.e. in > the English messages). That's what I meant. > This may also open the door for buttons with icons. Probably yes. Jürgen

Re: Table of contents crashes (again)

2007-05-01 Thread Michael Gerz
Jürgen Spitzmüller schrieb: Michael Gerz wrote: Any comments on this issues are welcome. I would like to get some opinions before I change the po file. remove the shortcuts from the dialog and introduce general shortcuts for the outliner actions. Abdel, shouldn't we remove the shor

Re: Table of contents crashes (again)

2007-05-01 Thread Jürgen Spitzmüller
Michael Gerz wrote: > Any comments on this issues are welcome. I would like to get some > opinions before I change the po file. remove the shortcuts from the dialog and introduce general shortcuts for the outliner actions. Jürgen

Re: Table of contents crashes (again)

2007-05-01 Thread Michael Gerz
Jürgen Spitzmüller schrieb: I know now what's happening. I just discovered that it's locale-dependend. Michael, in the German localization, you cannot use the accelerator "A" for the TOC dialog (which is in fact used twice), for this breaks the fundamental keyboard shortcuts M-a {1,2,...} in t

Re: Table of contents crashes (again)

2007-04-18 Thread Richard Heck
Helge Hafting wrote: > Richard Heck wrote: >> The thing I don't understand is why I'd only get the loop sometimes. >> Not every time. Anyway, I'm glad not to have to worry about this any >> more. > This is an unknown bug in qt, right? My guess is that there is indeed > a loop somewhere, that uses

Re: Table of contents crashes (again)

2007-04-18 Thread Helge Hafting
Richard Heck wrote: Jürgen Spitzmüller wrote: Richard Heck wrote: By the way, look at TocWidget::setTocModel(). It enables depthSL no matter what. Shouldn't it be: depthSL->setEnabled(buttons_enabled)? Should reconnectSelectionModel() be called there if buttons_enabled = false? Unfortunately,

Re: Table of contents crashes (again)

2007-04-17 Thread John McCabe-Dansted
As the original bug reporter, I confirm that this problem does not occur with the latest svn. Thanks. On 4/17/07, Jürgen Spitzmüller <[EMAIL PROTECTED]> wrote: This is the case in the version I committed: -void TocWidget::enableButtons(bool enable) +void TocWidget::enableControls(bool enable)

Re: Table of contents crashes (again)

2007-04-17 Thread Richard Heck
Jürgen Spitzmüller wrote: Richard Heck wrote: By the way, look at TocWidget::setTocModel(). It enables depthSL no matter what. Shouldn't it be: depthSL->setEnabled(buttons_enabled)? Should reconnectSelectionModel() be called there if buttons_enabled = false? Unfortunately, changing the former

Re: Table of contents crashes (again)

2007-04-17 Thread Jürgen Spitzmüller
Richard Heck wrote: > I think maybe there should also be an "else" clause here that disables > the slider if buttons_enabled is false. Otherwise, I worry someone could > delete the last section, thereby emptying the TOC, and we'd see the same > behavior. This is the case in the version I committed

Re: Table of contents crashes (again)

2007-04-17 Thread Jürgen Spitzmüller
Abdelrazak Younes wrote: > Ah, I misread your report then. No, in fact I was missing the point. > I suppose we could add something like > that to the widget indeed. > But there is an easy work-around: hit "Tab" and the focus will get back > to the main window. I guess we could also catch for th

Re: Table of contents crashes (again)

2007-04-17 Thread Abdelrazak Younes
Jürgen Spitzmüller wrote: Abdelrazak Younes wrote: A first-step and short-term solution is to remove them: Just remove the '&' in the label defined in the ui file. A better solution would be to affect good shortcuts to the outline functions. We already discussed that but no action were taken.

Re: Table of contents crashes (again)

2007-04-17 Thread Jürgen Spitzmüller
Abdelrazak Younes wrote: > A first-step and short-term solution is to remove them: Just remove the > '&' in the label defined in the ui file. > > A better solution would be to affect good shortcuts to the outline > functions. We already discussed that but no action were taken. I see. So there's no

Re: Table of contents crashes (again)

2007-04-17 Thread Abdelrazak Younes
Jürgen Spitzmüller wrote: BTW is there something we can do about TOC widget swallowing keyboard shortcuts? This is pretty annyoing. A first-step and short-term solution is to remove them: Just remove the '&' in the label defined in the ui file. A better solution would be to affect good shor

Re: Table of contents crashes (again)

2007-04-17 Thread Jürgen Spitzmüller
Jürgen Spitzmüller wrote: > Good idea. I'll do that and commit, since you confirmed it works. Actually, I only transferred the setEnabled part, because we do not have access to type in enableControls. Jürgen BTW is there something we can do about TOC widget swallowing keyboard shortcuts? This

Re: Table of contents crashes (again)

2007-04-17 Thread Jürgen Spitzmüller
Abdelrazak Younes wrote: > Maybe you could transfer this code to enableButtons() instead? And maybe > rename enableButtons() to enableControls() Good idea. I'll do that and commit, since you confirmed it works. Jürgen

Re: Table of contents crashes (again)

2007-04-17 Thread Abdelrazak Younes
Jürgen Spitzmüller wrote: Index: src/frontends/qt4/TocWidget.C === --- src/frontends/qt4/TocWidget.C (Revision 17834) +++ src/frontends/qt4/TocWidget.C (Arbeitskopie) @@ -253,9 +253,11 @@ enableButtons(buttons_ena

Re: Table of contents crashes (again)

2007-04-17 Thread Abdelrazak Younes
Jürgen Spitzmüller wrote: Richard Heck wrote: Well, shoot. It's not working for me either, any more. Very strange this. It's not that strange. The clause where the slider is disabled is not necessarily called when the TOC is empty (only when the type list is empty, which doesn't happen for

Re: Table of contents crashes (again)

2007-04-17 Thread Abdelrazak Younes
Richard Heck wrote: John McCabe-Dansted wrote: Sometimes it just slows down instead of crashing. It could be that the "crash" is in fact the software requiring more time than my patience allows (it takes a minute or so just to allow the mouse to move. In several minutes nothing draws.) Yes, I t

Re: Table of contents crashes (again)

2007-04-17 Thread Abdelrazak Younes
Richard Heck wrote: Jürgen Spitzmüller wrote: Richard Heck wrote: Try the patch below, then. Unfortunately, it does not work for me. Well, shoot. It's not working for me either, any more. Very strange this. For what it's worth, I haven't been able to trigger the freeze if I hide th

Re: Table of contents crashes (again)

2007-04-17 Thread Jürgen Spitzmüller
Richard Heck wrote: > Well, shoot. It's not working for me either, any more. Very strange > this. It's not that strange. The clause where the slider is disabled is not necessarily called when the TOC is empty (only when the type list is empty, which doesn't happen for me, there's always the one

Re: Table of contents crashes (again)

2007-04-17 Thread Richard Heck
Jürgen Spitzmüller wrote: > Richard Heck wrote: > >> Try the patch below, then. >> > Unfortunately, it does not work for me. > Well, shoot. It's not working for me either, any more. Very strange this. For what it's worth, I haven't been able to trigger the freeze if I hide the slider alt

Re: Table of contents crashes (again)

2007-04-17 Thread Richard Heck
John McCabe-Dansted wrote: > Sometimes it just slows down instead of crashing. It could be that the > "crash" is in fact the software requiring more time than my patience > allows (it takes a minute or so just to allow the mouse to move. In > several minutes nothing draws.) Yes, I think it's more a

Re: Table of contents crashes (again)

2007-04-16 Thread John McCabe-Dansted
On 4/17/07, Richard Heck <[EMAIL PROTECTED]> wrote: I don't know exactly what's going on here, but I think I can solve the problem. I also think it's a QT bug, not ours. OK, my qt4 is 4.2.3: % rpm -qa | grep qt4 qt4-4.2.3-3.fc6.1 qt4-devel-4.2.3-3.fc6.1 qt4-x11-4.2.3-3.fc6.1 -

Re: Table of contents crashes (again)

2007-04-16 Thread Jürgen Spitzmüller
Richard Heck wrote: > Leaving the slider enabled is harmless: It doesn't do anything if > there's nothing in the TOC, anyway. Sure? It used to crash LyX (that' why we disabled it). > Try the patch below, then. Unfortunately, it does not work for me. Jürgen

Re: Table of contents crashes (again)

2007-04-16 Thread Richard Heck
Richard Heck wrote: > I don't know exactly what's going on here, but I think I can solve the > problem. I also think it's a QT bug, not ours. > > At first I thought there must be some kind of event loop. But adding > some lyxerr's to GuiApplication::notify() showed me that it wasn't: > You'd get a

Re: Table of contents crashes (again)

2007-04-16 Thread Richard Heck
I don't know exactly what's going on here, but I think I can solve the problem. I also think it's a QT bug, not ours. At first I thought there must be some kind of event loop. But adding some lyxerr's to GuiApplication::notify() showed me that it wasn't: You'd get a paint event for the slider, bu

Re: Table of contents crashes (again)

2007-04-16 Thread Abdelrazak Younes
Jürgen Spitzmüller wrote: John McCabe-Dansted wrote: I am getting ToC crashes again. This is with SVN of 16 Apr on FC6. I don't get the crash, but I see the (dramatic) slowdown. I've been investigating this bug for a long time without success :-( Do you have a backtrace? On windows, the

Re: Table of contents crashes (again)

2007-04-15 Thread Jürgen Spitzmüller
John McCabe-Dansted wrote: > I am getting ToC crashes again. This is with SVN of 16 Apr on FC6. I don't get the crash, but I see the (dramatic) slowdown. Do you have a backtrace? Jürgen

Table of contents crashes (again)

2007-04-15 Thread John McCabe-Dansted
On 4/10/07, Jürgen Spitzmüller <[EMAIL PROTECTED]> wrote: excellent detective work! I can confirm that the crash is gone. I am getting ToC crashes again. This is with SVN of 16 Apr on FC6. To replicate: 1) Start LyX 2) Press "Cntl-N" (new document) 3) Press "Alt-D", then "T" (Table of contents

Re: Table of contents crashes

2007-04-10 Thread Jean-Marc Lasgouttes
> "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: >> The solution was incredibly stupid: there was a (unused!) >> header included *before* . This was defining >> std::string without stdlib-debug support, and this does not have >> the same memory layout as the code in the rest o

Re: Table of contents crashes

2007-04-10 Thread Abdelrazak Younes
Abdelrazak Younes wrote: Jean-Marc Lasgouttes wrote: "Jean-Marc" == Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: Jean-Marc> I think that the problem is that the QToc thingy has not Jean-Marc> been properly allocated. See the following gbb session Jean-Marc> snippet. Note that

Re: Table of contents crashes

2007-04-10 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: "Jean-Marc" == Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: Jean-Marc> I think that the problem is that the QToc thingy has not Jean-Marc> been properly allocated. See the following gbb session Jean-Marc> snippet. Note that lfun_name_ value is 0x0, w

Re: Table of contents crashes

2007-04-10 Thread Jürgen Spitzmüller
Jean-Marc Lasgouttes wrote: > The solution was incredibly stupid: there was a (unused!) > header included *before* . This was defining std::string > without stdlib-debug support, and this does not have the same memory > layout as the code in the rest of LyX. excellent detective work! I can confir

Re: Table of contents crashes

2007-04-10 Thread Jean-Marc Lasgouttes
> "Jean-Marc" == Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: Jean-Marc> I think that the problem is that the QToc thingy has not Jean-Marc> been properly allocated. See the following gbb session Jean-Marc> snippet. Note that lfun_name_ value is 0x0, which is AFAIK Jean-Marc> not possible

Re: Table of contents crashes

2007-04-06 Thread Jean-Marc Lasgouttes
> "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: Abdelrazak> The only thing to do is to debug step to step and verify Abdelrazak> that 'data' are passed correctly in initialiseParams(). Abdelrazak> You should start by putting a breakpoint at Abdelrazak> ControlToc::initialisePa

Re: Table of contents crashes

2007-04-03 Thread Jürgen Spitzmüller
Abdelrazak Younes wrote: > I just committed some cleanup, please try again. Still the same :-( Jürgen

Re: Table of contents crashes

2007-04-03 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: Abdelrazak> Jean-Marc Lasgouttes wrote: I decided to try again the table of contents (which was always disabled), and now it crashes LyX with file Intro.lyx. Backtrace follows. If I look at frame 2, lfun

Re: Table of contents crashes

2007-04-03 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: Abdelrazak> Jean-Marc Lasgouttes wrote: I decided to try again the table of contents (which was always disabled), and now it crashes LyX with file Intro.lyx. Backtrace follows. If I look at frame 2, lfun

Re: Table of contents crashes

2007-04-03 Thread Jean-Marc Lasgouttes
> "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: Abdelrazak> Jean-Marc Lasgouttes wrote: >> I decided to try again the table of contents (which was always >> disabled), and now it crashes LyX with file Intro.lyx. >> >> Backtrace follows. If I look at frame 2, lfun_name_ is not

Re: Table of contents crashes

2007-03-27 Thread Jürgen Spitzmüller
Abdelrazak Younes wrote: > Does the attached patch fixes the problem? Not for me. Jürgen

Re: Table of contents crashes

2007-03-27 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: I decided to try again the table of contents (which was always disabled), and now it crashes LyX with file Intro.lyx. Backtrace follows. If I look at frame 2, lfun_name_ is not initialized correctly: Interesting... Does the attached patch fixes the problem? Abdel.

Table of contents crashes

2007-03-27 Thread Jean-Marc Lasgouttes
I decided to try again the table of contents (which was always disabled), and now it crashes LyX with file Intro.lyx. Backtrace follows. If I look at frame 2, lfun_name_ is not initialized correctly: (gdb) frame 2 #2 0x08b0ee5f in lyx::frontend::ControlCommand::initialiseParams ( this=0x934