Re: [Patch] use Qt resources

2007-10-17 Thread Andre Poenitz
On Wed, Oct 17, 2007 at 09:55:53PM -0500, Bo Peng wrote: > On 10/16/07, Andre Poenitz <[EMAIL PROTECTED]> wrote: > > On Tue, Oct 16, 2007 at 11:11:23PM +0200, Andre Poenitz wrote: > > > > > > Could somebody on Windows please try this one? > > > > > > [It should work] > > > > > > Also anu observatio

Re: Building .deb package

2007-10-17 Thread Sven Hoexter
On Wed, Oct 17, 2007 at 08:53:28PM +0200, Tommaso Cucinotta wrote: > Hi, > > is there any automated script to build a .deb package for LyX ? > Well you can always check out the debian directory from the pkg-lyx svn on alioth and use that to build with dpkg-buildpackage and related tools. http://w

Re: r20991 - in /lyx-devel/trunk/src: KeyMap.h frontends/qt4/...

2007-10-17 Thread Bo Peng
> Nice work. This is a big step towards something very useful. > > Question: I can edit the keybindings in the sense that I can type stuff, > but it has no effect. I take it that it isn't supposed to have an effect > yet? Only the display part has been done. Because the GUI has not been determined

Re: boost::fs

2007-10-17 Thread Richard Heck
Andre Poenitz wrote: On Wed, Oct 17, 2007 at 11:54:00PM +0200, Andre Poenitz wrote: Something like that? Second try. This kind of thing: - if (layout_file.empty() || !fs::exists(layout_file.toFilesystemEncoding())) + if (layout_file.empty() || !layout_file.exists())

Re: [Patch] use Qt resources

2007-10-17 Thread Bo Peng
On 10/16/07, Andre Poenitz <[EMAIL PROTECTED]> wrote: > On Tue, Oct 16, 2007 at 11:11:23PM +0200, Andre Poenitz wrote: > > > > Could somebody on Windows please try this one? > > > > [It should work] > > > > Also anu observations on startup speed are welcome. > > Slightly more complete patch attache

Re: boost::fs

2007-10-17 Thread Andre Poenitz
On Wed, Oct 17, 2007 at 11:54:00PM +0200, Andre Poenitz wrote: > > Something like that? Second try. Andre' Index: TextClass.cpp === --- TextClass.cpp (revision 21005) +++ TextClass.cpp (working copy) @@ -30,12 +30,8 @@

boost::fs

2007-10-17 Thread Andre Poenitz
Something like that? Index: Buffer.h === --- Buffer.h(revision 21005) +++ Buffer.h(working copy) @@ -212,7 +212,7 @@ bool isExternallyModified(CheckMethod method) const; /// save timestamp and checksum of t

Re: Boost and exceptions

