/po Changes Related to Modules

2008-01-12 Thread rgheck
Attached is a patch that adapts lyx_pot.py to modules. Basically, I've altered the layoutsl10n routine to deal with them, too, since they're just layout files. I think this is right, but I'll wait a bit for comments, as I haven't dealt with this part of the code before. I still need to add a

Re: A few issues with LyX 1.5.3

2008-01-12 Thread rgheck
John Pye wrote: Firstly, the 'compressed' feature for LyX documents seems like a problem when using LyX files in a CVS/SVN repository, because one can easily change a file's type from binary to text and back again. This causes havoc with tools that attempt to determine a file's text-or-binary sta

A few issues with LyX 1.5.3

2008-01-12 Thread John Pye
Hi all I have a few issues/bugs with LyX 1.5.3 that I'd like to comment on. Firstly, the 'compressed' feature for LyX documents seems like a problem when using LyX files in a CVS/SVN repository, because one can easily change a file's type from binary to text and back again. This causes havoc with

Re: [patch] reordering capabilities for GuiBibtex

2008-01-12 Thread Horst Schirmeier
On Sat, 12 Jan 2008, Uwe Stöhr wrote: > But you have not yet added Horst to the CREDITS in > http://www.lyx.org/trac/changeset/22517 > Also blanket-permission.php and credits.php are not updated. Thanks :) And I bet this won't be my last contribution to LyX. Kind regards, Horst -- PGP-Key 0xD4

[patch] fix bug 2492

2008-01-12 Thread Uwe Stöhr
The attached patch fixes bug 2492 and also sets now the correct width for all box sizes. To test that it now works correct, see the testcase attached to http://bugzilla.lyx.org/show_bug.cgi?id=2492 Jürgen, also OK for branch? regards Uwe Index: InsetBox.cpp

Re: booktabs and LyX?

2008-01-12 Thread Uwe Stöhr
> I have only recently been pointed to booktabs (a style for non-ugly tables > suitable for books) -- has anyone used that with LyX yet? (How?) For LyX 1.4 you need some ERT. But it is not difficult and I wrote my diploma thesis with LyX 1.3 using this method. Attached an example. > Is it pla

Re: booktabs and LyX?

2008-01-12 Thread José Matos
On Saturday 12 January 2008 20:53:35 Hans Meine wrote: > Hi! > > Disclaimer: Since I have only three weeks left for finishing my PhD thesis, > I am still using 1.4.6svn -- no time for any upgrade surprises anymore. > > I have only recently been pointed to booktabs (a style for non-ugly tables > sui

booktabs and LyX?

2008-01-12 Thread Hans Meine
Hi! Disclaimer: Since I have only three weeks left for finishing my PhD thesis, I am still using 1.4.6svn -- no time for any upgrade surprises anymore. I have only recently been pointed to booktabs (a style for non-ugly tables suitable for books) -- has anyone used that with LyX yet? (How?) Is

Re: [Cvslog] r22519 - /lyx-devel/trunk/src/buffer_funcs.cpp

2008-01-12 Thread Andre Poenitz
On Sat, Jan 12, 2008 at 06:48:36PM +0100, Pavel Sanda wrote: > > Paragraph const & par = dit.paragraph(); > > ah; just to educate me - is compiler allowed to optimize the non-reference > const initialization to a direct bind? You mean whether it might produce the same code regardless

Re: [Cvslog] r22519 - /lyx-devel/trunk/src/buffer_funcs.cpp

2008-01-12 Thread Pavel Sanda
> Paragraph const & par = dit.paragraph(); ah; just to educate me - is compiler allowed to optimize the non-reference const initialization to a direct bind? pavel

Re: [patch] reordering capabilities for GuiBibtex

2008-01-12 Thread Pavel Sanda
> But you have not yet added Horst to the CREDITS in > http://www.lyx.org/trac/changeset/22517 > Also blanket-permission.php and credits.php are not updated. if its supposed to do it on every single update i will. pavel

Re: [patch] reordering capabilities for GuiBibtex

2008-01-12 Thread Uwe Stöhr
> I don't know if you've already done this, but cold you send a message to > > wake up Christian ! :)) But you have not yet added Horst to the CREDITS in http://www.lyx.org/trac/changeset/22517 Also blanket-permission.php and credits.php are not updated. regards Uwe

