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
 Insert override
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Mordachai
Tomato Guru

USA
224 Posts

Posted - Sep 19 2016 :  11:27:47 AM  Show Profile  Reply with Quote
Currently - the context sensitive aspect of VS or VA (not sure who's providing this service) when I go to add an override function to a subclass initially displays the default arguments for the superclass's declaration.

e.g. I start typing `void OnContextMen` and by this time I see a "tooltip" showing "afx_msg void OnContextMenu(..." showing the correct args for that message handler (inherited from the superclass).

However, it disappears in another heart-beat, and I see no way to recover it. :'(

I want a way to say "Insert Override" and have it offer all methods that are inherited - whether virtual or not - so I can choose one and have it supply the correct return type and args (and name). And if it is a virtual, then of course it needs to add the 'override' keyword (I prefer NOT to see virtual keyword, since it's more than redundant: it's misleading at that point in modern C++).

So:

I start typing OnContex

and I either get a persistent and easy-to-use way to expand that to afx_msg void OnContextMenu... blah blah, OR, I simply right click inside the class declaration and choose "insert inherited method" [or whatever you end up calling it] and choose from a fly-out of all possible inherited members.

HUGE time saver over having to now lookup the inheritance tree and find a declaration for that and copy/paste and fix the override and etc. :D

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Sep 19 2016 :  7:31:01 PM  Show Profile  Reply with Quote
Have you tried Implement Interface / Virtual Methods?
https://docs.wholetomato.com/default.asp?W165

You need to click on the class name, not inside the class. Just trigger the refactoring context menu over the classname (alt+shift+Q for quick menu) and select Implement Virtual Methods from there. You can find other useful commands there based on the context you're triggering in, such as Adding the Missing Case statements to a switch after you add new enum items or Adding a missing include statement for a symbol.

Hope this helps.

Edited by - accord on Sep 19 2016 7:31:54 PM
Go to Top of Page

Mordachai
Tomato Guru

USA
224 Posts

Posted - Oct 06 2016 :  2:58:25 PM  Show Profile  Reply with Quote
Thanks accord. I'll try doing that.
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