Minimize use of editor class macros
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56129 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -5351,6 +5351,14 @@ wxPGEditor* wxPropertyGrid::RegisterEditorClass( wxPGEditor* editorClass,
|
||||
return editorClass;
|
||||
}
|
||||
|
||||
// Use this in RegisterDefaultEditors.
|
||||
#define wxPGRegisterDefaultEditorClass(EDITOR) \
|
||||
if ( wxPGEditor_##EDITOR == (wxPGEditor*) NULL ) \
|
||||
{ \
|
||||
wxPGEditor_##EDITOR = wxPropertyGrid::RegisterEditorClass( \
|
||||
new wxPG##EDITOR##Editor, true ); \
|
||||
}
|
||||
|
||||
// Registers all default editor classes
|
||||
void wxPropertyGrid::RegisterDefaultEditors()
|
||||
{
|
||||
|
Reference in New Issue
Block a user