Remove wxOSX/Carbon support.

Cocoa has been the default toolkit in wxWidgets for a long time. There is really no good reason to use Carbon in 2016 and this removes a lot of unused and unmaintained code.
This commit is contained in:
Tobias Taschner
2016-01-22 15:40:58 +01:00
parent 8d42890df4
commit 5ba67c67e4
144 changed files with 75 additions and 35011 deletions

View File

@@ -128,16 +128,10 @@ bool wxTextCtrl::Create( wxWindow *parent,
void wxTextCtrl::MacSuperChangedPosition()
{
wxWindow::MacSuperChangedPosition() ;
#if wxOSX_USE_CARBON
GetPeer()->SuperChangedPosition() ;
#endif
}
void wxTextCtrl::MacVisibilityChanged()
{
#if wxOSX_USE_CARBON
GetPeer()->VisibilityChanged( GetPeer()->IsVisible() );
#endif
}
void wxTextCtrl::MacCheckSpelling(bool check)
@@ -457,19 +451,6 @@ void wxTextCtrl::OnChar(wxKeyEvent& event)
}
// osx_cocoa sends its event upon insertText
#if wxOSX_USE_CARBON
if ( ( key >= 0x20 && key < WXK_START ) ||
( key >= WXK_NUMPAD0 && key <= WXK_DIVIDE ) ||
key == WXK_RETURN ||
key == WXK_DELETE ||
key == WXK_NUMPAD_ENTER ||
key == WXK_BACK)
{
wxCommandEvent event1(wxEVT_TEXT, m_windowId);
event1.SetEventObject( this );
wxPostEvent( GetEventHandler(), event1 );
}
#endif
}
void wxTextCtrl::Command(wxCommandEvent & event)