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
 Cloning classes & implementing interfaces
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

pat
New Member

8 Posts

Posted - Mar 01 2007 :  06:09:34 AM  Show Profile  Reply with Quote
It would be nice, if VA refactoring would be able to "clone" existing classes like this:

class Original
{
int i;
public:
Original() i(0) {}
};

clone -> enter new name "Clone" ->

class Clone
{
int i;
public:
Clone() i(0) {}
};

VA should also clone the Header and CPP files. This might be heavy, because there can be multiple classes in one file in C++ :(

Another interesting feature would be to implement virtual base class members or whole interfaces of base classes. E.g. this is possible in Eclipse.

feline
Whole Tomato Software

United Kingdom
18943 Posts

Posted - Mar 01 2007 :  08:09:56 AM  Show Profile  Reply with Quote
It is unlikely we will try and clone classes any time soon, cloning the files especially brings all sorts of nasty complications with it.

Personally when I need to do this I either:
* copy / paste the class and then use the IDE's find and replace on a selection to rename the class
* copy / paste the files and then use VA's rename feature, limiting the rename to just the files I want to update


Implementing virtual base class members / interfaces, we are considering doing something like this in the future:

case=1505

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

support
Whole Tomato Software

5566 Posts

Posted - Jan 24 2011 :  4:04:47 PM  Show Profile  Reply with Quote
case=1505 is implemented in build 1840

Whole Tomato Software, Inc.
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