Re: [PATCH] various bugs in Preferences-Colors dialog

2007-05-09 Thread Jean-Marc Lasgouttes
Bernhard == Bernhard Roider [EMAIL PROTECTED] writes: Bernhard The math background color is not used at all. Yes, this has been true for some time. JMarc

Re: [PATCH] various bugs in Preferences-Colors dialog

2007-05-09 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: Bernhard == Bernhard Roider [EMAIL PROTECTED] writes: Bernhard The math background color is not used at all. Yes, this has been true for some time. I think this has always been the case but it is fixable now: math insets do now have the backgroundColor(), it

Re: [PATCH] various bugs in Preferences->Colors dialog

2007-05-09 Thread Jean-Marc Lasgouttes
> "Bernhard" == Bernhard Roider <[EMAIL PROTECTED]> writes: Bernhard> The math background color is not used at all. Yes, this has been true for some time. JMarc

Re: [PATCH] various bugs in Preferences->Colors dialog

2007-05-09 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: "Bernhard" == Bernhard Roider <[EMAIL PROTECTED]> writes: Bernhard> The math background color is not used at all. Yes, this has been true for some time. I think this has always been the case but it is fixable now: math insets do now have the backgroundColor(),

[PATCH] various bugs in Preferences-Colors dialog

2007-05-07 Thread Bernhard Roider
Hello all, found some time for lyx today... and some bugs in the colors dialog. The attached patch fixes 1. a crash when no color is selected and the alter button is pressed 2. when canceling the color selection dialog the color of the selected item is changed to black 3. when canceling the

Re: [PATCH] various bugs in Preferences-Colors dialog

2007-05-07 Thread Bernhard Roider
Another issue on Windows: At work i installed beta2 with interface language german and everything is german except for the color selection dialog. At home when starting LyX from MSVC the interface language is english except for the color selection dialog which is in german! Yet another

[PATCH] various bugs in Preferences->Colors dialog

2007-05-07 Thread Bernhard Roider
Hello all, found some time for lyx today... and some bugs in the colors dialog. The attached patch fixes 1. a crash when no color is selected and the "alter" button is pressed 2. when canceling the color selection dialog the color of the selected item is changed to black 3. when canceling the

Re: [PATCH] various bugs in Preferences->Colors dialog

2007-05-07 Thread Bernhard Roider
Another issue on Windows: At work i installed beta2 with interface language german and everything is german except for the color selection dialog. At home when starting LyX from MSVC the interface language is english except for the color selection dialog which is in german! Yet another

Re: Preferences-Colors

2001-02-21 Thread Amir Karger
On Thu, Feb 22, 2001 at 12:41:28AM +1000, Allan Rae wrote: On Wed, 13 Dec 2000, Amir Karger wrote: On Tue, Dec 12, 2000 at 03:44:46PM +1000, Allan Rae wrote: On Sat, 2 Dec 2000, Angus Leeming wrote: P.S. We should probably try to lower the nested tabfolder so that it might be

Re: Preferences-Colors

2001-02-21 Thread Allan Rae
On Wed, 13 Dec 2000, Amir Karger wrote: On Tue, Dec 12, 2000 at 03:44:46PM +1000, Allan Rae wrote: On Sat, 2 Dec 2000, Angus Leeming wrote: P.S. We should probably try to lower the nested tabfolder so that it might be more obvious that they in fact tabbed rather than MS-style

Re: Preferences->Colors

2001-02-21 Thread Amir Karger
On Thu, Feb 22, 2001 at 12:41:28AM +1000, Allan Rae wrote: > On Wed, 13 Dec 2000, Amir Karger wrote: > > > On Tue, Dec 12, 2000 at 03:44:46PM +1000, Allan Rae wrote: > > > On Sat, 2 Dec 2000, Angus Leeming wrote: > > > > > > P.S. We should probably try to lower the nested tabfolder so that it

Re: Preferences->Colors

2001-02-21 Thread Allan Rae
On Wed, 13 Dec 2000, Amir Karger wrote: > On Tue, Dec 12, 2000 at 03:44:46PM +1000, Allan Rae wrote: > > On Sat, 2 Dec 2000, Angus Leeming wrote: > > > > P.S. We should probably try to lower the nested tabfolder so that it might > > be more obvious that they in fact tabbed rather than MS-style

