Re: Lyx button face-lift.

2006-12-05 Thread Edwin Leuven
Michael Gerz wrote: Edwin Leuven schrieb: Georg Baum wrote: Am Dienstag, 5. Dezember 2006 21:57 schrieb Edwin Leuven: thanks, the attached solves the crash. is this the correct way to do it? Almost. It should be done as early as possible, in this case in src/support/getcwd.C. like this?

Re: Lyx button face-lift.

2006-12-05 Thread Michael Gerz
Edwin Leuven schrieb: Georg Baum wrote: Am Dienstag, 5. Dezember 2006 21:57 schrieb Edwin Leuven: thanks, the attached solves the crash. is this the correct way to do it? Almost. It should be done as early as possible, in this case in src/support/getcwd.C. like this? The patch looks reaso

Re: Lyx button face-lift.

2006-12-05 Thread Enrico Forestieri
On Tue, Dec 05, 2006 at 09:41:15PM +0100, Georg Baum wrote: > Am Dienstag, 5. Dezember 2006 19:03 schrieb Enrico Forestieri: > > > I can only speak for Cygwin. I don't know for Windows in general, but > > I think that it is also dependent on the filesystem (FAT32 or NTFS). > > I had the hope that

Re: Lyx button face-lift.

2006-12-05 Thread Edwin Leuven
Edwin Leuven wrote: Index: getcwd.C === using boost::scoped_array; +using os::support::internal_path; should be > +using support::os::internal_path;

Re: [Cvslog] r16162 - in /lyx-devel/trunk/src: BufferView.C LColor.C L...

2006-12-05 Thread Enrico Forestieri
On Wed, Dec 06, 2006 at 01:52:57PM +1800, Bo Peng wrote: > >I am not saying this is bad, but this is surely changed behaviour. > > The original button is some sort of 3-D button. Now it is a simple > frame. Depending on personal taste, the latter is more modern. :-) Doh! They resemble the same ki

Re: Lyx button face-lift.

2006-12-05 Thread Edwin Leuven
Georg Baum wrote: Am Dienstag, 5. Dezember 2006 21:57 schrieb Edwin Leuven: thanks, the attached solves the crash. is this the correct way to do it? Almost. It should be done as early as possible, in this case in src/support/getcwd.C. like this? Index: getcwd.C

Re: Lyx button face-lift.

2006-12-05 Thread Georg Baum
Am Dienstag, 5. Dezember 2006 21:57 schrieb Edwin Leuven: > thanks, the attached solves the crash. is this the correct way to do it? Almost. It should be done as early as possible, in this case in src/support/getcwd.C. Georg

Re: Lyx button face-lift.

2006-12-05 Thread Edwin Leuven
Georg Baum wrote: for example when i inset a citation lyx: Disabling LyX socket. Assertion triggered in __thiscall lyx::support::FileName::FileName(const class s td::basic_string,class std::allocator > &) by failing check "!contains(name_, '\\')" in file ..\..\..\..\src\support\fi lename.C

Re: Lyx button face-lift.

2006-12-05 Thread Edwin Leuven
Georg Baum wrote: Am Dienstag, 5. Dezember 2006 18:31 schrieb Edwin Leuven: georg is picking on me I am sorry if you read it like that and apologize. My intention was not to pick on you, but to point at some general tendency. sure, i share your concern that we need to get 1.5 out of the doo

Re: Lyx button face-lift.

2006-12-05 Thread Georg Baum
Am Dienstag, 5. Dezember 2006 19:03 schrieb Enrico Forestieri: > I can only speak for Cygwin. I don't know for Windows in general, but > I think that it is also dependent on the filesystem (FAT32 or NTFS). I had the hope that it was better as on linux, but if this is true it seems to be even wor

Re: Lyx button face-lift.

2006-12-05 Thread Georg Baum
Am Dienstag, 5. Dezember 2006 17:25 schrieb Edwin Leuven: > sorry, i don't know about this unicode stuff and i intend to keep it > that way (or am i not allowed to say that?). you don't want the butcher > to make your bread. Sure you are allowed. This was just an example for a problem that needs

Re: Lyx button face-lift.

