Ticket #40390: patch-wxWidgets29-compatibility.diff
File patch-wxWidgets29-compatibility.diff, 7.2 KB (added by mojca (Mojca Miklavec), 11 years ago) |
---|
-
src/plugins/contrib/NassiShneiderman/NassiView.cpp
old new void NassiView::DragStart() 1048 1048 1049 1049 if ( dataptr ) 1050 1050 { 1051 #if defined(__WXMSW__) 1052 wxCursor copycursor(dnd_copy_cur_xpm); 1053 wxCursor movecursor(dnd_move_cur_xpm); 1054 wxCursor nonecursor(dnd_none_cur_xpm); 1055 #else 1056 wxIcon copycursor(dnd_copy_cur_xpm); 1057 wxIcon movecursor(dnd_move_cur_xpm); 1058 wxIcon nonecursor(dnd_none_cur_xpm); 1059 #endif 1060 //wxDragResult result; 1061 1051 // #if defined(__WXMSW__) 1052 // wxCursor copycursor(dnd_copy_cur_xpm); 1053 // wxCursor movecursor(dnd_move_cur_xpm); 1054 // wxCursor nonecursor(dnd_none_cur_xpm); 1055 // #else 1056 // wxIcon copycursor(dnd_copy_cur_xpm); 1057 // wxIcon movecursor(dnd_move_cur_xpm); 1058 // wxIcon nonecursor(dnd_none_cur_xpm); 1059 // #endif 1060 // wxDragResult result; 1061 wxCursor copycursor(dnd_copy_cur_xpm); 1062 wxCursor movecursor(dnd_move_cur_xpm); 1063 wxCursor nonecursor(dnd_none_cur_xpm); 1064 1065 // wxDropSource dndSource(m_diagramwindow, wxDROP_ICON(dnd_copy_cur_xpm), wxDROP_ICON(dnd_move_cur_xpm), wxDROP_ICON(dnd_none_cur_xpm)); 1062 1066 wxDropSource dndSource(m_diagramwindow, copycursor, movecursor, nonecursor); 1063 1067 dndSource.SetData(*dataptr); 1064 1068 //dndSource.SetData(myData); -
src/plugins/contrib/codesnippets/codesnippetsapp.cpp
old new BEGIN_EVENT_TABLE(CodeSnippetsApp, wxApp) 95 95 END_EVENT_TABLE() 96 96 97 97 #ifdef __WXMAC__ 98 #include "wx/ mac/corefoundation/cfstring.h"98 #include "wx/osx/core/cfstring.h" 99 99 #include "wx/intl.h" 100 100 101 101 #include <CoreFoundation/CFBundle.h> … … END_EVENT_TABLE() 112 112 CFRelease(resourcesURL); 113 113 CFStringRef cfStrPath = CFURLCopyFileSystemPath(absoluteURL,kCFURLPOSIXPathStyle); 114 114 CFRelease(absoluteURL); 115 return wx MacCFStringHolder(cfStrPath).AsString(wxLocale::GetSystemEncoding());115 return wxCFStringRef(cfStrPath).AsString(wxLocale::GetSystemEncoding()); 116 116 } 117 117 #endif 118 118 … … void CodeSnippetsAppFrame::InitCodeSnippetsAppFrame(wxFrame *frame, const wxStri 268 268 m_KeepAliveFileName = wxEmptyString; 269 269 m_pFilesHistory = 0; 270 270 271 wxStandardPaths stdPaths;272 273 271 // ------------------------------- 274 272 // initialize version and logging 275 273 // ------------------------------- … … void CodeSnippetsAppFrame::InitCodeSnippetsAppFrame(wxFrame *frame, const wxStri 325 323 // Find Config File 326 324 // ----------------------------------------- 327 325 // Create filename like {%HOME%}\codesnippets.ini 328 m_ConfigFolder = Normalize( stdPaths.GetUserDataDir());326 m_ConfigFolder = Normalize(wxStandardPaths::Get().GetUserDataDir()); 329 327 wxString m_ExecuteFolder = Normalize(FindAppPath(wxTheApp->argv[0], ::wxGetCwd(), wxEmptyString)); 330 328 331 329 #if defined(LOGGING) … … int CodeSnippetsAppFrame::ParseCmdLine(wxFrame* handlerFrame) 1387 1385 void CodeSnippetsAppFrame::ImportCBResources() 1388 1386 // ---------------------------------------------------------------------------- 1389 1387 { 1390 wxStandardPaths stdPaths;1391 1392 1388 // Location of app config folder 1393 1389 wxString appConfigFolder = Normalize(m_ConfigFolder) ; 1394 1390 … … void CodeSnippetsAppFrame::ImportCBResources() 1399 1395 wxString cbExeFolder = Normalize(GetCBExeFolder()); 1400 1396 1401 1397 // location of CodeBlocks config folder 1402 wxString cbConfigFolder = Normalize( stdPaths.GetUserDataDir());1398 wxString cbConfigFolder = Normalize(wxStandardPaths::Get().GetUserDataDir()); 1403 1399 wxString appParent = GetConfig()->GetAppParent(); 1404 1400 if ( appParent.empty()) appParent =_T("codeblocks"); 1405 1401 wxString prefixPath; -
src/plugins/contrib/codesnippets/snippetsconfig.cpp
old new void CodeSnippetsConfig::SettingsLoad() 128 128 { 129 129 // file will be saved in $HOME/codesnippets.ini 130 130 131 wxStandardPaths stdPaths;132 133 131 #ifdef LOGGING 134 132 wxString fn(__FUNCTION__, wxConvUTF8); 135 133 LOGIT( _T("--- [%s] ---"),fn.c_str() ); -
src/plugins/contrib/wxContribItems/KWIC/include/wx/KWIC/AngularRegulator.h
old new 11 11 // 12 12 ///////////////////////////////////////////////////////////////////////////// 13 13 14 #include <wx/control.h> 14 15 15 16 const int kwxEVT_ANGREG_FIRST = wxEVT_FIRST + 5402; 16 17 -
src/plugins/contrib/wxContribItems/KWIC/include/wx/KWIC/LinearRegulator.h
old new 11 11 // 12 12 ///////////////////////////////////////////////////////////////////////////// 13 13 14 #include <wx/control.h> 14 15 15 16 const int kwxEVT_LINEARREG_FIRST = wxEVT_FIRST + 5401; 16 17 -
src/plugins/contrib/wxContribItems/wxTreeList/src/treelistctrl.cpp
old new bool wxTreeListMainWindow::Create (wxTreeListCtrl *parent, 2021 2021 const wxString& name) { 2022 2022 2023 2023 #ifdef __WXMAC__ 2024 if (style & wxTR_HAS_BUTTONS) style |= wxTR_MAC_BUTTONS;2025 if (style & wxTR_HAS_BUTTONS) style &= ~wxTR_HAS_BUTTONS;2024 // if (style & wxTR_HAS_BUTTONS) style |= wxTR_MAC_BUTTONS; 2025 // if (style & wxTR_HAS_BUTTONS) style &= ~wxTR_HAS_BUTTONS; 2026 2026 style &= ~wxTR_LINES_AT_ROOT; 2027 2027 style |= wxTR_NO_LINES; 2028 2028 -
src/sdk/configmanager.cpp
old new 36 36 #endif 37 37 38 38 #ifdef __WXMAC__ 39 #include "wx/ mac/corefoundation/cfstring.h"39 #include "wx/osx/core/cfstring.h" 40 40 #include "wx/intl.h" 41 41 42 42 #include <CoreFoundation/CFBundle.h> … … namespace 121 121 CFRelease(resourcesURL); 122 122 CFStringRef cfStrPath = CFURLCopyFileSystemPath(absoluteURL,kCFURLPOSIXPathStyle); 123 123 CFRelease(absoluteURL); 124 wxString str = wx MacCFStringHolder(cfStrPath).AsString(wxLocale::GetSystemEncoding());124 wxString str = wxCFStringRef(cfStrPath).AsString(wxLocale::GetSystemEncoding()); 125 125 if (!str.Contains(wxString(_T("/Resources")))) 126 126 return ::DetermineExecutablePath() + _T("/.."); // not a bundle, use relative path 127 127 return str; -
src/sdk/xtra_res.cpp
old new 15 15 #include <wx/wx.h> 16 16 #endif 17 17 18 #include <wx/xml/xml.h> 18 19 19 20 ///////////////////////////////////////////////////////////////////////////// 20 21 // Name: xh_toolb.cpp -
src/src/app.cpp
old new BEGIN_EVENT_TABLE(CodeBlocksApp, wxApp) 271 271 END_EVENT_TABLE() 272 272 273 273 #ifdef __WXMAC__ 274 #include "wx/ mac/corefoundation/cfstring.h"274 #include "wx/osx/core/cfstring.h" 275 275 #include "wx/intl.h" 276 276 277 277 #include <CoreFoundation/CFBundle.h> … … static wxString GetResourcesDir() 286 286 CFRelease(resourcesURL); 287 287 CFStringRef cfStrPath = CFURLCopyFileSystemPath(absoluteURL,kCFURLPOSIXPathStyle); 288 288 CFRelease(absoluteURL); 289 return wx MacCFStringHolder(cfStrPath).AsString(wxLocale::GetSystemEncoding());289 return wxCFStringRef(cfStrPath).AsString(wxLocale::GetSystemEncoding()); 290 290 } 291 291 #endif 292 292