new member functio of wxDbColInfo to allow two step creation , to be
descibed in the docs. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18110 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -78,6 +78,18 @@ public:
|
||||
//Recurse to find length.
|
||||
int Length() { return (m_next ? m_next->Length() +1 : 1); }
|
||||
|
||||
// Adds a new column info (2 step creation)
|
||||
void AddColInfo (int colNo,
|
||||
wxString type,
|
||||
wxString title)
|
||||
{
|
||||
GetLast()->m_next = new wxDbGridColInfo (colNo, type, title, NULL);
|
||||
}
|
||||
|
||||
// Searches last
|
||||
wxDbGridColInfo *GetLast() { return (m_next ? m_next->GetLast() : this); }
|
||||
|
||||
|
||||
protected:
|
||||
wxDbGridColInfoBase m_data;
|
||||
wxDbGridColInfo *m_next;
|
||||
|
Reference in New Issue
Block a user