Thread: PATCH: Save & restore last active panel in Options dialogue

PATCH: Save & restore last active panel in Options dialogue

From
"J.F. Oster"
Date:
Hello All,

This little improvement saves some time for a user actively playing
with program's options. Last chosen treeview item label (translated!)
is saved among other settings and used on next dialogue invocation to
find and select treeview item with same label.

Сontrol over panels visibility moved to a single function
frmOptions::ShowPanel(menuItem), making future modifications a bit
easier. By the way, a call
  pnlDatabaseDesigner->Show(false);
was missing in frmOptions constructor.

Also it seems that empty panel is of no use when selecting
parent-level items like "Browser" or "Query tool".  I'd suggest to
show panels corresponding to their first children, like "Display" or
"Query editor".


--
Best regards,
 Vadim

Attachment

Re: PATCH: Save & restore last active panel in Options dialogue

From
Dave Page
Date:
Thanks - patch applied for 1.20.

On Thu, Dec 5, 2013 at 4:30 PM, J.F. Oster <jinfroster@mail.ru> wrote:
> Hello All,
>
> This little improvement saves some time for a user actively playing
> with program's options. Last chosen treeview item label (translated!)
> is saved among other settings and used on next dialogue invocation to
> find and select treeview item with same label.
>
> Сontrol over panels visibility moved to a single function
> frmOptions::ShowPanel(menuItem), making future modifications a bit
> easier. By the way, a call
>   pnlDatabaseDesigner->Show(false);
> was missing in frmOptions constructor.
>
> Also it seems that empty panel is of no use when selecting
> parent-level items like "Browser" or "Query tool".  I'd suggest to
> show panels corresponding to their first children, like "Display" or
> "Query editor".
>
>
> --
> Best regards,
>  Vadim
>
> --
> Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgadmin-hackers
>



--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company