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

2007-10-18 Thread Abdelrazak Younes
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? You seem to be creating an awful lot of temporary objects for no real reason. Agreed. And I think that'

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

2007-10-18 Thread Abdelrazak Younes
Angus Leeming wrote: [EMAIL PROTECTED] wrote: Author: younes Date: Thu Oct 18 17:29:51 2007 New Revision: 21033 URL: http://www.lyx.org/trac/changeset/21033 Log: Reduce header dependencies in Paragraph.h - Move Changes.h out of Paragraph.h - pimpl the inset list.

Re: UserGuide

2007-10-18 Thread Martin Vermeer
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: > > > > > Commands such as \url and \index don't like latex macros in their > > > argument

Capture keystroke sequence to a QLineEdit.

2007-10-18 Thread Bo Peng
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 you want to know ho

Re: InsetCommandParams Question

2007-10-18 Thread Richard Heck
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++ internals enough to be sure how much we're talking per inset. We're looking at, on av

Re: InsetCommandParams Question

2007-10-18 Thread Angus Leeming
Richard Heck wrote: > The obvious way to handle this is to have something like this: > enum Optional { OPT, REQ }; > struct ParamInfo { >std::string paramName; >Optional opt; >docstring value; > } > class ParamList { >setValue(std::string name, docstr

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

2007-10-18 Thread Angus Leeming
[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 http://www.lyx.org/trac/file/lyx-devel/trunk/src/support/FileName.cpp?rev=21048 > =

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

2007-10-18 Thread Angus Leeming
[EMAIL PROTECTED] wrote: > Author: younes > Date: Thu Oct 18 17:29:51 2007 > New Revision: 21033 > > URL: http://www.lyx.org/trac/changeset/21033 > Log: > Reduce header dependencies in Paragraph.h > - Move Changes.h out of Paragraph.h > - pimpl the inset list. ===

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

2007-10-18 Thread Bo Peng
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 buttons are roughly working. The next patch will handle

Re: UserGuide

2007-10-18 Thread Enrico Forestieri
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: > > > Commands such as \url and \index don't like latex macros in their > > argument > > Sorry, that is true for \url only. Hmmm... that's more complicated. I h

Re: UserGuide

2007-10-18 Thread Enrico Forestieri
On Fri, Oct 19, 2007 at 02:44:49AM +0200, Enrico Forestieri wrote: > Commands such as \url and \index don't like latex macros in their > argument Sorry, that is true for \url only. -- Enrico

Re: UserGuide

2007-10-18 Thread Martin Vermeer
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-18 Thread Bo Peng
> > > > URL: http://www.lyx.org/trac/changeset/21048 > > Log: > > isome more FileName shuffling > > [..] > > > +bool FileName::isWritable() const > > +{ > > + QFileInfo const fi(toqstr(name_)); > > + return fi.isReadable(); > > +} > > Ouch... And I just fixed tex2lyx for you. Bo

Re: UserGuide

2007-10-18 Thread Martin Vermeer
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: [Patch] use Qt resources

2007-10-18 Thread Martin Vermeer
On Thu, Oct 18, 2007 at 04:07:56PM -0500, Bo Peng wrote: > > > BTW, you use find to get all the images under lib/images, but some of > > > them are unused. Scons only compiles the used ones that are listed in > > > scons_manifest. > > > > Would anybody object to remove the unused ones? > > I am no

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

2007-10-18 Thread Enrico Forestieri
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 > +{ > + QFileInfo con

Re: UserGuide

2007-10-18 Thread Enrico Forestieri
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 PROTECTED] #1->

Re: [Patch] use Qt resources

2007-10-18 Thread Bo Peng
> I've replaced your qInitResources() with the 'official' Qt > Q_INIT_RESOURCE(Resources) because on windows the > rcc generates qInitResources_Resources(). > I do not know what is going on here, but Linux/qt does not have qInitResources_Resources()... and now I am getting src/frontends/qt4/GuiTo

Re: [Patch] use Qt resources

2007-10-18 Thread Bo Peng
> > BTW, you use find to get all the images under lib/images, but some of > > them are unused. Scons only compiles the used ones that are listed in > > scons_manifest. > > Would anybody object to remove the unused ones? I am not quite sure. For example, I can add font-bold to ui/stdtoolbar.inc, an

Re: [Patch] use Qt resources

2007-10-18 Thread Andre Poenitz
On Thu, Oct 18, 2007 at 01:51:35PM -0500, Bo Peng wrote: > > > What is the advantage of doing all these? > > > > Compiled-in resources vs 600 seperately installed files? > > Makes sense. Thanks. > > BTW, you use find to get all the images under lib/images, but some of > them are unused. Scons onl

Re: InsetCommandParams Question

2007-10-18 Thread Andre Poenitz
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? Andre'

Re: UserGuide

2007-10-18 Thread Peter Kümmel
Pavel Sanda 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 same on windows. it does not work for me quite long time (i remember another err messages though). e.g. http://www.mail-archive.com/lyx-

Re: UserGuide

2007-10-18 Thread Pavel Sanda
> Has anybody recently actually tried to compile the UserGuide? > > On my machine LaTeX simply does not finish. Run by hand I get stuff > like it does not work for me quite long time (i remember another err messages though). e.g. http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg129100.html

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

2007-10-18 Thread Peter Kümmel
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 initializeResources(void)" (?initializ

Re: [Patch] use Qt resources

2007-10-18 Thread Peter Kümmel
Andre Poenitz 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 attached. Andre' + +static void initializeResources() +{ +

Re: UserGuide

2007-10-18 Thread Richard Heck
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 PROTECTED] #1->\def [EMAIL PROTECTED] {

UserGuide

2007-10-18 Thread Andre Poenitz
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 PROTECTED] #1->\def [EMAIL PROTECTED] { #1}\ifx [EMAIL PROTE

Re: [Patch] use Qt resources

2007-10-18 Thread Bo Peng
> > OK. Scons is fixed for this. Abdel seems to have the same problem with > > cmake. > > I did ask people to test he patch, didn't I? You did ask, but I had no idea what your patch was about, and did not test. Bo

Re: [Patch] use Qt resources

2007-10-18 Thread Bo Peng
> > What is the advantage of doing all these? > > Compiled-in resources vs 600 seperately installed files? Makes sense. Thanks. BTW, you use find to get all the images under lib/images, but some of them are unused. Scons only compiles the used ones that are listed in scons_manifest. Bo

InsetCommandParams Question

2007-10-18 Thread Richard Heck
So, the work on making this system more flexible proceeds, with interruptions for actual philosophy from time to time. At this point, I have a question before I embark on the next step. The question concerns how the list of parameters is represented in InsetCommandParams. At present, it's do

Re: [Patch] use Qt resources

2007-10-18 Thread Andre Poenitz
On Thu, Oct 18, 2007 at 01:32:44PM -0500, Bo Peng wrote: > On 10/18/07, Bo Peng <[EMAIL PROTECTED]> wrote: > > > This is a generated file built by > > > > > > Resources.qrc: > > > echo "" > $@ > > > find $(top_srcdir)/lib/images -name '*.png' \ > > > | sed -e 's:$(to

Re: [Patch] use Qt resources

2007-10-18 Thread Andre Poenitz
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/\(.*\): > alias="\1">&:' \ > > >

Re: [Patch] use Qt resources

2007-10-18 Thread Bo Peng
On 10/18/07, Bo Peng <[EMAIL PROTECTED]> wrote: > > This is a generated file built by > > > > Resources.qrc: > > echo "" > $@ > > find $(top_srcdir)/lib/images -name '*.png' \ > > | sed -e 's:$(top_srcdir)/lib/\(.*\): > alias="\1">&:' \ > > >> $@ > >

Re: LyX asserts when browsing for images to insert

2007-10-18 Thread Helge Hafting
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.

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

2007-10-18 Thread Jean-Marc Lasgouttes
Andre Poenitz <[EMAIL PROTECTED]> writes: > What would I use to have it in the tarball but not installed? > > EXTRADIST? I think you need to use noinst somewhere in the name of the variable.

Re: [Patch] use Qt resources

2007-10-18 Thread Bo Peng
> This is a generated file built by > > Resources.qrc: > echo "" > $@ > find $(top_srcdir)/lib/images -name '*.png' \ > | sed -e 's:$(top_srcdir)/lib/\(.*\): alias="\1">&:' \ > >> $@ > echo "" >> $@ What is the advantage of doing all these?

Re: lyx2lyx is broken apparently

2007-10-18 Thread Richard Heck
Abdelrazak Younes wrote: I can't open any of the help documents... I think I may have committed something by accident. Let me check. rh -- == Richard G Heck, Jr Professor of Philosophy Brown University http://frege.brown.edu/heck/

Re: lyx2lyx is broken apparently

2007-10-18 Thread Enrico Forestieri
On Thu, Oct 18, 2007 at 05:42:03PM +0200, Abdelrazak Younes wrote: > I can't open any of the help documents... Try again. -- Enrico

Re: [Patch] use Qt resources

2007-10-18 Thread Andre Poenitz
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: echo "" > $@ find $(top_srcdir)/lib/im

Re: boost::fs

2007-10-18 Thread Andre Poenitz
On Thu, Oct 18, 2007 at 03:23:39PM +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. > > I like it a lot. Note that is_directory has the same probl

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

2007-10-18 Thread Andre Poenitz
On Thu, Oct 18, 2007 at 02:28:00PM +0200, Jean-Marc Lasgouttes wrote: > Andre Poenitz <[EMAIL PROTECTED]> writes: > > > Hm... I wonder whether I have overlooked something here > > > > Even if the files are not needed for 'make install' they might be needed > > for 'make dist', right? > > This

Re: boost::fs

2007-10-18 Thread Andre Poenitz
On Thu, Oct 18, 2007 at 02:23:07PM +0200, Abdelrazak Younes wrote: > Andre Poenitz wrote: > >Something like that? > > Fine with me. So you are going to replace all those I hope? > > Find all "fs::exists", Subfolders, Find Results 1, "lyx-trunk", > "*.c;*.cpp;*.cxx;*.cc;*.tli;*.tlh;*.h;*.hpp;*.hx

lyx2lyx is broken apparently

2007-10-18 Thread Abdelrazak Younes
I can't open any of the help documents... Abdel.

Re: [Patch] use Qt resources

2007-10-18 Thread Bo Peng
> 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? Bo

Re: Charstyles rendering issue - jumping lines disrupt workflow

2007-10-18 Thread Martin Vermeer
On Wed, 17 Oct 2007 22:14:09 +0300 Martin Vermeer <[EMAIL PROTECTED]> wrote: > 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 :-)

