About generating getters/setters...

General questions regarding the usage of CodeLite
Luxi
CodeLite Curious
Posts: 3
Joined: Fri Feb 08, 2013 5:00 pm
Genuine User: Yes
IDE Question: C++
Contact:

About generating getters/setters...

Post 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 ;)
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: About generating getters/setters...

Post by eranif »

I am not sure what you mean by this.
Separate them how? different files?
Or grouping them somehow?

Eran
Make sure you have read the HOW TO POST thread
Luxi
CodeLite Curious
Posts: 3
Joined: Fri Feb 08, 2013 5:00 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: About generating getters/setters...

Post 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 :)
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: About generating getters/setters...

Post 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
Make sure you have read the HOW TO POST thread
Luxi
CodeLite Curious
Posts: 3
Joined: Fri Feb 08, 2013 5:00 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: About generating getters/setters...

Post 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 ;)
Post Reply