Re: Preferences-Colors

2000-12-13 Thread Amir Karger
On Tue, Dec 12, 2000 at 03:44:46PM +1000, Allan Rae wrote: On Sat, 2 Dec 2000, Angus Leeming wrote: P.S. We should probably try to lower the nested tabfolder so that it might be more obvious that they in fact tabbed rather than MS-style multi-rowed folders. Maybe lowering a few pixels and

Re: Preferences->Colors

2000-12-13 Thread Amir Karger
On Tue, Dec 12, 2000 at 03:44:46PM +1000, Allan Rae wrote: > On Sat, 2 Dec 2000, Angus Leeming wrote: > > P.S. We should probably try to lower the nested tabfolder so that it might > be more obvious that they in fact tabbed rather than MS-style multi-rowed > folders. Maybe lowering a few pixels

Re: Preferences-Colors

2000-12-11 Thread Allan Rae
On Sat, 2 Dec 2000, Angus Leeming wrote: On Friday 01 December 2000 15:03, Duncan Simpson wrote: use anyway---a place to tpye a colour name is good for me (and helps me find a decent gold in any case). Well, I've just added RGB sliders too. That should help. Angus, you know how you

Re: Preferences->Colors

2000-12-11 Thread Allan Rae
On Sat, 2 Dec 2000, Angus Leeming wrote: > On Friday 01 December 2000 15:03, Duncan Simpson wrote: > > use anyway---a place to tpye a colour name is good for me (and helps me > > find a decent gold in any case). > > Well, I've just added RGB sliders too. That should help. Angus, you know how

Re: Preferences-Colors

2000-12-05 Thread Jean-Marc Lasgouttes
"Angus" == Angus Leeming [EMAIL PROTECTED] writes: Angus I appear to have corrupted my repository somehow. I can do a Angus "cvs diff" from src/frontends/xforms but not from the root Angus Here, then, is the patch. Note that it was created from within Angus src/frontends/xforms, so should be

Re: Preferences-Colors

2000-12-05 Thread Angus Leeming
Angus I appear to have corrupted my repository somehow. I can do a Angus "cvs diff" from src/frontends/xforms but not from the root Angus Here, then, is the patch. Note that it was created from within Angus src/frontends/xforms, so should be applied from there. The Angus ChangeLog should

Re: Preferences->Colors

2000-12-05 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> I appear to have corrupted my repository somehow. I can do a Angus> "cvs diff" from src/frontends/xforms but not from the root Angus> Here, then, is the patch. Note that it was created from within Angus> src/frontends/xforms, so

Re: Preferences->Colors

2000-12-05 Thread Angus Leeming
> Angus> I appear to have corrupted my repository somehow. I can do a > Angus> "cvs diff" from src/frontends/xforms but not from the root > Angus> Here, then, is the patch. Note that it was created from within > Angus> src/frontends/xforms, so should be applied from there. The > Angus> ChangeLog

Re: Preferences-Colors

2000-12-02 Thread Angus Leeming
On Friday 01 December 2000 15:03, Duncan Simpson wrote: If the code quoted is typical then it could all be replaced by XlookupColorn which returns the closest and exact colour 'Fraid not. X11 uses short ints r,g,b in the range 0 r,g,b 63000ish Xforms uses chars in the range 0 r,g,b 255 My

Re: Preferences->Colors

2000-12-02 Thread Angus Leeming
On Friday 01 December 2000 15:03, Duncan Simpson wrote: > If the code quoted is typical then it could all be replaced by > XlookupColorn which returns the closest and exact colour 'Fraid not. X11 uses short ints r,g,b in the range 0 < r,g,b < 63000ish Xforms uses chars in the range 0 < r,g,b <

Re: Preferences-Colors

2000-12-01 Thread Angus Leeming
Many thanks, Ducan and Jean-Marc, about the X11 name info. Using the following in FormPreferences::Colors::apply() to apply changes to the LColors works like a dream. This leaves the way clear to ditch the problematic X11 namebase browser in the colors tab and allow users to choose any color

