Re: Need suggestion for showing boolean parameters on Property Dialogs

Lists: pgadmin-hackers
From: Ashesh Vashi <ashesh(dot)vashi(at)enterprisedb(dot)com>
To: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Need suggestion for showing boolean parameters on Property Dialogs
Date: 2009-01-09 09:38:13
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgadmin-hackers

Hi All,

I am currently working on window function (pg 8.4 new features).
I need suggestions from all of you, while showing the boolean properties
in the properties dialog.

As you can see in the screen shot attached, we have now good number of
boolean
parameters in the properties.

And, now we're lack of space.
We can't go all the time to increase the size of the dialog.
We need some mechanism to saw these kind of parameters to utilize the
space properly.

booleanValues

Please send me some suggestion on this.
--
Regards,
Ashesh Vashi

EnterpriseDB INDIA: http://www.enterprisedb.com


From: "Dave Page" <dpage(at)pgadmin(dot)org>
To: "Ashesh Vashi" <ashesh(dot)vashi(at)enterprisedb(dot)com>
Cc: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: Need suggestion for showing boolean parameters on Property Dialogs
Date: 2009-01-09 09:42:24
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgadmin-hackers

On Fri, Jan 9, 2009 at 9:38 AM, Ashesh Vashi
<ashesh(dot)vashi(at)enterprisedb(dot)com> wrote:
> Hi All,
>
> I am currently working on window function (pg 8.4 new features).
> I need suggestions from all of you, while showing the boolean properties
> in the properties dialog.
>
> As you can see in the screen shot attached, we have now good number of
> boolean
> parameters in the properties.
>
> And, now we're lack of space.
> We can't go all the time to increase the size of the dialog.
> We need some mechanism to saw these kind of parameters to utilize the space
> properly.

Hi Ashesh,

For some reason the image isn't displaying here - but what about using
a wxCheckListBox?

http://docs.wxwidgets.org/stable/wx_wxchecklistbox.html#wxchecklistbox

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


From: Ashesh Vashi <ashesh(dot)vashi(at)enterprisedb(dot)com>
To: Dave Page <dpage(at)pgadmin(dot)org>
Cc: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: Need suggestion for showing boolean parameters on Property Dialogs
Date: 2009-01-10 08:01:49
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgadmin-hackers

Hi Dave,

Please see below:

Dave Page wrote:
>> we have now good number of boolean
>> parameters in the properties.
>>
>> And, now we're lack of space.
>> We can't go all the time to increase the size of the dialog.
>> We need some mechanism to saw these kind of parameters to utilize the space
>> properly.
>
> Hi Ashesh,
>
> For some reason the image isn't displaying here - but what about using
> a wxCheckListBox?
>
> http://docs.wxwidgets.org/stable/wx_wxchecklistbox.html#wxchecklistbox
I already started working with wxCheckListBox.

But, then realized, we may need to disable some parameters for particular
version of the Postgresql. I couldn't find anything like this in the
documents. :(
We may need to inherit that control and our own dray feature. I don't
think, it is
worth put that much efforts.

What do you say?

Please find the image for the screen-shot.
--
Regards,
Ashesh Vashi

EnterpriseDB INDIA: http://www.enterprisedb.com

Attachment Content-Type Size
image/gif 29.9 KB

From: "Dave Page" <dpage(at)pgadmin(dot)org>
To: "Ashesh Vashi" <ashesh(dot)vashi(at)enterprisedb(dot)com>
Cc: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: Need suggestion for showing boolean parameters on Property Dialogs
Date: 2009-01-12 08:48:29
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgadmin-hackers

Hi Ashesh

On Sat, Jan 10, 2009 at 8:01 AM, Ashesh Vashi
<ashesh(dot)vashi(at)enterprisedb(dot)com> wrote:

> I already started working with wxCheckListBox.
>
> But, then realized, we may need to disable some parameters for particular
> version of the Postgresql. I couldn't find anything like this in the
> documents. :(
> We may need to inherit that control and our own dray feature. I don't think,
> it is
> worth put that much efforts.
>
> What do you say?

No, I don't think it is worth it at the moment. You could put the
checkboxes in a 2 x 2 grid and see if that looks OK. If not, just
shrink the comment box a little. I don't think we're at crisis point
yet, and when we do get there we can always split the properties
across 2 pages (I think we already do that for one object type - I
forget which atm).

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


From: Ashesh Vashi <ashesh(dot)vashi(at)enterprisedb(dot)com>
To: Dave Page <dpage(at)pgadmin(dot)org>
Cc: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: Need suggestion for showing boolean parameters on Property Dialogs
Date: 2009-01-12 08:58:09
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgadmin-hackers

Hi Dave Page,
>> I already started working with wxCheckListBox.
>>
>> But, then realized, we may need to disable some parameters for particular
>> version of the Postgresql. I couldn't find anything like this in the
>> documents. :(
>> We may need to inherit that control and our own dray feature. I don't think,
>> it is
>> worth put that much efforts.
>>
>> What do you say?
>
> No, I don't think it is worth it at the moment. You could put the
> checkboxes in a 2 x 2 grid and see if that looks OK. If not, just
> shrink the comment box a little. I don't think we're at crisis point
> yet, and when we do get there we can always split the properties
> across 2 pages (I think we already do that for one object type - I
> forget which atm).
I just sent the patch and currently used this logic only. :)

--
Regards,
Ashesh Vashi

EnterpriseDB INDIA: http://www.enterprisedb.com