Re: Layout Categories

2008-03-08 Thread Stefan Schimanski
Here is the patch for the grouped layout. The whole thing would be so much easier if QComboBox supported non- uniform-sized items in the popup. It just takes the first item and multiplies it with the item number to calculate the popup size. Hence I spent most time to find a way to avoid the

Re: [Cvslog] r23551 - /lyx-devel/trunk/src/Paragraph.h

2008-03-08 Thread Andre Poenitz
On Sat, Mar 08, 2008 at 02:19:50PM -0500, rgheck wrote: > Andre Poenitz wrote: >> On Sat, Mar 08, 2008 at 12:38:22PM -0500, rgheck wrote: >> >>> (1) go back to a standard container of pointers---but just normal >>> pointers [...] >>> (2) use a "strong typedef", something like: >>> [...] >>>

Re: [Cvslog] r23551 - /lyx-devel/trunk/src/Paragraph.h

2008-03-08 Thread Andre Poenitz
On Sat, Mar 08, 2008 at 12:38:22PM -0500, rgheck wrote: > (1) go back to a standard container of pointers---but just normal pointers > [...] > (2) use a "strong typedef", something like: > [...] (4) Move TextClass data members in a pimpl and use the compiler-generated copy consstructor. In genera

Re: [Cvslog] r23551 - /lyx-devel/trunk/src/Paragraph.h

2008-03-08 Thread rgheck
Andre Poenitz wrote: On Sat, Mar 08, 2008 at 12:38:22PM -0500, rgheck wrote: (1) go back to a standard container of pointers---but just normal pointers this time---and make the pointers be managed by TextClass, which is where the container is; then we can make Layouts non-copyable. This won'

Re: [Cvslog] r23551 - /lyx-devel/trunk/src/Paragraph.h

2008-03-08 Thread rgheck
Andre Poenitz wrote: On Sat, Mar 08, 2008 at 12:38:22PM -0500, rgheck wrote: (1) go back to a standard container of pointers---but just normal pointers [...] (2) use a "strong typedef", something like: [...] (3) The only place where currently a TextClass copy constructor is used is:

Re: [Cvslog] r23551 - /lyx-devel/trunk/src/Paragraph.h

2008-03-08 Thread Andre Poenitz
On Sat, Mar 08, 2008 at 12:38:22PM -0500, rgheck wrote: > (1) go back to a standard container of pointers---but just normal pointers > [...] > (2) use a "strong typedef", something like: > [...] (3) The only place where currently a TextClass copy constructor is used is: /// Constructs a

Re: [Cvslog] r23551 - /lyx-devel/trunk/src/Paragraph.h

2008-03-08 Thread Andre Poenitz
On Sat, Mar 08, 2008 at 12:38:22PM -0500, rgheck wrote: > (1) go back to a standard container of pointers---but just normal pointers > this time---and make the pointers be managed by TextClass, which is where > the container is; then we can make Layouts non-copyable. This won't be too > bad, bec

Re: [Cvslog] r23551 - /lyx-devel/trunk/src/Paragraph.h

2008-03-08 Thread rgheck
Andre Poenitz wrote: On Sat, Mar 08, 2008 at 03:00:14AM -, [EMAIL PROTECTED] wrote: Author: rgheck Date: Sat Mar 8 04:00:13 2008 New Revision: 23551 URL: http://www.lyx.org/trac/changeset/23551 Log: Comment. Modified: lyx-devel/trunk/src/Paragraph.h Modified: lyx-devel/trunk/src/P

Re: compile problem

2008-03-08 Thread Pavel Sanda
> Menus.cpp:1477: error: within this context > Menus.cpp:909: error: 'void lyx::frontendMenu::checkShortcuts() > const' is private > Menus.cpp:1480: error: within this context > make[5]: *** [Menus.lo] Error 1 fixed now > p

compile problem

2008-03-08 Thread Pavel Sanda
g++ -DHAVE_CONFIG_H -I. -I../../../src -DQT_CLEAN_NAMESPACE -DQT_GENUINE_STR -DQT_NO_STL -DQT_NO_KEYWORDS -I../../.. /src -I../../../src/frontends -I../../../images -DQT_SHARED -I/usr/include/qt4 -I/usr/include/qt4/QtCore -I/usr/inclu de/qt4/QtGui -I../../../boost -Wextra -Wall -O

Re: [Cvslog] r23551 - /lyx-devel/trunk/src/Paragraph.h

2008-03-08 Thread Andre Poenitz
On Sat, Mar 08, 2008 at 03:00:14AM -, [EMAIL PROTECTED] wrote: > Author: rgheck > Date: Sat Mar 8 04:00:13 2008 > New Revision: 23551 > > URL: http://www.lyx.org/trac/changeset/23551 > Log: > Comment. > > Modified: > lyx-devel/trunk/src/Paragraph.h > > Modified: lyx-devel/trunk/src/Para

Re: InsetText Crash

2008-03-08 Thread Abdelrazak Younes
Andre Poenitz wrote: On Sat, Mar 08, 2008 at 03:59:35PM +0100, Abdelrazak Younes wrote: Andre Poenitz wrote: On Sat, Mar 08, 2008 at 01:36:04PM +0100, Abdelrazak Younes wrote: [] There was no crash here, I had the exception message box displayed and the buffer closed. How do you get a bac

Re: InsetText Crash

