Skip site navigation (1) Skip section navigation (2)

Re: about new module to software

From: "Dave Page" <dpage(at)pgadmin(dot)org>
To: "Quan Zongliang" <quanzongliang(at)gmail(dot)com>
Cc: "ivo nascimento" <iannsp(at)gmail(dot)com>, pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: about new module to software
Date: 2009-01-13 10:51:48
Message-ID: 937d27e10901130251y77027003lc161a91be7a3d39a@mail.gmail.com (view raw or flat)
Thread:
Lists: pgadmin-hackers
On Tue, Jan 13, 2009 at 6:03 AM, Quan Zongliang <quanzongliang(at)gmail(dot)com> wrote:
>> - Write a custom grid cell editor for use with Enum columns. When editing such
>>   a column, the user should be presented with a combobox containing the enum
>>   values to choose from.
>
> new class had been defined with import module:
>
> class pgGridCellChioceEditor : public wxGridCellChoiceEditor
> {
> public:
>    void Clear() { m_choices.Empty(); }
>    void SetItems(const wxArrayString& items) { m_choices = items; }
>    int Append(const wxString& item) { m_choices.Add(item); return m_choices.Count()-1; }
> };
>
> It's really simple, just for easy to be operated.
> I did yesterday, without test.

Yeah - I don't think that one is too difficult. There's more to it
than you've shown of course - there's code to populate the lists and
to setup the columns to use them for example.


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

In response to

Responses

pgadmin-hackers by date

Next:From: Dave PageDate: 2009-01-13 13:49:30
Subject: Re: More on sizing
Previous:From: Quan ZongliangDate: 2009-01-13 09:25:49
Subject: Patch: database version check

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group