Getting the paragraph an inset is located

2007-04-28 Thread Elazar Leibovich
When trying to determine the directionality of a mathed inset the cursor is currently located in, I'm having the following troubles. I cannot get the paragraph directly from the cursor (I don't know why, but someone explicitly disallowed that, having a "BOOST_ASSERT(inTexted());" when calling cur.

Re: More file/class name changes?

2007-04-28 Thread Andre Poenitz
On Sat, Apr 28, 2007 at 10:45:18PM +0200, Abdelrazak Younes wrote: > setPosCache() is also implemented in InsetMathDim which is inherited by > most of the math insets; basically all except for InsetMathChar and > InsetMathSymbol. I've (in my local tree) transferred setPosCache() to > InsetBase f

Re: Deuglifying the TOC widget

2007-04-28 Thread Abdelrazak Younes
Stefan Schimanski wrote: Hi! The current TOC widget hurts my eyes, with labels like -> and a minimal width of 300 (a guess) pixels, see below. To make it a bit nicer (the slider still doesn't look right for my gui taste) I converted the buttons into toolbar buttons (No idea if there is an eas

Re: [patch] Make cmake work again, mathed headers

2007-04-28 Thread Abdelrazak Younes
Stefan Schimanski wrote: Hi! The cmake is broken for some days now because mathed headers are not part of the project. Here is the patch. Thanks! Applied.

Deuglifying the TOC widget

2007-04-28 Thread Stefan Schimanski
Hi! The current TOC widget hurts my eyes, with labels like -> and a minimal width of 300 (a guess) pixels, see below. To make it a bit nicer (the slider still doesn't look right for my gui taste) I converted the buttons into toolbar buttons (No idea if there is an easy way to make them in

Re: POTFILES.in outdate

2007-04-28 Thread Bo Peng
> While you are at it, I suggest that you fix the lyxpipe support for > cygwin. I don't know whether it is also broken for *nix. Yes, it's also broken for *nix. You have to add a proper definition for HAVE_MKFIFO to SConstruct otherwise stub functions are compiled in from src/LyXServer.cpp. Thi

Re: More file/class name changes?

2007-04-28 Thread Bo Peng
> Then how about: > > src/insets/InsetEnv.cpp src/insets/InsetEnvironment.cpp > src/insets/InsetEnv.h src/insets/InsetEnvironment.h I have renamed these files and classes. There will be no more file renames from me. scons update_po will also update POTFILES.in so windows people can finally

Re: More file/class name changes?

2007-04-28 Thread Abdelrazak Younes
Andre Poenitz wrote: On Fri, Apr 27, 2007 at 11:05:06PM -0500, Bo Peng wrote: You can have a look at my 'rename summary' post. I think a few more files need to be renamed. I propose to rename class InsetOld to Inset, and rename as follows. The idea is to remove 'InsetOld' entrirely be moving

Re: [patch] hide minibuffer

2007-04-28 Thread Abdelrazak Younes
Jürgen Spitzmüller wrote: Abdelrazak Younes wrote: [1] Ideally, it should grab what is defined for "command-execute" and use that. But I don't know how to get that information from the frontend side. I don't understand what you mean here. Please clarify. It's hardcoded to M-x for closing. If

[patch] Make cmake work again, mathed headers

2007-04-28 Thread Stefan Schimanski
Hi! The cmake is broken for some days now because mathed headers are not part of the project. Here is the patch. Schimmi Index: src/mathed/CMakeLists.txt === --- src/mathed/CMakeLists.txt (Revision 18074) +++ src/mathed/CMakeL

Re: More file/class name changes?

2007-04-28 Thread Andre Poenitz
On Sat, Apr 28, 2007 at 08:38:43AM -0500, Bo Peng wrote: > >I am happy with the math naming as it is... > > Then how about: > > src/insets/InsetEnv.cpp src/insets/InsetEnvironment.cpp > src/insets/InsetEnv.h src/insets/InsetEnvironment.h This is surely fine. > src/frontends/controllers/ButtonPo

Re: [patch] hide minibuffer

2007-04-28 Thread Jürgen Spitzmüller
Abdelrazak Younes wrote: > > [1] Ideally, it should grab what is defined for "command-execute" and use > > that. But I don't know how to get that information from the frontend > > side. > > I don't understand what you mean here. Please clarify. It's hardcoded to M-x for closing. If someone changes

Re: [patch] hide minibuffer

2007-04-28 Thread Abdelrazak Younes
Jürgen Spitzmüller wrote: the attached patch implements a shortcut which leaves and closes the minibuffer. It's hardcoded to M-x[1] and (intentionally) only works when the cursor is inside the command buffer. So the behaviour would be - cursor in main view => M-x opens the minibuffer, if neces

Re: improving Arabic-like language support

2007-04-28 Thread Mostafa Vahedi
2) The current Arabic keymap lib/kbd/arabic.kmap doesn't provide the points, as far as I can see. Is this because it follows a standard layout, but the standard doesn't provide them? Is there a standard layout which we could follow which would allow us to add these? Yes definitely there is

Re: More file/class name changes?

2007-04-28 Thread Bo Peng
I am happy with the math naming as it is... Then how about: src/frontends/Alert.h src/frontends/alert.h src/frontends/Alert.cpp src/frontends/alert.cpp src/frontends/Alert_pimpl.cpp src/frontends/alert_pimpl.cpp src/frontends/controllers/ButtonPolicies.cpp src/frontends/controllers/ButtonPolicy

Re: [patch] bug 2758 (deletion of bibitems)

2007-04-28 Thread Jürgen Spitzmüller
Uwe Stöhr wrote: > I tested this ans it works fine. Good! Thanks. > Please apply. First, I'd like to hear something from Jean-Marc or someone else who is familiar with the par merging stuff. Jürgen

Re: [patch] bug 2758 (deletion of bibitems)

2007-04-28 Thread Uwe Stöhr
> http://bugzilla.lyx.org/show_bug.cgi?id=2758 > > This patch addresses this bug in form of some rather ugly additional checks: > if a bibitem is deleted, the paragraph will be merged with the preceeding > par, if that's a bibitem par as well, else it will be reset to default. I tested this ans i

Re: More file/class name changes?

2007-04-28 Thread José Matos
On Saturday 28 April 2007 11:50:07 am Andre Poenitz wrote: > > I propose to rename class InsetOld to Inset, and rename as follows. > > The idea is to remove 'InsetOld' entrirely be moving stuff either up > and down in the inset hierarchy. This is not 1.5.0 business anymore. I agree with André, ren

Re: use class defaults

2007-04-28 Thread Jürgen Spitzmüller
Bernhard Roider wrote: > In changeset 17929 the button is called "save as document defaults" Whatever (I have German l10n). Jürgen

Re: [patch] hide minibuffer

2007-04-28 Thread Jürgen Spitzmüller
Jean-Marc Lasgouttes wrote: > Would it be enough to be sure that the existing autotoolbars scheme > makes the minibuffer toggle on/off as needed? I'd prefer manual control. Jürgen

Re: [patch] hide minibuffer

2007-04-28 Thread Jürgen Spitzmüller
[EMAIL PROTECTED] wrote: > > personally i would prefer that the minibuffer would auto hide if it > > looses focus (or after enter)... > > A few times I've copied-and-pasted things to the mini-buffer, i.e. long > command sequences. Here it would have been annoying if it closed > automaically just be

Re: [patch] hide minibuffer

2007-04-28 Thread Jürgen Spitzmüller
Edwin Leuven wrote: > perhaps we should simply have a toggleToolbar(string toolbarname) > function/slot? We have this. Jürgen

Re: [patch] hide minibuffer

2007-04-28 Thread Jean-Marc Lasgouttes
> "Edwin" == Edwin Leuven <[EMAIL PROTECTED]> writes: Edwin> On Saturday 28 April 2007 9:45:37 am Jürgen Spitzmüller wrote: >> - cursor in minbuffer => M-x leaves the minibuffer and closes it Edwin> personally i would prefer that the minibuffer would auto hide Edwin> if it looses focus (or af

Re: More file/class name changes?

2007-04-28 Thread Andre Poenitz
On Fri, Apr 27, 2007 at 11:05:06PM -0500, Bo Peng wrote: > >You can have a look at my 'rename summary' post. I think a few more > >files need to be renamed. > > I propose to rename class InsetOld to Inset, and rename as follows. The idea is to remove 'InsetOld' entrirely be moving stuff either up

Re: use class defaults

2007-04-28 Thread Bernhard Roider
Jürgen Spitzmüller wrote: Bernhard Roider wrote: can anybody tell me what the button "use class defaults" in the document settings dialog exactly does? It is supposed to restore the settings to what is defined as the default of the current class. an example (in text layout): when i select

Re: [patch] hide minibuffer

2007-04-28 Thread Edwin Leuven
perhaps we should simply have a toggleToolbar(string toolbarname) function/slot?

Re: [patch] hide minibuffer

2007-04-28 Thread christian . ridderstrom
On Sat, 28 Apr 2007, Edwin Leuven wrote: On Saturday 28 April 2007 9:45:37 am Jürgen Spitzmüller wrote: - cursor in minbuffer => M-x leaves the minibuffer and closes it personally i would prefer that the minibuffer would auto hide if it looses focus (or after enter)... A few times I've c

Re: [patch] hide minibuffer

2007-04-28 Thread Edwin Leuven
On Saturday 28 April 2007 9:45:37 am Jürgen Spitzmüller wrote: - cursor in minbuffer => M-x leaves the minibuffer and closes it personally i would prefer that the minibuffer would auto hide if it looses focus (or after enter)...

Re: [patch] hide minibuffer

2007-04-28 Thread José Matos
On Saturday 28 April 2007 9:45:37 am Jürgen Spitzmüller wrote: > the attached patch implements a shortcut which leaves and closes the > minibuffer. It's hardcoded to M-x[1] and (intentionally) only works when > the cursor is inside the command buffer. So the behaviour would be > > - cursor in main

[patch] hide minibuffer

2007-04-28 Thread Jürgen Spitzmüller
the attached patch implements a shortcut which leaves and closes the minibuffer. It's hardcoded to M-x[1] and (intentionally) only works when the cursor is inside the command buffer. So the behaviour would be - cursor in main view => M-x opens the minibuffer, if necessary, and enters it - curso

Re: use class defaults

2007-04-28 Thread Jürgen Spitzmüller
Bernhard Roider wrote: > can anybody tell me what the button "use class defaults" in the document > settings dialog exactly does? It is supposed to restore the settings to what is defined as the default of the current class. > an example (in text layout): > > when i select "indentation" and "app