search & replace is broken in trunk

2008-01-12 Thread Uwe Stöhr
There is a new regression bug: http://bugzilla.lyx.org/show_bug.cgi?id=4478 search & replace doesn't work in trunk.

Re: [Cvslog] r22519 - /lyx-devel/trunk/src/buffer_funcs.cpp

2008-01-12 Thread Andre Poenitz
On Sat, Jan 12, 2008 at 04:55:17PM +0100, Pavel Sanda wrote: > > > for (DocIterator dit = from ; dit != to ; dit.forwardPos()) { > > > + Paragraph const para = dit.paragraph();S > > > > Erm... a _copy_? > > could you be more verbose how the code should be? I just committed a change mys

Re: [Cvslog] r22519 - /lyx-devel/trunk/src/buffer_funcs.cpp

2008-01-12 Thread Andre Poenitz
On Sat, Jan 12, 2008 at 04:55:17PM +0100, Pavel Sanda wrote: > > > for (DocIterator dit = from ; dit != to ; dit.forwardPos()) { > > > + Paragraph const para = dit.paragraph();S > > > > Erm... a _copy_? > > could you be more verbose how the code should be? Paragraph con

Re: Initial Newbie Questions

2008-01-12 Thread rgheck
Jürgen Spitzmüller wrote: rgheck wrote: Actually, he mentioned that the DVI output looked OK. I'm thinking maybe this has to do with makeindex or something, and that the problem actually lies there. did you read my post? The problem is the upcasing in the headers. Yes, sorry. Read

Re: Initial Newbie Questions

2008-01-12 Thread Jürgen Spitzmüller
rgheck wrote: > Actually, he mentioned that the DVI output looked OK. I'm thinking maybe > this has to do with makeindex or something, and that the problem > actually lies there. did you read my post? The problem is the upcasing in the headers. Jürgen

Re: Initial Newbie Questions

2008-01-12 Thread rgheck
Martin Vermeer wrote: This is a weird problem. It's got something to do---I don't know what, yet---with the way LyX is handling "LyX" and "LaTeX". These get converted to custom macros, and they are not playing nice for some reason with \textcolor. I'm cc'ing this to the devel list so someone wi

Re: [Cvslog] r22519 - /lyx-devel/trunk/src/buffer_funcs.cpp

2008-01-12 Thread Pavel Sanda
> > for (DocIterator dit = from ; dit != to ; dit.forwardPos()) { > > + Paragraph const para = dit.paragraph();S > > Erm... a _copy_? could you be more verbose how the code should be? pavel

Re: [Cvslog] r22519 - /lyx-devel/trunk/src/buffer_funcs.cpp

2008-01-12 Thread Andre Poenitz
On Sat, Jan 12, 2008 at 01:34:11PM -, [EMAIL PROTECTED] wrote: > Author: sanda > Date: Sat Jan 12 14:34:10 2008 > New Revision: 22519 > > URL: http://www.lyx.org/trac/changeset/22519 > Log: > Add temp vars to countChar. > > Modified: > lyx-devel/trunk/src/buffer_funcs.cpp > > Modified: l

Re: [Cvslog] r22514 - in /lyx-devel/branches/BRANCH_1_5_X/src/frontend...

2008-01-12 Thread Andre Poenitz
On Sat, Jan 12, 2008 at 11:51:47AM -, [EMAIL PROTECTED] wrote: > +void QBibtexDialog::upPressed() > +{ > + int row = databaseLW->currentRow(); > + QListWidgetItem *cur; > + databaseLW->insertItem(row - 1, cur = databaseLW->takeItem(row)); Trying code obfuscation? ;-) Why not

Re: [Cvslog] r22433 - in /lyx-devel/trunk: lib/ui/classic.ui lib/ui/st...

2008-01-12 Thread Andre Poenitz
On Sat, Jan 12, 2008 at 02:31:05PM +0100, Pavel Sanda wrote: > > > +int countChars(DocIterator const & from, DocIterator const & to, bool > > > with_blanks) > > > +{ > > > + int chars = 0; > > > + int blanks = 0; > > > + for (DocIterator dit = from ; dit != to ; dit.forwardPos()) { > > > +

Re: [Cvslog] r22500 - in /lyx-devel/trunk/src/frontends/qt4: GuiIdList...

2008-01-12 Thread Andre Poenitz
On Sat, Jan 12, 2008 at 02:31:33AM -, [EMAIL PROTECTED] wrote: > Author: rgheck > Date: Sat Jan 12 03:31:32 2008 > New Revision: 22500 > > URL: http://www.lyx.org/trac/changeset/22500 > Log: > New files, anticipating a later commit. Some non-critical hints: > +GuiIdListModel::GuiIdListMode

Re: [patch] reordering capabilities for GuiBibtex

2008-01-12 Thread christian . ridderstrom
On Sat, 12 Jan 2008, Pavel Sanda wrote: I don't know if you've already done this, but cold you send a message to wake up Christian ! :)) How did you know I was very drowsy :-) /C -- Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr

Re: [patch] reordering capabilities for GuiBibtex

2008-01-12 Thread Pavel Sanda
> I don't know if you've already done this, but cold you send a message to wake up Christian ! :)) p

