From: | "J(dot)F(dot) Oster" <jinfroster(at)mail(dot)ru> |
---|---|
To: | pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org> |
Subject: | PATCH: Choose best width for Data Output columns of Query tool |
Date: | 2013-11-17 18:41:20 |
Message-ID: | 1931462341.20131117224120@mail.ru |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-hackers |
Hi All,
Please see the attached patch.
It makes use of wxGrid's AutoSizeColumns() and applies some reasonable
limits afterwards. Works nicely in most scenarios I could imagine.
Tested with wxWidgets 2.8.12 on Ubuntu Linux.
Possibly this code should be moved to some procedure and triggered
from on-resize event handler as well?
Also it would be nice to have same behavior in "Edit Data" window
(ctlSQLEditGrid). But I'm new to wxWidgets... so please let me know
how to implement that better.
Thanks!
P.S. My company is moving from Oracle and a perfect IDE called "PL/SQL
Developer" (by allroundautomations.com) to PostgreSQL and pgAdmin III.
Having used pgAdmin years before, I see it gaining functionality to
support fast-growing PostgreSQL's features (great job!) but not
usability that well. Hope I can work on that (as far as I can :))
--
Best regards,
Vadim
Attachment | Content-Type | Size |
---|---|---|
131117_sqlresult_width.patch | application/octet-stream | 2.0 KB |
testquery.sql | application/octet-stream | 392 bytes |
From | Date | Subject | |
---|---|---|---|
Next Message | Ashesh Vashi | 2013-11-18 08:01:19 | pgAdmin III commit: Set the paths (PostgreSQL & EnterpriseDB) of 32-bit |
Previous Message | Guillaume Lelarge | 2013-11-17 13:47:44 | pgAdmin website commit: Meet the new maintainer of the spanish translat |