Author |
Topic |
|
MrJones4u
Ketchup Master
83 Posts |
Posted - Nov 22 2012 : 03:42:35 AM
|
Hello,
It would be, as far as I can say, really cool, if the protection level of class members and functions would also be shown when hovering over a member or function (and in the definition field).
Currently:
Suggestion:
cu, and keep the great work up! Michael
|
Edited by - MrJones4u on Nov 22 2012 06:11:42 AM |
|
MrJones4u
Ketchup Master
83 Posts |
Posted - Nov 22 2012 : 06:12:37 AM
|
and... possibly the feature to move a member or function from one protection level to another. |
|
|
feline
Whole Tomato Software
United Kingdom
19020 Posts |
Posted - Nov 23 2012 : 3:59:29 PM
|
If you place the caret into the function name, and look at the VA Context and Definition fields, normally at the top of the editor, the icon shown at the start of the Definition field, the right hand field, will show you if this function is public, protected or private, using the IDE standard icons.
Not quite the same as the tooltip, but hopefully helpful enough
For moving a function from one level to another, are you aware you can use VA Outline to quickly and easily reorder the items in a class, including moving a function from one access block to another?
http://www.wholetomato.com/products/features/vaoutline.asp |
zen is the art of being at one with the two'ness |
|
|
MrJones4u
Ketchup Master
83 Posts |
Posted - Nov 26 2012 : 07:17:41 AM
|
Hello, Thanks for the reply, I gave you suggestion a look into. For me the biggest hurdle is that I donG??t really us the VA Outline as it generally does not show me what I need to see and use most G?? the class hierarchy. But that is of course my personal issue. But when it comes to protection level the VA Outline is no big help either. If there more function or members than real-a-state you canG??t see the protection level as it is only shown at the top of the group and therefore out of sight a lot of times. And as a tool to refactor the protection level it fails in usability on classes with many members as you have to drag and scroll and canG??t see if you are heading the right direction to the desired protection level. Now, if there were refactoring menu items i.e. G?send to privateG?, G?send to publicG? etc. G?? that would be useful. Regards, Michael
|
|
|
feline
Whole Tomato Software
United Kingdom
19020 Posts |
Posted - Nov 27 2012 : 6:44:32 PM
|
For the current protection level, are you seeing the correct / expected icon in the VA Definition field?
http://www.wholetomato.com/products/features/vaNavigationBar.asp
You should see a purple cube for public functions, the purple cube with a yellow key for protected functions, and the purple cube with a silver padlock for private functions.
We are considering adding a refactoring command to move a function from one protection level to another, and you make a good case for why this is helpful in addition to VA Outline:
case=1094 |
zen is the art of being at one with the two'ness |
|
|
MrJones4u
Ketchup Master
83 Posts |
Posted - Nov 28 2012 : 02:42:11 AM
|
The VA Definition field does show the correct protection level when the function / member is clicked. In our case we are refactoring legacy code and the information in the hover popup (and I would prefere the word e.g. "private" not the icon - but that just me) would speed things up. |
|
|
feline
Whole Tomato Software
United Kingdom
19020 Posts |
Posted - Nov 28 2012 : 7:27:34 PM
|
This makes sense, I have put in a feature request for this to see what our developers make of it:
case=70906 |
zen is the art of being at one with the two'ness |
|
|
MrJones4u
Ketchup Master
83 Posts |
Posted - Dec 11 2012 : 07:41:28 AM
|
Oh... and now I just noticed one origin of my confusion when answering your Initial reply: the protection level is only visible in the VA outline, when the file you are editing is the header file (we are talking C++ here). Not only that, only those members which are visible in the file you are editing are displayed in the VA outline, which, in my opinion, renders the VA outline even more useless (feel sorry to say that). |
Edited by - MrJones4u on Dec 11 2012 07:48:44 AM |
|
|
feline
Whole Tomato Software
United Kingdom
19020 Posts |
|
|
Topic |
|