Re: Re-implementing open-stuff [questions about insets and signa

2001-07-19 Thread Juergen Vigna


On 19-Jul-2001 Jean-Marc Lasgouttes wrote:

 We already have the methods 
   void Inset::open(BufferView*, bool) 
   bool Inset::isOpen()
 which should be enough. Currently they do something only for
 collapsable inset, but I'd want to implement them for inset who have a
 popup too. If you could show me some working code, I'd finish the
   adaptation.

What does this do if a collapsable inset has a dialog (InsetMinipage f.ex)?
Then we say we're open and our dialog is open too? I would say we should
split this!

   Jürgen

--
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
Dr. Jürgen VignaE-Mail:  [EMAIL PROTECTED]
Italienallee 13/N   Tel/Fax: +39-0471-450260 / +39-0471-450253
I-39100 Bozen   Web: http://www.sad.it/~jug
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

Never eat more than you can lift.
-- Miss Piggy




Re: Re-implementing open-stuff [questions about insets and signa

2001-07-19 Thread Jean-Marc Lasgouttes

 Juergen == Juergen Vigna [EMAIL PROTECTED] writes:

Juergen On 19-Jul-2001 Jean-Marc Lasgouttes wrote:

 We already have the methods void Inset::open(BufferView*, bool)
 bool Inset::isOpen() which should be enough. Currently they do
 something only for collapsable inset, but I'd want to implement
 them for inset who have a popup too. If you could show me some
 working code, I'd finish the adaptation.

Juergen What does this do if a collapsable inset has a dialog
Juergen (InsetMinipage f.ex)? Then we say we're open and our dialog
Juergen is open too? I would say we should split this!

Good point. What I was trying to reproduce is the behaviour of 1.1.6,
which nobody complained about :) The idea is that inset-toggle should
be the keyboard equivalent of clicking on an inset. 

The example that you propose shows that our UI is bad: left-clicking
on an inset brings up the popup if there is one, *except* if it is a
collapsable inset. In this case, it expands the inset (which arguably
is a way to edit it). Then the right-click to edit minipage properties
is just weird. BTW, what is the keyboard shortcut which provides this
feature? I surely hope we have one...

JMArc



Re: Re-implementing open-stuff [questions about insets and signa

2001-07-19 Thread Juergen Vigna


On 19-Jul-2001 Jean-Marc Lasgouttes wrote:

 The example that you propose shows that our UI is bad: left-clicking
 on an inset brings up the popup if there is one, *except* if it is a
 collapsable inset. In this case, it expands the inset (which arguably

Well make it better ;)

 is a way to edit it). Then the right-click to edit minipage properties
 is just weird. BTW, what is the keyboard shortcut which provides this
 feature? I surely hope we have one...

Sure we have one, don't we?!

Jürgen

--
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
Dr. Jürgen VignaE-Mail:  [EMAIL PROTECTED]
Italienallee 13/N   Tel/Fax: +39-0471-450260 / +39-0471-450253
I-39100 Bozen   Web: http://www.sad.it/~jug
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

If you would keep a secret from an enemy, tell it not to a friend.




Re: Re-implementing open-stuff [questions about insets and signa

2001-07-19 Thread Jean-Marc Lasgouttes

 Juergen == Juergen Vigna [EMAIL PROTECTED] writes:

Juergen On 19-Jul-2001 Jean-Marc Lasgouttes wrote:

 The example that you propose shows that our UI is bad:
 left-clicking on an inset brings up the popup if there is one,
 *except* if it is a collapsable inset. In this case, it expands the
 inset (which arguably

Juergen Well make it better ;)

Well, I am looking for ideas about agood interface, right now...

 is a way to edit it). Then the right-click to edit minipage
 properties is just weird. BTW, what is the keyboard shortcut which
 provides this feature? I surely hope we have one...

Juergen Sure we have one, don't we?!

It seems that we don't. Tabulars have layout-tabular, but there does
not seem to be anything for minipages.

JMarc



Re: Re-implementing open-stuff [questions about insets and signa

2001-07-19 Thread Juergen Vigna


On 19-Jul-2001 Jean-Marc Lasgouttes wrote:

 Juergen Sure we have one, don't we?!
 
 It seems that we don't. Tabulars have layout-tabular, but there does
 not seem to be anything for minipages.

You'll make it, won't you ;) (btw.: I did know we don't have it)

  Jürgen

--
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
Dr. Jürgen VignaE-Mail:  [EMAIL PROTECTED]
Italienallee 13/N   Tel/Fax: +39-0471-450260 / +39-0471-450253
I-39100 Bozen   Web: http://www.sad.it/~jug
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

Household hint:
If you are out of cream for your coffee, mayonnaise makes a
dandy substitute.




Re: Re-implementing open-stuff [questions about insets and signa

2001-07-19 Thread Jean-Marc Lasgouttes

 Juergen == Juergen Vigna [EMAIL PROTECTED] writes:

Juergen On 19-Jul-2001 Jean-Marc Lasgouttes wrote:

Juergen Sure we have one, don't we?!
  It seems that we don't. Tabulars have layout-tabular, but there
 does not seem to be anything for minipages.

Juergen You'll make it, won't you ;) (btw.: I did know we don't have
Juergen it)

Making one is not a problem, but I'm looking for ideas on a convenient
interface...

JMarc



Re: Re-implementing open-stuff [questions about insets and signa

2001-07-19 Thread John Levon

On Thu, Jul 19, 2001 at 03:26:42PM +0200, Jean-Marc Lasgouttes wrote:

 Making one is not a problem, but I'm looking for ideas on a convenient
 interface...

why not a settings key/lyxfunc which will automagically do -edit() to
bring up the right dialog in any circumstance ? It could even bring up
the Paragraph dial in a para.

Or am I missing the discussion ?

it would quite nice if the inset button had an ? button  next to it
which brought up the dialog perhaps

regards
john

-- 
Voodoo Programming:  Things programmers do that they know shouldn't work but
 they try anyway, and which sometimes actually work, such as recompiling
 everything.
- Karl Lehenbauer



Re: Re-implementing open-stuff [questions about insets and signa

2001-07-19 Thread Jean-Marc Lasgouttes

 John == John Levon [EMAIL PROTECTED] writes:

John On Thu, Jul 19, 2001 at 03:26:42PM +0200, Jean-Marc Lasgouttes
John wrote:
 Making one is not a problem, but I'm looking for ideas on a
 convenient interface...

John why not a settings key/lyxfunc which will automagically do
John -edit() to bring up the right dialog in any circumstance ? It
John could even bring up the Paragraph dial in a para.

John Or am I missing the discussion ?

My problem is that there are two ways to 'open' a minipage: uncollapse
it or open its dialog. We need two different ways of doing these two
things. For other insets, clicking with left button (or using C-o) is
supposed to open them, and until now this meant doing _one_ of these
actions. 

John it would quite nice if the inset button had an ? button next
John to it which brought up the dialog perhaps

Yes, maybe something like that.

JMarc



Re: Re-implementing open-stuff [questions about insets and signa

2001-07-19 Thread Juergen Vigna


On 19-Jul-2001 Jean-Marc Lasgouttes wrote:

> We already have the methods 
>   void Inset::open(BufferView*, bool) 
>   bool Inset::isOpen()
> which should be enough. Currently they do something only for
> collapsable inset, but I'd want to implement them for inset who have a
> popup too. If you could show me some working code, I'd finish the
>   adaptation.

What does this do if a collapsable inset has a dialog (InsetMinipage f.ex)?
Then we say we're open and our dialog is open too? I would say we should
split this!

   Jürgen

--
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
Dr. Jürgen VignaE-Mail:  [EMAIL PROTECTED]
Italienallee 13/N   Tel/Fax: +39-0471-450260 / +39-0471-450253
I-39100 Bozen   Web: http://www.sad.it/~jug
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

Never eat more than you can lift.
-- Miss Piggy




Re: Re-implementing open-stuff [questions about insets and signa

2001-07-19 Thread Jean-Marc Lasgouttes

> "Juergen" == Juergen Vigna <[EMAIL PROTECTED]> writes:

Juergen> On 19-Jul-2001 Jean-Marc Lasgouttes wrote:

>> We already have the methods void Inset::open(BufferView*, bool)
>> bool Inset::isOpen() which should be enough. Currently they do
>> something only for collapsable inset, but I'd want to implement
>> them for inset who have a popup too. If you could show me some
>> working code, I'd finish the adaptation.

Juergen> What does this do if a collapsable inset has a dialog
Juergen> (InsetMinipage f.ex)? Then we say we're open and our dialog
Juergen> is open too? I would say we should split this!

Good point. What I was trying to reproduce is the behaviour of 1.1.6,
which nobody complained about :) The idea is that inset-toggle should
be the keyboard equivalent of clicking on an inset. 

The example that you propose shows that our UI is bad: left-clicking
on an inset brings up the popup if there is one, *except* if it is a
collapsable inset. In this case, it expands the inset (which arguably
is a way to edit it). Then the right-click to edit minipage properties
is just weird. BTW, what is the keyboard shortcut which provides this
feature? I surely hope we have one...

JMArc



Re: Re-implementing open-stuff [questions about insets and signa

2001-07-19 Thread Juergen Vigna


On 19-Jul-2001 Jean-Marc Lasgouttes wrote:

> The example that you propose shows that our UI is bad: left-clicking
> on an inset brings up the popup if there is one, *except* if it is a
> collapsable inset. In this case, it expands the inset (which arguably

Well make it better ;)

> is a way to edit it). Then the right-click to edit minipage properties
> is just weird. BTW, what is the keyboard shortcut which provides this
> feature? I surely hope we have one...

Sure we have one, don't we?!

Jürgen

--
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
Dr. Jürgen VignaE-Mail:  [EMAIL PROTECTED]
Italienallee 13/N   Tel/Fax: +39-0471-450260 / +39-0471-450253
I-39100 Bozen   Web: http://www.sad.it/~jug
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

If you would keep a secret from an enemy, tell it not to a friend.




Re: Re-implementing open-stuff [questions about insets and signa

2001-07-19 Thread Jean-Marc Lasgouttes

> "Juergen" == Juergen Vigna <[EMAIL PROTECTED]> writes:

Juergen> On 19-Jul-2001 Jean-Marc Lasgouttes wrote:

>> The example that you propose shows that our UI is bad:
>> left-clicking on an inset brings up the popup if there is one,
>> *except* if it is a collapsable inset. In this case, it expands the
>> inset (which arguably

Juergen> Well make it better ;)

Well, I am looking for ideas about agood interface, right now...

>> is a way to edit it). Then the right-click to edit minipage
>> properties is just weird. BTW, what is the keyboard shortcut which
>> provides this feature? I surely hope we have one...

Juergen> Sure we have one, don't we?!

It seems that we don't. Tabulars have layout-tabular, but there does
not seem to be anything for minipages.

JMarc



Re: Re-implementing open-stuff [questions about insets and signa

2001-07-19 Thread Juergen Vigna


On 19-Jul-2001 Jean-Marc Lasgouttes wrote:

> Juergen> Sure we have one, don't we?!
> 
> It seems that we don't. Tabulars have layout-tabular, but there does
> not seem to be anything for minipages.

You'll make it, won't you ;) (btw.: I did know we don't have it)

  Jürgen

--
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
Dr. Jürgen VignaE-Mail:  [EMAIL PROTECTED]
Italienallee 13/N   Tel/Fax: +39-0471-450260 / +39-0471-450253
I-39100 Bozen   Web: http://www.sad.it/~jug
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

Household hint:
If you are out of cream for your coffee, mayonnaise makes a
dandy substitute.




Re: Re-implementing open-stuff [questions about insets and signa

2001-07-19 Thread Jean-Marc Lasgouttes

> "Juergen" == Juergen Vigna <[EMAIL PROTECTED]> writes:

Juergen> On 19-Jul-2001 Jean-Marc Lasgouttes wrote:

Juergen> Sure we have one, don't we?!
>>  It seems that we don't. Tabulars have layout-tabular, but there
>> does not seem to be anything for minipages.

Juergen> You'll make it, won't you ;) (btw.: I did know we don't have
Juergen> it)

Making one is not a problem, but I'm looking for ideas on a convenient
interface...

JMarc



Re: Re-implementing open-stuff [questions about insets and signa

2001-07-19 Thread John Levon

On Thu, Jul 19, 2001 at 03:26:42PM +0200, Jean-Marc Lasgouttes wrote:

> Making one is not a problem, but I'm looking for ideas on a convenient
> interface...

why not a settings key/lyxfunc which will automagically do ->edit() to
bring up the right dialog in any circumstance ? It could even bring up
the Paragraph dial in a para.

Or am I missing the discussion ?

it would quite nice if the inset button had an "?" button  next to it
which brought up the dialog perhaps

regards
john

-- 
"Voodoo Programming:  Things programmers do that they know shouldn't work but
 they try anyway, and which sometimes actually work, such as recompiling
 everything."
- Karl Lehenbauer



Re: Re-implementing open-stuff [questions about insets and signa

2001-07-19 Thread Jean-Marc Lasgouttes

> "John" == John Levon <[EMAIL PROTECTED]> writes:

John> On Thu, Jul 19, 2001 at 03:26:42PM +0200, Jean-Marc Lasgouttes
John> wrote:
>> Making one is not a problem, but I'm looking for ideas on a
>> convenient interface...

John> why not a settings key/lyxfunc which will automagically do
John> ->edit() to bring up the right dialog in any circumstance ? It
John> could even bring up the Paragraph dial in a para.

John> Or am I missing the discussion ?

My problem is that there are two ways to 'open' a minipage: uncollapse
it or open its dialog. We need two different ways of doing these two
things. For other insets, clicking with left button (or using C-o) is
supposed to open them, and until now this meant doing _one_ of these
actions. 

John> it would quite nice if the inset button had an "?" button next
John> to it which brought up the dialog perhaps

Yes, maybe something like that.

JMarc



Re: Re-implementing open-stuff [questions about insets and signa

2001-07-12 Thread Juergen Vigna


On 11-Jul-2001 Jean-Marc Lasgouttes wrote:

 Hmm, do we want to do that or have more generic methods in Inset that
 could be overloaded as you show for DialogInset and differently for
 collapsable insets? This would seem simpler, like

Yes IMO this is preferable!

 class Inset {
 ...
 void close();
 bool isOpen();
 
 }

Well I would not use close/open I would use collapsed(true|false) as this
is more precise what it is.

I'll have a look at this today!

  Jürgen

--
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
Dr. Jürgen VignaE-Mail:  [EMAIL PROTECTED]
Italienallee 13/N   Tel/Fax: +39-0471-450260 / +39-0471-450253
I-39100 Bozen   Web: http://www.sad.it/~jug
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

One can never consent to creep when one feels an impulse to soar.
-- Helen Keller




Re: Re-implementing open-stuff [questions about insets and signa

2001-07-12 Thread Jean-Marc Lasgouttes

 Juergen == Juergen Vigna [EMAIL PROTECTED] writes:

Juergen Well I would not use close/open I would use
Juergen collapsed(true|false) as this is more precise what it is.

Juergen I'll have a look at this today!

Thanks.

JMarc



Re: Re-implementing open-stuff [questions about insets and signa

2001-07-12 Thread Juergen Vigna


On 11-Jul-2001 Jean-Marc Lasgouttes wrote:

> Hmm, do we want to do that or have more generic methods in Inset that
> could be overloaded as you show for DialogInset and differently for
> collapsable insets? This would seem simpler, like

Yes IMO this is preferable!

> class Inset {
> ...
> void close();
> bool isOpen();
> 
> }

Well I would not use close/open I would use collapsed(true|false) as this
is more precise what it is.

I'll have a look at this today!

  Jürgen

--
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
Dr. Jürgen VignaE-Mail:  [EMAIL PROTECTED]
Italienallee 13/N   Tel/Fax: +39-0471-450260 / +39-0471-450253
I-39100 Bozen   Web: http://www.sad.it/~jug
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

One can never consent to creep when one feels an impulse to soar.
-- Helen Keller




Re: Re-implementing open-stuff [questions about insets and signa

2001-07-12 Thread Jean-Marc Lasgouttes

> "Juergen" == Juergen Vigna <[EMAIL PROTECTED]> writes:

Juergen> Well I would not use close/open I would use
Juergen> collapsed(true|false) as this is more precise what it is.

Juergen> I'll have a look at this today!

Thanks.

JMarc



Re: Re-implementing open-stuff [questions about insets and signa

2001-07-11 Thread Juergen Vigna


On 11-Jul-2001 Jean-Marc Lasgouttes wrote:

 I still do not know what to do about that. Currently, when an inset is
 HIGHLY_EDITABLE (like an open footnote, or a math inset), open-stuff
 just enters the inset, whih is not very useful IMO. For collapsable
 insets, it would be better to have a toggle feature, as we used to
 have. Similarly we could have that for insets, in order to be able to
 close the inset popup without moving the mouse. 

Sorry for not having answered earlier but I was bussy. As much as I know
is a collapsed InsetCollapsable NOT HIGLY_EDITABLE!!!

   Jürgen

--
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
Dr. Jürgen VignaE-Mail:  [EMAIL PROTECTED]
Italienallee 13/N   Tel/Fax: +39-0471-450260 / +39-0471-450253
I-39100 Bozen   Web: http://www.sad.it/~jug
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

When the candles are out all women are fair.
-- Plutarch




Re: Re-implementing open-stuff [questions about insets and signa

2001-07-11 Thread Jean-Marc Lasgouttes

 Juergen == Juergen Vigna [EMAIL PROTECTED] writes:

Juergen On 11-Jul-2001 Jean-Marc Lasgouttes wrote:
 I still do not know what to do about that. Currently, when an inset
 is HIGHLY_EDITABLE (like an open footnote, or a math inset),
 open-stuff just enters the inset, whih is not very useful IMO. For
 collapsable insets, it would be better to have a toggle feature, as
 we used to have. Similarly we could have that for insets, in order
 to be able to close the inset popup without moving the mouse.

Juergen Sorry for not having answered earlier but I was bussy. As
Juergen much as I know is a collapsed InsetCollapsable NOT
Juergen HIGLY_EDITABLE!!!

Yes, but an open one is HIGLY_EDITABLE, and thus currently, open-stuff
just enters the inset in this case, which is not very useful. It
should rather act as a toggle, and do the same for insets with a popup
(and be renamed to toggle-stuff, or to a better name).

JMarc



Re: Re-implementing open-stuff [questions about insets and signa

2001-07-11 Thread Juergen Vigna


On 11-Jul-2001 Jean-Marc Lasgouttes wrote:

 Yes, but an open one is HIGLY_EDITABLE, and thus currently, open-stuff
 just enters the inset in this case, which is not very useful. It
 should rather act as a toggle, and do the same for insets with a popup
 (and be renamed to toggle-stuff, or to a better name).

Sorry for being dump, but could you explain what you expect OpenStuff to
do? Jump to the inset and don't enter it? What is this OpenStuff for anyway,
could you explain in a few words.

Thanks,

Jürgen

--
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
Dr. Jürgen VignaE-Mail:  [EMAIL PROTECTED]
Italienallee 13/N   Tel/Fax: +39-0471-450260 / +39-0471-450253
I-39100 Bozen   Web: http://www.sad.it/~jug
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

Saints should always be judged guilty until they are proved innocent.
-- George Orwell, Reflections on Gandhi




Re: Re-implementing open-stuff [questions about insets and signa

2001-07-11 Thread Jean-Marc Lasgouttes

 Juergen == Juergen Vigna [EMAIL PROTECTED] writes:

Juergen On 11-Jul-2001 Jean-Marc Lasgouttes wrote:
 Yes, but an open one is HIGLY_EDITABLE, and thus currently,
 open-stuff just enters the inset in this case, which is not very
 useful. It should rather act as a toggle, and do the same for
 insets with a popup (and be renamed to toggle-stuff, or to a better
 name).

Juergen Sorry for being dump, but could you explain what you expect
Juergen OpenStuff to do? Jump to the inset and don't enter it? What
Juergen is this OpenStuff for anyway, could you explain in a few
Juergen words.

open-stuff is what is bound to C-o in 1.1.6 and earlier. Basically it

1/ opens (via edit()) the inset which is at the right of cursor if
it is EDITABLE

2/ jumps into the inset which is at the right of cursor if
it is HIGHLY_EDITABLE

3/ toggles the float which is at the right of the cursor


Currently, I have implemented 1/ and 2/, but I cannot toggle a
collapsable inset. What I would like to do is to have a way to toggle
any inset (if the popup is already open, close it), since it seems
consistent/useful to me.

For an already open footnote, 2/ and 3/ are incompatible. However, it
seems to me that 2/ is useless, since you obtain the same result with
cursor right.

So I would like to have for all insets a toggle() method (or
open()/close() and a way to test status) in order to be able to
implement this feature easily.

Is it clearer now?

Similarly, we will need a way to replace {toggle|close|open} all
{floats|figures|footnotes} that we used to have. I do not know what
the best semantics would be for such function(s).

JMarc



Re: Re-implementing open-stuff [questions about insets and signa

2001-07-11 Thread Juergen Vigna


On 11-Jul-2001 Jean-Marc Lasgouttes wrote:
 open-stuff is what is bound to C-o in 1.1.6 and earlier. Basically it
[snip good explanation]
 Is it clearer now?

It is indeed!

 Similarly, we will need a way to replace {toggle|close|open} all
 {floats|figures|footnotes} that we used to have. I do not know what
 the best semantics would be for such function(s).

Well to think at it fast, we would need a method bool isCollapsable() and
the one bool collapsedStatus()/void collapsedStatus(bool). Would that fit
your needs?

   Jürgen (who now is on his way home)

--
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
Dr. Jürgen VignaE-Mail:  [EMAIL PROTECTED]
Italienallee 13/N   Tel/Fax: +39-0471-450260 / +39-0471-450253
I-39100 Bozen   Web: http://www.sad.it/~jug
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

It's my cookie file and if I come up with something that's lame and I like it,
it goes in.
-- karl (Karl Lehenbauer)




Re: Re-implementing open-stuff [questions about insets and signa

2001-07-11 Thread Juergen Vigna


On 11-Jul-2001 Jean-Marc Lasgouttes wrote:

> I still do not know what to do about that. Currently, when an inset is
> HIGHLY_EDITABLE (like an open footnote, or a math inset), open-stuff
> just enters the inset, whih is not very useful IMO. For collapsable
> insets, it would be better to have a toggle feature, as we used to
> have. Similarly we could have that for insets, in order to be able to
> close the inset popup without moving the mouse. 

Sorry for not having answered earlier but I was bussy. As much as I know
is a collapsed InsetCollapsable NOT HIGLY_EDITABLE!!!

   Jürgen

--
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
Dr. Jürgen VignaE-Mail:  [EMAIL PROTECTED]
Italienallee 13/N   Tel/Fax: +39-0471-450260 / +39-0471-450253
I-39100 Bozen   Web: http://www.sad.it/~jug
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

When the candles are out all women are fair.
-- Plutarch




Re: Re-implementing open-stuff [questions about insets and signa

2001-07-11 Thread Jean-Marc Lasgouttes

> "Juergen" == Juergen Vigna <[EMAIL PROTECTED]> writes:

Juergen> On 11-Jul-2001 Jean-Marc Lasgouttes wrote:
>> I still do not know what to do about that. Currently, when an inset
>> is HIGHLY_EDITABLE (like an open footnote, or a math inset),
>> open-stuff just enters the inset, whih is not very useful IMO. For
>> collapsable insets, it would be better to have a toggle feature, as
>> we used to have. Similarly we could have that for insets, in order
>> to be able to close the inset popup without moving the mouse.

Juergen> Sorry for not having answered earlier but I was bussy. As
Juergen> much as I know is a collapsed InsetCollapsable NOT
Juergen> HIGLY_EDITABLE!!!

Yes, but an open one is HIGLY_EDITABLE, and thus currently, open-stuff
just enters the inset in this case, which is not very useful. It
should rather act as a toggle, and do the same for insets with a popup
(and be renamed to toggle-stuff, or to a better name).

JMarc



Re: Re-implementing open-stuff [questions about insets and signa

2001-07-11 Thread Juergen Vigna


On 11-Jul-2001 Jean-Marc Lasgouttes wrote:

> Yes, but an open one is HIGLY_EDITABLE, and thus currently, open-stuff
> just enters the inset in this case, which is not very useful. It
> should rather act as a toggle, and do the same for insets with a popup
> (and be renamed to toggle-stuff, or to a better name).

Sorry for being dump, but could you explain what you expect OpenStuff to
do? Jump to the inset and don't enter it? What is this OpenStuff for anyway,
could you explain in a few words.

Thanks,

Jürgen

--
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
Dr. Jürgen VignaE-Mail:  [EMAIL PROTECTED]
Italienallee 13/N   Tel/Fax: +39-0471-450260 / +39-0471-450253
I-39100 Bozen   Web: http://www.sad.it/~jug
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

Saints should always be judged guilty until they are proved innocent.
-- George Orwell, "Reflections on Gandhi"




Re: Re-implementing open-stuff [questions about insets and signa

2001-07-11 Thread Jean-Marc Lasgouttes

> "Juergen" == Juergen Vigna <[EMAIL PROTECTED]> writes:

Juergen> On 11-Jul-2001 Jean-Marc Lasgouttes wrote:
>> Yes, but an open one is HIGLY_EDITABLE, and thus currently,
>> open-stuff just enters the inset in this case, which is not very
>> useful. It should rather act as a toggle, and do the same for
>> insets with a popup (and be renamed to toggle-stuff, or to a better
>> name).

Juergen> Sorry for being dump, but could you explain what you expect
Juergen> OpenStuff to do? Jump to the inset and don't enter it? What
Juergen> is this OpenStuff for anyway, could you explain in a few
Juergen> words.

open-stuff is what is bound to C-o in 1.1.6 and earlier. Basically it

1/ opens (via edit()) the inset which is at the right of cursor if
it is EDITABLE

2/ jumps into the inset which is at the right of cursor if
it is HIGHLY_EDITABLE

3/ toggles the float which is at the right of the cursor


Currently, I have implemented 1/ and 2/, but I cannot toggle a
collapsable inset. What I would like to do is to have a way to toggle
any inset (if the popup is already open, close it), since it seems
consistent/useful to me.

For an already open footnote, 2/ and 3/ are incompatible. However, it
seems to me that 2/ is useless, since you obtain the same result with
cursor right.

So I would like to have for all insets a toggle() method (or
open()/close() and a way to test status) in order to be able to
implement this feature easily.

Is it clearer now?

Similarly, we will need a way to replace "{toggle|close|open} all
{floats|figures|footnotes}" that we used to have. I do not know what
the best semantics would be for such function(s).

JMarc



Re: Re-implementing open-stuff [questions about insets and signa

2001-07-11 Thread Juergen Vigna


On 11-Jul-2001 Jean-Marc Lasgouttes wrote:
> open-stuff is what is bound to C-o in 1.1.6 and earlier. Basically it
[snip good explanation]
> Is it clearer now?

It is indeed!

> Similarly, we will need a way to replace "{toggle|close|open} all
> {floats|figures|footnotes}" that we used to have. I do not know what
> the best semantics would be for such function(s).

Well to think at it fast, we would need a method bool isCollapsable() and
the one bool collapsedStatus()/void collapsedStatus(bool). Would that fit
your needs?

   Jürgen (who now is on his way home)

--
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
Dr. Jürgen VignaE-Mail:  [EMAIL PROTECTED]
Italienallee 13/N   Tel/Fax: +39-0471-450260 / +39-0471-450253
I-39100 Bozen   Web: http://www.sad.it/~jug
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

"It's my cookie file and if I come up with something that's lame and I like it,
it goes in."
-- karl (Karl Lehenbauer)