PATCH: Save & restore last active panel in Options dialogue

From: "J(dot)F(dot) Oster" <jinfroster(at)mail(dot)ru>
To: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: PATCH: Save & restore last active panel in Options dialogue
Date: 2013-12-05 16:30:48
Message-ID: 1778085946.20131205203048@mail.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

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 Content-Type Size
131205_options_last_panel_v1.patch application/octet-stream 9.8 KB

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Dhiraj Chawla 2013-12-06 09:44:13 Re: Text goes out of header area in html reports
Previous Message Dave Page 2013-12-05 15:32:11 Re: Text goes out of header area in html reports