User forums > Announcements

About wxSmith development

<< < (11/12) > >>

byo:

--- Quote from: Christiaan on December 16, 2006, 04:15:47 pm ---Opened a old wxSmith project and found a couple of small bugs.

Notebook->AddPagePanel1,_("My Page"),false);
There is a "(" missing between AddPage and Panel1

In file wxnotebook.cpp on line 261 changing:
Code << GetVarName() << _T("->AddPage")
to:
Code << GetVarName() << _T("->AddPage(")
seams to fix the problem

--- End quote ---

Yop, you're right :) I haven't tested that code yet (same bug was in wxChoicebook and wxListbook).


--- Quote ---undefined reference to `MainFrame::ID_NOTEBOOK1'
The //(*IdInit(NewFrame) section is missing possible a conversion error.

After adding:
//(*IdInit(MainFrame)
//*)
to my mainframe.cpp the IdInit was generated and my project compiled without errors.


--- End quote ---

I've already fixed that, in fact there's another section missing:

//(*InternalHeaders(MainFrame)
//*)

to make it working in all cases. wxSmith shuld do the conversion automatically :)

Thx for your report (I desperately need such reports right now ;) )

Regards
  BYO

nottin:
Getting this error when building new wxSmith:

 g++ -DHAVE_CONFIG_H -I. -I../../../../../../../src/plugins/contrib/New_wxSmith/wxwidgets/defitems -I../../../../../../src/sdk -I/usr/local/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -I../../../../../../../src/sdk -I../../../../../../../src/sdk/wxFlatNotebook/include -I../../../../../../../src/sdk/wxscintilla/include -I../../../../../../../src/sdk/wxFlatNotebook -I../../../../../../../src/sdk/propgrid/include -O2 -ffast-math -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -MT wxsdatepickerctrl.lo -MD -MP -MF .deps/wxsdatepickerctrl.Tpo -c ../../../../../../../src/plugins/contrib/New_wxSmith/wxwidgets/defitems/./wxsdatepickerctrl.cpp  -fPIC -DPIC -o .libs/wxsdatepickerctrl.o
../../../../../../../src/plugins/contrib/New_wxSmith/wxwidgets/defitems/./../wxsevents.h:114: error: 'wxArrayString' does not name a type
../../../../../../../src/plugins/contrib/New_wxSmith/wxwidgets/defitems/./../wxsevents.h: In member function 'const wxString& wxsEvents::GetHandler(int)':
../../../../../../../src/plugins/contrib/New_wxSmith/wxwidgets/defitems/./../wxsevents.h:80: error: 'm_Functions' was not declared in this scope
../../../../../../../src/plugins/contrib/New_wxSmith/wxwidgets/defitems/./../wxsevents.h: In member function 'void wxsEvents::SetHandler(int, const wxString&)':
../../../../../../../src/plugins/contrib/New_wxSmith/wxwidgets/defitems/./../wxsevents.h:83: error: 'm_Functions' was not declared in this scope
make[2]: *** [wxsdatepickerctrl.lo] Error 1
make[2]: Leaving directory `/home/bjorn/dev/apps/codeblocks/build/src/plugins/contrib/New_wxSmith/wxwidgets/defitems'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/bjorn/dev/apps/codeblocks/build/src/plugins/contrib/New_wxSmith/wxwidgets'
make: *** [all-recursive] Error 1

using wxWidgets 2.8.1 on Ubuntu 6.10 (Edgy Eft)

stahta01:

--- Quote from: nottin on January 14, 2007, 06:07:24 am ---Getting this error when building new wxSmith:

 g++ -DHAVE_CONFIG_H -I. -I../../../../../../../src/plugins/contrib/New_wxSmith/wxwidgets/defitems -I../../../../../../src/sdk -I/usr/local/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -I../../../../../../../src/sdk -I../../../../../../../src/sdk/wxFlatNotebook/include -I../../../../../../../src/sdk/wxscintilla/include -I../../../../../../../src/sdk/wxFlatNotebook -I../../../../../../../src/sdk/propgrid/include -O2 -ffast-math -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -MT wxsdatepickerctrl.lo -MD -MP -MF .deps/wxsdatepickerctrl.Tpo -c ../../../../../../../src/plugins/contrib/New_wxSmith/wxwidgets/defitems/./wxsdatepickerctrl.cpp  -fPIC -DPIC -o .libs/wxsdatepickerctrl.o