2008-03-08 Thread Andre Poenitz
On Sat, Mar 08, 2008 at 03:59:35PM +0100, Abdelrazak Younes wrote: > Andre Poenitz wrote: >> On Sat, Mar 08, 2008 at 01:36:04PM +0100, Abdelrazak Younes wrote: >> [] >>> There was no crash here, I had the exception message box displayed and >>> the buffer closed. >> How do you get a backtrace

Re: InsetText Crash

2008-03-08 Thread Abdelrazak Younes
Andre Poenitz wrote: On Sat, Mar 08, 2008 at 01:36:04PM +0100, Abdelrazak Younes wrote: [] There was no crash here, I had the exception message box displayed and the buffer closed. How do you get a backtrace in this situation? Well, I down need one, the message box tells me which inset i

Re: InsetText Crash

2008-03-08 Thread Bernhard Roider
Andre Poenitz schrieb: On Sat, Mar 08, 2008 at 01:36:04PM +0100, Abdelrazak Younes wrote: [] There was no crash here, I had the exception message box displayed and the buffer closed. How do you get a backtrace in this situation? I am on windows also, and it is hard this way. If the exce

Re: InsetText Crash

2008-03-08 Thread Andre Poenitz
On Sat, Mar 08, 2008 at 01:36:04PM +0100, Abdelrazak Younes wrote: [] > There was no crash here, I had the exception message box displayed and the > buffer closed. How do you get a backtrace in this situation? Andre'

Re: InsetText Crash

2008-03-08 Thread Abdelrazak Younes
Andre Poenitz wrote: On Sat, Mar 08, 2008 at 12:45:37PM +0100, Bernhard Roider wrote: Andre Poenitz schrieb: On Fri, Mar 07, 2008 at 07:16:50PM -0500, rgheck wrote: I've fixed the crash reported by Bernhard at r23549. But I'm still puzzled about something. The crash is probably a consequence o

Re: InsetText Crash

2008-03-08 Thread Andre Poenitz
On Sat, Mar 08, 2008 at 12:45:37PM +0100, Bernhard Roider wrote: > Andre Poenitz schrieb: >> On Fri, Mar 07, 2008 at 07:16:50PM -0500, rgheck wrote: >>> I've fixed the crash reported by Bernhard at r23549. But I'm still >>> puzzled about something. The crash is probably a consequence of my >>> at

Re: amsmaths.inc

2008-03-08 Thread Jürgen Spitzmüller
rgheck wrote: > Does this need to be included here, or in every theorem environment? If > in every one, then it probably ought to go in a more global sort of > Preamble declaration. Actually, I guess the other ones depend upon that > one, so that would be OK. But it's kind of fragile that way. So..

Re: r23527 - in /lyx-devel/trunk/src: Makefile.am MenuBackend...

2008-03-08 Thread Abdelrazak Younes
Andre Poenitz wrote: On Sat, Mar 08, 2008 at 09:51:21AM +0100, Abdelrazak Younes wrote: [EMAIL PROTECTED] wrote: Author: poenitz Date: Fri Mar 7 01:21:23 2008 New Revision: 23527 URL: http://www.lyx.org/trac/changeset/23527 Log: merge MenuBackend into frontend/Menus I did not dare to do that

Re: InsetText Crash

2008-03-08 Thread Abdelrazak Younes
Bernhard Roider wrote: Andre Poenitz schrieb: On Fri, Mar 07, 2008 at 07:16:50PM -0500, rgheck wrote: I've fixed the crash reported by Bernhard at r23549. But I'm still puzzled about something. The crash is probably a consequence of my attempt to work on Paragraph.cpp, but I'm not sure exactly

Re: r23527 - in /lyx-devel/trunk/src: Makefile.am MenuBackend...

2008-03-08 Thread Andre Poenitz
On Sat, Mar 08, 2008 at 09:51:21AM +0100, Abdelrazak Younes wrote: > [EMAIL PROTECTED] wrote: >> Author: poenitz >> Date: Fri Mar 7 01:21:23 2008 >> New Revision: 23527 >> URL: http://www.lyx.org/trac/changeset/23527 >> Log: >> merge MenuBackend into frontend/Menus > > I did not dare to do that my

Re: InsetText Crash

2008-03-08 Thread Bernhard Roider
Andre Poenitz schrieb: On Fri, Mar 07, 2008 at 07:16:50PM -0500, rgheck wrote: I've fixed the crash reported by Bernhard at r23549. But I'm still puzzled about something. The crash is probably a consequence of my attempt to work on Paragraph.cpp, but I'm not sure exactly what's happened. The ba

Re: [Cvslog] r23545 - /lyx-devel/trunk/lib/layouts/theorems-ams.inc

2008-03-08 Thread Jürgen Spitzmüller
rgheck wrote: > Preamble > +   \usepackage{amsthm} > \theoremstyle{plain} > \newtheorem{thm}{Theorem} > EndPreamble I'd prefer + Requires amsthm Jürgen

Re: r23527 - in /lyx-devel/trunk/src: Makefile.am MenuBackend...

2008-03-08 Thread Abdelrazak Younes
[EMAIL PROTECTED] wrote: Author: poenitz Date: Fri Mar 7 01:21:23 2008 New Revision: 23527 URL: http://www.lyx.org/trac/changeset/23527 Log: merge MenuBackend into frontend/Menus I did not dare to do that myself ;-) Do you plan to do the same for the toolbar backend? That would be great. If