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
 VA Outline Feature Request - show types
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

cwdrat
Junior Member

19 Posts

Posted - Apr 01 2008 :  12:21:32 PM  Show Profile  Reply with Quote
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
18943 Posts

Posted - Apr 03 2008 :  08:59:51 AM  Show Profile  Reply with Quote
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
Go to Top of Page

cwdrat
Junior Member

19 Posts

Posted - Apr 04 2008 :  1:57:54 PM  Show Profile  Reply with Quote
I can understand that argument. Thanks for the reply.
Go to Top of Page

znakeeye
Tomato Guru

379 Posts

Posted - Apr 07 2008 :  05:49:32 AM  Show Profile  Reply with Quote
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).
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18943 Posts

Posted - Apr 07 2008 :  3:26:40 PM  Show Profile  Reply with Quote
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
Go to Top of Page

znakeeye
Tomato Guru

379 Posts

Posted - Apr 29 2008 :  10:49:15 AM  Show Profile  Reply with Quote
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 :(
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18943 Posts

Posted - Apr 29 2008 :  12:28:16 PM  Show Profile  Reply with Quote
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
Go to Top of Page

Maxim
Ketchup Master

59 Posts

Posted - Apr 30 2008 :  08:01:58 AM  Show Profile  Reply with Quote
I see the classname:


Edited by - Maxim on Apr 30 2008 08:02:40 AM
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18943 Posts

Posted - Apr 30 2008 :  12:36:18 PM  Show Profile  Reply with Quote
*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
Go to Top of Page

znakeeye
Tomato Guru

379 Posts

Posted - May 09 2008 :  10:18:27 AM  Show Profile  Reply with Quote
Top priority please ;)
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18943 Posts

Posted - May 09 2008 :  11:10:19 AM  Show Profile  Reply with Quote
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
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Dec 01 2008 :  07:33:33 AM  Show Profile  Reply with Quote
case=13240 is implemented in build 1707
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