git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6196
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxGridCellRenderer* GetCellRenderer(int row, int col);
// takes ownership of the pointer
wxGridCellRenderer* GetCellRenderer(int row, int col);
// takes ownership of the pointer
-// void SetDefaultEditor(wxGridCellEditor *editor);
+ void SetDefaultEditor(wxGridCellEditor *editor);
void SetCellEditor(int row, int col, wxGridCellEditor *editor);
void SetCellEditor(int row, int col, wxGridCellEditor *editor);
-// wxGridCellEditor *GetDefaultEditor() const;
+ wxGridCellEditor *GetDefaultEditor() const;
wxGridCellEditor* GetCellEditor(int row, int col);
wxGridCellEditor* GetCellEditor(int row, int col);
m_defaultCellAttr->SetFont(font);
}
m_defaultCellAttr->SetFont(font);
}
-// void wxGrid::SetDefaultRenderer(wxGridCellRenderer *renderer)
-// {
-// m_defaultCellAttr->SetRenderer(renderer);
-// }
+void wxGrid::SetDefaultRenderer(wxGridCellRenderer *renderer)
+{
+ m_defaultCellAttr->SetRenderer(renderer);
+}
-// void wxGrid::SetDefaultEditor(wxGridCellEditor *editor)
-// {
-// m_defaultCellAttr->SetEditor(editor);
-// }
+void wxGrid::SetDefaultEditor(wxGridCellEditor *editor)
+{
+ m_defaultCellAttr->SetEditor(editor);
+}
// ----------------------------------------------------------------------------
// access to the default attrbiutes
// ----------------------------------------------------------------------------
// access to the default attrbiutes
m_defaultCellAttr->GetAlignment(horiz, vert);
}
m_defaultCellAttr->GetAlignment(horiz, vert);
}
-// wxGridCellRenderer *wxGrid::GetDefaultRenderer() const
-// {
-// return m_defaultCellAttr->GetRenderer();
-// }
+wxGridCellRenderer *wxGrid::GetDefaultRenderer() const
+{
+ return m_defaultCellAttr->GetRenderer(NULL);
+}
-// wxGridCellEditor *wxGrid::GetDefaultEditor() const
-// {
-// return m_defaultCellAttr->GetEditor();
-// }
+wxGridCellEditor *wxGrid::GetDefaultEditor() const
+{
+ return m_defaultCellAttr->GetEditor(NULL);
+}
// ----------------------------------------------------------------------------
// access to cell attributes
// ----------------------------------------------------------------------------
// access to cell attributes