Fixed wxPGMultiButton (event handling, FinalizePosition() -> Finalize(), no longer using PG specific class macros in its sample), other editors.h interface fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55915 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -5528,18 +5528,18 @@ void wxPropertyGrid::OnCaptureChange( wxMouseCaptureChangedEvent& WXUNUSED(event
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
// noDefCheck = true prevents infinite recursion.
|
||||
wxPGEditor* wxPropertyGrid::RegisterEditorClass( wxPGEditor* editorclass,
|
||||
const wxString& name,
|
||||
wxPGEditor* wxPropertyGrid::RegisterEditorClass( wxPGEditor* editorClass,
|
||||
bool noDefCheck )
|
||||
{
|
||||
wxASSERT( editorclass );
|
||||
wxASSERT( editorClass );
|
||||
|
||||
if ( !noDefCheck && wxPGGlobalVars->m_mapEditorClasses.empty() )
|
||||
RegisterDefaultEditors();
|
||||
|
||||
wxPGGlobalVars->m_mapEditorClasses[name] = (void*)editorclass;
|
||||
wxString name = editorClass->GetName();
|
||||
wxPGGlobalVars->m_mapEditorClasses[name] = (void*)editorClass;
|
||||
|
||||
return editorclass;
|
||||
return editorClass;
|
||||
}
|
||||
|
||||
// Registers all default editor classes
|
||||
|
Reference in New Issue
Block a user