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
 Create Implementation features
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

drac
Senior Member

Germany
49 Posts

Posted - Feb 13 2009 :  10:45:51 AM  Show Profile  Reply with Quote
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


Edited by - drac on Feb 13 2009 11:52:23 AM

wlater
Senior Member

USA
35 Posts

Posted - Feb 13 2009 :  2:06:14 PM  Show Profile  Reply with Quote
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
Go to Top of Page

drac
Senior Member

Germany
49 Posts

Posted - Feb 13 2009 :  2:55:49 PM  Show Profile  Reply with Quote
Thanks for the tip!
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18755 Posts

Posted - Feb 16 2009 :  12:59:02 PM  Show Profile  Reply with Quote
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

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

sean
Whole Tomato Software

USA
2817 Posts

Posted - Feb 13 2015 :  8:18:22 PM  Show Profile  Reply with Quote
case=12454 is fixed in build 2059
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