Re: [patch] load images from filesystem if not found in the resources

2007-10-19 Thread Jürgen Spitzmüller
Andre Poenitz wrote: > Has anybody _ever_ customized his icons? Sure. All the time (I used icons from my KDE icon theme instead of the ugly ones shipped with LyX). Jürgen

[PATCH] PrefShortcuts \unbind, user.bind, and shortcutsTW.

2007-10-19 Thread Bo Peng
Dear all, My previous email was sent by accident, please ignore it. Please test the attached patch that almost complete the shortcut configuration panel. From a user's point of view, it works like this: 1. lyx loads rc.bind_file, and ~/.lyx/bind/user.bind. user.bind is automatically generated fr

[PATCH] PrefShortcuts \unbind, user.bind, and shortcutsTW.

2007-10-19 Thread Bo Peng
Dear all, Please test the attached patch that almost complete the shortcut configuration panel. From a user's point of view, it works like this: 1. lyx loads rc.bind_file, and ~/.lyx/bind/user.bind. user.bind is automatically generated from the preference dialog. 2. user.bind has regular \bind i

Re: [patch] load images from filesystem if not found in the resources

2007-10-19 Thread Andre Poenitz
On Sat, Oct 20, 2007 at 12:03:33AM +0200, Bernhard Roider wrote: > as the subject says: this patch makes it possible again to cusomize the > toolbars with user defined images. if nobody objects i'll put it in > tomorrow. Looks ok. [Has anybody _ever_ customized his icons?] Andre'

Re: InsetCommandParams Question

2007-10-19 Thread Richard Heck
Andre Poenitz wrote: On Fri, Oct 19, 2007 at 12:24:50AM -0400, Richard Heck wrote: Andre Poenitz wrote: On Thu, Oct 18, 2007 at 02:47:44PM -0400, Richard Heck wrote: So the question is: Are the added memory requirements here objectionable? How much would that be?

[patch] load images from filesystem if not found in the resources

2007-10-19 Thread Bernhard Roider
as the subject says: this patch makes it possible again to cusomize the toolbars with user defined images. if nobody objects i'll put it in tomorrow. bernhard Index: src/frontends/qt4/GuiToolbar.cpp === --- src/frontends/qt4/GuiTool

Re: r21065 - in /lyx-devel/trunk: development/cmake/modules/F...

2007-10-19 Thread Peter Kümmel
Enrico Forestieri wrote: On Fri, Oct 19, 2007 at 07:03:50PM +0200, Peter Kümmel wrote: What about this patch? If the scons and .am chnages are correct I check it in. Ok. 3 of 4 build systems are fixed know. ;) http://www.lyx.org/trac/changeset/21074 I wonder if qmake could also generate

Re: [Cvslog] r21073 - /lyx-devel/trunk/src/insets/InsetCommandParams.cpp

2007-10-19 Thread Martin Vermeer
Yes, this is the fix. Thanks - Martin

Re: UserGuide

2007-10-19 Thread Martin Vermeer
On Fri, Oct 19, 2007 at 07:53:28PM +0200, Andre Poenitz wrote: > On Fri, Oct 19, 2007 at 08:28:35PM +0300, Martin Vermeer wrote: > > On Fri, Oct 19, 2007 at 02:32:27PM +0200, Jean-Marc Lasgouttes wrote: > > > Enrico Forestieri <[EMAIL PROTECTED]> writes: > > > > > > > Moreover, \index is fragile,

Re: r21065 - in /lyx-devel/trunk: development/cmake/modules/F...

2007-10-19 Thread Enrico Forestieri
On Fri, Oct 19, 2007 at 07:03:50PM +0200, Peter Kümmel wrote: > What about this patch? > If the scons and .am chnages are correct I check it in. Ok. -- Enrico

Re: [Patch] use Qt resources

2007-10-19 Thread Andre Poenitz
On Fri, Oct 19, 2007 at 11:07:19AM +0200, Alfredo Braunstein wrote: > Abdelrazak Younes wrote: > > > Good question. > > > >> Because in the > >> second case the change could actually mean *slower* startup times... > > > > I don't think the difference would be noticeable... the lib/images/math >

Re: UserGuide

2007-10-19 Thread Andre Poenitz
On Fri, Oct 19, 2007 at 08:28:35PM +0300, Martin Vermeer wrote: > On Fri, Oct 19, 2007 at 02:32:27PM +0200, Jean-Marc Lasgouttes wrote: > > Enrico Forestieri <[EMAIL PROTECTED]> writes: > > > > > Moreover, \index is fragile, so any fragile command appearing in its > > > argument must be protected.

Re: r21065 - in /lyx-devel/trunk: development/cmake/modules/F...