Re: [patch] reordering capabilities for GuiBibtex

2008-01-12 Thread christian . ridderstrom
On Sat, 12 Jan 2008, Horst Schirmeier wrote: On Sat, 12 Jan 2008, Jürgen Spitzmüller wrote: Please send a patch for branch. The patch looks straightforward enough, and the feature you're implementing is something I have been missing myself as well. Please have a look at the attached patch (ag

Re: [Cvslog] r22433 - in /lyx-devel/trunk: lib/ui/classic.ui lib/ui/st...

2008-01-12 Thread Pavel Sanda
> > +int countChars(DocIterator const & from, DocIterator const & to, bool > > with_blanks) > > +{ > > + int chars = 0; > > + int blanks = 0; > > + for (DocIterator dit = from ; dit != to ; dit.forwardPos()) { > > + if (dit.inTexted() > > + && dit.pos() != dit.lastpos

Re: [Cvslog] r22493 - /lyx-devel/trunk/src/LyXAction.cpp

2008-01-12 Thread Pavel Sanda
> >> Yes. I would put them in Edit. > > > > ah, you mean we can change func_type too. > > Yes :) It is a very good idea to review this classification and use it > in our documentation too i changed the lfuns which i understand what they do. the left corner cases need to be documented before so

Re: [patch] reordering capabilities for GuiBibtex

2008-01-12 Thread Jürgen Spitzmüller
Horst Schirmeier wrote: > Please have a look at the attached patch (against lyx-1.5 r22509). The > main difference to -devel is that I don't add deletePB/upPB/downPB to > the BCView's readOnly list anymore. This is because the enabled state of > these buttons depends on more than just the underlyin

Re: [patch] reordering capabilities for GuiBibtex

2008-01-12 Thread Horst Schirmeier
On Sat, 12 Jan 2008, Jürgen Spitzmüller wrote: > Please send a patch for branch. The patch looks straightforward enough, and > the feature you're implementing is something I have been missing myself as > well. Please have a look at the attached patch (against lyx-1.5 r22509). The main difference

Re: [patch] reordering capabilities for GuiBibtex

2008-01-12 Thread Jürgen Spitzmüller
Horst Schirmeier wrote: > Please add the attached (tiny) correction, I forgot adding the up/down > buttons to ButtonController's list of "only activated when buffer > writable" widgets. Thanks. Committed. Jürgen

Re: [Cvslog] r22433 - in /lyx-devel/trunk: lib/ui/classic.ui lib/ui/st...

2008-01-12 Thread Andre Poenitz
On Fri, Jan 11, 2008 at 12:39:56AM +0100, Pavel Sanda wrote: > +int countChars(DocIterator const & from, DocIterator const & to, bool > with_blanks) > +{ > + int chars = 0; > + int blanks = 0; > + for (DocIterator dit = from ; dit != to ; dit.forwardPos()) { > + if (dit.inT

Re: Another Crash in Trunk

2008-01-12 Thread Andre Poenitz
On Thu, Jan 10, 2008 at 02:22:52PM -0500, rgheck wrote: > Andre Poenitz wrote: >> On Thu, Jan 10, 2008 at 01:45:23AM -0500, rgheck wrote: >> >>> When lyx2lyx fails with an error: >>> gdb /cvs/lyx-devel/trunk/src/lyx --interpreter=mi2 -quiet(gdb) quitgdb >>> >> >> Completely unrelated out o

Re: [patch] reordering capabilities for GuiBibtex

2008-01-12 Thread Horst Schirmeier
On Sat, 12 Jan 2008, Jürgen Spitzmüller wrote: > I'm just about to commit your patch to trunk. Please add the attached (tiny) correction, I forgot adding the up/down buttons to ButtonController's list of "only activated when buffer writable" widgets. > P.S.: Welcome aboard! :-) Kind regards, H

Re: [Cvslog] r22493 - /lyx-devel/trunk/src/LyXAction.cpp

2008-01-12 Thread Jean-Marc Lasgouttes
Pavel Sanda <[EMAIL PROTECTED]> writes: >> Yes. I would put them in Edit. > > ah, you mean we can change func_type too. Yes :) It is a very good idea to review this classification and use it in our documentation too (can doxygen make subsections or something like that?) JMarc

Re: [patch] reordering capabilities for GuiBibtex

2008-01-12 Thread Jürgen Spitzmüller
Horst Schirmeier wrote: > Thanks :-) I'd be happy to see that in 1.5.x, too. The patch does not > apply unmodified, though -- if you want a lyx-1.5 version, just contact > me. Please send a patch for branch. The patch looks straightforward enough, and the feature you're implementing is something

Re: Initial Newbie Questions

2008-01-12 Thread Jürgen Spitzmüller
rgheck wrote: > > I just downloaded and installed LyX via the Windows installer. I've > > used LaTeX before (not recently), but never LyX. In playing around > > with the LyX Tutorial, I find that after changing some text to red or > > green and then generating DVI, I get errors such as this, > >  

Re: [patch] reordering capabilities for GuiBibtex

2008-01-12 Thread Horst Schirmeier
On Sat, 12 Jan 2008, Jürgen Spitzmüller wrote: > Horst Schirmeier wrote: > > The attached patch adds reordering capabilities to the GuiBibtex > > dialog, ie. adds "Up"/"Down" buttons which move bibtex entries up/down > > in the list. > > Looks good (and good idea indeed). Probably also for the 1.5

Re: [patch] reordering capabilities for GuiBibtex

2008-01-12 Thread Jürgen Spitzmüller
Hi Horst, Horst Schirmeier wrote: > The attached patch adds reordering capabilities to the GuiBibtex > dialog, ie. adds "Up"/"Down" buttons which move bibtex entries up/down > in the list. Looks good (and good idea indeed). Probably also for the 1.5.x branch. Could you send the patch as an attac

Re: Initial Newbie Questions

2008-01-12 Thread Martin Vermeer
On Sat, Jan 12, 2008 at 02:09:00AM -0500, rgheck wrote: >> I just downloaded and installed LyX via the Windows installer. I've used >> LaTeX before (not recently), but never LyX. In playing around with the LyX >> Tutorial, I find that after changing some text to red or green and then >> generati