Re: Preferences-Colors

2000-12-01 Thread Angus Leeming
I appear to have corrupted my repository somehow. I can do a "cvs diff" from src/frontends/xforms but not from the root directory: aleem@pneumon:devel- cvs update [EMAIL PROTECTED]'s password: Received disconnect: Corrupted check bytes on input. cvs [update aborted]: received broken pipe signal

Re: Preferences-Colors

2000-12-01 Thread John Levon
On Fri, 1 Dec 2000, Angus Leeming wrote: I appear to have corrupted my repository somehow. I can do a "cvs diff" from src/frontends/xforms but not from the root directory: aleem@pneumon:devel- cvs update [EMAIL PROTECTED]'s password: Received disconnect: Corrupted check bytes on input.

Re: Preferences-Colors

2000-12-01 Thread Duncan Simpson
If the code quoted is typical then it could all be replaced by XlookupColorn which returns the closest and exact colour XLookupColor(dipslay, colour map, colorname, exact_ef_retrurn, scrren_def_retrun) Returns: 0 on mailure, non zero on success .Possible errors are BadName (invalid colour)

Re: Preferences->Colors

2000-12-01 Thread Angus Leeming
Many thanks, Ducan and Jean-Marc, about the X11 name info. Using the following in FormPreferences::Colors::apply() to apply changes to the LColors works like a dream. This leaves the way clear to ditch the problematic X11 namebase browser in the colors tab and allow users to choose any color

Re: Preferences->Colors

2000-12-01 Thread Angus Leeming
I appear to have corrupted my repository somehow. I can do a "cvs diff" from src/frontends/xforms but not from the root directory: aleem@pneumon:devel-> cvs update [EMAIL PROTECTED]'s password: Received disconnect: Corrupted check bytes on input. cvs [update aborted]: received broken pipe

Re: Preferences->Colors

2000-12-01 Thread John Levon
On Fri, 1 Dec 2000, Angus Leeming wrote: > I appear to have corrupted my repository somehow. I can do a "cvs diff" from > src/frontends/xforms but not from the root directory: > > aleem@pneumon:devel-> cvs update > [EMAIL PROTECTED]'s password: > Received disconnect: Corrupted check bytes on

Re: Preferences->Colors

2000-12-01 Thread Duncan Simpson
If the code quoted is typical then it could all be replaced by XlookupColorn which returns the closest and exact colour XLookupColor(dipslay, colour map, colorname, exact_ef_retrurn, scrren_def_retrun) Returns: 0 on mailure, non zero on success .Possible errors are BadName (invalid colour)

Re: Preferences-Colors

2000-11-30 Thread Angus Leeming
On Thursday 30 November 2000 02:34, Allan Rae wrote: Consider TF Message Read. Sorry. I got a bit overexcited. When your cursor goes over amy object in FormPreferences you get a little bit of text. Read it. Act upon it! You already set the X11 name by some search method. Why not set the

Re: Preferences-Colors

2000-11-30 Thread Jean-Marc Lasgouttes
"Angus" == Angus Leeming [EMAIL PROTECTED] writes: Angus The ONLY reason we have the X11 name browser is because LColor Angus currently stores colours by name, not by RGB value. This will Angus have to change in the future if we're to have a native windows Angus port etc, but, for the time

Re: Preferences-Colors

2000-11-30 Thread Angus Leeming
The problem is that LyXColorHandler::getGCForeground() uses XLookupColor(display, colormap, x11colorname, xcol, ccol); to find xcol and ccol, the "exact" and "closest available on this display" RGB colours to the input x11colorname. Till this changes LColor has to store the X11 name.

Re: Preferences-Colors

2000-11-30 Thread Jean-Marc Lasgouttes
"Angus" == Angus Leeming [EMAIL PROTECTED] writes: Angus The problem is that LyXColorHandler::getGCForeground() uses Angus XLookupColor(display, colormap, x11colorname, xcol, ccol); Angus to find xcol and ccol, the "exact" and "closest available on Angus this display" RGB colours to the input

