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

Re: about new module to software

From: Quan Zongliang <quanzongliang(at)gmail(dot)com>
To: "Dave Page" <dpage(at)pgadmin(dot)org>
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 06:03:17
Message-ID: 20090113145735.1393.4125B4E5@gmail.com (view raw or flat)
Thread:
Lists: pgadmin-hackers
> - 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.


-----------------------------------------------
Quan Zongliang
quanzongliang(at)gmail(dot)com
CIT Japan:  http://www.cit.co.jp
CIT China:  http://www.citbj.com.cn


In response to

Responses

pgadmin-hackers by date

Next:From: Quan ZongliangDate: 2009-01-13 09:25:49
Subject: Patch: database version check
Previous:From: Hiroshi SaitoDate: 2009-01-13 05:42:03
Subject: Re: Position and size problem of SQL Dialog

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