2007-10-19 Thread Andre Poenitz
On Fri, Oct 19, 2007 at 07:03:50PM +0200, Peter Kümmel wrote: > Index: src/frontends/qt4/Makefile.am > === > --- src/frontends/qt4/Makefile.am (revision 21071) > +++ src/frontends/qt4/Makefile.am (working copy) > @@ -26,7 +26,7

Re: UserGuide

2007-10-19 Thread Richard Heck
Martin Vermeer wrote: On Fri, Oct 19, 2007 at 11:00:58AM +0200, Helge Hafting wrote: Enrico Forestieri wrote: On Thu, Oct 18, 2007 at 09:11:07PM +0200, Andre Poenitz wrote: Has anybody recently actually tried to compile the UserGuide? On my machine LaTeX simply does not fin

Re: [Cvslog] r21063 - in /lyx-devel/trunk/src: FontList.cpp FontList.h...

2007-10-19 Thread Andre Poenitz
On Fri, Oct 19, 2007 at 02:47:34PM -, [EMAIL PROTECTED] wrote: > Author: younes > Date: Fri Oct 19 16:47:32 2007 > New Revision: 21063 > > URL: http://www.lyx.org/trac/changeset/21063 > Log: > incremental cleanup > > Modified: > lyx-devel/trunk/src/FontList.cpp > lyx-devel/trunk/src/F

Re: UserGuide

2007-10-19 Thread Martin Vermeer
On Fri, Oct 19, 2007 at 11:00:58AM +0200, Helge Hafting wrote: > Enrico Forestieri wrote: > > On Thu, Oct 18, 2007 at 09:11:07PM +0200, Andre Poenitz wrote: > > > >> Has anybody recently actually tried to compile the UserGuide? > >> > >> On my machine LaTeX simply does not finish. Run by hand I

Re: LyX asserts - probably a qt problem after all.

2007-10-19 Thread Andre Poenitz
On Fri, Oct 19, 2007 at 12:58:25PM +0200, Helge Hafting wrote: > Abdelrazak Younes wrote: > >Jean-Marc Lasgouttes wrote: > >> > >>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 fun

Re: UserGuide

2007-10-19 Thread Martin Vermeer
On Fri, Oct 19, 2007 at 02:32:27PM +0200, Jean-Marc Lasgouttes wrote: > Enrico Forestieri <[EMAIL PROTECTED]> writes: > > > Moreover, \index is fragile, so any fragile command appearing in its > > argument must be protected. That is to say that > > > > \index{Bibliography ! Bib\TeX} > > > > doesn'

Re: InsetCommandParams Question

2007-10-19 Thread Richard Heck
I'll top-post this only because my remarks don't interweave cleanly with these comments, for which, thanks. Here's why I don't want to assume that insets have fixed parameter lists. Two use cases: (i) Bibliography support. We need to move away from hard-coding CiteEngines toward a more flexi

Re: [Patch] use Qt resources

2007-10-19 Thread Andre Poenitz
On Fri, Oct 19, 2007 at 11:04:18AM +0200, Abdelrazak Younes wrote: > Alfredo Braunstein wrote: > >Abdelrazak Younes wrote: > > > >>>And this is an advantage because? > >>Presumably faster loading. I haven't tested yet but I can imagine that > >>reading one big file on disk is faster than reading 60

Re: r21065 - in /lyx-devel/trunk: development/cmake/modules/F...

