Author |
Topic |
|
znakeeye
Tomato Guru
379 Posts |
Posted - Sep 17 2008 : 08:53:19 AM
|
Usually I do this in my header:
void foo(); void bar(); void baz();
Now I have to click all these declarations and choose "Implement...", press Alt+O to get back to my darn header file and repeat...
Why not allow for multiple implementations at once? You select all, right-click and... voil+ |
|
feline
Whole Tomato Software
United Kingdom
19014 Posts |
Posted - Sep 17 2008 : 11:51:59 AM
|
We are looking into doing this via VA Outline:
case=7787
It is easy to think of problems with doing this in the code, via selecting a "block" of text. |
zen is the art of being at one with the two'ness |
|
|
GennadiyKorol
Ketchup Master
Israel
54 Posts |
Posted - Sep 17 2008 : 2:36:54 PM
|
Maybe add a menu item called "Implement all not implemented" or something like that.
This could go through all methods in the class and add implementation for all methods that were not yet implemented.
Or provide a pop up with check list of all unimplemented methods letting user to check the ones he wants to implement (or uncheck the ones he doesn't). |
Correctness might be a theoretical concept but incorrectness has practical implications. |
Edited by - GennadiyKorol on Sep 17 2008 3:14:29 PM |
|
|
feline
Whole Tomato Software
United Kingdom
19014 Posts |
Posted - Sep 17 2008 : 5:16:48 PM
|
Currently VA does not know which methods have been implemented and which have not. Overloaded functions and default parameters are the main problems here.
This is something we are looking into, but it is not a simple problem for VA to solve.
A list of checkboxes is one option, but this is likely to get irritating when you are working on an existing class. |
zen is the art of being at one with the two'ness |
|
|
znakeeye
Tomato Guru
379 Posts |
Posted - Sep 18 2008 : 06:10:13 AM
|
I would like an option to, via a shortcut key, implement a selected function without jumping to the cpp-file. Then I could do the above like this:
Ctr+Shift+I (or whatever), down Ctr+Shift+I (or whatever), down Ctr+Shift+I (or whatever), down Alt+O, Ctrl+End (overkill :P)
Doing this via the Outline window is indeed good, but that requires extra clicking. Something I try to avoid. Is the above a possible extension? |
|
|
feline
Whole Tomato Software
United Kingdom
19014 Posts |
Posted - Sep 18 2008 : 10:49:15 AM
|
You should be able to do something similar quite easily with an IDE macro:
http://docs.wholetomato.com?W382
You just want a macro to call Create Implementation followed by Alt-O |
zen is the art of being at one with the two'ness |
|
|
sean
Whole Tomato Software
USA
2817 Posts |
Posted - Oct 24 2012 : 3:58:04 PM
|
Build 1912 supports mass Create Implementation. |
|
|
|
Topic |
|