Re: about the Qt 4.3 designer format problem

2007-10-31 Thread Abdelrazak Younes
Uwe Stöhr wrote: Andre Poenitz schrieb: It is different. Why was this not announced, then? There is usually no problem to use designer/moc/whatever from different Qt versions. Just run the binary, no need to change system configurations. When I ty to run the binary I get an error message

Re: fix LFUN_LANGUAGE bug, due to Font/Language separation

2007-10-31 Thread Abdelrazak Younes
Dov Feldstern wrote: Hi! I committed a fix to a bug due to the Font/Language separation, which was causing LFUN_LANGUAGE to not work (http://www.lyx.org/trac/changeset/21305). Thanks. This solution may be a bit of a hack --- I'm not familiar enough with the bigger picture. It is not a

Re: [patch] bug 4147: Multiple cells paste as one in tables

2007-10-31 Thread Abdelrazak Younes
Enrico Forestieri wrote: On Tue, Oct 30, 2007 at 06:26:45PM +0100, Jürgen Spitzmüller wrote: http://bugzilla.lyx.org/show_bug.cgi?id=4147 The bug is the result of an encoding failure (use of char instead of char_type) that results in an unwanted conversion of a tabulator ('\t') to the digit

Re: warnings in Paragraph.cpp

2007-10-31 Thread Abdelrazak Younes
Dov Feldstern wrote: Hi! There are a few warnings in Paragraph.cpp, if anyone cares to take a look: Paragraph.cpp: In member function 'void lyx::Paragraph::Private::insertChar(lyx::pos_type, lyx::char_type, const lyx::Change)': Paragraph.cpp:415: warning: comparison between signed and

Re: poking around

2007-10-31 Thread Abdelrazak Younes
Andre Poenitz wrote: I wonder how much resistance the (re- ;-)) introduction of a 'real' lyx string class would meet. Could be as simple as a struct wrapping a std::stringwhatever and delegating all of the work to std::string. The main advantages would be 'declarability' (i.e. class

Re: A GuiKeySymbol setKeySymbol bug?

2007-10-31 Thread Jean-Marc Lasgouttes
Bo Peng [EMAIL PROTECTED] writes: If you remove C-g from cua.bind by \bind C-g, and then you switch to another bind file that does not have C-g. How do you treat this \bind C-g item in user.bind? This is my 'unmatched unbind user item'. Mmm, do you mention explicitly C-g because it is a

Re: [patch] bug 4147: Multiple cells paste as one in tables

2007-10-31 Thread Juergen Spitzmueller
Enrico Forestieri wrote: This is not going to work on systems where sizeof(wchar_t) == 2. I see. I have attached a better fix to bug 4147 on bugzilla. AFAICS, it looks good. Anyway, try to get a feedback from Georg or anyone else who is familiar with this stuff, and commit afterwards.

Re: [patch] bug 4147: Multiple cells paste as one in tables

2007-10-31 Thread Enrico Forestieri
On Wed, Oct 31, 2007 at 08:22:44AM +0100, Abdelrazak Younes wrote: Enrico Forestieri wrote: On Tue, Oct 30, 2007 at 06:26:45PM +0100, Jürgen Spitzmüller wrote: http://bugzilla.lyx.org/show_bug.cgi?id=4147 The bug is the result of an encoding failure (use of char instead of char_type)

Re: A GuiKeySymbol setKeySymbol bug?

2007-10-31 Thread Jean-Marc Lasgouttes
Bo Peng [EMAIL PROTECTED] writes: If you remove C-g from cua.bind by \bind C-g, and then you switch to another bind file that does not have C-g. How do you treat this \bind C-g item in user.bind? This is my 'unmatched unbind user item'. OK, I understand now. I guess you just lose the

Re: A GuiKeySymbol setKeySymbol bug?

2007-10-31 Thread Jean-Marc Lasgouttes
Bo Peng [EMAIL PROTECTED] writes: Then \bind shortcut will override no (no corresponding entry in the master bind file), This one does nothing. And I display it in purple so that a user can remove it. After all, the GUI is an interface to user.bind. I do not think the GUI should be an

Re: A GuiKeySymbol setKeySymbol bug?

2007-10-31 Thread Hans Meine
Am Mittwoch, 31. Oktober 2007 10:20:08 schrieb Jean-Marc Lasgouttes: Bo Peng [EMAIL PROTECTED] writes: If you remove C-g from cua.bind by \bind C-g, and then you switch to another bind file that does not have C-g. How do you treat this \bind C-g item in user.bind? This is my 'unmatched

Re: ignore_language

2007-10-31 Thread Jean-Marc Lasgouttes
Dov Feldstern [EMAIL PROTECTED] writes: Hi! A few days ago we were wondering about what exactly ignore_language is, and I just ran into a use of it in the code so that I now think I know what it is: it's used to represent a neutral language, i.e., when providing a font-change mask,

Re: About font and language...

2007-10-31 Thread Jean-Marc Lasgouttes
Abdelrazak Younes [EMAIL PROTECTED] writes: So each and every Attribute change will have a full entry in the Attribute list, with full instantiation of every Attributes: Font, Language, CT, purple markers, etc. This means an awful lot of redundancies and this will soon become a nightmare to

Re: fix LFUN_LANGUAGE bug, due to Font/Language separation

2007-10-31 Thread Mael Hilléreau
Le 31 oct. 07 à 08:40, Abdelrazak Younes a écrit : Dov Feldstern wrote: Hi! I committed a fix to a bug due to the Font/Language separation, which was causing LFUN_LANGUAGE to not work (http://www.lyx.org/ trac/changeset/21305). Thanks. This solution may be a bit of a hack --- I'm not

Re: Patch: use ForceLtR etc, simplify code

2007-10-31 Thread Jean-Marc Lasgouttes
Abdelrazak Younes [EMAIL PROTECTED] writes: Here is an improved version. The code base has been substantially cleaned up. And now InsetListings is Collapsable-based! Impressive code reduction! Yes, I am happy too to see how this goes. JMarc

freefont, LFUN_FONT_FREE_APPLY and LFUN_FONT_FREE_UPDATE...

2007-10-31 Thread Abdelrazak Younes
Could someone explain me what these are about? LFUN_FONT_FREE_APPLY is never used: can I remove it? LFUN_FONT_FREE_UPDATE is used in GuiCharacter::getLfun(). The only explanation I found is in Tex3.cpp:1408: // Set the freefont using the contents of \param data dispatched from // the

Re: A GuiKeySymbol setKeySymbol bug?

2007-10-31 Thread Jean-Marc Lasgouttes
Hans Meine [EMAIL PROTECTED] writes: And I am not sure that removing bindings (without reusing them for something else) is very useful. It is - for example, Ctrl-t is just next to Ctrl-z on my German keyboard. So from time to time when I want to undo something, a PS is typeset. However, I

Re: A GuiKeySymbol setKeySymbol bug?

2007-10-31 Thread José Matos
On Wednesday 31 October 2007 09:37:19 Hans Meine wrote: I usually typeset PDFs, and I include lots of PDF images, so pressing Ctrl-t leaves me with an unusable LyX for more than a minute. :-( Even with figure cache active? It works fine for me with more than 180 eps figures in a pdf

Re: freefont, LFUN_FONT_FREE_APPLY and LFUN_FONT_FREE_UPDATE...

2007-10-31 Thread Jean-Marc Lasgouttes
Abdelrazak Younes [EMAIL PROTECTED] writes: Could someone explain me what these are about? LFUN_FONT_FREE_APPLY is never used: can I remove it? It is used in the toolbar. LFUN_FONT_FREE_UPDATE is used in GuiCharacter::getLfun(). The only explanation I found is in Tex3.cpp:1408: // Set

Re: freefont, LFUN_FONT_FREE_APPLY and LFUN_FONT_FREE_UPDATE...

2007-10-31 Thread younes . a
Quoting Jean-Marc Lasgouttes [EMAIL PROTECTED]: Abdelrazak Younes [EMAIL PROTECTED] writes: Could someone explain me what these are about? LFUN_FONT_FREE_APPLY is never used: can I remove it? It is used in the toolbar. Ah... OK, I only looked at the code. LFUN_FONT_FREE_UPDATE is

Re: freefont, LFUN_FONT_FREE_APPLY and LFUN_FONT_FREE_UPDATE...

2007-10-31 Thread Jean-Marc Lasgouttes
[EMAIL PROTECTED] writes: I've come to understand that in the mean time... a side effect of the serialisation. Any objection if I clean up that mess and do something similar as for the Paragraph dialog? I mean the automatic retrieval of the current cursor font when Apply changes immediately

Re: A wishlist for LyX

2007-10-31 Thread Helge Hafting
Tommaso Cucinotta wrote: Richard Heck ha scritto: do something like hold down control+shift and click on a label to insert a reference to that label at the current cursor position. I'd like to suggest an alternative usage paradigm for this, conditioned to the implementation of

Re: A wishlist for LyX

2007-10-31 Thread Alexander Streit
This is would be handy in my opinion. But, I would like to point out that the current automatic label is not quite unique enough. For example, just today I inserted a label for a section called Summary. The default label was sec:Summary. Problem is, I have a Summary section in several chapters

Re: Lyx 1.5.2-1 (Windows) crashes on creatin new file, worked in Lyx 1.4.4

2007-10-31 Thread Ekkehart Schlicht
The error disappeared again. The logging worked. So I know what to do when I try again! Thanks Ekkehart Martin Vermeer wrote: On Tue, Oct 30, 2007 at 05:53:33PM +0100, Ekkehart Schlicht wrote: It crashed again. I ran it with -dbg any and tried to pipe the output to a text file. This did

Re: A GuiKeySymbol setKeySymbol bug?

2007-10-31 Thread Jean-Marc Lasgouttes
For a change, I answer to a message to Edwin... Bo Peng [EMAIL PROTECTED] writes: And if we would like to display this item, it is displayed as 'unmatched deleted item'. But do we want to? Why can not you just address the three problems I described with your proposal? 1. when do you

Re: [patch] bug 4147: Multiple cells paste as one in tables

2007-10-31 Thread Abdelrazak Younes
Enrico Forestieri wrote: On Wed, Oct 31, 2007 at 08:22:44AM +0100, Abdelrazak Younes wrote: Enrico Forestieri wrote: On Tue, Oct 30, 2007 at 06:26:45PM +0100, Jürgen Spitzmüller wrote: http://bugzilla.lyx.org/show_bug.cgi?id=4147 The bug is the result of an encoding failure (use of char

Re: [patch] bug 4147: Multiple cells paste as one in tables

2007-10-31 Thread Enrico Forestieri
On Wed, Oct 31, 2007 at 01:29:51PM +0100, Abdelrazak Younes wrote: Enrico Forestieri wrote: On Wed, Oct 31, 2007 at 08:22:44AM +0100, Abdelrazak Younes wrote: Enrico Forestieri wrote: On Tue, Oct 30, 2007 at 06:26:45PM +0100, Jürgen Spitzmüller wrote:

Re: [patch] bug 4147: Multiple cells paste as one in tables

2007-10-31 Thread Jean-Marc Lasgouttes
Enrico Forestieri [EMAIL PROTECTED] writes: Not really. UCS-4 code points from 0x to 0x00ff exactly correspond to latin-1 code points. So unsigned char c = 0xb5; os.put(c); gives me a 'µ' character, and the assertion above is wrong. Maybe you have utf8 in mind. We should not

Re: [patch] bug 4147: Multiple cells paste as one in tables

2007-10-31 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: Enrico Forestieri [EMAIL PROTECTED] writes: Not really. UCS-4 code points from 0x to 0x00ff exactly correspond to latin-1 code points. So unsigned char c = 0xb5; os.put(c); gives me a 'µ' character, and the assertion above is wrong. Maybe you have utf8

Re: A GuiKeySymbol setKeySymbol bug?

2007-10-31 Thread Hans Meine
Am Mittwoch, 31. Oktober 2007 11:09:54 schrieb José Matos: On Wednesday 31 October 2007 09:37:19 Hans Meine wrote: I usually typeset PDFs, and I include lots of PDF images, so pressing Ctrl-t leaves me with an unusable LyX for more than a minute. :-( Even with figure cache active? It

Re: [patch] bug 4147: Multiple cells paste as one in tables

2007-10-31 Thread Enrico Forestieri
On Wed, Oct 31, 2007 at 03:13:56PM +0100, Jean-Marc Lasgouttes wrote: Enrico Forestieri [EMAIL PROTECTED] writes: Not really. UCS-4 code points from 0x to 0x00ff exactly correspond to latin-1 code points. So unsigned char c = 0xb5; os.put(c); gives me a 'µ' character,

Re: A GuiKeySymbol setKeySymbol bug?

2007-10-31 Thread Bo Peng
As far as I am concerned, I am going to stop here this discussion. I am not going to make the changes. I am not going to strongarm Bo into doing them. So in the end Bo gets to decide (which IMO shows how good the commit first and discuss later method is, but of course I see only one side of

Re: A wishlist for LyX

2007-10-31 Thread Helge Hafting
Alexander Streit wrote: This is would be handy in my opinion. But, I would like to point out that the current automatic label is not quite unique enough. Correct. But LyX knows all its own labels, so this can be avoided with some programming. You might want to file a bug at bugzilla.lyx.org

Re: A GuiKeySymbol setKeySymbol bug?

2007-10-31 Thread Jean-Marc Lasgouttes
Bo Peng [EMAIL PROTECTED] writes: As far as I am concerned, I am going to stop here this discussion. I am not going to make the changes. I am not going to strongarm Bo into doing them. So in the end Bo gets to decide (which IMO shows how good the commit first and discuss later method is, but

Re: [patch] bug 4147: Multiple cells paste as one in tables

2007-10-31 Thread Jean-Marc Lasgouttes
Enrico Forestieri [EMAIL PROTECTED] writes: I don't understand either points. Why char_type c = 0xb5; os.put(c); would be ok, but unsigned char c = 0xb5; os.put(c); would not? The first one is a wide char, so it is obviously unicode-encoded. The second one is a 8bit

Re: [patch] bug 4147: Multiple cells paste as one in tables

2007-10-31 Thread Enrico Forestieri
On Wed, Oct 31, 2007 at 04:20:56PM +0100, Jean-Marc Lasgouttes wrote: Enrico Forestieri [EMAIL PROTECTED] writes: I don't understand either points. Why char_type c = 0xb5; os.put(c); would be ok, but unsigned char c = 0xb5; os.put(c); would not? The

Patch: further clean-up of inset font handling etc.

2007-10-31 Thread Martin Vermeer
Attached. I had to change the font handling in TextClass.cpp again. I changed this originally due to a bug report by Helge, but now I changed it -- not precisely back, but again to something different. This is IMHO the way it should be: the layout defines some font attributes, which are then

Re: [patch] bug 4147: Multiple cells paste as one in tables

2007-10-31 Thread Enrico Forestieri
On Wed, Oct 31, 2007 at 03:41:50PM +0100, Abdelrazak Younes wrote: Jean-Marc Lasgouttes wrote: Enrico Forestieri [EMAIL PROTECTED] writes: Not really. UCS-4 code points from 0x to 0x00ff exactly correspond to latin-1 code points. So unsigned char c = 0xb5; os.put(c);

Re: A GuiKeySymbol setKeySymbol bug?

2007-10-31 Thread Bo Peng
Supposedly you have the information in the form of a KeySequence somewhere. But I can not attach KeySequence to an QTreeWidgetItem, because The UserRole is taken by item_type. OK. Let us make clear what to do. 1. I would like to display one binding for each item. That is to say, lfun with

Re: A GuiKeySymbol setKeySymbol bug?

2007-10-31 Thread Jean-Marc Lasgouttes
Bo Peng [EMAIL PROTECTED] writes: Why do you want to _parse_ that? We are discussing display here. And KeySequence provides this output or the bind-file version of it at no additional cost. Because unbind will get the keysequence from displayed text I will see what I can do. Supposedly

Re: A GuiKeySymbol setKeySymbol bug?

2007-10-31 Thread Bo Peng
Yeap, the first complete implementation wins. :-) And this is a very sad state of affairs that designing an UI is done in terms of who wins. Come on. I commit straightforward parts without reviewing, and post controversial parts for review. I commit the whole GUI to let people test. This

Re: [patch] bug 4147: Multiple cells paste as one in tables

2007-10-31 Thread Jean-Marc Lasgouttes
Enrico Forestieri [EMAIL PROTECTED] writes: Every character you output to a docstream must be ucs4 encoded. If its code point can be contained in an unsigned char, fine, otherwise you need a larger type. Hmm. I think this is a recipe for hard to find bugs. JMarc

Re: A GuiKeySymbol setKeySymbol bug?

2007-10-31 Thread Jean-Marc Lasgouttes
Bo Peng [EMAIL PROTECTED] writes: Supposedly you have the information in the form of a KeySequence somewhere. But I can not attach KeySequence to an QTreeWidgetItem, because The UserRole is taken by item_type. I guess this is where MVC can be useful, but this is outside of my competency.

Re: A GuiKeySymbol setKeySymbol bug?

2007-10-31 Thread Jean-Marc Lasgouttes
Bo Peng [EMAIL PROTECTED] writes: This is indeed the main point. Note that what I propose is like what KDE does. The shortcut editing dialog would have remove, add, ..., and one of the troubles is that changing lfun there will affect a bunch of shortcuts... I do not think it makes sense to

Re: [patch] bug 4147: Multiple cells paste as one in tables

2007-10-31 Thread Abdelrazak Younes
Enrico Forestieri wrote: On Wed, Oct 31, 2007 at 03:41:50PM +0100, Abdelrazak Younes wrote: Jean-Marc Lasgouttes wrote: Enrico Forestieri [EMAIL PROTECTED] writes: Not really. UCS-4 code points from 0x to 0x00ff exactly correspond to latin-1 code points. So unsigned char c = 0xb5;

Re: [patch] bug 4147: Multiple cells paste as one in tables

2007-10-31 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: Enrico Forestieri [EMAIL PROTECTED] writes: Every character you output to a docstream must be ucs4 encoded. If its code point can be contained in an unsigned char, fine, otherwise you need a larger type. Hmm. I think this is a recipe for hard to find bugs.

Re: A GuiKeySymbol setKeySymbol bug?

2007-10-31 Thread Bo Peng
I guess this is where MVC can be useful, but this is outside of my competency. I just found that I can set a UserRole for each column, so I can actually store the BindFile format as hidden data. 1. I would like to display one binding for each item. That is to say, lfun with multiple

Re: A GuiKeySymbol setKeySymbol bug?

2007-10-31 Thread Jean-Marc Lasgouttes
Bo Peng [EMAIL PROTECTED] writes: I do not think it makes sense to change the lfun for a given shortcut, but this is actually the root of our disagreement (list of bindings versus list of actions). The problem is that we do not have a fixed amount of lfun. If you list by bindings, how would

Re: A GuiKeySymbol setKeySymbol bug?

2007-10-31 Thread Bo Peng
The problem is that we do not have a fixed amount of lfun. If you list by bindings, how would you list lfuns without shortcut? The current approach, IMHO, is more appropriate. Yes, what I prefer is 'one lfun' == 'one line'. You need to display, to the right of lfun, One lfun |

Re: [patch] bug 4147: Multiple cells paste as one in tables

2007-10-31 Thread Jean-Marc Lasgouttes
Abdelrazak Younes [EMAIL PROTECTED] writes: If somebody use the docstream with latin8 character we will have bugs for sure. How could we forbid 8bit chars to operator? By implementing a private version? JMarc

Re: A GuiKeySymbol setKeySymbol bug?

2007-10-31 Thread Bo Peng
I do not think it makes sense to change the lfun for a given shortcut, but this is actually the root of our disagreement (list of bindings versus list of actions). The problem is that we do not have a fixed amount of lfun. If you list by bindings, how would you list lfuns without shortcut? The

Re: [patch] bug 4147: Multiple cells paste as one in tables

2007-10-31 Thread Enrico Forestieri
On Wed, Oct 31, 2007 at 06:25:31PM +0100, Jean-Marc Lasgouttes wrote: Abdelrazak Younes [EMAIL PROTECTED] writes: If somebody use the docstream with latin8 character we will have bugs for sure. How could we forbid 8bit chars to operator? By implementing a private version? This is

Re: [patch] bug 4147: Multiple cells paste as one in tables

2007-10-31 Thread Enrico Forestieri
On Wed, Oct 31, 2007 at 06:14:35PM +0100, Abdelrazak Younes wrote: Jean-Marc Lasgouttes wrote: Enrico Forestieri [EMAIL PROTECTED] writes: Every character you output to a docstream must be ucs4 encoded. If its code point can be contained in an unsigned char, fine, otherwise you need a

Re: [patch] bug 4147: Multiple cells paste as one in tables

2007-10-31 Thread Enrico Forestieri
On Wed, Oct 31, 2007 at 06:18:57PM +0100, Abdelrazak Younes wrote: Enrico Forestieri wrote: On Wed, Oct 31, 2007 at 03:41:50PM +0100, Abdelrazak Younes wrote: Jean-Marc Lasgouttes wrote: Enrico Forestieri [EMAIL PROTECTED] writes: Not really. UCS-4 code points from 0x to 0x00ff

Re: freefont, LFUN_FONT_FREE_APPLY and LFUN_FONT_FREE_UPDATE...

2007-10-31 Thread Andre Poenitz
On Wed, Oct 31, 2007 at 11:43:33AM +0100, [EMAIL PROTECTED] wrote: and LFUN_FONT_FREE_UPDATE allows to change this setting. I've come to understand that in the mean time... a side effect of the serialisation. I think we should think about how a binary kernel interface would look like. The

Re: poking around

2007-10-31 Thread Andre Poenitz
On Wed, Oct 31, 2007 at 08:59:23AM +0100, Abdelrazak Younes wrote: Andre Poenitz wrote: I wonder how much resistance the (re- ;-)) introduction of a 'real' lyx string class would meet. Could be as simple as a struct wrapping a std::stringwhatever and delegating all of the work to std::string.

Re: A GuiKeySymbol setKeySymbol bug?

2007-10-31 Thread Bo Peng
Is there a cross-out font? There is, so I removed all colors. I guess you should be happier with this dialog, with shortcuts displayed in ForGui format, and without color. If anyone wants to implement the one-lfun-multiple-shortcuts idea, please feel free to take over. Cheers, Bo

Re: [patch] bug 4147: Multiple cells paste as one in tables

2007-10-31 Thread Andre Poenitz
On Wed, Oct 31, 2007 at 05:32:21PM +0100, Jean-Marc Lasgouttes wrote: Enrico Forestieri [EMAIL PROTECTED] writes: Every character you output to a docstream must be ucs4 encoded. If its code point can be contained in an unsigned char, fine, otherwise you need a larger type. Hmm. I think

Re: A GuiKeySymbol setKeySymbol bug?

2007-10-31 Thread Andre Poenitz
On Wed, Oct 31, 2007 at 11:47:24AM -0500, Bo Peng wrote: Supposedly you have the information in the form of a KeySequence somewhere. But I can not attach KeySequence to an QTreeWidgetItem, because The UserRole is taken by item_type. Using UserRole+1 ... INT_MAX is not exactly forbidden.

Re: Patch: further clean-up of inset font handling etc.

2007-10-31 Thread Andre Poenitz
On Wed, Oct 31, 2007 at 06:24:22PM +0200, Martin Vermeer wrote: // Read a font definition from given file in lyx format // Used for layouts -FontInfo lyxRead(Lexer lex) +FontInfo lyxRead(Lexer lex, FontInfo f) Should be FontInfo const . Andre'

Re: [patch] bug 4147: Multiple cells paste as one in tables

2007-10-31 Thread Andre Poenitz
On Wed, Oct 31, 2007 at 06:25:31PM +0100, Jean-Marc Lasgouttes wrote: Abdelrazak Younes [EMAIL PROTECTED] writes: If somebody use the docstream with latin8 character we will have bugs for sure. How could we forbid 8bit chars to operator? By implementing a private version? Sort of.

Re: LaTex progress widget

2007-10-31 Thread Peter Kümmel
Georg Baum wrote: Peter Kümmel wrote: Jean-Marc Lasgouttes wrote: A naive question: what does QProcess gives us that popen would not provide for this particular use case? Or is it that windows does not provide popen? It does, and LyX already uses it. I don't know how to get the output

Re: LaTex progress widget

2007-10-31 Thread Peter Kümmel
Here the progress widget integrated as toolbar. Peter Index: development/cmake/src/support/CMakeLists.txt === --- development/cmake/src/support/CMakeLists.txt(revision 21309) +++ development/cmake/src/support/CMakeLists.txt

Re: Patch: further clean-up of inset font handling etc.

2007-10-31 Thread Abdelrazak Younes
Andre Poenitz wrote: On Wed, Oct 31, 2007 at 06:24:22PM +0200, Martin Vermeer wrote: // Read a font definition from given file in lyx format // Used for layouts -FontInfo lyxRead(Lexer lex) +FontInfo lyxRead(Lexer lex, FontInfo f) Should be FontInfo const . Or even 'void lyxRead(Lexer

Re: Patch: further clean-up of inset font handling etc.

2007-10-31 Thread Martin Vermeer
On Wed, Oct 31, 2007 at 07:53:22PM +0100, Andre Poenitz wrote: On Wed, Oct 31, 2007 at 06:24:22PM +0200, Martin Vermeer wrote: // Read a font definition from given file in lyx format // Used for layouts -FontInfo lyxRead(Lexer lex) +FontInfo lyxRead(Lexer lex, FontInfo f) Should be

Re: [Cvslog] r19762 - in /lyx-devel/trunk/development/cmake: Configure...

2007-10-31 Thread Bernhard Roider
When removing checks then the appropriate #ifdef in the source code need to be reworked. e.g. Missing HAVE_DECL_ISTREAMBUF_ITERATOR is the reason why now with cmake in lyxsum.cpp the function sum(...) is no longer compiled with istreambuf_iterator and therefore (according to the comment in

Re: freefont, LFUN_FONT_FREE_APPLY and LFUN_FONT_FREE_UPDATE...

2007-10-31 Thread Angus Leeming
Andre Poenitz [EMAIL PROTECTED] writes: I think we should think about how a binary kernel interface would look like. The serialization could exist on top of that as a thin wrapper. LOL! I've obviously a long memory. I remember a certain André Pönitz telling me that binary serialization based

Re: [patch] bug 4147: Multiple cells paste as one in tables

2007-10-31 Thread Abdelrazak Younes
Enrico Forestieri wrote: On Wed, Oct 31, 2007 at 06:14:35PM +0100, Abdelrazak Younes wrote: Jean-Marc Lasgouttes wrote: Enrico Forestieri [EMAIL PROTECTED] writes: Every character you output to a docstream must be ucs4 encoded. If its code point can be contained in an unsigned char, fine,

Re: freefont, LFUN_FONT_FREE_APPLY and LFUN_FONT_FREE_UPDATE...

2007-10-31 Thread Andre Poenitz
On Wed, Oct 31, 2007 at 09:01:56PM +, Angus Leeming wrote: Andre Poenitz [EMAIL PROTECTED] writes: I think we should think about how a binary kernel interface would look like. The serialization could exist on top of that as a thin wrapper. LOL! I've obviously a long memory. I remember

Re: about the Qt 4.3 designer format problem

2007-10-31 Thread Uwe Stöhr
I can here run 4.1, 4.2 and 4.3 version of the Designer concurrently without problem. You just have to make sure that the binary lies in the same directory as the associated libraries. I did this: I have the following files in the same directory: designer.exe designer.exe.manifest

Translation problem: cc has two different meanings, but only one translation

2007-10-31 Thread Helge Hafting
cc has two meanings. cc the unit of measure, which simply translates as cc. Then there is cc=carbon copy. It translates to kopi til. But the po-file says that cc is _one_ expression that appear in several files. I tried to split the cc entry in nb.po, but then make nb.gmo complained about a

Re: [Cvslog] r21312 - in /lyx-devel/trunk/src: BranchList.h BufferView...

2007-10-31 Thread Stefan Schimanski
/Users/sts/Quellen/mac/dynmacro16/src/support/strfwd.h:42: error: 'namepace' does not name a type /Users/sts/Quellen/mac/dynmacro16/src/support/strfwd.h:49: error: 'char_type' was not declared in this scope /Users/sts/Quellen/mac/dynmacro16/src/support/strfwd.h:49: error: 'char_type' was not

Re: [Cvslog] r21312 - in /lyx-devel/trunk/src: BranchList.h BufferView...

2007-10-31 Thread Stefan Schimanski
Gcc prefers namespaces over namepaces... fixed it in trunk. Stefan Am 01.11.2007 um 00:38 schrieb Stefan Schimanski: /Users/sts/Quellen/mac/dynmacro16/src/support/strfwd.h:42: error: 'namepace' does not name a type PGP.sig Description: Signierter Teil der Nachricht

Re: [Cvslog] r21312 - in /lyx-devel/trunk/src: BranchList.h BufferView...

2007-10-31 Thread Andre Poenitz
On Thu, Nov 01, 2007 at 12:38:18AM +0100, Stefan Schimanski wrote: /Users/sts/Quellen/mac/dynmacro16/src/support/strfwd.h:42: error: 'namepace' does not name a type /Users/sts/Quellen/mac/dynmacro16/src/support/strfwd.h:49: error: 'char_type' was not declared in this scope

Re: [Cvslog] r21312 - in /lyx-devel/trunk/src: BranchList.h BufferView...

2007-10-31 Thread Stefan Schimanski
Did I miss anything important? Just add the missing 's' and commit. Did it already. It was in a branch that was not active in my build. [What system is that, btw, and to what type is boost::uint32_t typedef'd there?] It's on Mac, gcc 4.01. How do I find out easily about the typedef? And

Re: [Cvslog] r21312 - in /lyx-devel/trunk/src: BranchList.h BufferView...

2007-10-31 Thread Stefan Schimanski
/Users/sts/Quellen/mac/dynmacro16/src/tex2lyx/gettext.cpp: In function 'const lyx::docstring lyx::_(const std::string)': /Users/sts/Quellen/mac/dynmacro16/src/tex2lyx/gettext.cpp:20: error: return type 'const struct lyx::docstring' is incomplete

Re: Patch: further clean-up of inset font handling etc.

2007-10-31 Thread Martin Vermeer
On Wed, Oct 31, 2007 at 09:30:13PM +0100, Abdelrazak Younes wrote: Andre Poenitz wrote: On Wed, Oct 31, 2007 at 06:24:22PM +0200, Martin Vermeer wrote: // Read a font definition from given file in lyx format // Used for layouts -FontInfo lyxRead(Lexer lex) +FontInfo lyxRead(Lexer lex,

Re: Patch: further clean-up of inset font handling etc.

2007-10-31 Thread Martin Vermeer
On Wed, Oct 31, 2007 at 10:28:04PM +0200, Martin Vermeer wrote: On Wed, Oct 31, 2007 at 07:53:22PM +0100, Andre Poenitz wrote: On Wed, Oct 31, 2007 at 06:24:22PM +0200, Martin Vermeer wrote: // Read a font definition from given file in lyx format // Used for layouts -FontInfo

Re: about the Qt 4.3 designer format problem

2007-10-31 Thread Abdelrazak Younes
Uwe Stöhr wrote: Andre Poenitz schrieb: It is different. Why was this not announced, then? There is usually no problem to use designer/moc/whatever from different Qt versions. Just run the binary, no need to change "system configurations". When I ty to run the binary I get an error

Re: fix LFUN_LANGUAGE bug, due to Font/Language separation

2007-10-31 Thread Abdelrazak Younes
Dov Feldstern wrote: Hi! I committed a fix to a bug due to the Font/Language separation, which was causing LFUN_LANGUAGE to not work (http://www.lyx.org/trac/changeset/21305). Thanks. This solution may be a bit of a hack --- I'm not familiar enough with the bigger picture. It is not a

Re: [patch] bug 4147: Multiple cells paste as one in tables

2007-10-31 Thread Abdelrazak Younes
Enrico Forestieri wrote: On Tue, Oct 30, 2007 at 06:26:45PM +0100, Jürgen Spitzmüller wrote: http://bugzilla.lyx.org/show_bug.cgi?id=4147 The bug is the result of an encoding failure (use of char instead of char_type) that results in an unwanted conversion of a tabulator ('\t') to the digit

Re: warnings in Paragraph.cpp

2007-10-31 Thread Abdelrazak Younes
Dov Feldstern wrote: Hi! There are a few warnings in Paragraph.cpp, if anyone cares to take a look: Paragraph.cpp: In member function 'void lyx::Paragraph::Private::insertChar(lyx::pos_type, lyx::char_type, const lyx::Change&)': Paragraph.cpp:415: warning: comparison between signed and

Re: poking around

2007-10-31 Thread Abdelrazak Younes
Andre Poenitz wrote: I wonder how much resistance the (re- ;-)) introduction of a 'real' lyx string class would meet. Could be as simple as a struct wrapping a std::string and delegating all of the work to std::string. The main advantages would be 'declarability' (i.e. class DocString; would

Re: A GuiKeySymbol setKeySymbol bug?

2007-10-31 Thread Jean-Marc Lasgouttes
"Bo Peng" <[EMAIL PROTECTED]> writes: > If you remove C-g from cua.bind by \bind "" "C-g", and then you switch > to another bind file that does not have C-g. How do you treat this > \bind "" "C-g" item in user.bind? This is my 'unmatched unbind user > item'. Mmm, do you mention explicitly C-g

Re: [patch] bug 4147: Multiple cells paste as one in tables

2007-10-31 Thread Juergen Spitzmueller
Enrico Forestieri wrote: > This is not going to work on systems where sizeof(wchar_t) == 2. I see. > I have attached a better fix to bug 4147 on bugzilla. AFAICS, it looks good. Anyway, try to get a feedback from Georg or anyone else who is familiar with this stuff, and commit afterwards.

Re: [patch] bug 4147: Multiple cells paste as one in tables

2007-10-31 Thread Enrico Forestieri
On Wed, Oct 31, 2007 at 08:22:44AM +0100, Abdelrazak Younes wrote: > Enrico Forestieri wrote: > > On Tue, Oct 30, 2007 at 06:26:45PM +0100, Jürgen Spitzmüller wrote: > >> http://bugzilla.lyx.org/show_bug.cgi?id=4147 > >> > >> The bug is the result of an encoding failure (use of char instead of >

Re: A GuiKeySymbol setKeySymbol bug?

2007-10-31 Thread Jean-Marc Lasgouttes
"Bo Peng" <[EMAIL PROTECTED]> writes: > If you remove C-g from cua.bind by \bind "" "C-g", and then you switch > to another bind file that does not have C-g. How do you treat this > \bind "" "C-g" item in user.bind? This is my 'unmatched unbind user > item'. OK, I understand now. I guess you

Re: A GuiKeySymbol setKeySymbol bug?

2007-10-31 Thread Jean-Marc Lasgouttes
"Bo Peng" <[EMAIL PROTECTED]> writes: >> > Then \bind "" "shortcut" will override no (no corresponding entry in >> > the master bind file), >> >> This one does nothing. > > And I display it in purple so that a user can remove it. After all, > the GUI is an interface to user.bind. I do not think

Re: A GuiKeySymbol setKeySymbol bug?

2007-10-31 Thread Hans Meine
Am Mittwoch, 31. Oktober 2007 10:20:08 schrieb Jean-Marc Lasgouttes: > "Bo Peng" <[EMAIL PROTECTED]> writes: > > If you remove C-g from cua.bind by \bind "" "C-g", and then you switch > > to another bind file that does not have C-g. How do you treat this > > \bind "" "C-g" item in user.bind? This

Re: ignore_language

2007-10-31 Thread Jean-Marc Lasgouttes
Dov Feldstern <[EMAIL PROTECTED]> writes: > Hi! > > A few days ago we were wondering about what exactly "ignore_language" > is, and I just ran into a use of it in the code so that I now think I > know what it is: it's used to represent a "neutral" language, i.e., > when providing a font-change

Re: About font and language...

2007-10-31 Thread Jean-Marc Lasgouttes
Abdelrazak Younes <[EMAIL PROTECTED]> writes: > So each and every Attribute change will have a full entry in the > Attribute list, with full instantiation of every Attributes: Font, > Language, CT, purple markers, etc. This means an awful lot of > redundancies and this will soon become a

Re: fix LFUN_LANGUAGE bug, due to Font/Language separation

2007-10-31 Thread Mael Hilléreau
Le 31 oct. 07 à 08:40, Abdelrazak Younes a écrit : Dov Feldstern wrote: Hi! I committed a fix to a bug due to the Font/Language separation, which was causing LFUN_LANGUAGE to not work (http://www.lyx.org/ trac/changeset/21305). Thanks. This solution may be a bit of a hack --- I'm not

Re: Patch: use ForceLtR etc, simplify code

2007-10-31 Thread Jean-Marc Lasgouttes
Abdelrazak Younes <[EMAIL PROTECTED]> writes: >> Here is an improved version. The code base has been substantially cleaned >> up. And now InsetListings is Collapsable-based! > > Impressive code reduction! Yes, I am happy too to see how this goes. JMarc

freefont, LFUN_FONT_FREE_APPLY and LFUN_FONT_FREE_UPDATE...

2007-10-31 Thread Abdelrazak Younes
Could someone explain me what these are about? LFUN_FONT_FREE_APPLY is never used: can I remove it? LFUN_FONT_FREE_UPDATE is used in GuiCharacter::getLfun(). The only explanation I found is in Tex3.cpp:1408: // Set the freefont using the contents of \param data dispatched from // the

Re: A GuiKeySymbol setKeySymbol bug?

2007-10-31 Thread Jean-Marc Lasgouttes
Hans Meine <[EMAIL PROTECTED]> writes: >> And I am not sure that removing bindings (without reusing them for >> something else) is very useful. > > It is - for example, Ctrl-t is just next to Ctrl-z on my German keyboard. > So from time to time when I want to "undo" something, a PS is typeset.

Re: A GuiKeySymbol setKeySymbol bug?

2007-10-31 Thread José Matos
On Wednesday 31 October 2007 09:37:19 Hans Meine wrote: > I usually typeset PDFs, and I include lots of PDF images, so > pressing Ctrl-t leaves me with an unusable LyX for more than a minute. :-( Even with figure cache active? It works fine for me with more than 180 eps figures in a pdf

Re: freefont, LFUN_FONT_FREE_APPLY and LFUN_FONT_FREE_UPDATE...

2007-10-31 Thread Jean-Marc Lasgouttes
Abdelrazak Younes <[EMAIL PROTECTED]> writes: > Could someone explain me what these are about? > > LFUN_FONT_FREE_APPLY is never used: can I remove it? It is used in the toolbar. > LFUN_FONT_FREE_UPDATE is used in GuiCharacter::getLfun(). The only > explanation I found is in Tex3.cpp:1408: > >

Re: freefont, LFUN_FONT_FREE_APPLY and LFUN_FONT_FREE_UPDATE...

2007-10-31 Thread younes . a
Quoting Jean-Marc Lasgouttes <[EMAIL PROTECTED]>: > Abdelrazak Younes <[EMAIL PROTECTED]> writes: > > > Could someone explain me what these are about? > > > > LFUN_FONT_FREE_APPLY is never used: can I remove it? > > It is used in the toolbar. Ah... OK, I only looked at the code. > > >

Re: freefont, LFUN_FONT_FREE_APPLY and LFUN_FONT_FREE_UPDATE...

2007-10-31 Thread Jean-Marc Lasgouttes
[EMAIL PROTECTED] writes: > I've come to understand that in the mean time... a side effect of > the serialisation. Any objection if I clean up that mess and do > something similar as for the Paragraph dialog? I mean the automatic > retrieval of the current cursor font when "Apply changes >

Re: A wishlist for LyX

2007-10-31 Thread Helge Hafting
Tommaso Cucinotta wrote: Richard Heck ha scritto: do something like hold down control+shift and click on a label to insert a reference to that label at the current cursor position. I'd like to suggest an alternative usage paradigm for this, conditioned to the implementation of

  1   2   >