../../../../../../../src/plugins/contrib/New_wxSmith/wxwidgets/defitems/./../wxsevents.h:114: error: 'wxArrayString' does not name a type
../../../../../../../src/plugins/contrib/New_wxSmith/wxwidgets/defitems/./../wxsevents.h: In member function 'const wxString& wxsEvents::GetHandler(int)':
../../../../../../../src/plugins/contrib/New_wxSmith/wxwidgets/defitems/./../wxsevents.h:80: error: 'm_Functions' was not declared in this scope
../../../../../../../src/plugins/contrib/New_wxSmith/wxwidgets/defitems/./../wxsevents.h: In member function 'void wxsEvents::SetHandler(int, const wxString&)':
../../../../../../../src/plugins/contrib/New_wxSmith/wxwidgets/defitems/./../wxsevents.h:83: error: 'm_Functions' was not declared in this scope
make[2]: *** [wxsdatepickerctrl.lo] Error 1
make[2]: Leaving directory `/home/bjorn/dev/apps/codeblocks/build/src/plugins/contrib/New_wxSmith/wxwidgets/defitems'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/bjorn/dev/apps/codeblocks/build/src/plugins/contrib/New_wxSmith/wxwidgets'
make: *** [all-recursive] Error 1

using wxWidgets 2.8.1 on Ubuntu 6.10 (Edgy Eft)

--- End quote ---

The patch for the new wxSmith is here; note, the OLD wxSmith is already patched.
  [ Patch #1766 ] NEW (experimental) wxSmith patch for wxWidgets 2.8 Submitted By: stahta01
   https://developer.berlios.de/patch/?func=detailpatch&patch_id=1766&group_id=5358
  How to get the new wxSmith is here
   http://forums.codeblocks.org/index.php?topic=3765.msg33855#msg33855

Have you applied my wxWidgets 2.8 patch?
See thread http://forums.codeblocks.org/index.php?topic=4495.0

Please post the link errors against wxWidgets 2.8 in my thread http://forums.codeblocks.org/index.php?topic=4495.0

Note: I have NOT tested my patch on the new wxSmith in the last two weeks if it has an compile or link error please post it in my thread and I will check it out. Note, I don't use wxSmith so don't ask me to do testing of it.

Tim S

byo:
New wxSmith has just been merged into trunk. It should be available with next nightly.
Remember to save project right after converting to new format :)
Unfortunately I've yet found two bugs during convertion from old format to new one. So please take this into consideration:

* If you have different projects for win and linux, open them both and save. Then search for duplicated //(*InternalHeaders and //(*IdInit section in sources - it's added twice since sources are processed two times. Just remove one of them
* //(*InternalHeaders may be placed just at the beginning of file (it will compile but usually first include should be corresponding header file). In this case just move section into proper locationI'll probably fix these bugs on Monday so Sunday will have to be little "buggy" ;)

Here's short log what's in new wxSmith comparing to old one:

* Totally rewritten framework. This one is much more stable and easier to extend
* Project wizard removed. wxSmith can now use standard wxWidgets project and convert project to make it compatible with wxSmith
* IMPORTANT!!! Event handlers are now connected using Connect() method instead of event tables. This mean that EVENTS ARE NOT PROCESSED WHILE CREATING WINDOW. Previously when some foo->SetValue() or something simillar was called during initialization it could throw events
* Data is no longer duplicated in wxs file when resource uses xrc
* There's ability to use one xrc for few resources
* New drag assist - when changing position inside sizer, only one half of destination item is highlighted. If it's left one, dragged item wil be placed before destination item, if right one, item will be added after it.
* Identifiers are now created using wxNewId() instead of enums. This prevented duplicating identifiers when added panel resource into other one
* Some automatically-generated headers are put into cpp file instead of header (this may speed up compilation time in some cases)
Source code for resources will be automatically regenerated when opening resource's editor for the first time (after conversion).

I hope you'd like this new "smithy" :)
Regards

   BYO

Grom:
Cool, thanks a lot!!!
When we will have statusbar, toolbar and menu? Is that new wxSmith expandable to add those components? If yes... This is not a problem :wink:

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version