wxGridCellAttr::Clone() added to allow the demo of custom grid cell attr provider to work

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6339 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2000-02-28 19:08:01 +00:00
parent 3f5513f5bb
commit a68c1246db
4 changed files with 116 additions and 4 deletions

View File

@@ -435,6 +435,7 @@ private:
wxArrayString m_choices;
bool m_allowOthers;
};
// ----------------------------------------------------------------------------
// wxGridCellAttr: this class can be used to alter the cells appearance in
// the grid by changing their colour/font/... from default. An object of this
@@ -464,7 +465,10 @@ public:
SetAlignment(hAlign, vAlign);
}
// default copy ctor ok
// creates a new copy of this object: warning, this is destructive copy
// (this is why it's non const), the renderer and editor are "given to"
// the new object
wxGridCellAttr *Clone();
// this class is ref counted: it is created with ref count of 1, so
// calling DecRef() once will delete it. Calling IncRef() allows to lock
@@ -540,6 +544,9 @@ private:
bool m_isReadOnly;
// use Clone() instead
DECLARE_NO_COPY_CLASS(wxGridCellAttr);
// suppress the stupid gcc warning about the class having private dtor and
// no friends
friend class wxGridCellAttrDummyFriend;