Re: about new module to software - Mailing list pgadmin-hackers

From Quan Zongliang
Subject Re: about new module to software
Date
Msg-id 20090113145735.1393.4125B4E5@gmail.com
Whole thread Raw
In response to Re: about new module to software  ("Dave Page" <dpage@pgadmin.org>)
Responses Re: about new module to software  ("Dave Page" <dpage@pgadmin.org>)
List 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@gmail.com
CIT Japan:  http://www.cit.co.jp
CIT China:  http://www.citbj.com.cn


pgadmin-hackers by date:

Previous
From: "Hiroshi Saito"
Date:
Subject: Re: Position and size problem of SQL Dialog
Next
From: Quan Zongliang
Date:
Subject: Patch: database version check