Author |
Topic  |
|
cwdrat
Junior Member
 
19 Posts |
Posted - Apr 01 2008 : 12:21:32 PM
|
I searched the forums a bit and couldn't find this requested already, so here goes...
The VA Outline shows the names of variables, functions, structs, etc. - but the only type information given is an icon distinguishing members from methods and showing access, etc, plus parameter types for function signatures. Why is the type of the variable or return type of the function not shown? I would even be content if just the textual representation of the type as declared were displayed (no fancy parsing of typedefs or macros, etc).
Example: I have a struct with a member called m_Age, which is a float. All the VA Outline shows is a blue box and the name m_Age - could it show "float m_Age" instead? This struct has a method called Update that takes some params and has return type void, but the outline only shows the parameter list. Could it display "void Update( ... )"? |
|
feline
Whole Tomato Software
    
United Kingdom
19177 Posts |
Posted - Apr 03 2008 : 08:59:51 AM
|
If you place focus into VA Outline and then hover the mouse over the items you get a tooltip that gives you more detailed information.
The problem with showing the types of variables and the return types of functions is long types. As soon as you start looking at types 20, 30, 40 characters long (easy with template types) then you have to make VA Outline very wide in order to actually see what function or variable each line contains.
VA Outline is designed to show you the structure / shape of a file, rather than all of the fine detail. |
zen is the art of being at one with the two'ness |
 |
|
cwdrat
Junior Member
 
19 Posts |
Posted - Apr 04 2008 : 1:57:54 PM
|
I can understand that argument. Thanks for the reply. |
 |
|
znakeeye
Tomato Guru
    
379 Posts |
Posted - Apr 07 2008 : 05:49:32 AM
|
Possible solution: CMyClass::Foo <void> CMyClass::Bar <int>
Still, I think feline's argument is weak. "CMyClass::" can easily be removed, yielding space for a return value (already requested in another thread). |
 |
|
feline
Whole Tomato Software
    
United Kingdom
19177 Posts |
Posted - Apr 07 2008 : 3:26:40 PM
|
Consider the function:
std::map< std::pair< LongStructureName, AnotherLongStructureName >, std::vector< AnotherLongStructureName > > GetNastyDataType()
I have written code like this, and there were good reasons for having types like that being passed around. Removing the class name is rather unlikely to make space for that return value. |
zen is the art of being at one with the two'ness |
 |
|
znakeeye
Tomato Guru
    
379 Posts |
Posted - Apr 29 2008 : 10:49:15 AM
|
Can you please add this in the next build?
"CMyClass::" can easily be removed
As it is now, the Outline window is totally bloated with class names :( |
 |
|
feline
Whole Tomato Software
    
United Kingdom
19177 Posts |
Posted - Apr 29 2008 : 12:28:16 PM
|
I am not sure I understand. Where are you seeing "CMyClass::" ?
If you are looking at a list of member functions for this class, they should be grouped under the class name, as a node, and the class name removed from each function. |
zen is the art of being at one with the two'ness |
 |
|
Maxim
Ketchup Master
   
59 Posts |
Posted - Apr 30 2008 : 08:01:58 AM
|
I see the classname:
 |
Edited by - Maxim on Apr 30 2008 08:02:40 AM |
 |
|
feline
Whole Tomato Software
    
United Kingdom
19177 Posts |
Posted - Apr 30 2008 : 12:36:18 PM
|
*oops* my mistake, I was looking at something else and got confused. We are considering an option to hide the class names in this situation:
case=13240 |
zen is the art of being at one with the two'ness |
 |
|
znakeeye
Tomato Guru
    
379 Posts |
Posted - May 09 2008 : 10:18:27 AM
|
Top priority please ;) |
 |
|
feline
Whole Tomato Software
    
United Kingdom
19177 Posts |
Posted - May 09 2008 : 11:10:19 AM
|
This is in our list of things to consider. Top priority is normally reserved for the IDE crashes, or something equally worrying. |
zen is the art of being at one with the two'ness |
 |
|
support
Whole Tomato Software
    
5566 Posts |
Posted - Dec 01 2008 : 07:33:33 AM
|
case=13240 is implemented in build 1707 |
 |
|
|
Topic  |
|