Re: Server Status window work - Mailing list pgadmin-hackers

From Dave Page
Subject Re: Server Status window work
Date
Msg-id 937d27e10902040423t24a8b75ere8f547a6835164a4@mail.gmail.com
Whole thread Raw
In response to Re: Server Status window work  (Guillaume Lelarge <guillaume@lelarge.info>)
Responses Re: Server Status window work  (Guillaume Lelarge <guillaume@lelarge.info>)
List pgadmin-hackers
Hi,

On Tue, Feb 3, 2009 at 5:07 PM, Guillaume Lelarge
<guillaume@lelarge.info> wrote:

>> - If a tab is closed and re-opened (from the View menu), it returns to
>> it's default position on the tabset, not to whereever it previously
>> was.
>>
>> - The tab layout is not remembered if the window is closed and reopened.
>>
>
> The last two ones aren't done on purpose.
>
> On the first one, it doesn't return on its default position but on the
> last position. I don't think it's really interesting and it will be
> difficult to do. For example, how do we handle the case when we have
> multiple notebooks?

It does seem to go to the default position here. If I close the a tab,
then no matter where it was, it returns to the end on the main tabset.

Thinking back to the original AUI code, iirc, it's the manager that
actually remembers where everything is, so I can see it may be hard to
implement for tabs. I'm don't think it's that important.

> On the second one, if we try to remember the tab layout (not difficult),
> do we also need to remember the pane layout? much more difficult.

We should certainly record and restore the perspective (as we seem to
be), but it doesn't appear to be doing anything. I would expect the
layout to be restored, so if I run the tool every morning with a
preferred layout (say three tabs, two at the top, one below, all
visible at once) I don't have to re-layout everything again. Consider
Visual Studio, in which the layout is retained but would be quite
frustrating if it wasn't.

I also noticed another couple of issues:

- If you place 2 tabs side-by-side, the Refresh button and slider can
become easily obscured, but it is not obvious that anything has been
lost. I wonder if we can wrap those controls, or otherwise improve the
problem somehow. Any ideas?

- The tab names should match the text on the View menu. Specifically,
Status vs. Activity

- After closing a tab, the 'Default View' option can open 2 copies of
some tabs. It's quite easy to get 6 or more tabs and then have it
crash.

--
Dave Page
EnterpriseDB UK:   http://www.enterprisedb.com

pgadmin-hackers by date:

Previous
From: Dave Page
Date:
Subject: pgAdmin - change of licence
Next
From: Diego Gil
Date:
Subject: Re: