Author Topic: Upgrading wxPropertyGrid to the newest  (Read 5925 times)

Offline heromyth

  • Multiple posting newcomer
  • *
  • Posts: 98
    • http://
Upgrading wxPropertyGrid to the newest
« on: February 04, 2007, 03:44:48 pm »
The steps is here:

1) downloading wxPropertyGrid
It's at here:
http://downloads.sourceforge.net/wxpropgrid/wxpropgrid-1.2.6-src.tar.gz?use_mirror=jaist

Place all the files in the package into codeblocks/src/sdk/propgrid/.

2) patching scintilla

Not needed

3) patching CB

Using these patch files:

Makefile.am.wxPropertyGrid.patch
CodeBlocks-unix.cbp.patch
CodeBlocks.cbp.wxPropertyGrid.patch

4) rebuilding CB

Now enjoy it!

All the patch files are in the attachment.

I have tested it with CB SVN 3566 under WinXP SP2, and haven't found any problem.

I have also submitted this patch at https://developer.berlios.de/patch/?func=detailpatch&patch_id=1872&group_id=5358


[attachment deleted by admin]
« Last Edit: February 04, 2007, 03:53:33 pm by heromyth »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7790
    • My Best Post
Re: Upgrading wxPropertyGrid to the newest
« Reply #1 on: February 04, 2007, 04:12:14 pm »
If you want to use wxSmith look at my thread on this at
    
Patch to update wxPropertyGrid to version 1.2.6 and current wxSmith testing
http://forums.codeblocks.org/index.php?topic=4638.0

Note: wxSmith is the only project that uses wxPropertyGrid that I could find.

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


Tim S
« Last Edit: February 04, 2007, 04:18:19 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline heromyth

  • Multiple posting newcomer
  • *
  • Posts: 98
    • http://
Re: Upgrading wxPropertyGrid to the newest
« Reply #2 on: February 04, 2007, 05:37:51 pm »
If you want to use wxSmith look at my thread on this at
    
Patch to update wxPropertyGrid to version 1.2.6 and current wxSmith testing
http://forums.codeblocks.org/index.php?topic=4638.0

Note: wxSmith is the only project that uses wxPropertyGrid that I could find.


Oh, such is that! I have never built wxSmith, so I can't deeply test wxPropertyGrid 1.2.6 with C::B.

Sorry for this patch.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7790
    • My Best Post
Re: Upgrading wxPropertyGrid to the newest
« Reply #3 on: February 04, 2007, 07:41:44 pm »
If you want to use wxSmith look at my thread on this at
    
Patch to update wxPropertyGrid to version 1.2.6 and current wxSmith testing
http://forums.codeblocks.org/index.php?topic=4638.0

Note: wxSmith is the only project that uses wxPropertyGrid that I could find.


Oh, such is that! I have never built wxSmith, so I can't deeply test wxPropertyGrid 1.2.6 with C::B.

Sorry for this patch.

Just update your patches to contain the added defines I listed above.
I am NOT really patching wxPropertyGrid in any real way. I corrected the mixed linefeed issue and changed the CHANGES-propgrid.txt to include the old comments. All the patches need by Code::Blocks to wxPropertyGrid are now in the release 1.2.6. It was I that submitted patches to have WXMAKINGLIB_PROPGRID and wxPG_USE_WXMODULE added to wxPropertyGrid.

Maybe they will then do your patches, my patch is too large to submit to Berlios.

Tim S

C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7790
    • My Best Post
Re: Upgrading wxPropertyGrid to the newest
« Reply #4 on: February 04, 2007, 11:14:38 pm »
I noticed you are trying to updates parts of C::B you might look at my list I started what seems like long ago
http://forums.codeblocks.org/index.php?topic=4425.0

The astyle was just updated last month, C::B has some bugs with it you might try upgrading it and see if they are fixed.

Tim S
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org