Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Patch to update wxPropertyGrid to version 1.2.6 and current wxSmith testing

<< < (2/3) > >>

stahta01:
I am working on this patch again, I hope to get it uploaded this week using a snapshot of wxPropertyGrid 1.2.6.
Tim S

stahta01:
I have uploaded a new patch, it needs tested under Linux and Windows.
The main (the only plugin that I know of) plugin that uses wxPropertyGrid is wxSmith.
http://www.savefile.com/projects/1039215
wxpropgrid_1_2_6_prerelease-unix.patch


Tim S

Here's how I use it under windows.
Note: Both unix2dos and patch commands are from minGW/MSys


--- Code: ---unix2dos --newfile wxpropgrid_1_2_6_prerelease-unix.patch wxpropgrid_1_2_6_prerelease.patch
patch --unified --strip=0 --ignore-whitespace --forward --input=wxpropgrid_1_2_6_prerelease.patch

--- End code ---


Meaning of defines added to project file:
WXMAKINGLIB_PROPGRID makes wxPropertyGrid into static library
wxPG_USE_WXMODULE=0 turns off the use of wxWidgets wxModule; the use wxModule was causing wxSmith to crash.
wxPG_COMPATIBILITY_1_0_0 turns on 1.0.0 compatibility mode; this should be removed and the errors fixed, but we can do that another day.

#defines needed in target wxPropertyGrid
WXMAKINGLIB_PROPGRID
wxPG_USE_WXMODULE=0
wxPG_COMPATIBILITY_1_0_0

#defines needed in project wxSmith
WXMAKINGLIB_PROPGRID
wxPG_COMPATIBILITY_1_0_0

stahta01:
Download wxPropertyGrid from http://wxpropgrid.sourceforge.net
http://wxpropgrid.sourceforge.net/cgi-bin/index?page=download

save extracted folder wxpropgrid-1.2.6-src to toplevel SVN Directory. Code below copies files to needed locations.

Apply patch WXMAKINGLIB_PROPGRID-unix.patch

Tim S


--- Code: ---xcopy /y wxpropgrid-1.2.6-src\contrib\include\wx\propgrid\*.h src\include\propgrid\include\wx\propgrid\
xcopy /y wxpropgrid-1.2.6-src\contrib\include\wx\propgrid\propgrid.doxygen src\sdk\propgrid\include\wx\propgrid\
xcopy /y wxpropgrid-1.2.6-src\contrib\include\wx\propgrid\propgrid.i src\sdk\propgrid\include\wx\propgrid\
xcopy /y wxpropgrid-1.2.6-src\contrib\* src\sdk\propgrid\
xcopy /y wxpropgrid-1.2.6-src\contrib\src\propgrid\* src\sdk\propgrid\src\propgrid\
xcopy /y wxpropgrid-1.2.6-src\contrib\build\propgrid\* src\sdk\propgrid\build\propgrid\

--- End code ---

byo:
Have you tested how it works with wxSmith (for now only this part of C::B uses property grid). I think it may be a good time to switch to new property grid in svn trunk :)

BYO

stahta01:

--- Quote from: byo on February 26, 2007, 12:57:03 am ---Have you tested how it works with wxSmith (for now only this part of C::B uses property grid). I think it may be a good time to switch to new property grid in svn trunk :)

BYO

--- End quote ---

Not lately, and I really have no idea on how to use wxSmith so I never really did much testing.
I just opened an wxSmith project and added an widget to it. This was how I found out that wxModule does NOT work with CodeBlocks. So, I submitted a patch to wxPropertyGrid to have an option to disable wxModule.

I am running out of time to maintain the patch, so the sooner you want to upgrade the better. Note, the apply of the patch to wxSmith can be done without upgrading to wxWidgets 2.8 or upgrading wxPropertyGrid to 1.2.6. The below patch is just to wxSmith project.

Patch submitted to BerliOS to patch wxSmith in prep of wxPropertyGrid update.
   [ Patch #1903 ] wxSmith patch for wxW28 and wxPropertyGrid 1.2.x
   https://developer.berlios.de/patch/?func=detailpatch&patch_id=1903&group_id=5358

Tim S

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version