On Tue, 2012-03-06 at 09:20 +0100, Guillaume Lelarge wrote: > On Thu, 2012-03-01 at 16:23 +0000, Dave Page wrote: > > Hi > > > > On Thu, Mar 1, 2012 at 4:06 PM, Guillaume Lelarge > > <guilla...@lelarge.info> wrote: > > > > >> 2) Why does it take so many steps to add a column? Click the + icon, > > >> and choose a name, then right click and select a datatype > > >> (incidentally, some common types like "text" require additional steps > > >> to select from a dialogue, which still doesn't list things like array > > >> types or use the proper names for aliased types we use elsewhere), > > >> then right-click again if I need to add constraints, and right click > > >> *again* if I then want to rename the constraint. > > > > > > I agree it would be better to not have all of this. This is something I > > > want to work on, but didn't find the time yet. My main idea was to add a > > > properties widget to handle the properties of table (and columns). > > > > That's one idea. The main thing is to be able to edit everything in > > one place without having to repeatedly right click to change a > > different property. > > > > There is no standard properties widget for 2.8. There is one available > with a wxWidgets licence, not sure I want to start working on adding it > to the pgadmin code. And 2.9 has this widget. Probably we'll start with > a simple dialog, better than the current one, and use the properties > widgets of 3.0 when it'll come out (their roadmap says summer 2012, but > it keeps getting postponed, and anyway, even if they do release it in > 2012, it will be too late for 1.16). >
I've been thinking about this. I don't like the idea of displaying a dialog. I've been doing some experiments on panels, and this is what I have now. Not pretty, but not done yet. Just an idea of how it might look like and work. See screenshot attached. Each time you select a table, this panel is refreshed with the informations from the table. You can modify the table informations with this panel. I'm wondering if I should add a OK button. Anyway. If it seems good to you, then I'll work on this, and propose a patch. (meaning I'm waiting for an answer before going any further) -- Guillaume http://blog.guillaume.lelarge.info http://www.dalibo.com
<<attachment: dd_with_propspanel.png>>
-- Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-hackers