Patch #2043 2007-06-09 04:43

stahta01

Patch CB Core files for wxW28 with disable_compat26
Download
2043-Patch_CB_Core.patch (801 bytes)
Category
Application::Refinement
Status
Closed
Close date
2008-09-24 14:33
Assigned to
mortenmacfly
Index: src/include/prep.h
===================================================================
--- src/include/prep.h    (revision 4790)
+++ src/include/prep.h    (working copy)
@@ -5,6 +5,7 @@
 #include <wx/version.h>
 #endif
 
+#include <wx/filedlg.h>
 
 
 /* -----------------------------------------------
@@ -254,6 +254,17 @@
     #endif
 }
 
+#if wxCHECK_VERSION(2, 8, 0) && (WXWIN_COMPATIBILITY_2_6 == 0)
+enum
+{
+    wxOPEN              = wxFD_OPEN,
+    wxSAVE              = wxFD_SAVE,
+    wxOVERWRITE_PROMPT  = wxFD_OVERWRITE_PROMPT,
+    wxFILE_MUST_EXIST   = wxFD_FILE_MUST_EXIST,
+    wxMULTIPLE          = wxFD_MULTIPLE,
+    wxCHANGE_DIR        = wxFD_CHANGE_DIR
+};
+#endif
 
 
 /*  ---------------------------------------------------------------------------------------------------------
stahta01 2007-06-09 04:47

Filename: disable_compat26_filedlg-unix.patch

Purpose: Change CB Core files, in CodeBlocks.cbp, to improve support for wxWidgets 2.8 with option disable_compat26.

Problem: File Constants where renamed with wxFD_ prefix

Reference: wx/filedlg.h

Solution: Added compatibility to header prep.h for File Dialog Constants.

Tim S

stahta01 2007-06-27 00:02

Updated to SVN 4185

stahta01 2007-07-09 22:19

Updated to SVN 4243

stahta01 2007-11-13 04:54

I have stopped updating this patch; feel free to close it.

Tim S

stahta01 2008-01-09 21:09

I re-wrote the patch into a much simpler and smaller patch.