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

Patch to update wxPropertyGrid to version 1.2.6 and current wxSmith testing

(1/3) > >>

stahta01:
FYI:

   NOTE: Patches Uploaded to http://www.savefile.com/projects/1039215
   NOTE: This patch needs tested by someone who knows how to use wxSmith
   NOTE: This patch needs tested by building with auto tools

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

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

Subset of my batch file: copy-wxpropgrid-1.2.6-src-files.bat


--- 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 ---


Status Report:
     I have downloaded the snapshot mentioned in next post; working on updating it.
  2006-12-05 12:50
     1.2.4 and 1.2.5(12/03 snapshot) causes wxSmith addDialog to crash.
     1.2.3 does NOT cause wxSmith addDialog to crash, looking at changes to fix if I can spot fix.
  2006-12-05 20:40
     I think the crashes is because wxModule use was added in version 1.2.4.
  2006-12-05 21:50
     Patch submitted to wxPropertyGrid
  2006-12-07 05:50
     Patch submitted to BerliOS to patch wxSmith (old) in prep of wxPropertyGrid update.
  2007-01-05 20:20
     Uploaded new wxpropgrid_1_2_6_prerelease-unix.patch to http://www.savefile.com/projects/1039215
  2007-01-30 19:00
     Uploaded new wxpropgrid_1_2_6_release-unix-patch.7z to http://www.savefile.com/projects/1039215
     Uploaded new wxpropgrid_1_2_6_release-unix.patch to http://www.savefile.com/projects/1039215
  2007-02-25 14:00
     Uploaded WXMAKINGLIB_PROPGRID-unix.patch to http://www.savefile.com/projects/1039215

Tim S

rjmyst3:
There is a bug in propgrid 1.2.4 which causes it to not paint at all on wxGTK if the extra style wxPG_EX_NATIVE_DOUBLE_BUFFERING is not used.

Either set that extra style, or use the 12-3-06 snapshot of the 1.2.5 source.

I just encountered that problem with wxFormBuilder.

stahta01:
In working on the patch to upgrade wxPropertyGrid to version 1.2.4, I have discovered an design issue that needs input from the CodeBlocks Team and the wxSmith developer Byo.

The classes used in wxPropertyGrid sample propgridsample.cpp/.h has been added to the wxPropertyGrid library advprops.cpp/.h. These classes are mainly wxAdvImageFilePropertyClass and wxAdvImageFileProperty.

I see three ways to proceed.

1. Keep the wxAdvImageFileProperty classes in the file advprops.cpp.

2. Since the only thing in CodeBlocks using wxAdvImageFileProperty classes is wxSmith (old version) move the wxAdvImageFileProperty classes to wxsadvimageproperty.cpp/.h files.

3. Move them to some other file in the wxPropertyGrid sub-folders

What do you think will be the best way to solve this design issue?

Tim S

byo:

--- Quote from: stahta01 on December 06, 2006, 12:05:14 pm ---In working on the patch to upgrade wxPropertyGrid to version 1.2.4, I have discovered an design issue that needs input from the CodeBlocks Team and the wxSmith developer Byo.

The classes used in wxPropertyGrid sample propgridsample.cpp/.h has been added to the wxPropertyGrid library advprops.cpp/.h. These classes are mainly wxAdvImageFilePropertyClass and wxAdvImageFileProperty.

I see three ways to proceed.

1. Keep the wxAdvImageFileProperty classes in the file advprops.cpp.

2. Since the only thing in CodeBlocks using wxAdvImageFileProperty classes is wxSmith (old version) move the wxAdvImageFileProperty classes to wxsadvimageproperty.cpp/.h files.

3. Move them to some other file in the wxPropertyGrid sub-folders

What do you think will be the best way to solve this design issue?

Tim S

--- End quote ---

I think that the best is to leave wxPropGrid code as it was and adopt for new environment. It shouldn't be hard, updating one file in wxSmith should fix the problem with wxAdvImageProperty.

BTW. Could you send me some list of problems with wxSmith after changing to new wxPG ?

BYO

stahta01:
2. Since the only thing in CodeBlocks using wxAdvImageFileProperty classes is wxSmith (old version) move the wxAdvImageFileProperty classes to wxsadvimageproperty.cpp/.h files.

I am going to upload a patch for option two in the next day or so.

I am a beginner with wxSmith, so can you point me to the Wiki or posts that describe the way to use it.
Also, a post that describes the known issues with it.

Then, I can test the new wxPropertyGrid better under wxSmith use. I will add a list of problems testing old wxSmith to this thread.

Tim S

Navigation

[0] Message Index

[#] Next page

Go to full version