[Lazarus] Desktops and multiple source editors
Ondrej Pokorny
lazarus at kluug.net
Thu Sep 10 01:18:10 CEST 2015
On 10.09.2015 01:00, Martin Frb wrote:
> On 09/09/2015 23:42, Ondrej Pokorny wrote:
>> On 10.09.2015 00:26, Mattias Gaertner wrote:
>>> On Thu, 10 Sep 2015 00:13:24 +0200
>>> Ondrej Pokorny <lazarus at kluug.net> wrote:
>>>
>>>> 2.) The visibility is controlled by the fact if the package is open or
>>>> not. The desktop cannot reopen packages, obviously.It doesn't store
>>>> the file info of the package. It is also not expected.
>>> Why not?
>>> The window has the name PackageEditor_ToDoListLaz, so you have the
>>> package name. That is all you need to load the package.
>> Ok, then it is possible to reopen a package. But still I don't think
>> reopening/closing of packages on desktop change is a good idea. A
>> package is kind of "project" and should be completely independent on
>> desktop, the same like the active LPR project is.
>> Imagine e.g. that you (accidentally) save a debug desktop with a
>> package. Should it be reopened every time you start debugging?
>
> Worse, since desktops/layouts are global (apply to all projects), if you:
> - save one of your desktops with a package open,
> - switch to another desktop
> - change project
> - switch to the first desktop
> it would open that package again, even if that package is not used by
> the project at all.
>
> Of course, in a way you already have that: If a package is open, it
> stays open, even when you change the project. But at least the you see
> it immediately. with desktops it may be on a inactive desktop.
>
> Yet in terms of a debug desktop, it may be practical, to be able to
> close all packages, and restore them after debugging.
>
> Maybe desktops could have some per-project info?
Let's keep it easy and don't reopen/close package windows in desktop
change. Package is something like an independent project so let's handle
them the same as editor windows.
BTW. I heard some rumours that project groups should be supported at
some point (?) - the same modern Delphi has. If it is so, the package
editor will be deleted anyway and replaced by the project group window.
Ondrej
More information about the Lazarus
mailing list