2006-12-05 Thread Georg Baum
Am Dienstag, 5. Dezember 2006 18:31 schrieb Edwin Leuven: > georg is picking on me I am sorry if you read it like that and apologize. My intention was not to pick on you, but to point at some general tendency. > i eat mathematicians for breakfast ;-) I am glad that I am not a mathematician :-

Re: [Cvslog] r16184 - in /lyx-devel/trunk/src: ConverterCache.C buffer...

2006-12-05 Thread Georg Baum
Am Dienstag, 5. Dezember 2006 18:18 schrieb Andre Poenitz: > Couldn't we introduce some convenience functions here? > > if (orig_from_name.exists())) { Yes. I did not do it so far because we have too many convenience functions already (basically we use boost::filesystem and our own

Re: Lyx button face-lift.

2006-12-05 Thread Georg Baum
Am Dienstag, 5. Dezember 2006 18:02 schrieb Jean-Marc Lasgouttes: > > "Edwin" == Edwin Leuven <[EMAIL PROTECTED]> writes: > > Edwin> Georg Baum wrote: > >>> life after 1.5 ? > >> Then I'd suggest to start working on that after 1.5. > > Edwin> unfortunately you're not my boss... > > Gentleme

Re: [patch] \clearpage and \cleardoublepage support

2006-12-05 Thread José Matos
On Tuesday 05 December 2006 6:58 pm, Andre Poenitz wrote: > Andre', who has been seen eating fish. Now I am impressed. Honestly. ;-) -- José Abílio

Re: Fixing --with-frontend=qt4?

2006-12-05 Thread Georg Baum
Am Dienstag, 5. Dezember 2006 18:46 schrieb Bo Peng: > 1. Theoretically, we may have more frontends later so it does not make > sense to remove this option. I mean, the most you can do is making qt4 > the default frontend. I did not mean to remove this option. Making qt4 the default is perfectly

Re: [Cvslog] r16162 - in /lyx-devel/trunk/src: BufferView.C LColor.C L...

2006-12-05 Thread Bo Peng
I am not saying this is bad, but this is surely changed behaviour. The original button is some sort of 3-D button. Now it is a simple frame. Depending on personal taste, the latter is more modern. :-) Bo

Re: [Cvslog] r16167 - in /lyx-devel/trunk/src: dimension.C dimension.h...

2006-12-05 Thread Andre Poenitz
On Mon, Dec 04, 2006 at 10:45:45AM -, [EMAIL PROTECTED] wrote: > Author: younes > Date: Mon Dec 4 11:45:43 2006 > New Revision: 16167 > > URL: http://www.lyx.org/trac/changeset/16167 > Log: > * Dimension is a simple wrapper class again. > > * other files: use FontMetrics::dimension() method

Re: [Cvslog] r16162 - in /lyx-devel/trunk/src: BufferView.C LColor.C L...

2006-12-05 Thread Andre Poenitz
On Mon, Dec 04, 2006 at 04:31:20AM -, [EMAIL PROTECTED] wrote: > + // NOTE: eidtXY returns the top level inset of nested insets. If you > happen Try to spell correctly even within comments. > void Painter::buttonFrame(int x, int y, int w, int h) > { > - // Width of a side of the b

Re: [Cvslog] r16124 - in /lyx-devel/trunk/src: dimension.C dimension.h...

2006-12-05 Thread Andre Poenitz
On Sun, Dec 03, 2006 at 11:25:05PM +0100, Abdelrazak Younes wrote: > According to Lars (IIRC), Qt4 did not support full utf16 (i.e. no > surrogate). That's why I didn't bother with the conversion. Looks like > Qt4.2 has changed that and the full utf16 is supported as the new > from/toUcs4() seem

Re: Qt4 crashes while scrolling

2006-12-05 Thread Andre Poenitz
On Sun, Dec 03, 2006 at 07:24:05PM +0100, Enrico Forestieri wrote: > On Thu, Oct 05, 2006 at 09:43:13PM +0200, Andre Poenitz wrote: > > > So if that's a bug in the raster painter it's none I've seen before... > > I finally found the reason of this nasty bug. I am impressed. Honestly. Andre'

Re: [patch] \clearpage and \cleardoublepage support

