Re: [pgadmin-hackers] extending functionality strategy

2008-11-20 Thread Dave Page
On Thu, Nov 20, 2008 at 3:01 PM, Ashesh D Vashi <[EMAIL PROTECTED]> wrote: > Forgot to say that, you can see the list-arranger in "Create Type" dialog. > This is just a rough design. > > I am looking forward to your feedbacks for further improvements. It crashes for me if I try to open dlgType :-(

Re: [pgadmin-hackers] extending functionality strategy

2008-11-20 Thread Ashesh D Vashi
Forgot to say that, you can see the list-arranger in "Create Type" dialog. This is just a rough design. I am looking forward to your feedbacks for further improvements. Regards, Ashesh Ashesh D Vashi wrote: Hi Dave Page, Dave Page wrote: I think you missed couple of files: xh_ctlListArrange

Re: [pgadmin-hackers] extending functionality strategy

2008-11-20 Thread Ashesh D Vashi
Hi Dave Page, Dave Page wrote: I think you missed couple of files: xh_ctlListArranger.h xh_ctlListArranger.cpp You are right. I missed to added two files: :( * ctl/ctlListItemArranger.cpp * include/ctl/ctlListArranger.h Please find the updated patch. Regards, Ashesh Index: ctl/xh_ctlListA

Re: [pgadmin-hackers] extending functionality strategy

2008-11-20 Thread Dave Page
On Tue, Nov 18, 2008 at 1:12 PM, Ashesh D Vashi <[EMAIL PROTECTED]> wrote: > Hi All, > > I give a try on this. > * Created a combined component using wxPanel, which contains ctlCtrlView & > arranger buttons both. > > It is just a simple development patch. > Lot of modifications will be needed. I t

Re: [pgadmin-hackers] extending functionality strategy

2008-11-18 Thread Ashesh D Vashi
Ashesh D Vashi Cc: Gevik Babakhani; Guillaume Lelarge; [email protected] Subject: Re: [pgadmin-hackers] extending functionality strategy On Wed, Nov 12, 2008 at 9:41 AM, Ashesh D Vashi <[EMAIL PROTECTED]> wrote: Dave Page wrote: On Mon, Nov 10, 2008 at 3:41

Re: [pgadmin-hackers] extending functionality strategy

2008-11-12 Thread Gevik Babakhani
nesday, November 12, 2008 10:44 AM > To: Ashesh D Vashi > Cc: Gevik Babakhani; Guillaume Lelarge; [email protected] > Subject: Re: [pgadmin-hackers] extending functionality strategy > > On Wed, Nov 12, 2008 at 9:41 AM, Ashesh D Vashi > <[EMAIL PROTECTED]> wrote:

Re: [pgadmin-hackers] extending functionality strategy

2008-11-12 Thread Dave Page
On Wed, Nov 12, 2008 at 9:41 AM, Ashesh D Vashi <[EMAIL PROTECTED]> wrote: > > > Dave Page wrote: > > On Mon, Nov 10, 2008 at 3:41 PM, Gevik Babakhani <[EMAIL PROTECTED]> wrote: > > > Thinking about new solutions > > Perhaps we could create a composite type (a wxPanel hosting a wxListCtrl and >

Re: [pgadmin-hackers] extending functionality strategy

2008-11-12 Thread Ashesh D Vashi
Dave Page wrote: On Mon, Nov 10, 2008 at 3:41 PM, Gevik Babakhani <[EMAIL PROTECTED]> wrote: Thinking about new solutions Perhaps we could create a composite type (a wxPanel hosting a wxListCtrl and the buttons) that has an interface like the wxListCtrl. This way we should not need to

Re: [pgadmin-hackers] extending functionality strategy

2008-11-10 Thread Gevik Babakhani
ilto:[EMAIL PROTECTED] > Sent: Monday, November 10, 2008 11:46 AM > To: Ashesh Vashi > Cc: Gevik Babakhani; Guillaume Lelarge; [email protected] > Subject: Re: [pgadmin-hackers] extending functionality strategy > > On Mon, Nov 10, 2008 at 6:59 AM, Ashesh Vashi

Re: [pgadmin-hackers] extending functionality strategy

2008-11-10 Thread Dave Page
On Mon, Nov 10, 2008 at 3:41 PM, Gevik Babakhani <[EMAIL PROTECTED]> wrote: > Thinking about new solutions > > Perhaps we could create a composite type (a wxPanel hosting a wxListCtrl and > the buttons) that has an interface like the wxListCtrl. This way we should > not need to change the xrc f

Re: [pgadmin-hackers] extending functionality strategy

2008-11-10 Thread Dave Page
On Mon, Nov 10, 2008 at 6:59 AM, Ashesh Vashi <[EMAIL PROTECTED]> wrote: > Dave Page wrote: > >> Ashesh; is this something you'd like to look at as a spare time mini >> project? (feel free to say no - I have plenty more for your to get >> stuck into :-p ). > > > I would like work on it. > Sorry for

Re: [pgadmin-hackers] extending functionality strategy

2008-11-09 Thread Ashesh Vashi
Dave Page wrote: On Fri, Nov 7, 2008 at 2:46 PM, Gevik Babakhani <[EMAIL PROTECTED]> wrote: Hi all, Update regarding the patch: - I finally was able to test the patch (#2) on CentOS 5.2/GTK. It works as expected. - After some investigation and tests, I found no easy way to subclass the wxLi

Re: [pgadmin-hackers] extending functionality strategy

2008-11-08 Thread Dave Page
On Fri, Nov 7, 2008 at 2:46 PM, Gevik Babakhani <[EMAIL PROTECTED]> wrote: > Hi all, > > Update regarding the patch: > > - I finally was able to test the patch (#2) on CentOS 5.2/GTK. It works as > expected. > - After some investigation and tests, I found no easy way to subclass the > wxListCtrl in

Re: [pgadmin-hackers] extending functionality strategy

2008-11-07 Thread Gevik Babakhani
[EMAIL PROTECTED] > Sent: Wednesday, October 29, 2008 1:48 PM > To: Gevik Babakhani > Cc: 'Dave Page'; [email protected] > Subject: Re: [pgadmin-hackers] extending functionality strategy > > Gevik Babakhani a écrit : > >>>> - The buttons shoul

Re: [pgadmin-hackers] extending functionality strategy

2008-10-29 Thread Guillaume Lelarge
Gevik Babakhani a écrit : - The buttons should not become active when viewing an >> existing type. >>> Done. >>> >> They're still active for me. > > They should not be active when editing an existing type. Did your try patch > #2? I thought I renamed the file to uppercase there. > I only

Re: [pgadmin-hackers] extending functionality strategy

2008-10-29 Thread Gevik Babakhani
> >> - The buttons should not become active when viewing an > existing type. > > Done. > > > > They're still active for me. They should not be active when editing an existing type. Did your try patch #2? I thought I renamed the file to uppercase there. Thank you for reviewing Regards, Gevi

Re: [pgadmin-hackers] extending functionality strategy

2008-10-29 Thread Guillaume Lelarge
Gevik Babakhani a écrit : > Hi Dave, > > Thank you for reviewing :) > >> - The buttons should not become active when viewing an existing type. > Done. > They're still active for me. >> - The background of the button area needs to be transparent. >> See the attached screenshot and you'll see

Re: [pgadmin-hackers] extending functionality strategy

2008-10-29 Thread Gevik Babakhani
Dave, Thank you for reviewing :) > Looks good on Windows, but is a little borked on Mac (see the > attached screenshot). Unfortunately I'm still pretty busy > atm, so haven't had time to figure out exactly what is wrong > with the XRC code - I played for 10 minutes or so, but didn't > get an

Re: [pgadmin-hackers] extending functionality strategy

2008-10-29 Thread Dave Page
On Wed, Oct 29, 2008 at 9:29 AM, Gevik Babakhani <[EMAIL PROTECTED]> wrote: > Hi Dave, > > This is a quick inventory of all the listviews I could find. Some of them > can be extended with list item arranger. > > Any thoughts ? Hi, Many of those won't need arranging - for example, variables and pr

Re: [pgadmin-hackers] extending functionality strategy

2008-10-29 Thread Gevik Babakhani
Hi Dave, This is a quick inventory of all the listviews I could find. Some of them can be extended with list item arranger. Any thoughts ? Regards, Gevik http://www.truesoftware.net/gevik/ New Database: - Variables - Privileges Schemas: - Privileges F

Re: [pgadmin-hackers] extending functionality strategy

2008-10-28 Thread Gevik Babakhani
Hi Dave, Thank you for reviewing :) > - The buttons should not become active when viewing an existing type. Done. > - The background of the button area needs to be transparent. > See the attached screenshot and you'll see why. Making the background transparent (for wxPanel) proved to be very

Re: [pgadmin-hackers] extending functionality strategy

2008-10-27 Thread Dave Page
On Mon, Oct 20, 2008 at 11:59 PM, Gevik Babakhani <[EMAIL PROTECTED]> wrote: > Hereby a v1.0 patch implementing basic ordering for a wxListCtrl: > > - The patch is developed using MSVC 2008. > - 2 new source files ctl\ListItemArranger.cpp and include\ListItemArranger.h > are added. > - 4 new image

Re: [pgadmin-hackers] extending functionality strategy

2008-10-20 Thread Gevik Babakhani
et me know what you think. regards, Gevik. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Dave Page > Sent: Monday, October 20, 2008 3:10 PM > To: Gevik Babakhani > Cc: [email protected] > Subject:

Re: [pgadmin-hackers] extending functionality strategy

2008-10-20 Thread Dave Page
On Mon, Oct 20, 2008 at 1:52 PM, Gevik Babakhani <[EMAIL PROTECTED]> wrote: >> Having never used QT, I have no idea. I have little doubt you >> would better measuring in man-months though. > > I can do an impact analysis if you are remotely considering moving away from > wxWidgets :) I can't hones

Re: [pgadmin-hackers] extending functionality strategy

2008-10-20 Thread Gevik Babakhani
> Having never used QT, I have no idea. I have little doubt you > would better measuring in man-months though. I can do an impact analysis if you are remotely considering moving away from wxWidgets :) Regards, Gevik -- Sent via pgadmin-hackers mailing list ([email protected]) To

