Author Topic: How can I come back when I use "go to implementation".  (Read 7259 times)

Offline huzhongshan

  • Multiple posting newcomer
  • *
  • Posts: 110
How can I come back when I use "go to implementation".
« on: January 06, 2011, 01:11:04 pm »
When I read the code , I use "go to implementation" to read the function code , but after that , I want to come back to original postion , Is it possible by using some easy way (like shortcut )?

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6035
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: How can I come back when I use "go to implementation".
« Reply #1 on: January 06, 2011, 01:32:01 pm »
menu->view->browse tracker->backward/forward ed.
or assign a shortcut to them.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline huzhongshan

  • Multiple posting newcomer
  • *
  • Posts: 110
Re: How can I come back when I use "go to implementation".
« Reply #2 on: January 06, 2011, 01:33:16 pm »
Thanks

Offline huzhongshan

  • Multiple posting newcomer
  • *
  • Posts: 110
Re: How can I come back when I use "go to implementation".
« Reply #3 on: January 07, 2011, 01:22:54 pm »
It doesnot work. I use go to implemention , but I cannot go back to the postion where I use "go to implemention" command.

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2808
Re: How can I come back when I use "go to implementation".
« Reply #4 on: January 07, 2011, 02:12:01 pm »
It doesnot work. I use go to implemention , but I cannot go back to the postion where I use "go to implemention" command.

Do you mean "Find implementation" ?

Doing a "Find implementation" in an .h file, then hitting Alt-backArrow takes me right back to the header file.

Note that use must add the Alt-backArrow with keybinder, else you'll get a list of editors instead.

Windows 7
svn svn build  rev 6907 (2011-01-02 12:27:03)   gcc 4.3.1 Windows/unicode - 32 bit


What's our OS, CodeBlocks version?

Please give us a step-by-step method to recreate this problem.

« Last Edit: January 07, 2011, 02:15:15 pm by Pecan »

Offline huzhongshan

  • Multiple posting newcomer
  • *
  • Posts: 110
Re: How can I come back when I use "go to implementation".
« Reply #5 on: January 08, 2011, 01:59:40 am »
What I mean is :

1 I use "find implemention" to go to the function code , it works .
2 After I read the function code , I want to go back to the position where I come from ( the position I use/trigger "find implemention" command, Is there some easy ways( like shortcut or menu command) to do such things?

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6035
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: How can I come back when I use "go to implementation".
« Reply #6 on: January 08, 2011, 02:45:02 am »
What I mean is :

1 I use "find implemention" to go to the function code , it works .
2 After I read the function code , I want to go back to the position where I come from ( the position I use/trigger "find implemention" command, Is there some easy ways( like shortcut or menu command) to do such things?
what does step2 means?
When you read the function, did you use the mouse to click somewhere?
If true, you need to press alt+leftarrow several times to go back the the position you desired.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7256
Re: How can I come back when I use "go to implementation".
« Reply #7 on: January 08, 2011, 09:04:42 am »
But you need the BrowseTracker plugin installed and enabled.
If you use the windows installer, not all plugins are enabled by default (in this case rerun the installer and chose to install all plugins you need this time).
On linux you probaly have to install the contrib-plugins package.

Offline huzhongshan

  • Multiple posting newcomer
  • *
  • Posts: 110
Re: How can I come back when I use "go to implementation".
« Reply #8 on: January 09, 2011, 06:33:55 am »
I'll try. I use windows version , and install 1005 then just download nightlybuild and extract to overwrite the old ones.

I press alt+<- , just a list of windows show up to let me choose one.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7256
Re: How can I come back when I use "go to implementation".
« Reply #9 on: January 09, 2011, 09:13:36 am »
I'll try. I use windows version , and install 1005 then just download nightlybuild and extract to overwrite the old ones.

I press alt+<- , just a list of windows show up to let me choose one.
Note that use must add the Alt-backArrow with keybinder, else you'll get a list of editors instead.

Please learn to read and understand the posts carefully.
If you do not understand, please ask what is meant.

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2808
Re: How can I come back when I use "go to implementation".
« Reply #10 on: January 09, 2011, 01:56:15 pm »
I'll try. I use windows version , and install 1005 then just download nightlybuild and extract to overwrite the old ones.

I press alt+<- , just a list of windows show up to let me choose one.

Since you extracted the nightly over CB ver 10.05, you might be using a nightly CB core with a ver 10.05 BrowseTracker plugin. Other plugins may also be affected (namely KeyBinder).

Make sure  that the BrowseTracker that came with the nightly is extracted as well.

It is not a good practice to overwrite the CB 10.05 core with the nightlies. It's just asking for trouble.

Extracting the nightly to a clean directory may prevent these problems.
  
« Last Edit: January 09, 2011, 02:01:53 pm by Pecan »