2007-10-17 Thread Andre Poenitz
On Wed, Oct 17, 2007 at 09:02:06PM +, Angus Leeming wrote: > Andre Poenitz <[EMAIL PROTECTED]> writes: > > [Apart from that I do neither trust boost::fs nor our own use of > > file names when it comes to "unusual" enviroments. Chinese Windows > > comes to mind for instance. One of the less funn

Re: Boost and exceptions

2007-10-17 Thread Angus Leeming
Andre Poenitz <[EMAIL PROTECTED]> writes: > [Apart from that I do neither trust boost::fs nor our own use of file > names when it comes to "unusual" enviroments. Chinese Windows comes > to mind for instance. One of the less funny features that show up > there is that the argv/argc that's passed to

.svn stuff in tar balls?

2007-10-17 Thread Andre Poenitz
Is there a specific reason that we distribute part of our working copies in the tar balls? As far as I can tell the reason is EXTRA_DIST += some_dir instead of EXTRA_DIST += somedir/file1 ... So is this just lazyness? Andre'

Re: [Cvslog] r21014 - /lyx-devel/trunk/lib/Makefile.am

2007-10-17 Thread Andre Poenitz
On Wed, Oct 17, 2007 at 07:14:16PM -, [EMAIL PROTECTED] wrote: > Author: poenitz > Date: Wed Oct 17 21:14:15 2007 > New Revision: 21014 > > URL: http://www.lyx.org/trac/changeset/21014 > Log: > no need to install images anymore... > > Modified: > lyx-devel/trunk/lib/Makefile.am > > Modif

Re: Charstyles rendering issue - jumping lines disrupt workflow

2007-10-17 Thread Martin Vermeer
On Wed, Oct 17, 2007 at 04:04:35PM +0200, Helge Hafting wrote: > Charstyles is nice for something - and now I even get > the URL charstyle automatically when opening older documents. > (Yes, I use 1.6 for work :-) > > All very fine, but one problem. Whenever the cursor moves through an > URL chars

Re: Font rendering bad with pixmap cache

2007-10-17 Thread Abdelrazak Younes
Stefan Schimanski wrote: Am 17.10.2007 um 20:07 schrieb Joost Verburg: Andre Poenitz wrote: On Wed, Oct 17, 2007 at 05:57:12PM +0200, Stefan Schimanski wrote: The patch is simple: Open GuiPainter.cpp. At the top is a #define macro which can be set as you like to enable or disable the cache.

Building .deb package

2007-10-17 Thread Tommaso Cucinotta
Hi, is there any automated script to build a .deb package for LyX ? T.

Re: Font rendering bad with pixmap cache

2007-10-17 Thread Abdelrazak Younes
Joost Verburg wrote: Andre Poenitz wrote: On Wed, Oct 17, 2007 at 05:57:12PM +0200, Stefan Schimanski wrote: The patch is simple: Open GuiPainter.cpp. At the top is a #define macro which can be set as you like to enable or disable the cache. Could that be a command line option? Why not a n

unneeded files

2007-10-17 Thread Andre Poenitz
Does anybody know why there is dist_noinst_DATA = \ ... images/font-smallcaps.png \ images/math/ams_arrows.png \ images/math/ams_misc.png \ images/math/ams_nrel.png \ images/math/ams_ops.png \ images/math/ams_rel.png \ images/math/ar

Re: Font rendering bad with pixmap cache

2007-10-17 Thread Andre Poenitz
On Wed, Oct 17, 2007 at 08:07:29PM +0200, Joost Verburg wrote: > Andre Poenitz wrote: > >On Wed, Oct 17, 2007 at 05:57:12PM +0200, Stefan Schimanski wrote: > >>The patch is simple: Open GuiPainter.cpp. At the top is a #define > >>macro which can be set as you like to enable or disable the cache.

Re: Font rendering bad with pixmap cache

2007-10-17 Thread Stefan Schimanski
Am 17.10.2007 um 20:07 schrieb Joost Verburg: Andre Poenitz wrote: On Wed, Oct 17, 2007 at 05:57:12PM +0200, Stefan Schimanski wrote: The patch is simple: Open GuiPainter.cpp. At the top is a #define macro which can be set as you like to enable or disable the cache. Could that be a comma

Re: Font rendering bad with pixmap cache

2007-10-17 Thread Joost Verburg
Andre Poenitz wrote: On Wed, Oct 17, 2007 at 05:57:12PM +0200, Stefan Schimanski wrote: The patch is simple: Open GuiPainter.cpp. At the top is a #define macro which can be set as you like to enable or disable the cache. Could that be a command line option? Why not a normal preference? The

Re: Font rendering bad with pixmap cache

2007-10-17 Thread Joost Verburg
Stefan Schimanski wrote: The patch is simple: Open GuiPainter.cpp. At the top is a #define macro which can be set as you like to enable or disable the cache. Thanks! Disabling the cache makes everything look normal again. Much better for my eyes :) Joost

Re: Boost and exceptions

2007-10-17 Thread Abdelrazak Younes
Andre Poenitz wrote: I am not sure I can see a reason why this is preferable over, say, bool isFileReadable(FileName const & filename) { QFileInfo const fi(toqstr(filename.absFilename())); return !fi.isDir() && fi.isReadable(); } FWIW, this is OK wi

Re: [PATCH] Re: 1.5.2 error

2007-10-17 Thread Juergen Spitzmueller
Jean-Marc Lasgouttes wrote: > Create a amsart.layout-based document with just a corollary. It won't > typeset because it relies on a "thm" counter. This is now also on bugzilla: http://bugzilla.lyx.org/show_bug.cgi?id=4282 Jürgen

Re: Font rendering bad with pixmap cache

2007-10-17 Thread Andre Poenitz
On Wed, Oct 17, 2007 at 05:57:12PM +0200, Stefan Schimanski wrote: > The patch is simple: Open GuiPainter.cpp. At the top is a #define > macro which can be set as you like to enable or disable the cache. Could that be a command line option? Andre'

Re: Boost and exceptions

2007-10-17 Thread Andre Poenitz
On Wed, Oct 17, 2007 at 11:41:52AM -0400, Richard Heck wrote: > Jean-Marc Lasgouttes wrote: > >I am looking at errors like: > >http://article.gmane.org/gmane.editors.lyx.general/41854/match=boost+filesystem+exists > >which boil down to LyX dying from a boost exception when some > >files/directories

Re: LyX asserts when browsing for images to insert

2007-10-17 Thread Andre Poenitz
On Wed, Oct 17, 2007 at 04:52:14PM +0200, Helge Hafting wrote: > I insert a graphic in a float. > When I press the "browse" button, LyX dies. > gdb backtrace: > > ASSERT failure in QList::at: "index out of range", file > ../../include/QtCore/../../src/corelib/tools/qlist.h, line 386 > > Program

Re: Boost and exceptions

2007-10-17 Thread Andre Poenitz
On Wed, Oct 17, 2007 at 04:59:29PM +0200, Jean-Marc Lasgouttes wrote: > > I am looking at errors like: > http://article.gmane.org/gmane.editors.lyx.general/41854/match=boost+filesystem+exists > which boil down to LyX dying from a boost exception when some > files/directories are not readable. Inde

Re: LyX asserts when browsing for images to insert

2007-10-17 Thread Jean-Marc Lasgouttes
Abdelrazak Younes <[EMAIL PROTECTED]> writes: >> Ouch. This looks like a qt bug to me. > > I won't bet on that. Probably a corrupted stack after a bad memory > access. All the dialogs have not been restored in functionality after > Andre's controller cleanups. Might be the case indeed. valgrind c

Re: Boost and exceptions

2007-10-17 Thread Richard Heck
Abdelrazak Younes wrote: Jean-Marc Lasgouttes wrote: I am looking at errors like: http://article.gmane.org/gmane.editors.lyx.general/41854/match=boost+filesystem+exists which boil down to LyX dying from a boost exception when some files/directories are not readable. Indeed, boost::fs:exists c

Re: Font rendering bad with pixmap cache

2007-10-17 Thread Abdelrazak Younes
Joost Verburg wrote: Abdelrazak Younes wrote: On Windows, enabling or disabling the cache has strictly no effect on my LCD screen. Are you sure about this? I have ClearType enabled (the standard Windows anti-aliasing which does sub-pixel rendering) but the fonts in LyX do not look correctly.

Re: Boost and exceptions

2007-10-17 Thread Jean-Marc Lasgouttes
Abdelrazak Younes <[EMAIL PROTECTED]> writes: > If the reporter is on Mac, this is a known problem: MacOSX will catch > the exception before us... I've done some test with Bennett and it > seems that this is true for all kind of exceptions. Nope. Fedora 7. JMarc

Re: LyX asserts when browsing for images to insert

2007-10-17 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: Helge Hafting <[EMAIL PROTECTED]> writes: I insert a graphic in a float. When I press the "browse" button, LyX dies. gdb backtrace: ASSERT failure in QList::at: "index out of range", file ../../include/QtCore/../../src/corelib/tools/qlist.h, line 386 Ouch. This lo

Re: Boost and exceptions

2007-10-17 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: I am looking at errors like: http://article.gmane.org/gmane.editors.lyx.general/41854/match=boost+filesystem+exists which boil down to LyX dying from a boost exception when some files/directories are not readable. Indeed, boost::fs:exists can throw an exception: BO

Re: Boost and exceptions

2007-10-17 Thread Jean-Marc Lasgouttes
Richard Heck <[EMAIL PROTECTED]> writes: > One possibility would be to write our own exists() function that calls > fs::exists and handles the exception, which would of course mean > replacing all 70 of those...though that'd be easier than adding a > try-catch block seventy times. But then: Do any

Re: Font rendering bad with pixmap cache

2007-10-17 Thread Stefan Schimanski
The patch is simple: Open GuiPainter.cpp. At the top is a #define macro which can be set as you like to enable or disable the cache. Stefan Am 17.10.2007 um 16:18 schrieb Joost Verburg: Stefan Schimanski wrote: After compiling the latest trunk (with the pixmap cache optimization in the Gui

Re: r21001 - /lyx-devel/trunk/src/frontends/qt4/GuiPrefs.cpp

2007-10-17 Thread Andre Poenitz
On Wed, Oct 17, 2007 at 01:42:24AM -0500, Bo Peng wrote: > On 10/17/07, Andre Poenitz <[EMAIL PROTECTED]> wrote: > > On Wed, Oct 17, 2007 at 01:04:39AM -0500, Bo Peng wrote: > > > > The implementation may be awkward, but all LFUNs are now listed > > > > correctly. Please test and comment. > > > > >

Re: Boost and exceptions

2007-10-17 Thread Richard Heck
Jean-Marc Lasgouttes wrote: I am looking at errors like: http://article.gmane.org/gmane.editors.lyx.general/41854/match=boost+filesystem+exists which boil down to LyX dying from a boost exception when some files/directories are not readable. Indeed, boost::fs:exists can throw an exception: BO

Re: [Patch] Bug 2739 - Alphabetical sort of environments in the toolbar

2007-10-17 Thread Pavel Sanda
> > Andre'? Is there a way to obtain this feature in Qt? > > From a theoretical point of view there is > > void QComboBox::setItemDelegate(QAbstractItemDelegate *) > > which in turn has > > void paint(QPainter * painter, const QStyleOptionViewItem & option, > const QModelIndex & index)

Re: [Cvslog] r21004 - /lyx-devel/trunk/src/factory.cpp

2007-10-17 Thread Richard Heck
Jean-Marc Lasgouttes wrote: [EMAIL PROTECTED] writes: Author: rgheck Date: Wed Oct 17 14:50:25 2007 New Revision: 21004 URL: http://www.lyx.org/trac/changeset/21004 Log: Switch on InsetCodes in the factory. Nice. Thanks! It'll be even better if and when I can get the other branch t

Re: LyX asserts when browsing for images to insert

2007-10-17 Thread Jean-Marc Lasgouttes
Helge Hafting <[EMAIL PROTECTED]> writes: > I insert a graphic in a float. > When I press the "browse" button, LyX dies. > gdb backtrace: > > ASSERT failure in QList::at: "index out of range", file > ../../include/QtCore/../../src/corelib/tools/qlist.h, line 386 Ouch. This looks like a qt bug to

Boost and exceptions

2007-10-17 Thread Jean-Marc Lasgouttes
I am looking at errors like: http://article.gmane.org/gmane.editors.lyx.general/41854/match=boost+filesystem+exists which boil down to LyX dying from a boost exception when some files/directories are not readable. Indeed, boost::fs:exists can throw an exception: BOOST_FS_FUNC(bool) exists( con

LyX asserts when browsing for images to insert

2007-10-17 Thread Helge Hafting
I insert a graphic in a float. When I press the "browse" button, LyX dies. gdb backtrace: ASSERT failure in QList::at: "index out of range", file ../../include/QtCore/../../src/corelib/tools/qlist.h, line 386 Program received signal SIGABRT, Aborted. [Switching to Thread 0xa62096c0 (LWP 28226)

Re: [Cvslog] r21004 - /lyx-devel/trunk/src/factory.cpp

2007-10-17 Thread José Matos
On Wednesday 17 October 2007 13:59:06 Jean-Marc Lasgouttes wrote: > Nice. +1 > JMarc -- José Abílio

Re: [PATCH] Re: 1.5.2 error

2007-10-17 Thread Juergen Spitzmueller
Jean-Marc Lasgouttes wrote: > What do you want me to do? The patch is complete as far as I know but > I do not have a corpus of amsmath documents to test it. I don't have so much time ATM, so I cannot test extensively myself (also, I'm no AMS user myself). I mean that if you come to the conclusi

Re: Font rendering bad with pixmap cache

2007-10-17 Thread Joost Verburg
Abdelrazak Younes wrote: On Windows, enabling or disabling the cache has strictly no effect on my LCD screen. Are you sure about this? I have ClearType enabled (the standard Windows anti-aliasing which does sub-pixel rendering) but the fonts in LyX do not look correctly. I'm quite certain tha

Bug 4280 - spellchecker failures in 1.6svn

2007-10-17 Thread Helge Hafting
Spellchecking fails in many ways in 1.6svn: 1. The F7 key doesn't do anything, the menu is necessary to get the dialog 2. The spellchecker finds wrong words, but don't fill in its dialog at all. So no hint about the correct spelling. 3. Using the "Ignore" button has no effect, so spellchecking

Re: Font rendering bad with pixmap cache

2007-10-17 Thread Joost Verburg
Stefan Schimanski wrote: After compiling the latest trunk (with the pixmap cache optimization in the GuiPainter) I noticed a very bad font rendering. I attached two pictures, the first showing trunk with normal antialiasing, the right showing direct font rendering with the pixmap cache disabled

Charstyles rendering issue - jumping lines disrupt workflow

2007-10-17 Thread Helge Hafting
Charstyles is nice for something - and now I even get the URL charstyle automatically when opening older documents. (Yes, I use 1.6 for work :-) All very fine, but one problem. Whenever the cursor moves through an URL charstyle, stuff on the screen jumps all over the place. That is very distracti

Re: r20991 - in /lyx-devel/trunk/src: KeyMap.h frontends/qt4/...

2007-10-17 Thread Jean-Marc Lasgouttes
"Bo Peng" <[EMAIL PROTECTED]> writes: > Right now, I have to try to 'revert' to a bind list, and let the user > do in-place modification. The problem is that I do not know qt and > event handling and I have no idea how to catch keybindings when a user > actually type them. I am sure there is code

Re: r20991 - in /lyx-devel/trunk/src: KeyMap.h frontends/qt4/...

2007-10-17 Thread Bo Peng
> This is definitely _not_ the way to go. If you need some code to get a > vector of functions and keysequences, just add that to KeyMap.h. The > GUI code shall not have to know about the structure of key sequences. You are right. > Similarly, the printing of keysyms is not a good idea. If you ha

Re: [PATCH] Re: 1.5.2 error

2007-10-17 Thread Jean-Marc Lasgouttes
[EMAIL PROTECTED] (Jürgen Spitzmüller) writes: > Jean-Marc Lasgouttes wrote: >> Create a amsart.layout-based document with just a corollary. It won't >> typeset because it relies on a "thm" counter. > > I see. How bad. I thought I tested Paul's patch carefully :-( > >> The following patch takes ca

Re: [Cvslog] r21004 - /lyx-devel/trunk/src/factory.cpp

2007-10-17 Thread Jean-Marc Lasgouttes
[EMAIL PROTECTED] writes: > Author: rgheck > Date: Wed Oct 17 14:50:25 2007 > New Revision: 21004 > > URL: http://www.lyx.org/trac/changeset/21004 > Log: > Switch on InsetCodes in the factory. Nice. JMarc

Re: Lyx 1.5.2 compilation problems on OSX 10.3.9

2007-10-17 Thread Jean-Marc Lasgouttes
"Honest Guvnor" <[EMAIL PROTECTED]> writes: > On 10/17/07, Jean-Marc Lasgouttes <[EMAIL PROTECTED]> wrote: >> The reason seems to be that configure recognizes the compiler as gcc >> whereas it is not gcc. Could you send (privately maybe) your >> config.log file so that I investigate this? > > The

Re: r20991 - in /lyx-devel/trunk/src: KeyMap.h frontends/qt4/...

2007-10-17 Thread Jean-Marc Lasgouttes
"Bo Peng" <[EMAIL PROTECTED]> writes: > On 10/16/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >> Author: bpeng >> Date: Tue Oct 16 19:48:37 2007 >> New Revision: 20991 >> >> URL: http://www.lyx.org/trac/changeset/20991 >> Log: >> List currently used shortcuts in the shortcuts panel of the pref

Re: Are graphics being cached?

2007-10-17 Thread Enrico Forestieri
On Wed, Oct 17, 2007 at 08:21:52AM +0200, Andre Poenitz wrote: > Could it be that everything that's found in the cache is read/touched on > startup? Yes. Look at the output when using -dbg files. -- Enrico

Re: Lyx 1.5.2 compilation problems on OSX 10.3.9

2007-10-17 Thread Honest Guvnor
On 10/17/07, Jean-Marc Lasgouttes <[EMAIL PROTECTED]> wrote: > The reason seems to be that configure recognizes the compiler as gcc > whereas it is not gcc. Could you send (privately maybe) your > config.log file so that I investigate this? The compiler is gcc 3.3 with some modifications by Apple.

Re: [Cvslog] r21001 - /lyx-devel/trunk/src/frontends/qt4/GuiPrefs.cpp

2007-10-17 Thread Jean-Marc Lasgouttes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: > "Bo Peng" <[EMAIL PROTECTED]> writes: > >> To avoid this problem, I think this should be replaced by >> >> \bind C-1 blah >> \bind C-S-1 blah > > I do not think it is a good idea to fix a problem in our code by > adding extra bindings. To be clea

Re: Are graphics being cached?

2007-10-17 Thread Jean-Marc Lasgouttes
"Paul A. Rubin" <[EMAIL PROTECTED]> writes: > Juergen Spitzmueller wrote: >> Paul A. Rubin wrote: >> >>> I'm not the only one experiencing this, but I'm on Win XP and the person >>> who pointed it out to me is on Vista, so possibly it's >>> Windows-specific. Any thoughts? >> >> This is probably h

Re: Are graphics being cached?

2007-10-17 Thread Jean-Marc Lasgouttes
Andre Poenitz <[EMAIL PROTECTED]> writes: > Where is this cache coming from btw? It was Georg's work. > I seemingly missed the patch discussed on the list and yesterday found > per chance the cache on disk as I was trying to figure out why I still > have 375 stat64 calls on startup although I us

Re: Lyx 1.5.2 compilation problems on OSX 10.3.9

2007-10-17 Thread Jean-Marc Lasgouttes
"Honest Guvnor" <[EMAIL PROTECTED]> writes: > On 10/16/07, Honest Guvnor <[EMAIL PROTECTED]> wrote: >> Enrico wrote: >> > Have you seen the following post? >> > >> > http://article.gmane.org/gmane.editors.lyx.devel/96913/ >> > >> > I think you are using wrong flags for gcc. >> >> Yes I had read th

Re: r21001 - /lyx-devel/trunk/src/frontends/qt4/GuiPrefs.cpp

2007-10-17 Thread Jean-Marc Lasgouttes
"Bo Peng" <[EMAIL PROTECTED]> writes: > To avoid this problem, I think this should be replaced by > > \bind C-1 blah > \bind C-S-1 blah I do not think it is a good idea to fix a problem in our code by adding extra bindings. JMarc

Re: autopackage?

2007-10-17 Thread christian . ridderstrom
On Tue, 16 Oct 2007, José Matos wrote: On Tuesday 16 October 2007 21:55:54 [EMAIL PROTECTED] wrote: Would this be useful in order to provide a single package for *nix distribusion rather than several http://www.autopackage.org/ /Christian That question comes with several years of del