Re: [pgadmin-hackers] extending functionality strategy

2008-10-20 Thread Dave Page
On Mon, Oct 20, 2008 at 12:13 PM, Gevik Babakhani <[EMAIL PROTECTED]> wrote: >> D'oh! Well, if it hadn't had such nasty licencing when we >> started pgAdmin 3, we might have used it. As for pgAdmin IV, >> let us know when you're 95% done :-p > > I read QT4 for Windows needs no licensing to build o

Re: [pgadmin-hackers] extending functionality strategy

2008-10-20 Thread Gevik Babakhani
> Why not just derive a new control from wxListView? I haven't experimented with deriving from wxListView because I didn't want to do custom drawing within wxListCtrl. It seems to be very hard to get it working for all the platforms. Especially when I am limited in platforms to test it on. > D'oh

Re: [pgadmin-hackers] extending functionality strategy

2008-10-20 Thread Dave Page
On Mon, Oct 20, 2008 at 10:51 AM, Gevik Babakhani <[EMAIL PROTECTED]> wrote: >> Well the other way is to remove the item to be moved, and >> re-insert it with a new index. > > I am actually experimenting with this. So far I have a custom widget > (wxListItemArranger) which takes a wxListCtrl as cto

Re: [pgadmin-hackers] extending functionality strategy

