Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 Move All Implementations to Source File
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

himom
New Member

3 Posts

Posted - Jun 04 2012 :  2:24:11 PM  Show Profile  Reply with Quote
I often code new classes all in the .h file to get them working, then I create a .cpp later and have to move each implementation to the source file. It would be nice if I could do that in 1 click.

foxmuldr
Tomato Guru

USA
412 Posts

Posted - Jun 05 2012 :  3:50:40 PM  Show Profile  Reply with Quote
Would it be handy? Do you often move ALL implementations? I often leave simple setters and getters in the .h, and meatier functions in the .cpp.

Edited by - foxmuldr on Jun 05 2012 3:56:05 PM
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Jun 05 2012 :  10:49:56 PM  Show Profile  Reply with Quote
We are looking into adding the ability to run a refactoring command, including Move Implementation to Source File on several functions at once, selecting them via VA Outline, which would work well here. You could either select all of the functions, or just the ones you wanted to move:

case=7787

zen is the art of being at one with the two'ness
Go to Top of Page

himom
New Member

3 Posts

Posted - Jun 08 2012 :  12:52:43 AM  Show Profile  Reply with Quote
Yes, I often move every single function to the CPP, but if there was a way to select all or unselect some, that would be better.
Go to Top of Page

ricardog
Junior Member

Brazil
18 Posts

Posted - Jul 27 2012 :  5:08:41 PM  Show Profile  Reply with Quote
The inverse would also be good - move from source to header - by putting it after the class declaration and automatically adding the "inline" keyword to it.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Jul 27 2012 :  6:09:10 PM  Show Profile  Reply with Quote
We are considering adding a feature to move the implementation back into the header file:

case=10239

zen is the art of being at one with the two'ness
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Oct 29 2012 :  10:43:42 AM  Show Profile  Reply with Quote
Move Implementation to Source for an entire class is case=68102 and is implemented in build 1918
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Jul 18 2016 :  10:53:03 PM  Show Profile  Reply with Quote
case=10239 is implemented in build 2107.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000