Re: boost::fs

2007-10-18 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. I like it a lot. Note that is_directory has the same problem. JMarc

LyX Debian/Ubuntu packages.

2007-10-18 Thread Tommaso Cucinotta
Hi all, 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 changed prefix from /usr to /

Re: .svn stuff in tar balls?

2007-10-18 Thread Jean-Marc Lasgouttes
Andre Poenitz <[EMAIL PROTECTED]> writes: > 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? The proper distributi

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

2007-10-18 Thread Jean-Marc Lasgouttes
Andre Poenitz <[EMAIL PROTECTED]> writes: > Hm... I wonder whether I have overlooked something here > > Even if the files are not needed for 'make install' they might be needed > for 'make dist', right? This is what I was about to answer to your commit message. JMarc

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

2007-10-18 Thread Jean-Marc Lasgouttes
"Bo Peng" <[EMAIL PROTECTED]> writes: > I will commit the attached updated patch tomorrow if there is no > objection. This time, I also list LFUNs without any keybinding. This is much much better. You have my OK. Just a small comment: > + LyXAction::const_func_iterator fit = lyxaction.func_b

Re: boost::fs

2007-10-18 Thread Abdelrazak Younes
Andre Poenitz wrote: Something like that? Fine with me. So you are going to replace all those I hope? Find all "fs::exists", Subfolders, Find Results 1, "lyx-trunk", "*.c;*.cpp;*.cxx;*.cc;*.tli;*.tlh;*.h;*.hpp;*.hxx;*.hh" D:\devel\lyx\trunk\src\Buffer.cpp(418): if (fs::exists(bname.toFiles

Link failure with CMake, PB with qInitResources()

2007-10-18 Thread Abdelrazak Younes
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 initializeResources(void)" (?initializeResources@@YAXXZ) D:\deve