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
 Alt+G "add-on"
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

znakeeye
Tomato Guru

379 Posts

Posted - Jan 20 2008 :  6:34:22 PM  Show Profile  Reply with Quote
What do you do when you want to go to the header of class CMyClass? If you ask me, "Find Symbol" is not so useful in this case. VA Outline eats resources, so I have it disabled most of the time. So...

What I usually do is typing the darn class name in one of my source files (possibly checking it out), and then Alt+G to it. Is there a better way? If not, here is my idea:

If Alt+G is pressed (or any other suitable keyboard shortcut) when no symbol is selected, a simple "Go to symbol" dialog pops up where you type CMyClass<enter> and voil+?, you simulated Alt+G!

schoenherr
Tomato Guru

Germany
160 Posts

Posted - Jan 21 2008 :  02:06:11 AM  Show Profile  Reply with Quote
you can use "find symbols in workspace" shift-alt-s.
Go to Top of Page

znakeeye
Tomato Guru

379 Posts

Posted - Jan 21 2008 :  02:40:29 AM  Show Profile  Reply with Quote
It gives me way too many matches.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18991 Posts

Posted - Jan 21 2008 :  3:33:14 PM  Show Profile  Reply with Quote
What about the "Open File" dialog? Alt-Shift-O? That seems to do exactly what you want.

zen is the art of being at one with the two'ness
Go to Top of Page

znakeeye
Tomato Guru

379 Posts

Posted - Jan 22 2008 :  09:56:08 AM  Show Profile  Reply with Quote
What if I don't know where the class is? Like CWnd, CDialog, or similar. "Open File" is not the way to go.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18991 Posts

Posted - Jan 22 2008 :  8:50:15 PM  Show Profile  Reply with Quote
For classes that are not defined in your solution you will need to use Alt-g since they are not going to be listed in the Find Symbols dialog either.

Simulating alt-g with a dialog is going to run into some problems, since alt-g works on code, so it has context. It is designed to take into account things like "using namespace XXX"

zen is the art of being at one with the two'ness
Go to Top of Page

znakeeye
Tomato Guru

379 Posts

Posted - Jan 27 2008 :  3:48:42 PM  Show Profile  Reply with Quote
CWnd/CDialog was just an example. We have like 600 classes in our project, so using the symbol finder is a pain in the ass holes (pardon my Borat joke). This is like 5 minutes of coding:

No selection -> Alt+G -> Show edit box where you type the class name (known to VAX). Something like that...
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18991 Posts

Posted - Jan 28 2008 :  08:34:14 AM  Show Profile  Reply with Quote
Are you talking about VA understanding the current context of the caret?

Consider:

// spot one in file

using namespace std;

// spot two in file

these two locations are different, due to the using namespace line. Our parser is designed to try and work out your position in the current file, but once you are in a dialog you are no longer in the current file.

You may have noticed that sometimes there is a slight delay as you move through the file before things like the context and definition fields are updated.

Ignoring for the moment the problem of asking the parser "where am I?" you also have timing issues to consider.

Just because this sounds easy does not automatically mean that it is easy.

zen is the art of being at one with the two'ness
Go to Top of Page

znakeeye
Tomato Guru

379 Posts

Posted - Jan 28 2008 :  08:41:43 AM  Show Profile  Reply with Quote
Ok, you win :)
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