Re: Preferences-Colors

2000-11-30 Thread Angus Leeming
Thanks for the info. I'll leave things as they are for 1.1.6 but thereafter will have a play. A On Thursday 30 November 2000 10:27, Jean-Marc Lasgouttes wrote: "Angus" == Angus Leeming [EMAIL PROTECTED] writes: Angus The problem is that LyXColorHandler::getGCForeground() uses Angus

Re: Preferences-Colors

2000-11-30 Thread Duncan Simpson
To paraphrase from Vchapter 7 of Xlib programming (page 193) it says Whe XAllocNamedColor, XlookupColor, XparseColor and XStoreNamedColor (or their device indepent analogues) and pased a colour string thyey attempt the following thins (and take the first that works) 1. Attempt to parse is as

Re: Preferences->Colors

2000-11-30 Thread Angus Leeming
On Thursday 30 November 2000 02:34, Allan Rae wrote: > Consider TF Message Read. Sorry. I got a bit overexcited. > > When your cursor goes over amy object in FormPreferences you get a little > > bit of text. Read it. Act upon it! > You already set the X11 name by some search method. Why not set

Re: Preferences->Colors

2000-11-30 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> The ONLY reason we have the X11 name browser is because LColor Angus> currently stores colours by name, not by RGB value. This will Angus> have to change in the future if we're to have a native windows Angus> port etc, but, for

Re: Preferences->Colors

2000-11-30 Thread Angus Leeming
The problem is that LyXColorHandler::getGCForeground() uses XLookupColor(display, colormap, x11colorname, , ); to find xcol and ccol, the "exact" and "closest available on this display" RGB colours to the input x11colorname. Till this changes LColor has to store the X11 name. Unless

Re: Preferences->Colors

2000-11-30 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> The problem is that LyXColorHandler::getGCForeground() uses Angus> XLookupColor(display, colormap, x11colorname, , ); Angus> to find xcol and ccol, the "exact" and "closest available on Angus> this display" RGB colours to the

Re: Preferences->Colors

2000-11-30 Thread Angus Leeming
Thanks for the info. I'll leave things as they are for 1.1.6 but thereafter will have a play. A On Thursday 30 November 2000 10:27, Jean-Marc Lasgouttes wrote: > > "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: > > Angus> The problem is that LyXColorHandler::getGCForeground() uses >

Re: Preferences->Colors

2000-11-30 Thread Duncan Simpson
To paraphrase from Vchapter 7 of Xlib programming (page 193) it says Whe XAllocNamedColor, XlookupColor, XparseColor and XStoreNamedColor (or their device indepent analogues) and pased a colour string thyey attempt the following thins (and take the first that works) 1. Attempt to parse is as

Re: Preferences-Colors

2000-11-28 Thread Allan Rae
On Tue, 28 Nov 2000, Angus Leeming wrote: On Tuesday 28 November 2000 07:17, Allan Rae wrote: 1. In English, colours is spelled colours ;-) And everywhere else in LyX it's spelled colors. I simply acknowledged the de-facto colonization of the english-speaking world by that imperialist

Re: Preferences->Colors

2000-11-28 Thread Allan Rae
On Tue, 28 Nov 2000, Angus Leeming wrote: > On Tuesday 28 November 2000 07:17, Allan Rae wrote: > > 1. In English, colours is spelled colours ;-) > > And everywhere else in LyX it's spelled colors. I simply acknowledged the > de-facto colonization of the english-speaking world by that

Preferences-Colors

2000-11-27 Thread Allan Rae
1. In English, colours is spelled colours ;-) 2. It doesn't work. I took a quick look at the input processing in Colors::input() et al and it seems that the Modify button is disabled almost everywhere unless V=0 or 1 and S=0. Hopefully you are already aware of this, Angus,

Preferences->Colors

2000-11-27 Thread Allan Rae
1. In English, colours is spelled colours ;-) 2. It doesn't work. I took a quick look at the input processing in Colors::input() et al and it seems that the Modify button is disabled almost everywhere unless V=0 or 1 and S=0. Hopefully you are already aware of this, Angus,