2006-12-05 Thread Andre Poenitz
On Sun, Dec 03, 2006 at 11:51:51AM +, José Matos wrote: > On Wednesday 29 November 2006 9:46 pm, Andre Poenitz wrote: > > But we could as well tie him on a cucumber field, couldn't we? > > That is not a problem, in my parent's small farm they have cucumbers and I > don't have any problem se

Re: [Cvslog] r16124 - in /lyx-devel/trunk/src: dimension.C dimension.h...

2006-12-05 Thread Andre Poenitz
On Sun, Dec 03, 2006 at 11:29:20PM +0100, Abdelrazak Younes wrote: > >PS: contrary to what you may think, I am very glad that you fixed this > >one. > > Good :-). I was a bit worried that everybody focused on the detail > without noticing the achievement... I spent an awful lot of time on this :-

Re: [Cvslog] r16184 - in /lyx-devel/trunk/src: ConverterCache.C buffer...

2006-12-05 Thread Andre Poenitz
On Tue, Dec 05, 2006 at 12:57:02PM -, [EMAIL PROTECTED] wrote: > - if (!fs::exists(orig_from)) { > + if (!fs::exists(orig_from_name.toFilesystemEncoding())) { > + FileName const filename(fname); > + if (fs::exists(filename.toFilesystemEncoding())) { > + Fil

Re: Single-paragraph redraw

2006-12-05 Thread Andre Poenitz
On Tue, Dec 05, 2006 at 09:56:27AM +1800, Bo Peng wrote: > Dear all, > > Mouse-hover over a button triggers a full repaint, instead of the > single paragraph repaint that the code demands. I had a look at the > code: > > 1. mouse_motion returns (true, true) when a single paragraph need to > be up

Re: Lyx button face-lift.

2006-12-05 Thread Edwin Leuven
José Matos wrote: On Tuesday 05 December 2006 5:31 pm, Edwin Leuven wrote: PS: of course, in such a case, I'll side with Georg :) i eat mathematicians for breakfast ;-) That remembers me when some time ago my students (second year Economics) told me that all mathematicians are dead by now. :-

Re: Re: Lyx button face-lift.

2006-12-05 Thread Enrico Forestieri
On Tue, Dec 05, 2006 at 07:03:09PM +0100, Enrico Forestieri wrote: > For example, this is what I get when running > the attached test program: > > $ env LC_ALL=it_IT.ISO8859-1 ./test-wctype > towupper(0xe8) = 0xe8 > toupper(0xe8) = 0xc8 > > $ env LC_ALL=it_IT.UTF-8 ./test-wctype > towupper(0xe8)

Re: Fixing --with-frontend=qt4?

2006-12-05 Thread Bo Peng
PS: Bo, making a bug WONTFIX does not help much in this case. We knew it would have to be done, but it was not high priority. My concern was that Status.15x was getting too big. Going through the not-for-1.5.0 ones (again and again) is a waste of time. I also notice that some items are not repr

Re: Fixing --with-frontend=qt4?

2006-12-05 Thread José Matos
On Tuesday 05 December 2006 5:54 pm, Jean-Marc Lasgouttes wrote: > > OK, what about that? If it works you can commit it. > JMarc > > PS: Bo, making a bug WONTFIX does not help much in this case. We knew > it would have to be done, but it was not high priority. -- José Abílio

Re: Re: Lyx button face-lift.

2006-12-05 Thread Enrico Forestieri
On Tue, Dec 05, 2006 at 05:11:38PM +0100, Georg Baum wrote: > And I have something for the windows users: One of the next steps in making > non-ascii filenames work will be to actually implement > FileName::toFilesystemEncoding(). I know what to do on linux, but not on > windows, so it would be ni

Re: Lyx button face-lift.

2006-12-05 Thread Bo Peng
Sure, I am using \set_color "buttonbg" "#dcd2c8" This color makes the buttons a lot easier to locate, and is less eye-catching than the orignal buttons. Because there is no way to reach a consensus, I have made this the default. Bo

Re: Fixing --with-frontend=qt4?

2006-12-05 Thread John Levon
On Wed, Dec 06, 2006 at 11:46:21AM +1800, Bo Peng wrote: > 1. Theoretically, we may have more frontends later so it does not make > sense to remove this option. I mean, the most you can do is making qt4 > the default frontend. Theoretically I've already rewritten LyX in Python. Hurrah! > 2. I do

Re: Fixing --with-frontend=qt4?

2006-12-05 Thread Jean-Marc Lasgouttes
> "Bo" == Bo Peng <[EMAIL PROTECTED]> writes: Bo> Hi, Georg, >> If anybody moves this to WONTFIX again I'll get really upset. Does >> nobody see how ridiculous it is to require the user to choose the >> one existing frontend? If this does not get fixed for 1.5.0 we'll >> get many complaints, a

Re: Lyx button face-lift.

2006-12-05 Thread José Matos
On Tuesday 05 December 2006 5:31 pm, Edwin Leuven wrote: > > PS: of course, in such a case, I'll side with Georg :) > > i eat mathematicians for breakfast ;-) That remembers me when some time ago my students (second year Economics) told me that all mathematicians are dead by now. :-D Since w

Fixing --with-frontend=qt4?

2006-12-05 Thread Bo Peng
Hi, Georg, If anybody moves this to WONTFIX again I'll get really upset. Does nobody see how ridiculous it is to require the user to choose the one existing frontend? If this does not get fixed for 1.5.0 we'll get many complaints, and a bad reputation. I do not see your points. 1. Theoretical

Re: Lyx button face-lift.

2006-12-05 Thread Enrico Forestieri
On Wed, Dec 06, 2006 at 09:11:04AM +1800, Bo Peng wrote: > Enrico and others: I understand that you've got used to prominent > buttons. Please make proper adjustments and be done with this feature. > I will accept anything but the original fake-3D buttons. I explained what my only concern was, an

Re: Lyx button face-lift.

2006-12-05 Thread Edwin Leuven
Jean-Marc Lasgouttes wrote: "Edwin" == Edwin Leuven <[EMAIL PROTECTED]> writes: Edwin> Georg Baum wrote: life after 1.5 ? Then I'd suggest to start working on that after 1.5. Edwin> unfortunately you're not my boss... Gentlemen, are we trying to set up a fight of some sort? georg is pic

Re: Lyx button face-lift.

2006-12-05 Thread Enrico Forestieri
On Mon, Dec 04, 2006 at 02:47:14PM -0600, Bo Peng wrote: > >> Actually, I achieve the desired goal by making a little darker the > >> button background ;-) > > If the button looks fine there, could you send me the color you use? Sure, I am using \set_color "buttonbg" "#dcd2c8" -- Enrico

Re: Lyx button face-lift.

2006-12-05 Thread Jean-Marc Lasgouttes
> "Edwin" == Edwin Leuven <[EMAIL PROTECTED]> writes: Edwin> Georg Baum wrote: >>> life after 1.5 ? >> Then I'd suggest to start working on that after 1.5. Edwin> unfortunately you're not my boss... Gentlemen, are we trying to set up a fight of some sort? Is it really the time to do so? J

the Euro case (bug 845)

2006-12-05 Thread Juergen Spitzmueller
I had a look today what is missing: basically, entering and latexing € works with utf8, latin9 and cp1251 (also latin10 and others in theory, but they're not in the combo), provided that \usepackage{textcomp} is entered manually to the preamble. I tried to load that automatically (i.e. require

Re: Lyx button face-lift.

2006-12-05 Thread Edwin Leuven
Georg Baum wrote: life after 1.5 ? Then I'd suggest to start working on that after 1.5. unfortunately you're not my boss... My experience is that it takes too much time to keep half finished patches in a working state. sure i think everybody is waiting for alpha2 (with binaries) to get

RE: Re: Lyx button face-lift.

2006-12-05 Thread Georg Baum
Leuven, E. wrote: >> edwin leuven wrote: >> >> fyi, i am not proposing to put the tabular stuff in. so i don't see why i >> couldn't tinker a bit with that... >> >>Of course you can, but if you don't want to put it in what is the purpose >> on working on it? > > life after 1.5 ? Then I'd suggest

Re: Lyx button face-lift.

2006-12-05 Thread José Matos
On Tuesday 05 December 2006 3:11 pm, Bo Peng wrote: > > OK, let us wrap this up. > > Jose: I apologize for bringing this patch up. Next time, you can stop > me at my 'pre-patch' (, although there is unlikely a next time). Good. That is fair and I appreciate you attitude. > Enrico and others: I

Re: [Cvslog] r16129 - in /lyx-devel/trunk/src/frontends/qt4: GuiFontMe...

2006-12-05 Thread Andre Poenitz
On Fri, Dec 01, 2006 at 11:45:07PM -, [EMAIL PROTECTED] wrote: > Author: younes > Date: Sat Dec 2 00:45:06 2006 > New Revision: 16129 > > URL: http://www.lyx.org/trac/changeset/16129 > Log: > CharMetrics: use short int instead of int. This halves the memory required > for the font metrics ca

Re: Re: Lyx button face-lift.

2006-12-05 Thread Bo Peng
oh, and perhaps someone should go over status.15x again to check which bugs are still around I did that yesterday night and found most of them qt-related. Unfortunately, a qt-novice like me can not fix any of them in a few hours. Bo

RE: Re: Lyx button face-lift.

2006-12-05 Thread Leuven, E.
> edwin leuven wrote: > > fyi, i am not proposing to put the tabular stuff in. so i don't see why i > couldn't tinker a bit with that... > >Of course you can, but if you don't want to put it in what is the purpose > on working on it? life after 1.5 ? > It is a fact that such work does delay the r

Re: Lyx button face-lift.

2006-12-05 Thread Bo Peng
Of course you can, but if you don't want to put it in what is the purpose on working on it? Exactly. I made the buttons prettier when I tried to understand the mouse/event handling of qt/lyx, and I could not help showing it off, despite my clear awareness of the feature freeze. And you see what

Re: LyX 1.5.0 alpha 2?

2006-12-05 Thread José Matos
On Monday 04 December 2006 10:59 pm, Michael Gerz wrote: > Jose, > > what are your plans for the next (the first real) alpha release? I suggest to release alpha 2 on December 18. > People start thinking about new exciting features... IMHO we need some > kind of roadmap. I agree. I have been

Re: Lyx button face-lift.

2006-12-05 Thread Georg Baum
edwin leuven wrote: > fyi, i am not proposing to put the tabular stuff in. so i don't see why i > couldn't tinker a bit with that... Of course you can, but if you don't want to put it in what is the purpose on working on it? It is a fact that such work does delay the relase of 1.5.0. Maybe not ev

Re: Bactrace of reproducible selection scroll crash, lyx 1.5svn qt4

2006-12-05 Thread Juergen Spitzmueller
Helge Hafting wrote: > The crash is easy to reproduce. Backtrace: I get an assertion (also without Bo's button changes BTW): Assertion triggered in lyx::pos_type lyx::LyXText::x2pos(const lyx::BufferView&, lyx::pit_type, int, int) const by failing check "row < int(pars_[pit].rows().size())" in

Bactrace of reproducible selection scroll crash, lyx 1.5svn qt4

2006-12-05 Thread Helge Hafting
Crash recipe for yesterdays lyx-1.5SVN: (qt4) 1. Load the userguide 2. Press and hold the mouse button at the top 3. Move the mouse down, creating a selection 4. LyX scrolls the window. More of the document is rendered on the screen, then LyX crash before marking it with the "selected" light

Re: Lyx button face-lift.

2006-12-05 Thread edwin leuven
Georg Baum <[EMAIL PROTECTED]> writes: > > Edwin Leuven wrote: > > > and am playing a bit with the tabular code (merging tabular.h and > > insettabular) so have no time to figure out how to do this... :-/ > > That ... means that the freeze is over and 1.5.0 will > never happen. I agree that tabul

Re: Feature request: go down an inset with Alt + right or left arrow.

2006-12-05 Thread John McCabe-Dansted
On 12/5/06, Abdelrazak Younes <[EMAIL PROTECTED]> wrote: > What's wrong with Ctrl+i? Probably the fact that I didn't know it... I haven't read the LyX tutorial since LyX-0.10 or something ;-) That said, Ctrl+i works only _before_ the inset and is not very user friendly. Who knows except LyX dev

Re: Lyx button face-lift.

2006-12-05 Thread Georg Baum
Edwin Leuven wrote: > and am playing a bit with the tabular code (merging tabular.h and > insettabular) so have no time to figure out how to do this... :-/ That (and the button stuff) means that the freeze is over and 1.5.0 will never happen. I agree that tabular and insettabular need to be merge