Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Refactoring suggestions

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
diarrhio Posted - May 29 2007 : 07:18:22 AM
* Is it possible to have the "Create Implementation" function insert the implementation in the order it's found in the header file rather than appending to the end of the file? For instance, if I declare a method to a header file, somewhere above a method that already has an implementation, I want the implementation for the new method to appear "above" the other method.

* Is it possible for the Encapsulate Field function to:

  • Add the methods it generates to the .cpp file instead of the header
  • Prefix the method names with "get" and "set" (in lower case). I'm assuming this is probably already configurable somewhere... I just don't know where.


Thanks.
3   L A T E S T    R E P L I E S    (Newest First)
feline Posted - May 29 2007 : 12:06:25 PM
Ah the glorious British summer! Its traditional that it rains on a bank holiday you know
diarrhio Posted - May 29 2007 : 09:35:19 AM
Wonderful. Thanks!

BTW, for once I'm in the same timezone as you. I'm visiting Oxford this week. Was in London for the (rainy) bank holiday :)
feline Posted - May 29 2007 : 08:08:27 AM
Ordering of functions for Create Implementation, this is something we are looking into doing something about. VA ordering the functions automatically is hard, since doing this rather assumes that the header and cpp files are in the same order currently, and normally they are not.

For now the new VA Outline feature in 1555 is ideal for re-ordering your functions in a file. See here for details on enabling this beta feature:

http://forum.wholetomato.com/forum/topic.asp?TOPIC_ID=6149

Encapsulate Field, to change the formatting simply edit the "Refactor Encapsulate Field" Autotext entry
VA's refactoring operations are designed to be small and simple, so they just work without asking you any questions, and so you can chain them together how you want. So currently there is no way to tell Encapsulate Field to place the functions into the cpp file.

You might want to have a look at this discussion on using IDE macro's to control VA refactoring, which would allow you to create a macro to do this:

http://docs.wholetomato.com?W382

We are discussing some way to give people more control over VA refactoring, but this is still at the discussion stage currently.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000