News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

TraceBar plugin(bookmark+navigate)

Started by mmkider, January 09, 2009, 04:41:58 PM

Previous topic - Next topic

mmkider

Hi all:
I implement TraceBar for tracing source.
What is TraceBar?It is BookMark+Navigate.
I reface old BookMark plugin and add new feature(navigate).

http://forums.next.codeblocks.org/index.php/topic,9531.0.html

Now source code of tracebar is more clear than before.

See Image.


Best Regards.



[attachment deleted by admin]

[attachment deleted by admin]

ollydbg

I tested it.
What a great job you do! :D.

Especially, you add two button "Navigate Backward" and "Navigate Forward". They just work like I press "ALT + left Arrow" and "ALT + right Arrow".

Thank you for your effort!
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.

mmkider

#2
Quote from: ollydbg on January 10, 2009, 01:09:09 PM
I tested it.
What a great job you do! :D.

Especially, you add two button "Navigate Backward" and "Navigate Forward". They just work like I press "ALT + left Arrow" and "ALT + right Arrow".

Thank you for your effort!
ya
but how to set "ALT + left Arrow"  for toolbar without wxmenu ?
I have no idea.

ollydbg

C::B has internally implement this.
When I press" Alt + left Arrow", there is a small box prompt like this:

Then the caret will go to the last edit position.


[attachment deleted by admin]
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.

mmkider

Quote from: ollydbg on January 10, 2009, 02:02:21 PM
C::B has internally implement this.
When I press" Alt + left Arrow", there is a small box prompt like this:

Then the caret will go to the last edit position.


I know it.
But "For me" it is not easy to use.

mmkider

#5
Quote from: mmkider on January 12, 2009, 03:38:28 AM
Two problem:
1、GotoLine need be changed to GotoPos(but compare with line).
2、set range (+line, -line)for record (Navigate).

If I have some time, I wiil patch it.
I fix some issue and change compare order for speed.
But compare number of range is const(+4, -4 line).

ollydbg

I tested it, but I found there are two bookmarks menu on Edit. see the screen shot below.

[attachment deleted by admin]
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.

mmkider

#7
Quote from: ollydbg on January 12, 2009, 07:55:58 AM
I tested it, but I found there are two bookmarks menu on Edit. see the screen shot below.

Because In my computer I had deleted the bookmark code of codeblocks source.
and I add  bookmark menu in the tracebar.
  :?

mmkider

#8
Trace bar v0.4

Fixed - forward and backward capability is to lose efficacy for bookmark and navigate after editting the text.


ivanp

#9
Two problem:
1、GotoLine need be changed to GotoPos(but compare with line).
2、set range (+line, -line)for record (Navigate).

If I have some time, I wiil patch it.

_______________________________________________________
* removed non english content *
Jens

mmkider

Quote from: ivanp on January 19, 2009, 03:41:49 PM
Two problem:
1、GotoLine need be changed to GotoPos(but compare with line).
2、set range (+line, -line)for record (Navigate).

If I have some time, I wiil patch it.

_______________________________________________________
* removed non english content *
Jens
gone

bmk

Where can I obtain this plugin latest code?

mmkider

#12
Quote from: bmk on February 12, 2009, 10:04:37 AM
Where can I obtain this plugin latest code?
Scrolling your mouse slowly, you will find it.

:lol:

bmk

#13
I found compiled and source of this plugin.  :lol:
But, 2 more questions:
1. It can't generate TraceBar.zip at post-build, although my zip command work well in command shell.
2. With the dll and zip compiled, how can I register this plugin.
    I navigate to "Plugins->Manage Plugins-> Install New" but it ask for the *.cbplugin file that I haven't seen  in TraceBar project.

Thanks.

bmk

I pack the TraceBar.dll (built on my machine, if use yours CB will provide an version uncompatible error) and TracBar.zip into TraceBar.cbplugin zip file, then it can be loaded and navigate back and forth.

Thank you very much  :D