Page 1 of 1

About generating getters/setters...

Posted: Fri Feb 08, 2013 5:03 pm
by Luxi
Hi!
I was wondering if there is a way to split the declaration and implementation when generating getters and setters for a class. I have been searching codelite settings for a while so I guess I will feel really stupid if that option exists :D

Btw, what a great IDE ;)

Re: About generating getters/setters...

Posted: Fri Feb 08, 2013 8:22 pm
by eranif
I am not sure what you mean by this.
Separate them how? different files?
Or grouping them somehow?

Eran

Re: About generating getters/setters...

Posted: Fri Feb 08, 2013 10:31 pm
by Luxi
Hi! I mean separate files, so declarations are in the header file and implementations in the source file.
Right now, when I use the «generate getters and setters» option I end up with both in the same file.

Thanks for your reply :)

Re: About generating getters/setters...

Posted: Fri Feb 08, 2013 10:46 pm
by eranif
You can't do that atm.
Please submit a feature request for this at sourceforge

You can generate getters/setters and by clicking on a getter you can choose to 'Move it' to another file from the context menu
"right click -> code generation refactoring - Move function implementation to..."

Eran

Re: About generating getters/setters...

Posted: Fri Feb 08, 2013 10:54 pm
by Luxi
Thx! Ok I will submit a request then. I didn`t think about using the refactoring feature, so thanks a bunch for your answer ;)