Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Modified & Improved wxWidgets Project Wizard
rjmyst3:
--- Quote from: Biplab on February 22, 2007, 05:50:12 pm ---Supports Only wxFormBuilder+wxFrame based app.
@rjmyst3
Please test it once and give your feedback. :)
--- End quote ---
I tested wxFB + wxFrame on Windows XP, and it worked flawlessly. Very Nice! :D
I only have one suggestion:
The title for the frame ("wxWidgets Application Template") should be set in wxFB. Otherwise the user will not be able to easily change it in wxFB later.
I will test it in Linux tonight.
Good Work!
Biplab:
--- Quote from: rjmyst3 on February 22, 2007, 06:49:56 pm ---I tested wxFB + wxFrame on Windows XP, and it worked flawlessly. Very Nice! :D
I only have one suggestion:
The title for the frame ("wxWidgets Application Template") should be set in wxFB. Otherwise the user will not be able to easily change it in wxFB later.
--- End quote ---
Thanks a lot for the feedback. :D
You are right, it should be set by wxFormBuilder. I'll change it. FYI, work on wxDialog+wxFB is in progress. :)
Biplab:
Here is second update of latest development on wxwidgets wizard.
Feature:
* Supports wxFormBuilder+wxDialog/wxFrame based app.
Known Issues:
Wizard generated project will fail to compile in Non-PCH+wxFB mode. This is due to Not wrapping PCH header include with appropriate Pre-Processor definition. Though I can wrap it manually but if you regenerate the source using wxFB, everything will be gone.
To solve this, Just comment out the following line (In Non-PCH mode only)
--- Code: ---#include "wx_pch.h"
--- End code ---
in GUIDialog.cpp or GUIFrame.cpp file. Alternatively you may change it to
--- Code: ---#ifdef WX_PRECOMP
#include "wx_pch.h"
#endif
--- End code ---
@rjmyst3
I think wrapping the include with appropriate Pre-Processor definition will be the best solution of this problem. Presently wxFB generated files include <wx/wxprec.h> by default which is always available and thus this issue have not come up earlier. Though this works, IMHO, creating custom PCH file will be beneficial for large projects. :)
Also please post your feedback on this update. Title issue will be solved once it is stable. :)
Regards,
Biplab
[attachment deleted by admin]
rjmyst3:
--- Quote ---I think wrapping the include with appropriate Pre-Processor definition will be the best solution of this problem. Presently wxFB generated files include <wx/wxprec.h> by default which is always available and thus this issue have not come up earlier. Though this works, IMHO, creating custom PCH file will be beneficial for large projects. Smile
--- End quote ---
I tend to agree with you, I've posted on our forum and I await the other devs' replies.
The wxDialog works great.
rjmyst3:
I tested wxFB + wxFrame and wxFB + wxDialog on Linux (Ubuntu 6.10) and they work great.
I did notice one small bug though.
The event table generated in Main.cpp has the wrong base class.
The generated code is:
--- Code: ---BEGIN_EVENT_TABLE(<generated Frame Name>, wxFrame)
--- End code ---
when it should be:
--- Code: ---BEGIN_EVENT_TABLE(<generated Frame Name>, GUIFrame)
--- End code ---
If GUIFrame is not the base specified in the BEGIN_EVENT_TABLE macro, then the event table generated by wxFB will be skipped.
It would be even better if wxFB was used to generate the event table, but I don't know how difficult that would be to conditionally implement in the wizard.
Everything else is superb. Great job. :D
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version