Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
New plugin committed
mandrav:
I committed a new plugin in HEAD: Project wizard.
This complements (and eventually will replace) the project templates.
Currently we use a file-based approach for templates.
This wizard is based on scripts and allows the creation of wizard-like interfaces, guiding the user. I have also created a few wizards as examples. Surely, most of them, might need some finishing touches here and there.
For info on how you can create additional wizards, have a look in plugins/projectwizard/resources/console/wizard.script. It is fully commented and it should give you a nice head start.
To add a new wizard, you must add a new directory under plugins/projectwizard/resources/ and register it in plugins/projectwizard/resources/config.script.
Just follow the samples :).
Criticism and ideas for enhancement are welcomed, as always ;).
mandrav:
Known "issue": when you run update.bat to update your installation, it copies the Makefile.am files too. These are not part of the sample projects. They don't hurt, but they don't belong there...
Michael:
Hello,
I am trying to build it with cbp (rev2354) on Ubuntu 5.10, but I get 3 errors:
--- Quote ---plugins/projectwizard/wiz.cpp:128: error: ´class wxXmlResource´ has no member named ´Unload´
plugins/projectwizard/wiz.cpp:326: error: ´wxDir´ has not been declared
plugins/projectwizard/wiz.cpp:128: error: ´getAllFiles´ was not declared in this scope
--- End quote ---
Best wishes,
Michael
TDragon:
Some thoughts:
* "Standard" browse-for-folder buttons for the output dirs on the fourth page (the previous page, asking for wxWidgets' location, has one).
* I like the Debug/Release options; they save me a bit of work. Beginners to programming and/or Visual Studio converts will also feel much more comfortable. (I know your goal isn't to duplicate VS, but a few crossovers like this definitely don't hurt.)
* The assumption that I will want my project in a subfolder of whatever folder I choose, with the same name as the project, is faintly irritating to me. Admittedly, I only have a few "projects" for which this wouldn't be suitable -- i.e. "solutions", containing multiple C::B "Projects", and I only have to set them up once. Still, semi-pros such as myself might appreciate a way to put the .cbp file exactly where we want when it's first created.
* It's not immediately clear what the "Configuration" editbox is for.
killerbot:
add the following includes :
#include <wx/dir.h>
the other one : from wx header :
#if wxABI_VERSION > 20601
// Unload resource from the given XML file (wildcards not allowed)
bool Unload(const wxString& filename);
#endif // wxABI_VERSION
are you using old wx ??
EDIT : the include fix has been committed
Navigation
[0] Message Index
[#] Next page
Go to full version