Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: workwind on October 18, 2006, 01:49:27 am

Title: classwizard plugin
Post by: workwind on October 18, 2006, 01:49:27 am
Hi,

I did some improvements on the classwizard plugin:
If you are interested I can send you the sourcecode

Regards,
Nils
Title: Re: classwizard plugin
Post by: mandrav on October 18, 2006, 09:06:08 am
Sure, send it this way (http://developer.berlios.de/patch/?func=addpatch&group_id=5358)...
Title: Re: classwizard plugin
Post by: workwind on October 18, 2006, 09:47:02 am
patch ID is 001568 (http://developer.berlios.de/patch/?func=detailpatch&patch_id=1568&group_id=5358) ;-)
Title: Re: classwizard plugin
Post by: MortenMacFly on October 18, 2006, 07:46:18 pm
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.
Title: Re: classwizard plugin
Post by: workwind on October 19, 2006, 06:48:01 pm
I wasn't able to reproduce, but did you experience any similar?
I had never such experience... ;-)

Quote
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)
Title: Re: classwizard plugin
Post by: MortenMacFly on October 20, 2006, 08:16:42 pm
001568 (http://developer.berlios.de/patch/?func=detailpatch&patch_id=1568&group_id=5358)
Applied in SVN (r3115). Thanks a lot! :-)
With regards, Morten.