Re: FormPreferences patch

2000-11-07 Thread Jean-Marc Lasgouttes
"Dekel" == Dekel Tsur [EMAIL PROTECTED] writes: Dekel I want to add a keymap entry to the languages file, so that the Dekel keymap can automatically change when the language is changed Dekel (esp. useful for multilingual files). Except that french users with a qwerty keyboard (all non-pc unix

Re: Patch: default.ui lyx_gui.C

2000-11-07 Thread Jean-Marc Lasgouttes
"Lars" == Lars Gullik Bjønnes [EMAIL PROTECTED] writes: Lars "R. Lahaye" [EMAIL PROTECTED] writes: | Hi, | | * Lars lib/ui/default.ui: clean-up and added sub/superscript to menu | Lars and to toolbar Lars And we want tose in the default toolbar?! I certainly don't. I think we want them in the

Re: the .str().c_str() trick

2000-11-07 Thread Jean-Marc Lasgouttes
"Lars" == Lars Gullik Bjønnes [EMAIL PROTECTED] writes: Lars Jean-Marc Lasgouttes [EMAIL PROTECTED] writes: | Lars "Lars" == Lars Gullik Bjønnes [EMAIL PROTECTED] writes: | | Lars Lars Is the .str().c_str() trick needed anymore? It seems that Lars we | Lars have just plain .str() several

Re: FindPaste only for plain ascii text?

2000-11-07 Thread Jean-Marc Lasgouttes
"R" == R Lahaye [EMAIL PROTECTED] writes: R Hi, Is is possible to find special characters with the FindReplace R dialog? R For example I want to find the next 'Menu-separator' in the lyx R text. You can't. R PS: When wanting to adjust the menubar changes to the R lyx-documentation, it would

Re: the .str().c_str() trick

2000-11-07 Thread Andre Poenitz
I really think that declaring a stream and outputting to it just to change an int to a string is overkill and not convenient. Seconded. And a function could be used in more places that a block of three lines. And it's easier readable, since it is shorter. And all the magic necessary to support

Re: FormPreferences patch

2000-11-07 Thread Juergen Vigna
On 06-Nov-2000 Dekel Tsur wrote: I want to add a keymap entry to the languages file, so that the keymap can automatically change when the language is changed (esp. useful for multilingual files). I surely don't want this! I have only one keyboard and I want my keys as they are. If I like

Re: FormPreferences patch

2000-11-07 Thread Angus Leeming
On Mon, 06 Nov 2000, Dekel Tsur wrote: The items in the combox shouldn't have the full path and the kmap extension, namely, it should be american-2 american instead of .../lyx-devel/lib/kbd/american-2.kmap /lyx-devel/lib/kbd/american.kmap Sure. I just wanted to get something working

Re: FormPreferences patch

2000-11-07 Thread Jean-Marc Lasgouttes
"Angus" == Angus Leeming [EMAIL PROTECTED] writes: Angus Because I sort the list of names (which I store). If I could Angus sort the list of formats by name, then I'd do that instead. Angus Note that the STL is largely unknown to me and whilst I do have Angus reference literature, I find that I

Re: New patch: for default.ui only

2000-11-07 Thread Jean-Marc Lasgouttes
"R" == R Lahaye [EMAIL PROTECTED] writes: R I have attached an new update of default.ui. Thanks. Applied. JMarc

Re: FindPaste only for plain ascii text?

2000-11-07 Thread R. Lahaye
Jean-Marc Lasgouttes wrote: "R" == R Lahaye [EMAIL PROTECTED] writes: R PS: When wanting to adjust the menubar changes to the R lyx-documentation, it would be good to hop from one menu-separator R to the next, making the appropriate changes. The function which jumps to next note/error

Re: FindPaste only for plain ascii text?

2000-11-07 Thread Jean-Marc Lasgouttes
"R" == R Lahaye [EMAIL PROTECTED] writes: R Hmmm, you're suggesting here yet another find-tool: "find-next R inset". Yes. R Actually also the current "next note/error" is a similar find-tool: R "find-next note/error". I'd like to replace them with a general purpose find. And also a

Re: FormPreferences patch

2000-11-07 Thread Angus Leeming
On Tue, 07 Nov 2000, Jean-Marc Lasgouttes wrote: "Angus" == Angus Leeming [EMAIL PROTECTED] writes: Angus Because I sort the list of names (which I store). If I could Angus sort the list of formats by name, then I'd do that instead. Angus Note that the STL is largely unknown to me and

Re: LyX still crashes with Preferences selection buttons

2000-11-07 Thread Angus Leeming
There is no feedback callback in Document like there is in Preferences. Which is the way I was going to do it but then we wouldn't get feedback until you start changing stuff (as I was going to set messages via the input() callback). Incidentally, I think you were talking about an

Re: LyX still crashes with Preferences selection buttons

2000-11-07 Thread Angus Leeming
Great minds thinking alike I believe. The alternative is of course to be rejected! Your bandaid is identical to the one I posted in a patch yesterday. Not yet applied to CVS, it would appear. Hint, hint. Angus On Tue, 07 Nov 2000, Allan Rae wrote: On Tue, 7 Nov 2000, R. Lahaye wrote: "R.

Re: FormPreferences patch

2000-11-07 Thread Jean-Marc Lasgouttes
"Angus" == Angus Leeming [EMAIL PROTECTED] writes: Angus sigh... Jean-Marc, I've worked flat out on this stuff for two Angus weeks. If anybody feels the need to clean up the code base, Angus then they won't find me stopping them. This isn't meant to be a Angus flame, just exhaustion! That was

3 patches

2000-11-07 Thread Angus Leeming
Attached are three patches. They are independent of each other. patch1.bz2 is purely a bug fix/clean-up patch. patch2.bz2 does nothing but make the feel of all LyX's daughter dialogs the same by using FL_PLACE_MOUSE | FL_FREE_SIZE, FL_TRANSIENT in fl_show_form(). This has one real benefit:

patch: the colour of the tab folder.

2000-11-07 Thread Angus Leeming
Jean-Marc, this is a patch for you, as you were the one interested in changing the colour of the active tab folder to make it more visible. I've made the colour of the active folder FL_MCOL, a change from the default FL_COL1. This may be too light; from dark to light : FL_COL1

Re: example problems

2000-11-07 Thread Lior Silberman
On 3 Nov 2000, Jean-Marc Lasgouttes wrote: "Lior" == Lior Silberman [EMAIL PROTECTED] writes: Lior Also, there is a complaint about a missing textclass. There is Lior such a layout file, but during compilation the path searching Lior may be off or something. Do you have noweb

Re: FYI: (*it). vs it-

2000-11-07 Thread Lars Gullik Bjønnes
Andre Poenitz [EMAIL PROTECTED] writes: | Note that is some libraries the operator- for iterators are missing | | Is this an Official Recommendation for LyX code now? Only if we run itnro problems. | PS: Which libraries? Te standard C++ library. Lgb | | | -- | André Pönitz

Re: FormPreferences patch

2000-11-07 Thread Dekel Tsur
On Tue, Nov 07, 2000 at 09:39:22AM +, Angus Leeming wrote: why aren't you doing it the way I originally did ? namely int i = fl_get_browser(formats_-browser_formats); if (i 0) { Format const f = formats_vec[i-1]; fl_set_input(formats_-input_format,

Re: New patch: for default.ui only

2000-11-07 Thread Dekel Tsur
On Tue, Nov 07, 2000 at 09:57:47AM +0900, R. Lahaye wrote: The current patch includes: * src/lib/ui/default.ui: added sub/superscripts to menu as Insert-Special characters and cleaned-up the file. Wouldn't it be better to go directly into math text mode ? Namely, ---

Re: Patch: default.ui lyx_gui.C

2000-11-07 Thread Dekel Tsur
On Tue, Nov 07, 2000 at 09:23:52AM +0100, Jean-Marc Lasgouttes wrote: I think we want them in the math panel, but not in the toolbar. Is it possible to have a second row of icons in the toolbar, with all the icons of the math panel (and discard the math panel), just like in klyx ?

Re: FormPreferences patch

2000-11-07 Thread Dekel Tsur
On Tue, Nov 07, 2000 at 10:19:19AM +0100, Juergen Vigna wrote: On 06-Nov-2000 Dekel Tsur wrote: I want to add a keymap entry to the languages file, so that the keymap can automatically change when the language is changed (esp. useful for multilingual files). I surely don't want

Re: FormPreferences patch

2000-11-07 Thread Angus Leeming
Well now. I defined bool FormatsCompare( Format const a, Format const b ) { return( a.name b.name ); } and then sort( formats_vec.begin(), formats_vec.end(), FormatsCompare ); And something similar for sorting Commands: bool CommandCompare( Command const a, Command const b

Re: FormPreferences patch

2000-11-07 Thread Dekel Tsur
On Tue, Nov 07, 2000 at 06:42:27PM +, Angus Leeming wrote: Well now. I defined bool FormatsCompare( Format const a, Format const b ) { return( a.name b.name ); } and then sort( formats_vec.begin(), formats_vec.end(), FormatsCompare ); And something similar for

Re: Compiling Errors misc

2000-11-07 Thread Yves Capdeboscq
1. It appears that the second part of my question (ANSI C++) has been asked many times, and the answer was already posted. Sorry. The first part of my question still stands, and I have no idea of where it comes from. 2. Suggestions, about reLyX. There is a not so nice thing about reLyX, which

cvs nasty bug,

2000-11-07 Thread Garst R. Reese
If I type a comma, I get ctrl F, wide fig. Typing . just shows a blank space. GCC 2.95.2 bxforms.89 glibc2.1 Garst

Re: FormPreferences patch

2000-11-07 Thread Lars Gullik Bjønnes
Dekel Tsur [EMAIL PROTECTED] writes: | Use | struct compare_formats { | bool operator()(Format const a, Format const b) { | return a.name b.name; | } | } | | and then | sort(formats_vec.begin(), formats_vec.end(), compare_formats()); | | PS Is there a template for

Re: FormPreferences patch

2000-11-07 Thread Lars Gullik Bjønnes
Dekel Tsur [EMAIL PROTECTED] writes: IMHO the default keymap for any given keymap should be the default keymap for the system, if _nything_ else is wanted it should be configured and decided by the user. i.e. we should not add a keymap field to languages. Lgb | On Tue, Nov 07, 2000

Re: Patch: default.ui lyx_gui.C

2000-11-07 Thread Allan Rae
On Tue, 7 Nov 2000, Dekel Tsur wrote: On Tue, Nov 07, 2000 at 09:23:52AM +0100, Jean-Marc Lasgouttes wrote: I think we want them in the math panel, but not in the toolbar. Is it possible to have a second row of icons in the toolbar, with all the icons of the math panel (and discard the

Re: New patch: for default.ui only

2000-11-07 Thread R. Lahaye
Dekel Tsur wrote: Wouldn't it be better to go directly into math text mode ? Namely, - Item "Subscript|S" "math-insert _" - Item "Superscript|u" "math-insert ^" + Item "Subscript|S" "command-sequence math-insert _;math-mode;" + Item "Superscript|u" "command-sequence

Re: cvs nasty bug,

2000-11-07 Thread Garst R. Reese
"Garst R. Reese" wrote: If I type a comma, I get ctrl F, wide fig. Typing . just shows a blank space. GCC 2.95.2 bxforms.89 glibc2.1 Garst I figured this one out. I had changed my preferences to keyboard american, from english. Don't know why, it just seemed right since it is an american

Re: FormPreferences patch

2000-11-07 Thread Andre Poenitz
On 06-Nov-2000 Dekel Tsur wrote: I want to add a keymap entry to the languages file, so that the keymap can automatically change when the language is changed (esp. useful for multilingual files). I surely don't want this! I have only one keyboard and I want my keys as they

Re: FormPreferences patch

2000-11-07 Thread Andre Poenitz
bool FormatsCompare( Format const a, Format const b ) { return( a.name b.name ); } and then sort( formats_vec.begin(), formats_vec.end(), FormatsCompare ); And something similar for sorting Commands: bool CommandCompare( Command const a, Command const b ) {

Crash on cross-ref inside table

2000-11-07 Thread Martin Vermeer
Hi, bug report (don't remember seeing this before): Current CVS. Document contains a table (tabular, non-float) containing in one of its cells a cross-ref to a formula outside. It segfaults/core dumps consistently when trying to load the document. Backtrace below. Unfortunately I cannot use

Re: FormPreferences patch

2000-11-07 Thread Jean-Marc Lasgouttes
> "Dekel" == Dekel Tsur <[EMAIL PROTECTED]> writes: Dekel> I want to add a keymap entry to the languages file, so that the Dekel> keymap can automatically change when the language is changed Dekel> (esp. useful for multilingual files). Except that french users with a qwerty keyboard (all

Re: Patch: default.ui & lyx_gui.C

2000-11-07 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> "R. Lahaye" <[EMAIL PROTECTED]> writes: | Hi, | | * Lars> lib/ui/default.ui: clean-up and added sub/superscript to menu | Lars> and to toolbar Lars> And we want tose in the default toolbar?! I certainly don't. I think we

Re: the .str().c_str() trick

2000-11-07 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: | Lars> > "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: | | Lars> Lars> Is the .str().c_str() trick needed anymore? It seems that Lars> we | Lars> have just

Re: Find only for plain ascii text?

2000-11-07 Thread Jean-Marc Lasgouttes
> "R" == R Lahaye <[EMAIL PROTECTED]> writes: R> Hi, Is is possible to find special characters with the Find R> dialog? R> For example I want to find the next 'Menu-separator' in the lyx R> text. You can't. R> PS: When wanting to adjust the menubar changes to the R> lyx-documentation, it

Re: the .str().c_str() trick

2000-11-07 Thread Andre Poenitz
> I really think that declaring a stream and outputting to it just to > change an int to a string is overkill and not convenient. Seconded. And a function could be used in more places that a block of three lines. And it's easier readable, since it is shorter. And all the magic necessary to

Re: FormPreferences patch

2000-11-07 Thread Juergen Vigna
On 06-Nov-2000 Dekel Tsur wrote: > > I want to add a keymap entry to the languages file, so that the keymap > can automatically change when the language is changed (esp. useful for > multilingual files). I surely don't want this! I have only one keyboard and I want my keys as they are. If I

Re: FormPreferences patch

2000-11-07 Thread Angus Leeming
On Mon, 06 Nov 2000, Dekel Tsur wrote: > The items in the combox shouldn't have the full path and the kmap > extension, namely, it should be > american-2 > american > instead of > .../lyx-devel/lib/kbd/american-2.kmap > /lyx-devel/lib/kbd/american.kmap Sure. I just wanted to get something

Re: FormPreferences patch

2000-11-07 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> Because I sort the list of names (which I store). If I could Angus> sort the list of formats by name, then I'd do that instead. Angus> Note that the STL is largely unknown to me and whilst I do have Angus> reference literature, I

Re: New patch: for default.ui only

2000-11-07 Thread Jean-Marc Lasgouttes
> "R" == R Lahaye <[EMAIL PROTECTED]> writes: R> I have attached an new update of default.ui. Thanks. Applied. JMarc

Re: Find only for plain ascii text?

2000-11-07 Thread R. Lahaye
Jean-Marc Lasgouttes wrote: > > > "R" == R Lahaye <[EMAIL PROTECTED]> writes: > R> PS: When wanting to adjust the menubar changes to the > R> lyx-documentation, it would be good to hop from one menu-separator > R> to the next, making the appropriate changes. > > The function which jumps to

Re: Find only for plain ascii text?

2000-11-07 Thread Jean-Marc Lasgouttes
> "R" == R Lahaye <[EMAIL PROTECTED]> writes: R> Hmmm, you're suggesting here yet another find-tool: "find-next R> ". Yes. R> Actually also the current "next note/error" is a similar find-tool: R> "find-next note/error". I'd like to replace them with a general purpose find. And also a

Re: FormPreferences patch

2000-11-07 Thread Angus Leeming
On Tue, 07 Nov 2000, Jean-Marc Lasgouttes wrote: > > "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: > > Angus> Because I sort the list of names (which I store). If I could > Angus> sort the list of formats by name, then I'd do that instead. > Angus> Note that the STL is largely unknown

Re: LyX still crashes with Preferences selection buttons

2000-11-07 Thread Angus Leeming
> There is no feedback callback in Document like there is in Preferences. > Which is the way I was going to do it but then we wouldn't get feedback > until you start changing stuff (as I was going to set messages via the > input() callback). Incidentally, I think you were talking about an

Re: LyX still crashes with Preferences selection buttons

2000-11-07 Thread Angus Leeming
Great minds thinking alike I believe. The alternative is of course to be rejected! Your bandaid is identical to the one I posted in a patch yesterday. Not yet applied to CVS, it would appear. Hint, hint. Angus On Tue, 07 Nov 2000, Allan Rae wrote: > On Tue, 7 Nov 2000, R. Lahaye wrote: > >

Re: FormPreferences patch

2000-11-07 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> sigh... Jean-Marc, I've worked flat out on this stuff for two Angus> weeks. If anybody feels the need to clean up the code base, Angus> then they won't find me stopping them. This isn't meant to be a Angus> flame, just exhaustion!

3 patches

2000-11-07 Thread Angus Leeming
Attached are three patches. They are independent of each other. patch1.bz2 is purely a bug fix/clean-up patch. patch2.bz2 does nothing but make the feel of all LyX's daughter dialogs the same by using FL_PLACE_MOUSE | FL_FREE_SIZE, FL_TRANSIENT in fl_show_form(). This has one real benefit:

patch: the colour of the tab folder.

2000-11-07 Thread Angus Leeming
Jean-Marc, this is a patch for you, as you were the one interested in changing the colour of the active tab folder to make it more visible. I've made the colour of the active folder FL_MCOL, a change from the default FL_COL1. This may be too light; from dark to light : FL_COL1 >

Re: example problems

2000-11-07 Thread Lior Silberman
On 3 Nov 2000, Jean-Marc Lasgouttes wrote: > > "Lior" == Lior Silberman <[EMAIL PROTECTED]> writes: > > Lior> Also, there is a complaint about a missing textclass. There is > Lior> such a layout file, but during compilation the path searching > Lior> may be off or something. > > Do you

Re: FYI: (*it). vs it->

2000-11-07 Thread Lars Gullik Bjønnes
Andre Poenitz <[EMAIL PROTECTED]> writes: | > Note that is some libraries the operator-> for iterators are missing | | Is this an Official Recommendation for LyX code now? Only if we run itnro problems. | PS: Which libraries? Te standard C++ library. Lgb | | | -- | André

Re: FormPreferences patch

2000-11-07 Thread Dekel Tsur
On Tue, Nov 07, 2000 at 09:39:22AM +, Angus Leeming wrote: > > why aren't you doing it the way I originally did ? namely > > > > int i = fl_get_browser(formats_->browser_formats); > > if (i > 0) { > > Format const & f = formats_vec[i-1]; > >

Re: New patch: for default.ui only

2000-11-07 Thread Dekel Tsur
On Tue, Nov 07, 2000 at 09:57:47AM +0900, R. Lahaye wrote: > > The current patch includes: > > * src/lib/ui/default.ui: added sub/superscripts to menu as > Insert->Special characters and cleaned-up the file. Wouldn't it be better to go directly into math text mode ? Namely, ---

Re: Patch: default.ui & lyx_gui.C

2000-11-07 Thread Dekel Tsur
On Tue, Nov 07, 2000 at 09:23:52AM +0100, Jean-Marc Lasgouttes wrote: > > I think we want them in the math panel, but not in the toolbar. Is it possible to have a second row of icons in the toolbar, with all the icons of the math panel (and discard the math panel), just like in klyx ?

Re: FormPreferences patch

2000-11-07 Thread Dekel Tsur
On Tue, Nov 07, 2000 at 10:19:19AM +0100, Juergen Vigna wrote: > > On 06-Nov-2000 Dekel Tsur wrote: > > > > I want to add a keymap entry to the languages file, so that the keymap > > can automatically change when the language is changed (esp. useful for > > multilingual files). > > I surely

Re: FormPreferences patch

2000-11-07 Thread Angus Leeming
Well now. I defined bool FormatsCompare( Format const & a, Format const & b ) { return( a.name < b.name ); } and then sort( formats_vec.begin(), formats_vec.end(), ); And something similar for sorting Commands: bool CommandCompare( Command const & a, Command const & b ) {

Re: FormPreferences patch

2000-11-07 Thread Dekel Tsur
On Tue, Nov 07, 2000 at 06:42:27PM +, Angus Leeming wrote: > Well now. I defined > > bool FormatsCompare( Format const & a, Format const & b ) > { > return( a.name < b.name ); > } > and then > sort( formats_vec.begin(), formats_vec.end(), ); > > And something similar for

Re: Compiling Errors & misc

2000-11-07 Thread Yves Capdeboscq
1. It appears that the second part of my question (ANSI C++) has been asked many times, and the answer was already posted. Sorry. The first part of my question still stands, and I have no idea of where it comes from. 2. Suggestions, about reLyX. There is a not so nice thing about reLyX, which

cvs nasty bug,

2000-11-07 Thread Garst R. Reese
If I type a comma, I get ctrl F, wide fig. Typing . just shows a blank space. GCC 2.95.2 bxforms.89 glibc2.1 Garst

Re: FormPreferences patch

2000-11-07 Thread Lars Gullik Bjønnes
Dekel Tsur <[EMAIL PROTECTED]> writes: | Use | struct compare_formats { | bool operator()(Format const & a, Format const & b) { | return a.name < b.name; | } | } | | and then | sort(formats_vec.begin(), formats_vec.end(), compare_formats()); | | PS Is there a template for

Re: FormPreferences patch

2000-11-07 Thread Lars Gullik Bjønnes
Dekel Tsur <[EMAIL PROTECTED]> writes: IMHO the default keymap for any given keymap should be the default keymap for the system, if _nything_ else is wanted it should be configured and decided by the user. i.e. we should not add a keymap field to languages. Lgb | On Tue, Nov 07, 2000

Re: Patch: default.ui & lyx_gui.C

2000-11-07 Thread Allan Rae
On Tue, 7 Nov 2000, Dekel Tsur wrote: > On Tue, Nov 07, 2000 at 09:23:52AM +0100, Jean-Marc Lasgouttes wrote: > > > > I think we want them in the math panel, but not in the toolbar. > > Is it possible to have a second row of icons in the toolbar, with all the > icons of the math panel (and

Re: New patch: for default.ui only

2000-11-07 Thread R. Lahaye
Dekel Tsur wrote: > Wouldn't it be better to go directly into math text mode ? > Namely, > - Item "Subscript|S" "math-insert _" > - Item "Superscript|u" "math-insert ^" > + Item "Subscript|S" "command-sequence math-insert _;math-mode;" > + Item "Superscript|u"

Re: cvs nasty bug,

2000-11-07 Thread Garst R. Reese
"Garst R. Reese" wrote: > > If I type a comma, I get ctrl F, wide fig. > Typing . just shows a blank space. > GCC 2.95.2 > bxforms.89 glibc2.1 > Garst I figured this one out. I had changed my preferences to keyboard american, from english. Don't know why, it just seemed right since it is an

Re: FormPreferences patch

2000-11-07 Thread Andre Poenitz
> > On 06-Nov-2000 Dekel Tsur wrote: > > > > > > I want to add a keymap entry to the languages file, so that the keymap > > > can automatically change when the language is changed (esp. useful for > > > multilingual files). > > > > I surely don't want this! I have only one keyboard and I want

Re: FormPreferences patch

2000-11-07 Thread Andre Poenitz
> bool FormatsCompare( Format const & a, Format const & b ) > { > return( a.name < b.name ); > } > and then > sort( formats_vec.begin(), formats_vec.end(), ); > > And something similar for sorting Commands: > > bool CommandCompare( Command const & a, Command const & b ) > { >

Crash on cross-ref inside table

2000-11-07 Thread Martin Vermeer
Hi, bug report (don't remember seeing this before): Current CVS. Document contains a table (tabular, non-float) containing in one of its cells a cross-ref to a formula outside. It segfaults/core dumps consistently when trying to load the document. Backtrace below. Unfortunately I cannot use