2007-10-19 Thread Bo Peng
=== > --- development/scons/qt4.py(revision 21071) > +++ development/scons/qt4.py(working copy) > @@ -249,7 +249,7 @@ > argument = None, > skeys = ['.qrc']) > qrcbuilder = Builder( > -

Re: boost::fs

2007-10-19 Thread Andre Poenitz
On Fri, Oct 19, 2007 at 11:04:01AM +0200, Jean-Marc Lasgouttes wrote: > Andre Poenitz <[EMAIL PROTECTED]> writes: > > > On Wed, Oct 17, 2007 at 11:54:00PM +0200, Andre Poenitz wrote: > >> > >> Something like that? > > > > Second try. > > So, what can we do for 1.5? I do not think that such an ex

Re: [Patch] use Qt resources

2007-10-19 Thread Andre Poenitz
On Fri, Oct 19, 2007 at 10:45:30AM +0200, Jean-Marc Lasgouttes wrote: > Abdelrazak Younes <[EMAIL PROTECTED]> writes: > > >> And this is an advantage because? > > > > Presumably faster loading. I haven't tested yet but I can imagine that > > reading one big file on disk is faster than reading 600

Re: [Patch] use Qt resources

2007-10-19 Thread Andre Poenitz
On Fri, Oct 19, 2007 at 10:37:46AM +0200, Alfredo Braunstein wrote: > Abdelrazak Younes wrote: > > >> And this is an advantage because? > > > > Presumably faster loading. I haven't tested yet but I can imagine that > > reading one big file on disk is faster than reading 600 small files > > (this

Re: [Patch] use Qt resources

2007-10-19 Thread Andre Poenitz
On Fri, Oct 19, 2007 at 10:26:57AM +0200, Helge Hafting wrote: > Abdelrazak Younes wrote: > >Alfredo Braunstein wrote: > >>Andre Poenitz wrote: > >> > >>>On Thu, Oct 18, 2007 at 12:20:23PM -0500, Bo Peng wrote: > >This is a generated file built by > > > >Resources.qrc: > >ec

Re: [Patch] use Qt resources

2007-10-19 Thread Andre Poenitz
On Fri, Oct 19, 2007 at 09:43:00AM +0200, Alfredo Braunstein wrote: > Andre Poenitz wrote: > > > On Thu, Oct 18, 2007 at 12:20:23PM -0500, Bo Peng wrote: > >> > This is a generated file built by > >> > > >> > Resources.qrc: > >> > echo "" > $@ > >> > find $(top_srcdir)/lib/images -

Re: r21065 - in /lyx-devel/trunk: development/cmake/modules/F...

2007-10-19 Thread Peter Kümmel
Peter Kümmel wrote: Peter Kümmel wrote: Enrico Forestieri wrote: On Fri, Oct 19, 2007 at 05:22:30PM +0200, Abdelrazak Younes wrote: [EMAIL PROTECTED] wrote: Author: forenr Date: Fri Oct 19 17:16:40 2007 New Revision: 21065 URL: http://www.lyx.org/trac/changeset/21065 Log: Compile fix stat

Re: InsetCommandParams Question

2007-10-19 Thread Andre Poenitz
On Fri, Oct 19, 2007 at 12:24:50AM -0400, Richard Heck wrote: > Andre Poenitz wrote: > >On Thu, Oct 18, 2007 at 02:47:44PM -0400, Richard Heck wrote: > > > >>So the question is: Are the added memory requirements here > >>objectionable? > >> > >How much would that be? > > > I don't know C++

Re: r21065 - in /lyx-devel/trunk: development/cmake/modules/F...

2007-10-19 Thread Peter Kümmel
Peter Kümmel wrote: Enrico Forestieri wrote: On Fri, Oct 19, 2007 at 05:22:30PM +0200, Abdelrazak Younes wrote: [EMAIL PROTECTED] wrote: Author: forenr Date: Fri Oct 19 17:16:40 2007 New Revision: 21065 URL: http://www.lyx.org/trac/changeset/21065 Log: Compile fix static void initializeRes

Re: r21048 - in /lyx-devel/trunk/src: BufferView.cpp Converte...

2007-10-19 Thread Abdelrazak Younes
Andre Poenitz wrote: On Thu, Oct 18, 2007 at 02:07:49PM -0700, Angus Leeming wrote: This makes the source much more readable; obviously the right thing to do. However, I think it also makes sense to make that QFileInfo a member variable of FileName, no? I think it is not considered politically

Re: r21048 - in /lyx-devel/trunk/src: BufferView.cpp Converte...

2007-10-19 Thread Andre Poenitz
On Thu, Oct 18, 2007 at 02:07:49PM -0700, Angus Leeming wrote: > This makes the source much more readable; obviously the right thing to do. > However, I think it also makes sense to make that QFileInfo a member > variable of FileName, no? I think it is not considered politically correct to use Q*

Re: UserGuide

2007-10-19 Thread Andre Poenitz
On Fri, Oct 19, 2007 at 02:44:49AM +0200, Enrico Forestieri wrote: > On Thu, Oct 18, 2007 at 09:11:07PM +0200, Andre Poenitz wrote: > > > > Has anybody recently actually tried to compile the UserGuide? > > > > On my machine LaTeX simply does not finish. Run by hand I get stuff > > like > > > >

Re: [Cvslog] r21048 - in /lyx-devel/trunk/src: BufferView.cpp Converte...

2007-10-19 Thread Andre Poenitz
On Thu, Oct 18, 2007 at 08:15:16PM -0500, Bo Peng wrote: > > > > > > URL: http://www.lyx.org/trac/changeset/21048 > > > Log: > > > isome more FileName shuffling > > > > [..] > > > > > +bool FileName::isWritable() const > > > +{ > > > + QFileInfo const fi(toqstr(name_)); > > > + return fi.is

Re: boost::fs

2007-10-19 Thread Richard Heck
Jean-Marc Lasgouttes wrote: Richard Heck <[EMAIL PROTECTED]> writes: I was on the phone yesterday with a friend of mine when LyX crashed on him. I believe it was because he had loaded a file from a network drive and then lost his network connection. And was it with a boost exception?

Re: r21065 - in /lyx-devel/trunk: development/cmake/modules/F...

2007-10-19 Thread Peter Kümmel
Enrico Forestieri wrote: On Fri, Oct 19, 2007 at 05:22:30PM +0200, Abdelrazak Younes wrote: [EMAIL PROTECTED] wrote: Author: forenr Date: Fri Oct 19 17:16:40 2007 New Revision: 21065 URL: http://www.lyx.org/trac/changeset/21065 Log: Compile fix static void initializeResources() { +

Re: [Cvslog] r21069 - in /lyx-devel/trunk/src: FontList.cpp FontList.h...

2007-10-19 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: [EMAIL PROTECTED] writes: URL: http://www.lyx.org/trac/changeset/21069 Log: Introducing FontList::validate() Looks like most of the code there could be moved directly to a new Font::validate, since it is not really FontList-related. Good idea. The only drawback

Re: [Cvslog] r21069 - in /lyx-devel/trunk/src: FontList.cpp FontList.h...

2007-10-19 Thread Jean-Marc Lasgouttes
[EMAIL PROTECTED] writes: > URL: http://www.lyx.org/trac/changeset/21069 > Log: > Introducing FontList::validate() Looks like most of the code there could be moved directly to a new Font::validate, since it is not really FontList-related. The only drawback is a possible speed loss, but I doubt it

Re: r21065 - in /lyx-devel/trunk: development/cmake/modules/F...

2007-10-19 Thread Abdelrazak Younes
Enrico Forestieri wrote: On Fri, Oct 19, 2007 at 05:22:30PM +0200, Abdelrazak Younes wrote: [EMAIL PROTECTED] wrote: Author: forenr Date: Fri Oct 19 17:16:40 2007 New Revision: 21065 URL: http://www.lyx.org/trac/changeset/21065 Log: Compile fix static void initializeResources() { +

Re: r21065 - in /lyx-devel/trunk: development/cmake/modules/F...

2007-10-19 Thread Enrico Forestieri
On Fri, Oct 19, 2007 at 05:22:30PM +0200, Abdelrazak Younes wrote: > [EMAIL PROTECTED] wrote: > > Author: forenr > > Date: Fri Oct 19 17:16:40 2007 > > New Revision: 21065 > > > > URL: http://www.lyx.org/trac/changeset/21065 > > Log: > > Compile fix > > > > > static void initializeResources()

Re: UserGuide

2007-10-19 Thread Abdelrazak Younes
Martin Vermeer wrote: BTW Paragraph.cpp is a _mess_. Hope Abdel manages to do something there. Still a lot to do but I've removed a few hundred locs... The new FontList class could be a base for the range improvements we were talking about during the charstyle fight. There is even a place

Re: boost::fs

2007-10-19 Thread Jean-Marc Lasgouttes
Richard Heck <[EMAIL PROTECTED]> writes: > I was on the phone yesterday with a friend of mine when LyX crashed on > him. I believe it was because he had loaded a file from a network > drive and then lost his network connection. And was it with a boost exception? JMarc

Re: Capture keystroke sequence to a QLineEdit.

2007-10-19 Thread Richard Heck
Bo Peng wrote: http://api.kde.org/4.0-api/kdelibs-apidocs/kdeui/html/kkeysequencewidget_8cpp-source.html I think this is how KDE's shortcuts configuration dialog captures key sequences. Can anyone adapt this to my simple Shortcut dialog? Basically, I need the multi-key mode of this dialog. If yo

Re: r21066 - in /lyx-devel/trunk: development/scons/scons_man...

2007-10-19 Thread Abdelrazak Younes
[EMAIL PROTECTED] wrote: Author: bpeng Date: Fri Oct 19 17:23:11 2007 New Revision: 21066 URL: http://www.lyx.org/trac/changeset/21066 Log: Fix scons and src/FontList.cpp for the addition of FontList.h|cpp I was about to do it :-) Abdel.

Re: r21050 - in /lyx-devel/trunk/src/frontends/qt4: GuiPrefs....

2007-10-19 Thread Bo Peng
> BTW, instead of selecting all matching lfuns as you seem to do, it > would be much better to hide all the others. This makes sense. I am working on it. Thanks. Bo

Re: r21065 - in /lyx-devel/trunk: development/cmake/modules/F...

2007-10-19 Thread Abdelrazak Younes
[EMAIL PROTECTED] wrote: Author: forenr Date: Fri Oct 19 17:16:40 2007 New Revision: 21065 URL: http://www.lyx.org/trac/changeset/21065 Log: Compile fix static void initializeResources() { + extern void qInitResources(); static bool initialized = false; if (!initiali

Re: boost::fs

2007-10-19 Thread Jürgen Spitzmüller
Jean-Marc Lasgouttes wrote: > So shall I apply it? We won't be able to go much further without heavy > changes like what Andre' did IMO. Please do. At least it improves the situation. Jürgen

Re: [Patch] use Qt resources

2007-10-19 Thread Abdelrazak Younes
Bo Peng wrote: Please #ifdef WIN32, or apply a proper solution. (Or should I use rcc -name option?) Please apply even a temporary fix. I can not compile under linux with this. Just go ahead and apply your suggested fix with #ifdef. Abdel.

Re: [Patch] use Qt resources

2007-10-19 Thread Enrico Forestieri
On Fri, Oct 19, 2007 at 10:06:21AM -0500, Bo Peng wrote: > > Please #ifdef WIN32, or apply a proper solution. (Or should I use rcc > > -name option?) > > Please apply even a temporary fix. I can not compile under linux with this. I am going to fix it. The problem is that cmake adds the -name para

Re: boost::fs

2007-10-19 Thread Richard Heck
Jean-Marc Lasgouttes wrote: Andre Poenitz <[EMAIL PROTECTED]> writes: On Wed, Oct 17, 2007 at 11:54:00PM +0200, Andre Poenitz wrote: Something like that? Second try. So, what can we do for 1.5? I do not think that such an extensive patch is a good idea. What would be a si

Re: [Patch] use Qt resources

2007-10-19 Thread Bo Peng
> Please #ifdef WIN32, or apply a proper solution. (Or should I use rcc > -name option?) Please apply even a temporary fix. I can not compile under linux with this. Bo

Re: boost::fs

2007-10-19 Thread Jean-Marc Lasgouttes
[EMAIL PROTECTED] (Jürgen Spitzmüller) writes: > Jean-Marc Lasgouttes wrote: >> So, what can we do for 1.5? I do not think that such an extensive >> patch is a good idea. What would be a simpler solution? My patch was >> quite safe, but I am not even sure of what reports it fixes. Or we >> could d

Re: r21056 - /lyx-devel/trunk/src/Paragraph.cpp

2007-10-19 Thread Jean-Marc Lasgouttes
Abdelrazak Younes <[EMAIL PROTECTED]> writes: > I commented out that stuff for the time being. It's funny to have all > icons as text; I cannot say it is unpleasant though once you get use > to it :-) Probably a good solution... JMarc

Re: [Cvslog] r20970 - /lyx-devel/trunk/po/postats.py

2007-10-19 Thread Jean-Marc Lasgouttes
[EMAIL PROTECTED] writes: > Author: jamatos > Date: Mon Oct 15 10:57:42 2007 > New Revision: 20970 > > URL: http://www.lyx.org/trac/changeset/20970 > Log: > reset the locale > Thanks. Now there is the problem of scrambling addresses like foo () example ! com and postats.py will be a replacement

Re: boost::fs

2007-10-19 Thread Jürgen Spitzmüller
Jean-Marc Lasgouttes wrote: > So, what can we do for 1.5? I do not think that such an extensive > patch is a good idea. What would be a simpler solution? My patch was > quite safe, but I am not even sure of what reports it fixes. Or we > could decide that this case (unreadable directory makes LyX c

Re: r21056 - /lyx-devel/trunk/src/Paragraph.cpp

2007-10-19 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: Abdelrazak Younes <[EMAIL PROTECTED]> writes: [EMAIL PROTECTED] wrote: Author: lasgouttes Date: Fri Oct 19 14:51:32 2007 New Revision: 21056 URL: http://www.lyx.org/trac/changeset/21056 Log: compilation and warning fix Oups sorry, I could have sweared I was compil

Re: r21050 - in /lyx-devel/trunk/src/frontends/qt4: GuiPrefs....

2007-10-19 Thread Jean-Marc Lasgouttes
"Bo Peng" <[EMAIL PROTECTED]> writes: > On 10/18/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >> Author: bpeng >> Date: Fri Oct 19 05:09:14 2007 >> New Revision: 21050 >> >> URL: http://www.lyx.org/trac/changeset/21050 >> Log: >> PrefShortcuts: the buttons are almost usable now >> > > The butt

Re: r21056 - /lyx-devel/trunk/src/Paragraph.cpp

2007-10-19 Thread Jean-Marc Lasgouttes
Abdelrazak Younes <[EMAIL PROTECTED]> writes: > [EMAIL PROTECTED] wrote: >> Author: lasgouttes >> Date: Fri Oct 19 14:51:32 2007 >> New Revision: 21056 >> >> URL: http://www.lyx.org/trac/changeset/21056 >> Log: >> compilation and warning fix > > Oups sorry, I could have sweared I was compiling in

Re: r21056 - /lyx-devel/trunk/src/Paragraph.cpp

2007-10-19 Thread Abdelrazak Younes
[EMAIL PROTECTED] wrote: Author: lasgouttes Date: Fri Oct 19 14:51:32 2007 New Revision: 21056 URL: http://www.lyx.org/trac/changeset/21056 Log: compilation and warning fix Oups sorry, I could have sweared I was compiling in debug mode... Thanks, Abdel.

Re: UserGuide

2007-10-19 Thread Jean-Marc Lasgouttes
Enrico Forestieri <[EMAIL PROTECTED]> writes: > Moreover, \index is fragile, so any fragile command appearing in its > argument must be protected. That is to say that > > \index{Bibliography ! Bib\TeX} > > doesn't work, but > > \index{Bibliography ! Bib\protect\TeX} > > does work. This is easy to

Re: [PATCH] translation update to nb.po

2007-10-19 Thread Jürgen Spitzmüller
Helge Hafting wrote: > * More translated strings > * Some improvements and corrections > * Things that need no translation now have a 1:1 translation so >    they don't inflate the number of untranslated strings. This is >    the bulk of this patch, all those named math symbols . . . Is this for 1

Re: LyX asserts - probably a qt problem after all.

2007-10-19 Thread Helge Hafting
Abdelrazak Younes wrote: Jean-Marc Lasgouttes wrote: 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. Looks like some kind of qt bug a

Re: UserGuide

2007-10-19 Thread Enrico Forestieri
On Fri, Oct 19, 2007 at 09:14:40AM +0300, Martin Vermeer wrote: > On Fri, Oct 19, 2007 at 04:53:04AM +0200, Enrico Forestieri wrote: > > On Fri, Oct 19, 2007 at 04:09:22AM +0200, Enrico Forestieri wrote: > > > On Fri, Oct 19, 2007 at 02:44:49AM +0200, Enrico Forestieri wrote: > > > > > > > Command

Re: [Patch] use Qt resources

2007-10-19 Thread Alfredo Braunstein
Abdelrazak Younes wrote: > Hum not so good as we are both wrong! > We should not count the .svn/ directory... images/math/ is actually 2.9M. Haha you're right. >>> Another thing that makes me wonder, the 1.5.x lib/images dir with .xpm >>> images was only 2.9M. Did the xpm -> png change had some

Re: UserGuide

2007-10-19 Thread Martin Vermeer
On Fri, 19 Oct 2007 11:18:49 +0200 Georg Baum <[EMAIL PROTECTED]> wrote: > Martin Vermeer wrote: > > > For index, I was just thinking of switching off the standard phrases. % > > would still be escaped. > > But then you need lyx2lyx support to translate the old manual escaping. Probably yes.

Re: [Patch] use Qt resources

2007-10-19 Thread Abdelrazak Younes
Abdelrazak Younes wrote: Alfredo Braunstein wrote: directory is only 6 megs in size. I don't know how the resource file is Note that lib/images (*including* lib/images/math) is just 7.9M. Right, we make a good team! Hum not so good as we are both wrong! We should not count the .svn/ dire

Re: [Patch] use Qt resources

2007-10-19 Thread Abdelrazak Younes
Alfredo Braunstein wrote: Abdelrazak Younes wrote: Good question. Because in the second case the change could actually mean *slower* startup times... I don't think the difference would be noticeable... the lib/images/math Didn't this start as a presumable startup time improvement? I gues

Re: UserGuide

2007-10-19 Thread Martin Vermeer
On Fri, 19 Oct 2007 11:14:50 +0200 Jean-Marc Lasgouttes <[EMAIL PROTECTED]> wrote: > Martin Vermeer <[EMAIL PROTECTED]> writes: > > > For index, I was just thinking of switching off the standard phrases. % > > would > > still be escaped. > > We should really get rid of these standard phrases a

Re: [Patch] use Qt resources

2007-10-19 Thread Alfredo Braunstein
Abdelrazak Younes wrote: > Good question. > >> Because in the >> second case the change could actually mean *slower* startup times... > > I don't think the difference would be noticeable... the lib/images/math Didn't this start as a presumable startup time improvement? > directory is only 6 me

Re: UserGuide

2007-10-19 Thread Georg Baum
Martin Vermeer wrote: > For index, I was just thinking of switching off the standard phrases. % > would still be escaped. But then you need lyx2lyx support to translate the old manual escaping. > BTW what _is_ the rule for stuff entered into an index? Or into an URL? No idea besides RTFM ;-)

Re: UserGuide

2007-10-19 Thread Jean-Marc Lasgouttes
Martin Vermeer <[EMAIL PROTECTED]> writes: > For index, I was just thinking of switching off the standard phrases. % would > still be escaped. We should really get rid of these standard phrases and turn them to insets (maybe even in insetspecialchar). The only difficulty is the on screen drawing

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

2007-10-19 Thread Jean-Marc Lasgouttes
Pavel Sanda <[EMAIL PROTECTED]> writes: > below is the patch polished according to the comments and i consider > it to be the fix for 2739. > > i dropped on-top feature and will look on the suggestion above > later and as separate issue. what do you think ? Looks good. A few comments below. > +v

Re: UserGuide

2007-10-19 Thread Martin Vermeer
On Fri, 19 Oct 2007 10:57:07 +0200 Georg Baum <[EMAIL PROTECTED]> wrote: > Martin Vermeer wrote: > > > I don't think we should do this in lyx2lyx after all. Currently the > > unsuspecting user can manually enter LyX into an index inset and get > > mysterious latexing errors. Not good. > > Yes. >

Re: [Patch] use Qt resources

2007-10-19 Thread Abdelrazak Younes
Alfredo Braunstein wrote: Abdelrazak Younes wrote: And this is an advantage because? Presumably faster loading. I haven't tested yet but I can imagine that reading one big file on disk is faster than reading 600 small files (this is for sure on Windows). Note that most of the icons are loaded

Re: [Patch] use Qt resources

2007-10-19 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: Abdelrazak Younes <[EMAIL PROTECTED]> writes: And this is an advantage because? Presumably faster loading. I haven't tested yet but I can imagine that reading one big file on disk is faster than reading 600 small files (this is for sure on Windows). Note that most o

Re: boost::fs

2007-10-19 Thread Jean-Marc Lasgouttes
Andre Poenitz <[EMAIL PROTECTED]> writes: > On Wed, Oct 17, 2007 at 11:54:00PM +0200, Andre Poenitz wrote: >> >> Something like that? > > Second try. So, what can we do for 1.5? I do not think that such an extensive patch is a good idea. What would be a simpler solution? My patch was quite safe,

Re: UserGuide

2007-10-19 Thread Helge Hafting
Enrico Forestieri wrote: On Thu, Oct 18, 2007 at 09:11:07PM +0200, Andre Poenitz wrote: Has anybody recently actually tried to compile the UserGuide? On my machine LaTeX simply does not finish. Run by hand I get stuff like ! Use of [EMAIL PROTECTED] doesn't match its definition. [EMAIL PRO

Re: [Patch] use Qt resources

2007-10-19 Thread Jean-Marc Lasgouttes
Abdelrazak Younes <[EMAIL PROTECTED]> writes: > This should be fixed yes. We probably need an API for icon loading; > but wait, we already have that in GuiToolbar.cpp: > > static QIcon getIcon(FuncRequest const & f, bool unknown) > > So, what do we want to support? I guess adding one or two cases

Re: UserGuide

2007-10-19 Thread Georg Baum
Martin Vermeer wrote: > I don't think we should do this in lyx2lyx after all. Currently the > unsuspecting user can manually enter LyX into an index inset and get > mysterious latexing errors. Not good. Yes. > I suppose we need runparams flags for verbatim output and for > suppression of these s

Re: UserGuide

2007-10-19 Thread Jean-Marc Lasgouttes
Martin Vermeer <[EMAIL PROTECTED]> writes: > I don't think we should do this in lyx2lyx after all. Currently the > unsuspecting user can manually enter LyX into an index inset and get > mysterious latexing errors. Not good. > > I suppose we need runparams flags for verbatim output and for > suppre

Re: [Patch] use Qt resources

2007-10-19 Thread Jean-Marc Lasgouttes
Andre Poenitz <[EMAIL PROTECTED]> writes: > On Thu, Oct 18, 2007 at 08:47:18AM -0500, Bo Peng wrote: >> > Scons? >> > >> > There's a Resources.cpp to be build and compiled in frontends/qt4. >> >> There is no such file. Did you add it to svn? > > This is a generated file built by > > Resources.qrc

Re: [Patch] use Qt resources

2007-10-19 Thread Alfredo Braunstein
Abdelrazak Younes wrote: >> And this is an advantage because? > > Presumably faster loading. I haven't tested yet but I can imagine that > reading one big file on disk is faster than reading 600 small files > (this is for sure on Windows). Note that most of the icons are loaded on > startup now t

Re: [Patch] use Qt resources

2007-10-19 Thread Jean-Marc Lasgouttes
Abdelrazak Younes <[EMAIL PROTECTED]> writes: >> And this is an advantage because? > > Presumably faster loading. I haven't tested yet but I can imagine that > reading one big file on disk is faster than reading 600 small files > (this is for sure on Windows). Note that most of the icons are loade

Re: LyX asserts when browsing for images to insert

2007-10-19 Thread Jean-Marc Lasgouttes
Helge Hafting <[EMAIL PROTECTED]> writes: > 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 >>> ..

Re: UserGuide

2007-10-19 Thread Helge Hafting
Martin Vermeer wrote: On Fri, Oct 19, 2007 at 04:53:04AM +0200, Enrico Forestieri wrote: Hmmm... that's more complicated. I had the impression that a macro could be used in the @ part of an entry, but \index{Bibliography ! [EMAIL PROTECTED] works, whereas \index{Bibliography ! [EMAIL PROTE

Re: UserGuide

2007-10-19 Thread Martin Vermeer
On Fri, 19 Oct 2007 09:52:07 +0200 Georg Baum <[EMAIL PROTECTED]> wrote: > Martin Vermeer wrote: > > > Is this something that should have beem done in lyx2lyx? > > That depends. If you prevent the automatic translation of LyX ->\LyX etc. in > url charstles you don't need lyx2lyx _for this partic

Re: [Patch] use Qt resources

2007-10-19 Thread Helge Hafting
Abdelrazak Younes wrote: Alfredo Braunstein wrote: Andre Poenitz wrote: On Thu, Oct 18, 2007 at 12:20:23PM -0500, Bo Peng wrote: This is a generated file built by Resources.qrc: echo "" > $@ find $(top_srcdir)/lib/images -name '*.png' \ | sed -e 's:$(top_srcdi

Re: [Patch] use Qt resources

2007-10-19 Thread Abdelrazak Younes
Alfredo Braunstein wrote: Andre Poenitz wrote: On Thu, Oct 18, 2007 at 12:20:23PM -0500, Bo Peng wrote: This is a generated file built by Resources.qrc: echo "" > $@ find $(top_srcdir)/lib/images -name '*.png' \ | sed -e 's:$(top_srcdir)/lib/\(.*\):&:' \

Re: [patch] Re: frames in toc when using beamer

2007-10-19 Thread Jürgen Spitzmüller
José Matos wrote: > Is this in? Not yet. But soon. Jürgen

Re: LyX Debian/Ubuntu packages.

2007-10-19 Thread Jürgen Spitzmüller
Tommaso Cucinotta wrote: > I've just uploaded LyX .deb packages I built starting from the > debian/ structure of the Ubuntu Gutsy lyx-1.5.1 package here: > >   http://feanor.sssup.it/~tommaso/lyx_1.5.2-1ubuntu1_i386.deb >   http://feanor.sssup.it/~tommaso/lyx-common_1.5.2-1ubuntu1_all.deb > > Just

Re: InsetCommandParams Question

2007-10-19 Thread Georg Baum
Richard Heck wrote: > I take it that the idea is that we don't have to store the list of > parameters, whether they're optional, etc, in each and every inset, but > rather use a reference to the static const construct to save memory. Saving memory was not the main reason for this implementation,

Re: [Patch] use Qt resources

2007-10-19 Thread Alfredo Braunstein
Andre Poenitz wrote: > On Thu, Oct 18, 2007 at 12:20:23PM -0500, Bo Peng wrote: >> > This is a generated file built by >> > >> > Resources.qrc: >> > echo "" > $@ >> > find $(top_srcdir)/lib/images -name '*.png' \ >> > | sed -e 's:$(top_srcdir)/lib/\(.*\):> >

Re: UserGuide

2007-10-19 Thread Georg Baum
Martin Vermeer wrote: > Is this something that should have beem done in lyx2lyx? That depends. If you prevent the automatic translation of LyX ->\LyX etc. in url charstles you don't need lyx2lyx _for this particular case_, but if the current implementation stays then you need lyx2lyx. But, lyx2l

Re: Link failure with CMake, PB with qInitResources()

2007-10-19 Thread Abdelrazak Younes
Peter Kümmel wrote: Abdelrazak Younes wrote: I guess rcc.exe need to be executed but how and when? frontend_qt4.lib(GuiToolbar.obj) : error LNK2019: unresolved external symbol "void __cdecl qInitResources(void)" (?qInitResources@@YAXXZ) referenced in function "void __cdecl initializeResource

Re: [Cvslog] r21048 - in /lyx-devel/trunk/src: BufferView.cpp Converte...

2007-10-19 Thread Abdelrazak Younes
Enrico Forestieri wrote: On Thu, Oct 18, 2007 at 11:03:52PM -, [EMAIL PROTECTED] wrote: Author: poenitz Date: Fri Oct 19 01:03:51 2007 New Revision: 21048 URL: http://www.lyx.org/trac/changeset/21048 Log: isome more FileName shuffling [..] +bool FileName::isWritable() const +{ + Q

Re: r21033 - in /lyx-devel/trunk/src: Buffer.cpp CutAndPaste....

2007-10-19 Thread Abdelrazak Younes
Angus Leeming wrote: Abdelrazak Younes wrote: Well it was just modeled after Inset::clone but you're right, it's strange. Maybe I should just rename it to cloneInset() instead or implement a copy ctor... The copy constructor sounds sane. This thing isn't polymorphic at all. Yes, I am in the

Re: r21033 - in /lyx-devel/trunk/src: Buffer.cpp CutAndPaste....

2007-10-19 Thread Angus Leeming
Abdelrazak Younes wrote: Well it was just modeled after Inset::clone but you're right, it's > strange. Maybe I should just rename it to cloneInset() instead or > implement a copy ctor... The copy constructor sounds sane. This thing isn't polymorphic at all. -- Angus