On Thu, Jan 24, 2002 at 09:32:02AM +0000, Angus Leeming wrote:

> On Wednesday 23 January 2002 8:05 am, Martin Vermeer wrote:
> > On Wed, Jan 23, 2002 at 08:15:00AM +0100, Andre Poenitz wrote:
> >  
> > > On Tue, Jan 22, 2002 at 10:46:14PM +0200, Martin Vermeer wrote:
> > > > What's wrong is that the math panel opens up bang on top of the
> > > > *formula* you're working on.
> > > 
> > > So why don't you simply move it by a fixed amount into some 'safe'
> > > direction? Or open it always over the top right corner of the main LyX
> > > window or something similar?
> > > 
> > > Ah:
> > > 
> > > > 2. Program the math panel to appear elsewhere, not covering the 
> formula. 
> > > > I have to find out what policies are actually available. This might
> > > > benefit tabular too.
> > >  
> > > Andre'
> > 
> > I am about to find the solution. See patch.
> > With thanks to everybody ;-)
> 
> If this is a preference thing (and to me this is a preference thing) then I 
> think you should define a new lyxrc variable dialogs_placement_policy or 
> something
> and use it in the same way we use lyxrc.dialogs_iconify_with_main.
> 
> No need fro extra spagetti in the structure then and all dialogs behave in 
> the same manner.
> 
> Angus

But Angus, some dialogues are more equal than others! IMHO the ones that 
require you to see the underlying object, should move themselves out of the 
way. For the graphics dialog e.g. this is not so, and it is in fact better
to have them come up under your mouse. But math, and tabular, should get out
of the way.

I have code that also chooses the alternative placement strategy for tabular. 
No big deal.

The idea of a lyxrc parameter is great. Why not two of them while we're at it?
I suspect it could even be done so that by adding a data member to the 
FormBaseDeprecated class, we could get around the split-up I implemented here.
Just assign a strategy constant to the inherited instance, and call ::show.
In that way you could have per-dialogue-type strategies. 

Do you think that could work?

Martin
-- 
Martin Vermeer  [EMAIL PROTECTED]
Helsinki University of Technology 
Department of Surveying
P.O. Box 1200, FIN-02015 HUT, Finland
:wq

Attachment: msg31981/pgp00000.pgp
Description: PGP signature

Reply via email to