2008-10-20 Thread Gevik Babakhani
> Well the other way is to remove the item to be moved, and > re-insert it with a new index. I am actually experimenting with this. So far I have a custom widget (wxListItemArranger) which takes a wxListCtrl as ctor argument, and has 4 ordering buttons. There is some event handing that are dynami

Re: [pgadmin-hackers] extending functionality strategy

2008-10-20 Thread Dave Page
On Sat, Oct 18, 2008 at 10:43 PM, Gevik Babakhani <[EMAIL PROTECTED]> wrote: >> I think the first thing to do is a quick inventory of the >> lists where we might need to do this. > > This is of course needed to be done in order to continue with an item > ordering/arranging solution. But before we c

Re: [pgadmin-hackers] extending functionality strategy

2008-10-18 Thread Gevik Babakhani
> I think the first thing to do is a quick inventory of the > lists where we might need to do this. This is of course needed to be done in order to continue with an item ordering/arranging solution. But before we continue we should know that most of the lists we use in PGAdmin are of wxListView t

Re: [pgadmin-hackers] extending functionality strategy

2008-10-17 Thread Dave Page
On Fri, Oct 17, 2008 at 9:14 AM, Gevik Babakhani <[EMAIL PROTECTED]> wrote: > If this will be acceptable by the core team, I am going to experiment with > an ordering mechanism just like the one in the GQD. It will have to be in > such way that we can reuse it in other places too. I think the fir

Re: [pgadmin-hackers] extending functionality strategy

2008-10-17 Thread Gevik Babakhani
> To use as a template? That's not really functionality for the > straightforward properties dialogue though. After some experimenting I have to admit, adding a new tab to the type editor will not do. I have to come up with a better solution then. > > 2) Like the GQD add column ordering to the

Re: [pgadmin-hackers] extending functionality strategy

2008-10-16 Thread Dave Page
On Thu, Oct 16, 2008 at 9:22 AM, Gevik Babakhani <[EMAIL PROTECTED]> wrote: >> Can you describe this in more detail? We can already manage > > It was late last night. I will try to explain it better. > >> and create types in pgAdmin (albeit our support for complex >> types requiring an initial 'she

Re: [pgadmin-hackers] extending functionality strategy

2008-10-16 Thread Gevik Babakhani
> Can you describe this in more detail? We can already manage It was late last night. I will try to explain it better. > and create types in pgAdmin (albeit our support for complex > types requiring an initial 'shell' type is somewhat lacking). I was playing with GQD and got this idea to have

Re: [pgadmin-hackers] extending functionality strategy

2008-10-15 Thread Dave Page
Hi Gevik On Wed, Oct 15, 2008 at 11:45 PM, Gevik Babakhani <[EMAIL PROTECTED]> wrote: > Hi, > > I would like to have some guidelines regarding extending functionality > within pgadmin. > > The following are two modules which I am thinking about adding to pgadmin as > a built-in or if possible plug

[pgadmin-hackers] extending functionality strategy

2008-10-15 Thread Gevik Babakhani
Hi, I would like to have some guidelines regarding extending functionality within pgadmin. The following are two modules which I am thinking about adding to pgadmin as a built-in or if possible plug-in. 1) A custom type creator. For creating function return types. We heavily make use of function