Code::Blocks Forums
Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: workwind on October 18, 2006, 01:49:27 am
-
Hi,
I did some improvements on the classwizard plugin:
- supports namespaces
- subdirectory creation
- optional generation of implementation file
- using the default code .h and .cpp file for code generation
If you are interested I can send you the sourcecode
Regards,
Nils
-
Sure, send it this way (http://developer.berlios.de/patch/?func=addpatch&group_id=5358)...
-
patch ID is 001568 (http://developer.berlios.de/patch/?func=detailpatch&patch_id=1568&group_id=5358) ;-)
-
patch ID is 001568 (http://developer.berlios.de/patch/?func=detailpatch&patch_id=1568&group_id=5358) ;-)
I tried and it looks good, I had no objections. But: C::B one time froze completely when I did the following:
- create a c++ console project
- add a class named "myClass"
- constr. arguments: "int my_int"
- inheritance enabled, from "Base"
(everything else I left as it is).
I wasn't able to reproduce, but did you experience any similar?
With regards, Morten.
Edit: Ah, and I had forgotten: If you don't have a project, the plugin creates the files fine, but it doesn't ask for a folder where to create to and actually creates them in the folder where C::B is (in my case). This may not be what one expects. I would expect eighter: The plugin does not work without a project or (which I believe is better) the files are not being saved, just created.
-
I wasn't able to reproduce, but did you experience any similar?
I had never such experience... ;-)
Edit: Ah, and I had forgotten: If you don't have a project, the plugin creates the files fine, but it doesn't ask for a folder where to create to and actually creates them in the folder where C::B is (in my case). This may not be what one expects. I would expect eighter: The plugin does not work without a project or (which I believe is better) the files are not being saved, just created.
I updated the patch to allow the selection of the base directory. That works with and without a project. The new version is here: 001568 (http://developer.berlios.de/patch/?func=detailpatch&patch_id=1568&group_id=5358)
-
001568 (http://developer.berlios.de/patch/?func=detailpatch&patch_id=1568&group_id=5358)
Applied in SVN (r3115). Thanks a lot! :-)
With regards, Morten.