Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Create Implementation features

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
drac Posted - Feb 13 2009 : 10:45:51 AM
Hi,

I find Create Implementation feature very useful.

There are a few things I would like to point out:

1. It would be great if the position of the implemented function in
C++ should have the same position as in header:

Constructor();

void FooBar();

void Init();

When FooBar is implemented it's always at the end of the cpp file,
it would be nice to preserve the position it gives a sense of order,
niceness.

2. Ability to select more functions and then create implementations.

For example if you have COM interface IMediaSeeking (http://msdn.microsoft.com/en-us/library/dd407023(VS.85).aspx), it's easy to get the interface from a header file but then it's a pain to
select every function and then create implementation!

3. Please preserve the argument list.

For example:

void FooBar(bool foo, int bar);
would become:

void FooBar([ ]bool foo, int bar[ ])
{
}

I hate space after ( and before ), it makes the code have EARS
(my ears are just fine, I don't have a problem with Prince Charles - http://granitegrok.com/pix/PrinceCharles.jpg)

Cheers

4   L A T E S T    R E P L I E S    (Newest First)
sean Posted - Feb 13 2015 : 8:18:22 PM
case=12454 is fixed in build 2059
feline Posted - Feb 16 2009 : 12:59:02 PM
Point 1 is actually a hard problem in general, since we cannot assume that the two files are currently ordered the same, or that they contain the same number of functions. We are considering having VA place the implementation below the implementation of the preceding function, as a step towards this:

case=12454

For now you can use VA Outline to quickly and easily re-order the current file, either by drag and drop or by cut and paste.

Point 2, we are considering allowing you to select several functions at once in VA Outline and then trigger a refactoring command on all of them in one go:

case=7787
drac Posted - Feb 13 2009 : 2:55:49 PM
Thanks for the tip!
wlater Posted - Feb 13 2009 : 2:06:14 PM
You have control over number 3. Go to Edit Snippets and change the format of the "Refactor Create Implementation". The spaces by the parens are the way the snippet comes as default from Whole Tomato. You can tweak it to your own preferences. HTH

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