X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/784eebb38c994a4a5a44a93d74df6faf7e7683ce..4de25822f373782dab54d09e1be978d94b97ca76:/src/stc/stc.cpp.in diff --git a/src/stc/stc.cpp.in b/src/stc/stc.cpp.in index 9a6562eed3..6b5e34d486 100644 --- a/src/stc/stc.cpp.in +++ b/src/stc/stc.cpp.in @@ -10,7 +10,6 @@ // Author: Robin Dunn // // Created: 13-Jan-2000 -// RCS-ID: $Id$ // Copyright: (c) 2000 by Total Control Software // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -50,7 +49,7 @@ #if wxUSE_FFILE #include "wx/ffile.h" #elif wxUSE_FILE - #include "wx/ffile.h" + #include "wx/file.h" #endif #ifdef __WXGTK__ @@ -571,7 +570,7 @@ wxStyledTextCtrl::DoLoadFile(const wxString& filename, int WXUNUSED(fileType)) if ( file.IsOpened() ) { wxString text; - if ( file.ReadAll(&text, *wxConvCurrent) ) + if ( file.ReadAll(&text, wxConvAuto()) ) { // Detect the EOL: we use just the first line because there is not // much we can do if the file uses inconsistent EOLs anyhow, we'd @@ -833,9 +832,11 @@ void wxStyledTextCtrl::OnContextMenu(wxContextMenuEvent& evt) { void wxStyledTextCtrl::OnMouseWheel(wxMouseEvent& evt) { - m_swx->DoMouseWheel(evt.GetWheelRotation(), + m_swx->DoMouseWheel(evt.GetWheelAxis(), + evt.GetWheelRotation(), evt.GetWheelDelta(), evt.GetLinesPerAction(), + evt.GetColumnsPerAction(), evt.ControlDown(), evt.IsPageScroll()); }