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
 Technical Support
 Customize Refactoring Visual Assist X
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

mhofmann
Starting Member

1 Posts

Posted - Jun 06 2007 :  06:11:39 AM  Show Profile  Reply with Quote
Hello,

I have to question about to customize Visual Assist.

If I have a member variable in my header file and press the button "Encapsulate Field" can I direct Visual Assist that it should use Get and Set as prefix and that it should write it to the implementation file?

The other point is "Create Declaration". Can I direct Visual Assist to remove the class name in the declaration (void NameOfTheClass::MethodName() )

Thank you in advance,
Markus

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Jun 06 2007 :  09:09:43 AM  Show Profile  Reply with Quote
For Encapsulate Field, to change the format just edit the autotext entry "Refactor Encapsulate Field" to have the format you want.

http://www.wholetomato.com/products/features/encapsulateField.asp

Currently there is no way to tell VA to put the newly created functions into the cpp file, but we are considering some facility for this. For now you could look into IDE macro's to do this:

http://docs.wholetomato.com?W382


The class name being left there with Create Declaration, that sounds like a bug. Are you using namespaces?
Would you be able to post a short sample piece of code, showing the problem?

zen is the art of being at one with the two'ness
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