Author Topic: classwizard plugin  (Read 7284 times)

Offline workwind

  • Single posting newcomer
  • *
  • Posts: 8
classwizard plugin
« 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

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: classwizard plugin
« Reply #1 on: October 18, 2006, 09:06:08 am »
Sure, send it this way...
Be patient!
This bug will be fixed soon...

Offline workwind

  • Single posting newcomer
  • *
  • Posts: 8
Re: classwizard plugin
« Reply #2 on: October 18, 2006, 09:47:02 am »
patch ID is 001568 ;-)
« Last Edit: October 18, 2006, 01:11:30 pm by workwind »

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: classwizard plugin
« Reply #3 on: October 18, 2006, 07:46:18 pm »
patch ID is 001568 ;-)
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.
« Last Edit: October 18, 2006, 07:49:57 pm by MortenMacFly »
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline workwind

  • Single posting newcomer
  • *
  • Posts: 8
Re: classwizard plugin
« Reply #4 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

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: classwizard plugin
« Reply #5 on: October 20, 2006, 08:16:42 pm »
001568
Applied in SVN (r3115). Thanks a lot! :-)
With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