Re: PCH/gcc of lyx

2006-06-17 Thread Bo Peng
Dear all, I am also looking at msvc pch. I find that our source code does not really conform with the convention. Usually, we should have 1. pch.h (we have) 2. pch.cpp with #include 3. every source file #include Then, pch.cpp is compiled to get pch.pch, and pch.pch will be used for other s

Re: LyX Window placed in the upper left corner

2006-06-17 Thread Enrico Forestieri
On Sat, Jun 17, 2006 at 11:50:11AM +0200, Peter Kümmel wrote: > Enrico Forestieri wrote: > > On Fri, Jun 16, 2006 at 12:31:55PM +0200, Peter Kümmel wrote: > > > >> Ok, now setMainWidget is the last call which could change the geometry. > >> I could not test Qt3 lyx. > > > > I am sorry, but with

Re: Scons problems with moc renamed file

2006-06-17 Thread Bo Peng
But introduce another: all the include paths are trunked : D:\program\Qt\4.1\include\QtCor D:\program\Qt\4.1\include\QtGu The updated patch should fix this. Bo Index: development/scons/qt4.py === --- development/scons/qt4.py (rev

image dialog question

2006-06-17 Thread Uwe Stöhr
The image dialog of LyX 1.4 has the new button "Edit". I adjusted in the preferences that JPEGs should be opened with photoshop and when I press the Edit button of the image dialog, photoshop is opened as expected. But I want photoshop to be opened with the current image file whose image dialo

Two issues for LyX 1.4.2

2006-06-17 Thread Uwe Stöhr
Hello LyXers, I found two issues that should/could be fixed before LyX 1.4.2 comes out: - http://bugzilla.lyx.org/show_bug.cgi?id=2653 Simple fix for broken doc file - http://bugzilla.lyx.org/show_bug.cgi?id=2648 minor but this is very easy to fix regards Uwe

Re: Scons problems with moc renamed file

2006-06-17 Thread Abdelrazak Younes
Abdelrazak Younes wrote: Bo Peng wrote: > Attached patch > 1. use QtGui4_debug.dll in debug mode Sorry but it is a bit more complicated... In my system it is QtCored4.dll and QtGuid4.dll so it is not just a suffix. If you have QtCore4d.dll, then the patch should work. Otherwise, look for fron

Re: Scons problems with moc renamed file

2006-06-17 Thread Abdelrazak Younes
Bo Peng wrote: > Attached patch > 1. use QtGui4_debug.dll in debug mode Sorry but it is a bit more complicated... In my system it is QtCored4.dll and QtGuid4.dll so it is not just a suffix. If you have QtCore4d.dll, then the patch should work. Otherwise, look for frontend_libs and change suffi

Re: Scons problems with moc renamed file

2006-06-17 Thread Bo Peng
> Attached patch > 1. use QtGui4_debug.dll in debug mode Sorry but it is a bit more complicated... In my system it is QtCored4.dll and QtGuid4.dll so it is not just a suffix. If you have QtCore4d.dll, then the patch should work. Otherwise, look for frontend_libs and change suffix. > 2. adjust

Re: Scons problems with moc renamed file

2006-06-17 Thread Abdelrazak Younes
Bo Peng wrote: Two solutions: 1) detect a Q_OBJECT inside the header. 2) moc all qt4/*.h 1) is the default for qt4.py but our wonderful .C naming disables it and I have to do it manually. If you can rename all files to .C (at least for qt4), I can change to 1. It would be better to do that

Re: [Patch] Re: Drawing error with collapsable insets.

2006-06-17 Thread Martin Vermeer
On Wed, Jun 14, 2006 at 11:14:19AM +0300, Martin Vermeer wrote: ... > PS Getting rid of Wide() would only be possible if you have, inside > insettext, access to the _maximum_ left and right edges of the contained > text, rather than the _actual_ ones... Yesss! This is precisely the solution. P

Re: Scons problems with moc renamed file

2006-06-17 Thread Bo Peng
Two solutions: 1) detect a Q_OBJECT inside the header. 2) moc all qt4/*.h 1) is the default for qt4.py but our wonderful .C naming disables it and I have to do it manually. If you can rename all files to .C (at least for qt4), I can change to 1. Attached patch 1. use QtGui4_debug.dll in debug

Odd font change on maximization (lyx-1.4.1)

2006-06-17 Thread David Raymond
Hello, Here is a rather odd bug in 1.4.1 running on Linux (Debian 3.1, i386) with the qt interface (version 3.0.3 mt). Immediately after maximizing the lyx window, the font changes to some very large, bold font. Backspacing over these characters and then typing again returns one to the original

Re: Scons problems with moc renamed file

2006-06-17 Thread Abdelrazak Younes
Bo Peng wrote: When I rename a file that is mocable scons does not automatically run moc on this renamed file. I always have to do that by hand. Do you think it is possible to automate that? Scons lists mocable files. You will have to rename it in SConstruct. Ah, I understand now. I thought

Re: Scons problems with moc renamed file

2006-06-17 Thread Bo Peng
When I rename a file that is mocable scons does not automatically run moc on this renamed file. I always have to do that by hand. Do you think it is possible to automate that? Scons lists mocable files. You will have to rename it in SConstruct. If there is a signature of which files should be m

Scons problems with moc renamed file

2006-06-17 Thread Abdelrazak Younes
Bo, When I rename a file that is mocable scons does not automatically run moc on this renamed file. I always have to do that by hand. Do you think it is possible to automate that? Abdel.

[Patch] Move FontLoader and LyXView handling

2006-06-17 Thread Abdelrazak Younes
Hello, With this patch Fontloader becomes a member of the Application class and the Gui class now contains the infrastructure to handle multiple LyXViews. In other words, this is step 2 of my Clenup plan. Only scons/qt4 support for now. Note that it still crashes on startup. I would prefer t

Re: LyX Window placed in the upper left corner

2006-06-17 Thread Andre Poenitz
On Fri, Jun 16, 2006 at 10:38:40AM +0200, Peter Kümmel wrote: > Index: qt3/lyx_gui.C > === > --- qt3/lyx_gui.C (revision 14122) > +++ qt3/lyx_gui.C (working copy) > @@ -235,9 +235,12 @@ > view.init(); > >

Re: [PATCH] Re-orgnization of scons and generatiion of multiple config.h

2006-06-17 Thread Abdelrazak Younes
Bo Peng wrote: Ah... So please consider making this in src/boost_config.h instead. This config file should also be used for external boost. Then, what is the point of separating the config.h? For one, if you use the DBOOST_USER_CONFIG="libs/config.h" option then only the file using boost wil

[patch] font selection redesign completed

2006-06-17 Thread Juergen Spitzmueller
Please find attached the completed and fully functional version of the font selection rewrite (posted patch + working screen font family switch + scale gui implementation + lyx2lyx from Georg (modified) + xforms & qt4 gui + support for the Bera fonts + documentation). I intend to shove this int

Re: Scons/Msvc and debug mode

2006-06-17 Thread Bo Peng
I am trying to use the MSVC2005 debugger but it appears that the debug version of LyX was linked to QtCore4.dll and QtGui4.dll. This doesn't work, we need to link with QtCore4d.dll and QtGui4d.dll. I will change that soon. Thanks. Bo

Re: [PATCH] Re-orgnization of scons and generatiion of multiple config.h

2006-06-17 Thread Bo Peng
Ah... So please consider making this in src/boost_config.h instead. This config file should also be used for external boost. Then, what is the point of separating the config.h? Bo

Re: [PATCH] Re-orgnization of scons and generatiion of multiple config.h

2006-06-17 Thread Abdelrazak Younes
Bo Peng wrote: > We need to make > sre libs/config.h exists though. ?? I don't understand... boost/libs/config.h is the file scons is generating for boost. Currently, it is generated only when boost=included. Ah... So please consider making this in src/boost_config.h instead. This config f

Re: [PATCH] Re-orgnization of scons and generatiion of multiple config.h

2006-06-17 Thread Bo Peng
> We need to make > sre libs/config.h exists though. ?? I don't understand... boost/libs/config.h is the file scons is generating for boost. Currently, it is generated only when boost=included. Bo

Scons/Msvc and debug mode

2006-06-17 Thread Abdelrazak Younes
Bo, I am trying to use the MSVC2005 debugger but it appears that the debug version of LyX was linked to QtCore4.dll and QtGui4.dll. This doesn't work, we need to link with QtCore4d.dll and QtGui4d.dll. Abdel.

qt4: table borders are wrong

2006-06-17 Thread Edwin Leuven
for example: unsetting the top border of a newly inserted table only unsets visually the top left cell...

Re: [PATCH] Re-orgnization of scons and generatiion of multiple config.h

2006-06-17 Thread Abdelrazak Younes
Bo Peng wrote: The version you committed seems to work fine for msvc2005. I gave you already what I think should go into boost/libs/config.h but let me repeat that: Do we need #include "libs/config.h" in src/config.h? either include it or pass DBOOST_USER_CONFIG="libs/config.h", AFAIU this i

PCH/gcc of lyx

2006-06-17 Thread Bo Peng
Dear all, I am trying to implement pch for scons under linux. But get some funny results. Using src/mathed as an example, make file (pch on) takes 87s, scons (pch off) takes 89s, and scons (pch on) takes 102s. Maybe src/mathed is not a good example, but 1. Has anyone seriously tested the perform

Re: [PATCH] Re-orgnization of scons and generatiion of multiple config.h

2006-06-17 Thread Bo Peng
The version you committed seems to work fine for msvc2005. I gave you already what I think should go into boost/libs/config.h but let me repeat that: Do we need #include "libs/config.h" in src/config.h? We need to make sre libs/config.h exists though. Bo

Re: [PATCH] Re-orgnization of scons and generatiion of multiple config.h

2006-06-17 Thread Abdelrazak Younes
Bo Peng wrote: Dear all, Major reorganization of scons has been done for scons. Basically, I pack everything into SConstruct which results in cleaner and shorter code (previously, we rely on env to pass messages so there are both dest_dir and env['DEST_DIR'] etc). The only user visible change i

Re: LyX Window placed in the upper left corner

2006-06-17 Thread Peter Kümmel
Enrico Forestieri wrote: > On Fri, Jun 16, 2006 at 12:31:55PM +0200, Peter Kümmel wrote: > >> Ok, now setMainWidget is the last call which could change the geometry. >> I could not test Qt3 lyx. > > I am sorry, but with this patch applied LyX segfaults when starting: This is the only idea I have

[Patch] Some renaming of qt4 classes and files

2006-06-17 Thread Abdelrazak Younes
Hello, Nothing controversial here. Just some renaming in preparation for further cleanup. Committed to trunk. Abdel. ___ Log: Those classes (and their associated [Ch] files) are renamed : QLAction -> Action lcolorcache -> ColorCache qfont_loader.C -> FontLoader Index: