[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Denemo-devel] Re: Delete destroys the selection
From: |
Richard Shann |
Subject: |
[Denemo-devel] Re: Delete destroys the selection |
Date: |
Thu, 13 May 2010 20:42:52 +0100 |
On Thu, 2010-05-13 at 21:37 +0200, Nils wrote:
> Hello,
>
> is it needed that (d-DeleteObject) destroys the selection?
It is due no doubt to the representation of a selection inside denemo.
It is stored as begin-staff-number begin-measure-number
begin-object-number and the same for end, that is six numbers.
So if it did not destroy the selection it might after a delete no longer
refer to anything, and in many cases the selection would not refer to
the same thing even if nothing inside the selection was deleted.
I have an idea that the positions stored for PushPosition etc are
similar.
Giving objects unique IDs would be the way to go if you wanted to do
something else. Then you could seek the objects after delete etc. But
that would require a chunk of engineering on the C code...
Richard
> I think the selection should stay intact after that. This is also useful for
> scripts which use delete in them and work with selections.
>
> Same with
> (d-DeleteMeasure)
> (d-DeleteMeasureAllStaffs)
> (d-DeletePreviousObject)
>
> and probably other delete variants.
>
> Nils
- [Denemo-devel] Bug #29825 - What is the right variant to use?, Nils Gey, 2010/05/08
- [Denemo-devel] Re: Bug #29825 - What is the right variant to use?, Richard Shann, 2010/05/08
- Re: [Denemo-devel] Re: Bug #29825 - What is the right variant to use?, Richard Shann, 2010/05/09
- Re: [Denemo-devel] Re: Bug #29825 - What is the right variant to use?, Nils Gey, 2010/05/09
- Re: [Denemo-devel] Re: Bug #29825 - What is the right variant to use?, Richard Shann, 2010/05/10
- Re: [Denemo-devel] Re: Bug #29825 - What is the right variant to use?, Richard Shann, 2010/05/13
- Re: [Denemo-devel] Re: Bug #29825 - What is the right variant to use?, Nils, 2010/05/13
- [Denemo-devel] Delete destroys the selection, Nils, 2010/05/13
- [Denemo-devel] Re: Delete destroys the selection,
Richard Shann <=
- [Denemo-devel] Re: Delete destroys the selection, Nils, 2010/05/13
- [Denemo-devel] Re: Delete destroys the selection, Richard Shann, 2010/05/14
- [Denemo-devel] Re: Delete destroys the selection, Nils, 2010/05/14
- [Denemo-devel] Re: Delete destroys the selection, Richard Shann, 2010/05/14
- [Denemo-devel] Re: Delete destroys the selection, Nils Gey, 2010/05/14
- [Denemo-devel] Re: Delete destroys the selection, Richard Shann, 2010/05/15
- Re: [Denemo-devel] Re: Delete destroys the selection, Richard Shann, 2010/05/15
- Re: [Denemo-devel] Re: Delete destroys the selection, Nils Gey, 2010/05/15
- Re: [Denemo-devel] Re: Delete destroys the selection, Richard Shann, 2010/05/16
- Re: [Denemo-devel] Re: Bug #29825 - What is the right variant to use?, Richard Shann, 2010/05/13