Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: Pecan on June 05, 2007, 11:23:22 pm

Title: BrowseTracker plugin
Post by: Pecan on June 05, 2007, 11:23:22 pm
// ---------------------------
//  Browse Tracker
// ---------------------------

BrowseTracker is a small CodeBlocks plugin to browse back and forth to recently activated CodeBlocks editors.

It keeps a 20 slot history of recently activated editors.

It uses the Alt-Left and Alt-Right command keys to move through the editor stack in the order in which they were activated.

For convienence there is a menu item at the bottom of the CodeBlocks Main Menu/View that allows you to clear the history stack.


http://www.savefile.com/files/783621
 (http://www.savefile.com/files/783621)

The file above contains all source and .cbplugin files for both MSW and unix.

To install the plugin:

You may have to restart CodeBlocks if there were pre-existing editors open during the install.


Title: Re: BrowseTracker plugin
Post by: MortenMacFly on June 05, 2007, 11:59:10 pm
I guess I'm just too blind to see: What's the difference to enabling "Use smart tag switching scheme" (or was it "Use drop-down list" in Settings -> Environment -> Notebooks appearance and then pressing CTRL + TAB?!
With regards, Morten.
Title: Re: BrowseTracker plugin
Post by: Pecan on June 06, 2007, 12:04:20 am
I guess I'm just too blind to see: What's the difference to enabling "Use smart tag switching scheme" (or was it "Use drop-down list" in Settings -> Environment -> Notebooks appearance and then pressing CTRL + TAB?!
With regards, Morten.

The smart tabs just switches back and forth between the last two activated editors with a Ctrl-tab.

To get to the next editor you have to remember to hit Ctrl-tab-tab. for the next Ctrl-tab-tab-tab; then the next is Ctrl-tab-tab-tab-tab . And the list gets rearranged each time.

Smart tabs records the editors in the order in which they appear on the notebook tabs. Not the way they were activated by the user.

BrowseTracker keeps a record of the order in which they were activated by the USER. Like an internet browser. And it contains ONLY the editors activated by the user, not the complete notebook of editors.

Lets say you have a project open and you've activated two editors. You then open CodeBlock.cbp. Now smart tabs is full of tab entries, while BrowseTracker contains only the two.

One Alt-Left, and you're back where want to be.

Lets say you search-in-files for "wxTree", then activate an editor, then search for "wxPopup". See what you want to see, then with one Alt-Left, you're back at "wxTree". With another Alt-Left, you're back at your own code.

You can't do that with Ctrl-Tab unless you have a steel-trap memory.




Title: Re: BrowseTracker plugin
Post by: MortenMacFly on June 06, 2007, 07:28:39 am
You can't do that with Ctrl-Tab unless you have a steel-trap memory.
Alright! :D Thanks for the explanation - I had only two files open so -in fact- I have been blind. ;-)
With regards, Morten.
Title: Re: BrowseTracker plugin
Post by: dje on June 06, 2007, 09:29:52 pm
Hi Pecan !

With SVN 4051 a 4066, a SDK version problem happens.
Code
[21:26:43.515]: ERROR: C:\DevSofts\CodeBlocks/share/codeblocks/plugins/BrowseTracker.dll: not loaded (missing symbols?)

What version do you use ?

Dje
Title: Re: BrowseTracker plugin
Post by: Pecan on June 06, 2007, 11:07:19 pm
Hi Pecan !

With SVN 4051 a 4066, a SDK version problem happens.
Code
[21:26:43.515]: ERROR: C:\DevSofts\CodeBlocks/share/codeblocks/plugins/BrowseTracker.dll: not loaded (missing symbols?)

What version do you use ?

Dje

Im some versions behind. I'll re-compile this evening.

Thanks

But, also, the zip file contains the source and .cbp projects.
So you don't have to wait for me.
Title: Re: BrowseTracker plugin
Post by: dje on June 06, 2007, 11:34:27 pm
Quote
But, also, the zip file contains the source and .cbp projects.
So you don't have to wait for me.

I know but i'm looking for time ! And the little I have goes to the toolbar integration for the ThreadSearch plugin.

Nevertheless, I have the same problem building it in release and debug mode with SVN 4066
It works !

Dje
Title: Re: BrowseTracker plugin
Post by: Pecan on June 07, 2007, 12:34:15 am
// ---------------------------
//  Browse Tracker
// ---------------------------

BrowseTracker is a small CodeBlocks plugin to browse back and forth to recently activated CodeBlocks editors.

It keeps a 20 slot history of recently activated editors.

It uses the Alt-Left and Alt-Right command keys to move through the editor stack in the order in which they were activated.

For convienence there is a menu item at the bottom of the CodeBlocks Main Menu/View that allows you to clear the history stack.

Updated for SVN 4067


http://www.savefile.com/files/786712
 (http://www.savefile.com/files/786712)

The file above contains all source and .cbplugin files for both MSW and unix.

To install the plugin:

You may have to restart CodeBlocks if there were pre-existing editors open during the install.



Title: Re: BrowseTracker plugin
Post by: mariocup on June 07, 2007, 01:40:06 pm
Hi Pecan,

thanks for the great plugin. Some time ago I asked for that feature and now it is available. Cool :D

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

Some editors like vi, emacs, Textpad etc. have different buffer for copy and paste or a clipboard history. I think the same mechanism of browsetracker could be used to implement such a clipboard history. This is useful if you want to rename different variables in your source code. What do you think about that?

Bye,

Mario
Title: Re: BrowseTracker plugin
Post by: Pecan on June 07, 2007, 02:54:43 pm
...
Some editors like vi, emacs, Textpad etc. have different buffer for copy and paste or a clipboard history. I think the same mechanism of browsetracker could be used to implement such a clipboard history.
...

True... But there are so many of these nice little "tray" programs that do just that. And they arn't limited to a single program.
Title: Re: BrowseTracker plugin
Post by: dje on June 07, 2007, 09:30:29 pm
Hi Pecan !

Did you intentionnally forget the Announcement for plugins/patches (http://wiki.codeblocks.org/index.php?title=Announcement_for_plugins/patches) page  :?:

Dje
Title: Re: BrowseTracker plugin
Post by: Pecan on June 07, 2007, 09:34:01 pm
Hi Pecan !

Did you intentionnally forget the Announcement for plugins/patches (http://wiki.codeblocks.org/index.php?title=Announcement_for_plugins/patches) page  :?:

Dje

No, not intentionally. Just naturally.
Title: Re: BrowseTracker plugin
Post by: tiwag on July 03, 2007, 11:36:48 am
Hello Pecan

thanks for this fine plugin.

what do you think about to extend your plugin in order to save and browse the history
of all recent position(s) in all files even when the recent position(s) were in the same file,
e.g. when a Find Next/Previous , or Goto Line Number etc. were done before.

brgds, tiwag
Title: Re: BrowseTracker plugin
Post by: rjmyst3 on July 03, 2007, 04:10:19 pm
Hello Pecan

thanks for this fine plugin.

what do you think about to extend your plugin in order to save and browse the history
of all recent position(s) in all files even when the recent position(s) were in the same file,
e.g. when a Find Next/Previous , or Goto Line Number etc. were done before.

brgds, tiwag

I really like that feature in other editors, please consider it.  :)
Title: Re: BrowseTracker plugin
Post by: Pecan on July 03, 2007, 08:17:55 pm
Hello Pecan

thanks for this fine plugin.

what do you think about to extend your plugin in order to save and browse the history
of all recent position(s) in all files even when the recent position(s) were in the same file,
e.g. when a Find Next/Previous , or Goto Line Number etc. were done before.

brgds, tiwag

I really like that feature in other editors, please consider it.  :)

Ok, I'm game.

Any ideas on how to impement it?

How would you know when to  record a position in the queue? What actions are meaningful and which are trivial?

Title: Re: BrowseTracker plugin
Post by: tiwag on July 03, 2007, 08:36:03 pm
hello Pecan

ok, starting collecting ideas ...

i would think that every jump to any code location should be recorded,
which wasn't done by the cursor keys or page up/down and begin/end.

i.e.
* all kind of Find commands: Find, Find Next/Previous, Find in Files, ThreadSearch find, ...
* movement by  jump to bookmarks
* changing active editor file: editor tab, opened files list, project files, ...

usr interface
* Alt-Left/Right could present the last Browsetracker files-list (as already implemented)
* Alt-Up/Down jumps in the History of locations (new)

if codecompletion was enabled, the names from the symbol-browser could be stored too
and shown in the Browsetracker files-list as sub-list to each file

better stopping now  :P

brgds, tiwag
Title: Re: BrowseTracker plugin
Post by: Pecan on July 22, 2007, 10:13:06 pm
BrowseTracker re-compiled for svn 4261 to avoid missing symbols and turn off log.

http://wiki.codeblocks.org/index.php?title=BrowseTracker_plugin
Title: Re: BrowseTracker plugin
Post by: eranif on July 22, 2007, 10:28:55 pm
Hi,

After reading this post (the first post specially), I noticed that there is an actual an incomplete functionality in the wxFlatNotebook smart tabbing - which only stores the last 2 editors (kinda sux.  :D).

So, I updated wxFlatNotebook's smart tabbing so it will keeps an *unlimited* stack of recently visited tabs.

Due to the above change, the following functionality was improved/added:
- closing a tab, will cause wxFNB to select the previously visited tab (if this tab was already closed, it will select the one before it, and so on)
- Ctrl+tab/Ctrl+PgDn/Up (navigating between tabs) - will offer the list of tabs in orders they were visited.

-Eran
Title: Re: BrowseTracker plugin
Post by: MortenMacFly on July 22, 2007, 10:50:40 pm
Hi Eran,
thanks for these modifications! :-)
- Ctrl+PgDn/Up (navigating between tabs)
Anyway, is this customisable somehow? Because this functionality is (within IDE's) often used to switch to the previous / next method in a file. This includes C::B and e.g. Visual Studio.
With regards, Morten.
Title: Re: BrowseTracker plugin
Post by: eranif on July 22, 2007, 10:56:23 pm
Well,

It is not hard coded.

I am capturing OnNavigationKey event
Code
void wxFlatNotebook::OnNavigationKey(wxNavigationKeyEvent& event)

which seems to react for these two combinations (Ctrl + PgUp/Dn & Ctr+Tab+(Shift)), so I guess this comes from the system settings, but I really dont know from where or how to change this.

-Eran
Title: Re: BrowseTracker plugin
Post by: MortenMacFly on July 23, 2007, 10:10:54 am
I am capturing OnNavigationKey event
Code
void wxFlatNotebook::OnNavigationKey(wxNavigationKeyEvent& event)

which seems to react for these two combinations (Ctrl + PgUp/Dn & Ctr+Tab+(Shift)), so I guess this comes from the system settings, but I really dont know from where or how to change this.
Ah - ok... good to know. At least that's the starting point for further "research"... ;-) Thanks!
Title: Re: BrowseTracker plugin
Post by: Pecan on July 23, 2007, 01:38:39 pm
I am capturing OnNavigationKey event
Code
void wxFlatNotebook::OnNavigationKey(wxNavigationKeyEvent& event)

which seems to react for these two combinations (Ctrl + PgUp/Dn & Ctr+Tab+(Shift)), so I guess this comes from the system settings, but I really dont know from where or how to change this.
Ah - ok... good to know. At least that's the starting point for further "research"... ;-) Thanks!

http://developer.berlios.de/bugs/?func=detailbug&bug_id=11348&group_id=5358

That are actually defined by the OS as the "minor control navigation keys". They are sent to wxControlContainer, and from there to any class using the navigation event.
Title: Re: BrowseTracker plugin
Post by: MortenMacFly on July 23, 2007, 02:13:58 pm
http://developer.berlios.de/bugs/?func=detailbug&bug_id=11348&group_id=5358
That are actually defined by the OS as the "minor control navigation keys". They are sent to wxControlContainer, and from there to any class using the navigation event.
Thanks for that info. Well, we have a conflict now: Two functionalities fight for a hotkey. Which one is right? Both has to do with navigation. The pro for wxFNB is that it's "wxWidgets native" then, the pro for jumping to next/previous method is being compatible with major other IDE's (like Visual Studio). Which do we want?
With regards, Morten.
Ps: Can the keybinder plugin handle any re-association?! (I guess no.)
Title: Re: BrowseTracker plugin
Post by: Pecan on July 23, 2007, 02:52:00 pm
Ps: Can the keybinder plugin handle any re-association?! (I guess no.)

If a plugin changes a keybinding on the menu items, keybinder will recognize and record it withing 15 seconds.

But....

Since wxFlatNotebook is invoked before the plugins, it owns the navigation keys first. Since the OS hands it off to the navigation events.

Since the CC plugin gets invoked later...
CC could then (as it does now) intercept the wxEVT_NAVIGATION_KEY if an option box is checked.

But the user will have to give up the OS "minor navigation control keys".
It seems Visual Studio users find that acceptable.


When in doubt, give the user the option.
Title: Re: BrowseTracker plugin
Post by: MortenMacFly on July 23, 2007, 03:34:55 pm
CC could then (as it does now) intercept the wxEVT_NAVIGATION_KEY if an option box is checked.
It can't really. I have added a listener to this event in CC and it never gets called. This is because simply wxFNB "steals" this event already. I didn't realise this until now as I have switched to wx28 (in wx26 this worked properly). Now the CTRL+PGUP/PGDOWN simply is ignored for CC. This very much deceases my productivity... :-(
I guess we *have* to think either of making this optional in both, wxFNB and CC (which is a bad idea IMHO) or disabling this functionality in on of both and enabling it in the other (which is bad, too) or change the hotkeys for CC or wxFNB.
For now I have disabled the Event in wxFNB (for me only) to be able to "method jump" again... But what makes me wonder: Why is it actually woiring in wx26? Did that mean the the event interception of wxFNB was ignored there?!
With regards, Morten.
Title: Re: BrowseTracker plugin
Post by: MortenMacFly on July 23, 2007, 03:43:15 pm
Now the CTRL+PGUP/PGDOWN simply is ignored for CC. This very much deceases my productivity... :-(
Aaargh! I figured out why that was. I have switched from wx26 to wx28 today and (somehow) all the keybinder associations were broken. Thus suddenly the CTRL+P combination was assigned for both: Jump to previous and next method. I have deleted the keybinder config file and it works again. Anyway all the rest I mentioned is true.
BTW: Should we start a new thread on that topic? This has not very much to do with the BrowserPlugin meanwhile...
With regards, Morten.
Title: Re: BrowseTracker plugin
Post by: eranif on July 23, 2007, 04:05:35 pm
Try to add event.Skip() at the end of the OnNavigationKey() of wxFNB.

Eran
Title: Re: BrowseTracker plugin
Post by: killerbot on July 23, 2007, 05:42:34 pm
Try to add event.Skip() at the end of the OnNavigationKey() of wxFNB.

Eran
will do that.
I hope this week to upgrade to your latest version of wxFBN, Eranif.
Any special things to consider ?
Title: Re: BrowseTracker plugin
Post by: eranif on July 23, 2007, 05:49:50 pm
Quote from: Killerbot
Any special things to consider ?
- If you mean in build process, you should try and built it with 2.8 & 2.6 - I myself uses 2.8 so I am not sure if I didn't break 2.6 builds (for example, wxRect::Contains() vs wxRect::Iside(), I attended theses issues, but still)
- The main reason to switch to the next version, is the new theme (wxFNB_FF2), the property dialog and couple of bug fixes.

Eran


Title: Re: BrowseTracker plugin
Post by: killerbot on July 23, 2007, 07:17:11 pm
@Eran :

2 changes I made to your sources (compile step) :

renderer.cpp : line 23 : regPts[9] is NOT used.  (I didn't touch th comment just above it )

wxFlatNotebook.cpp : line 127 : signed/unsigned comp warning

if(m_iActivePage > (int)page || (int)page >= m_pagesInfoVec.Count())

becomes

if(m_iActivePage > (int)page || (int)page >= (int)(m_pagesInfoVec.Count()))


CB builds fine (first testing on windows), now time for the tests


moving to another dedicated topic --> negative side effects


Title: Re: BrowseTracker plugin
Post by: MortenMacFly on July 23, 2007, 09:26:11 pm
Try to add event.Skip() at the end of the OnNavigationKey() of wxFNB.
This is in trunk now, nice.

Unfortunately this doesn't really fix the issue here: It makes no sense if this key-combination is used for both: a) to switch to another notebook and after that b) to jump to another method. So still: What's the most convenient way to setup? IMHO one of both parties (CC or wxFNB) needs to change this key association. I personally vote for wxFNB as I believe due to Visual Studio users are more into jumping to the next/previous method. But that's just me and I could live with the other way round, too (I would change that on my personal copy then). What about the other devs? Any thoughts/preferences?
With regards, Morten.
Ps.: Maybe I should start a poll - never did that before... ;-)
Title: Re: BrowseTracker plugin
Post by: Pecan on July 28, 2007, 10:22:24 pm
BrowseTracker re-compiled for SVN 4332.

Fixes for CB installation of wxFlatNotebook 2.2

http://wiki.codeblocks.org/index.php?title=BrowseTracker_plugin
Title: Re: BrowseTracker plugin
Post by: Pecan on August 02, 2007, 11:10:12 pm
BrowseTracker re-compiled for Linux wxGTK2.8.4.

Version  0.1.10 2007/08/2
- fixes for editor tracking with wxFlatNotebook 2.2 on Linux
- fix for non-focused selection dialog in wxGTK284


http://wiki.codeblocks.org/index.php?title=BrowseTracker_plugin
Title: Re: BrowseTracker plugin
Post by: mariocup on August 29, 2007, 02:47:48 pm
Hi,

I can not build BrowseTracker Plugin with the current svn version, as the function GetAppWindow()->GetMenuBar issues an compiler error. If I include wx/frame.h and change the line to GetAppFrame()->GetMenuBar I get different errors.
What modification do I need to make the plugin work with the current release?

Title: Re: BrowseTracker plugin
Post by: Howard on August 29, 2007, 09:40:33 pm
This worked for me.

For BrowseTracker.cpp OnAttach()
 
     // initialize version and logging
    ////m_pAppWin  = Manager::Get()->GetAppWindow();
    ////m_pMenuBar = Manager::Get()->GetAppWindow()->GetMenuBar();
    m_pAppWin  = wxTheApp->GetTopWindow();
    m_pMenuBar = ((wxFrame*)m_pAppWin)->GetMenuBar();

 
For OnUpdateUI(wxUpdateUIEvent& event)
 // ----------------------------------------------------------------------------
 {
    ////wxMenuBar* pbar = Manager::Get()->GetAppWindow()->GetMenuBar();
    ////wxUnusedVar(pbar);
     event.Skip();
 }
Title: Re: BrowseTracker plugin
Post by: tiwag on September 04, 2007, 04:06:04 pm
BrowseTracker re-compiled for Linux wxGTK2.8.4.

Version  0.1.10 2007/08/2
- fixes for editor tracking with wxFlatNotebook 2.2 on Linux
- fix for non-focused selection dialog in wxGTK284


http://wiki.codeblocks.org/index.php?title=BrowseTracker_plugin

hi pecan


where can i dl the actual sources ?
your dl-link from the wiki doesnt exist any more (at least i get an error)
btw i generally HATE filehosters  :P

would you mind to put browsetracker into svn ?
you can easily open a project for it at berlios

brgds
tiwag
Title: Re: BrowseTracker plugin
Post by: Pecan on November 27, 2007, 10:06:48 pm
BrowseTracker
Version 1.2.4 2007/11/30

BrowseTracker is a small CodeBlocks plugin to browse back and forth to recently activated CodeBlocks editors.

It keeps a 20 slot history of recently activated editors.

It uses the Alt-Left and Alt-Right command keys to move through the editor stack in the order in which they were activated.

For convienence there is a menu item at the bottom of the CodeBlocks Main Menu/View that allows you to clear the history stack.

For each active editor, BrowseTracker memorizes the location of mouse clicks (one per page). The user browses to previous locations via the Alt-Up and Alt-Down keys.

Memorizing multiple locations per page can be forced with a Ctrl+Left-Mouse click.


Updated 2007/11/30 Version 1.2.4
http://www.savefile.com/files/1232644


The file above contains all source and .cbplugin files for both MSW and unix.

To install the plugin:

   * Unzip the downloaded file.
   * Close all active CodeBlocks projects
   * Use the CodeBlocks installer at
     MainMenu/Plugins/Manage Plugins.../Install New
   * Navigate to the location you unzipped the file above.
   * Double click BrowseTracker.cbplugin for MSWindows
   * Double click libBrowseTracker.cbplugin for unix


You may have to restart CodeBlocks if there were pre-existing editors open during the install.

If CodeBlocks whines about SDK version or Symbol mismatches, the zip file contains the .cbp project files necessary to compile the source.
Title: Re: BrowseTracker plugin
Post by: kisoft on November 30, 2007, 10:19:34 am
ver 1.2.3 content file "version.cpp" vs "Version.cpp" into ver 1.2.1.
browsetracker-Lmsw.cbp content:
Code
<Unit filename="Version.cpp" />
Analogically browsetracker-Lunix.cbp
Check filecase, please.

Good luck!
Title: Re: BrowseTracker plugin
Post by: Pecan on November 30, 2007, 03:44:44 pm
BrowseTracker 1.2.5 2007/12/01
http://cbbrowsetracker.googlecode.com/files/cbBrowseTracker125.zip
Thank you kisoft.
Title: Re: BrowseTracker plugin
Post by: Pecan on December 04, 2007, 11:31:13 pm
BrowseTracker 1.2.15 2007/12/4
http://code.google.com/p/cbbrowsetracker/
http://wiki.codeblocks.org/index.php?title=BrowseTracker_plugin

  commit  1.2.5 2007/11/30
 4) correct case of some filenames
 5) Add menu items "Set BrowseMark", "Clear BrowseMark"
 ----------------------------------------------------------------------------
  commit  1.2.15 2007/12/4
 6) remove redundancy of initial editor BrowseMark
 7) record "previous position" forward; allowing easy copy/paste operations
 8 ) add "Clear All BrowseMarks" menu item for a single editor
 9) don't show navigation dlg when no active cbEditors
 11) Clear previous marks on line when setting a new one (unless Ctrl held)
 12) when current browsemark off screen, go to "current", not "previous/next"
 13) save BrowseMarks in circular queue. More understandable interface.
 14) switch Ctrl-LeftMouse click to delete browse marks on a source line.
 15) allow multiple browse marks on page, but only one per line
Title: Re: BrowseTracker plugin
Post by: kisoft on December 05, 2007, 07:28:51 am
BrowseTracker 1.2.15 2007/12/4
http://code.google.com/p/cbbrowsetracker/
Thank you for repository. More usable for me.

Wait bug reports ;) I have no time for full testing, but I use your plugin at times.

Good luck!
Title: Re: BrowseTracker plugin
Post by: Pecan on December 09, 2007, 01:18:00 am
BrowseTracker 1.2.24 2007/12/8
http://code.google.com/p/cbbrowsetracker/
http://wiki.codeblocks.org/index.php?title=BrowseTracker_plugin

Commit 1.2.24 2007/12/8
 16) ignore recording BrowseMarks on duplicate editor activations eg. activations from double clicking search results panel
 17) fixed GetCurrentScreenPositions() when doc less than screen size
 18) honor WXK_RETURN to dismiss selector dialog
 19) honor WXK_RETURN to dismiss wxListBox in dialog
 20) convert editor pointers to circular queue
 21) compress active browsed editor array for better availability
 22) correct active editor order when using selection dlg
 23) fix index overflow crash in BrowseMarks.cpp::ClearMarks()
 24) implement visible browseMarks as "..."

Title: Re: BrowseTracker plugin
Post by: Pecan on December 09, 2007, 08:12:33 pm
BrowseTracker 1.2.29 2007/12/9
http://code.google.com/p/cbbrowsetracker/
http://wiki.codeblocks.org/index.php?title=BrowseTracker_plugin

Commit  1.2.29 2007/12/9
 25) add sort and "Sort BrowseMarks" menu  command
 26) On ClearAllMarkers(), tell scintilla to also clear visible BrowseMarks.
 27) shadow scintilla BrowseMarks when lines added/deleted; keeps marks in user set order
 28) append BrowseTracker menu to the context popup menu
 29) remove OnEditorActivated() code causing linux to re-set deleted markers
Title: Re: BrowseTracker plugin
Post by: krgh on December 10, 2007, 03:25:31 am
Hi,

    I am using Codeblocks snapshot version CB_20071206_rev4711_win32 with mingwm10_gcc421 and wxmsw28u_gcc_cb_wx287. whenever i try to install BrowseTracker for CB i get below mentioned error and it fails to Load. Sorry if this is a repeated question. i use CB to work on ARM Compillers but this doesnt allow me to recompile the source. Please let me know how to recompile the code with some other toolchain.

C:\Editors\Code Blocks/share/codeblocks/plugins/BrowseTracker.dll: not loaded (missing symbols?)

The same also happens to me with Threadsearch Plugin

TIA

Regards
Gururaja
Title: Re: BrowseTracker plugin
Post by: Pecan on December 10, 2007, 04:47:07 am
Hi,

    I am using Codeblocks snapshot version CB_20071206_rev4711_win32 with mingwm10_gcc421 and wxmsw28u_gcc_cb_wx287. whenever i try to install BrowseTracker for CB i get below mentioned error and it fails to Load. Sorry if this is a repeated question. i use CB to work on ARM Compillers but this doesnt allow me to recompile the source. Please let me know how to recompile the code with some other toolchain.

C:\Editors\Code Blocks/share/codeblocks/plugins/BrowseTracker.dll: not loaded (missing symbols?)

The same also happens to me with Threadsearch Plugin

TIA

Regards
Gururaja

I understand your problem. It means I need to include a .cbplugin for the nightly build in the BrowseTracker download zip file.

I cannot do this for each nightly build as it's a hugh time consuming effort to download/build/test for both windows & linux nightlies. But I'll try to link with the current nightlies for each release of BrowseTracker.

BrowseTracker can be compiled with the same tool chain used to compile CodeBlocks itself. The zip file contains the necessary .cbp files.

Thanks for your report.


Title: Re: BrowseTracker plugin
Post by: Pecan on December 16, 2007, 11:06:59 pm
BrowseTracker 1.2.44 2007/12/16
http://code.google.com/p/cbbrowsetracker/
http://wiki.codeblocks.org/index.php?title=BrowseTracker_plugin

Summay of changes:

Download zip file contains .cbplugin(s) for Nightly 4734.

Commit  1.2.44 2007/12/16
 30) Ctrl+LeftMouse click on non-marked line clears *all* markers;
       Ctrl+LeftMouse click on marked line clears the line marker;
 31) Added BrowseTracker ProjectData class
 32) Added BrowseTrackerLayout class
 33) Fixed: Crash when no project and file opened at StartUp
 34) Persistent Browse_Marks via Load/Save layout file.
 35) Restore BrowseMarks when a previously active editor    closed/reopened
 36) Toggle BrowseMark with LeftMouseClick
 37) Convert BookMarks class to use full file names as index to save
       Browse/Book marks of unactivated files in project
 39) Persistent Book marks via Load/Save Layout file  "<projectName>.bmarks"
 39) Fix: Browse/Book marks not saved when fileShortName used
 40) Save Browse/Book marks when CB exited w/o closing projects
 41) Ignore Browse/Book marks for files outside projects in EVT_EDITOR_CLOSE
 42) Mouse must be down 250 millisecs (1/4 sec) to toggle BrowseMark. Better control.
 43) Ignore Left-Double-clicks that reads like a long left click.
 44) Fix non-pch includes for linux
Title: Re: BrowseTracker plugin
Post by: MortenMacFly on December 17, 2007, 09:44:12 am
BrowseTracker 1.2.44 2007/12/16
I used BT the first time today but found a nasty issue in the version:
- open a workspace (project)
- open *one* file in a tab
- right-click in the source code -> select "BrowseTracker" -> "Backward Ed"

--> Result: An empty BT window opens that cannot be clicked away -> clicking anywhere does not help, ESC does not help -> the only way to get rid of this window it two times ALT+TAB (switching to another app and returning to C::B). I guess this can be considered as bug. ;-)

With regards, Morten.
Title: Re: BrowseTracker plugin
Post by: Pecan on December 17, 2007, 02:11:51 pm
BrowseTracker 1.2.44 2007/12/16
I used BT the first time today but found a nasty issue in the version:
- open a workspace (project)
- open *one* file in a tab
- right-click in the source code -> select "BrowseTracker" -> "Backward Ed"

--> Result: An empty BT window opens that cannot be clicked away -> clicking anywhere does not help, ESC does not help -> the only way to get rid of this window it two times ALT+TAB (switching to another app and returning to C::B). I guess this can be considered as bug. ;-)

With regards, Morten.

Yes. This is a bug. The empty dialog can be dismissed via an Alt-Left or Alt-Right begin hit twice in succession.

Then double click on another project in the workspace to cause cbEVT_PROJECT_ACTIVATE to be issued. Then switch back to your chosen project.
All should work after that.
I'll fix this issue asap.

Thanks for the report.
Title: Re: BrowseTracker plugin
Post by: Pecan on December 18, 2007, 03:51:03 pm
BrowseTracker 1.2.48 2007/12/17
http://code.google.com/p/cbbrowsetracker/
http://wiki.codeblocks.org/index.php?title=BrowseTracker_plugin

Summay of changes:

Download zip file contains .cbplugin(s) for Nightly 4734.

Commit  1.2.48 2007/12/17
 45) Fixed layout loading in multi-project workspace
 46) Fixed frozen dialog popup in multi-project workspace
 47) Decoupled ProjectData from dependency on EditorBase indexes.
 48) Added Search for ProjectData/cbProject by fullPath
Title: Re: BrowseTracker plugin
Post by: Pecan on December 21, 2007, 07:49:46 pm
BrowseTracker 1.2.49 2007/12/21
http://code.google.com/p/cbbrowsetracker/
http://wiki.codeblocks.org/index.php?title=BrowseTracker_plugin

Summay of changes:

(http://wiki.codeblocks.org/images/a/ab/BrowseTrackerOptions.PNG)

Download zip file contains .cbplugin(s) for Nightly 4734.

Commit  1.2.49 2007/12/21
 48) Added Mouse toggle/clear options and dialog
Title: Re: BrowseTracker plugin
Post by: Pecan on January 02, 2008, 04:54:45 pm
BrowseTracker 1.2.57 2008/01/2
http://code.google.com/p/cbbrowsetracker/
http://wiki.codeblocks.org/index.php?title=BrowseTracker_plugin

Summay of changes:

(http://wiki.codeblocks.org/images/a/ab/BrowseTrackerOptions.PNG)

Download zip file contains .cbplugin(s) for Nightly 4734.


Title: Re: BrowseTracker plugin
Post by: dje on January 02, 2008, 05:17:44 pm
  • Fixed: Do not set Mark on double click.

Thanks for that Pecan !

Dje
Title: Re: BrowseTracker plugin
Post by: MortenMacFly on January 02, 2008, 08:50:57 pm
BrowseTracker 1.2.57 2008/01/2
Fails to compile on my machine due to the cbStyledTextCtrl refactoring. It's missing to include "cbstyledtextctrl.h" in:
- BrowseMarks.cpp and
- BrowseTracker.cpp
Other than that: Works nice! :-)
With regards, Morten.

Edit: In addition: The repository includes a ZIP file that seems to have been added not on purpose (it just includes manifest.xml which is in the repo anyway...)
Title: Re: BrowseTracker plugin
Post by: rhf on January 02, 2008, 09:18:39 pm
BrowseTracker 1.2.57 2008/01/2
Pecan, I want to thank you for the nice BrowseTracker plugin which I find very useful.
I have one minor question. The BrowseTracker menu lists the operation: Sort BrowseMarks.
What does this operation do?

Thanks!

Title: Re: BrowseTracker plugin
Post by: Pecan on January 02, 2008, 09:28:36 pm
BrowseTracker 1.2.57 2008/01/2
Fails to compile ...

Fixed. Repository cleaned up also.
Thanks for the report.
Title: Re: BrowseTracker plugin
Post by: Pecan on January 02, 2008, 09:35:30 pm
BrowseTracker 1.2.57 2008/01/2
...The BrowseTracker menu lists the operation: Sort BrowseMarks.
What does this operation do?

The Alt up/down arrows follow the marks in the order that the user placed them. Sorting causes the Alt up/down to follow the marks in ascending or decending order of line numbers.

Just like the behavior of the current book marks (Alt PgUp/PgDn).

Personally, I prefer to go to marks as I placed them last. Thus, I don't have to ascend/decend through intervening marks.

But in the case where you've set a large number of marks, you can get some serious/disorienting jumping around. Sorting the Browse/Book marks can help this situation.

It's also nice to sort them before closing the file. The marks will be reloaded in line sort order when the file is re-opened.

A side effect of sorting: the cursor will always be placed at the beginning of the line. Not at the offset (within the line) at which you placed the mark.
 
Title: Re: BrowseTracker plugin
Post by: rhf on January 03, 2008, 06:40:23 am
The Alt up/down arrows follow the marks in the order that the user placed them. Sorting causes the the Alt up/down to follow the marks in ascending or decending order of line numbers.
I see now. Thanks.
Title: Re: BrowseTracker plugin
Post by: Pecan on January 04, 2008, 10:20:01 pm
BrowseTracker 1.2.64 2008/01/4
http://code.google.com/p/cbbrowsetracker/
http://wiki.codeblocks.org/index.php?title=BrowseTracker_plugin

Summay of changes:

(http://wiki.codeblocks.org/images/a/ab/BrowseTrackerOptions.PNG)

Download zip file contains .cbplugin(s) for Nightly 4734-4771.


Commit 1.2.64 2008/01/4
 59) update Makefile.am
 60) Re-instated use of ProjectLoadingHook. Hook is skipped when extra </unit> in project.cbp after file adds. Forcing re-save project.cbp solves problem.
 61) Finish code to shadow Book marks as BrowseMark.
 62) Refactored ClearLineBrowseMarks/ClearLineBookMarks/ToggleBook_Mark
 63) Don't initiate a BrowseMark on initial load of source file.
 64) Correct linux cbstyledtextctrl.h spelling & project camel case.
Title: Re: BrowseTracker plugin
Post by: MortenMacFly on January 23, 2008, 03:23:42 pm
BrowseTracker 1.2.64 2008/01/4
I have serious issues with this plugin (recently). Whenever I try to import a Visual Studio solution C::B crashes. The reason is the BT plugin, file ProjectData.cpp, line 63 (m_ProjectFilename = pcbProject->GetFilename();). It seems pcbProject *is* NULL sometimes in the case of an import. So you better don't rely on it. I had to disable the BT plugin to be able to import VS solutions again. :-(
Title: Re: BrowseTracker plugin
Post by: Pecan on January 24, 2008, 05:13:02 am
... It seems pcbProject *is* NULL sometimes in the case of an import. So you better don't rely on it. I had to disable the BT plugin to be able to import VS solutions again. :-(

Fixed in Head.

BrowseTracker will be disabled for projects whos OnProject cb events are entered without a project pointer.

Thanks for the report.
Title: Re: BrowseTracker plugin
Post by: Lazybones on January 24, 2008, 03:01:23 pm
Hi Pecan,

I have some ideas for the BrowseTracker, especially for setting the browsemarks.

Do you think it is possible to set the browsemarks on:
- highlighting text by double clicking on one word
- highlighting text with Shift+<left>/<right>

Additionally it would be nice to have an integration in the "find declaration / implementation"-functions. (and maybe in the ThreadSearch-plugin, too?): if the line with the search result is in the same file, you do not have the possibility to jump back to the line you entered the search value in.

Any maybe it is possible to add a BrowseMark in the same way as a bookmark, by left-clicking between the line numbers and the folding marks? This would make it easier to manually set the BrowseMarks!

Sven


Title: Re: BrowseTracker plugin
Post by: Pecan on January 24, 2008, 04:59:58 pm
BrowseTracker 1.2.68 2008/01/24
http://code.google.com/p/cbbrowsetracker/
http://wiki.codeblocks.org/index.php?title=BrowseTracker_plugin

Summay of changes:

(http://wiki.codeblocks.org/images/a/ab/BrowseTrackerOptions.PNG)

Download zip file contains .cbplugin(s) for Nightly 4830.


Commit 1.2.68 2008/01/24
 67) Guard against null project pointer when importing projects
       Sdk is issueing project events without a project pointer.
       Eg. importing Visual Studio Solution project
 68) OnProjectOpen: turn off ProjectLoading flag when no project     pointer

Title: Re: BrowseTracker plugin
Post by: Pecan on January 24, 2008, 05:08:59 pm
...
Do you think it is possible to set the browsemarks on:
- highlighting text by double clicking on one word
- highlighting text with Shift+<left>/<right>

Browse tracker used to do this, but there were so many complaints about it, it got removed.

In the future, I'll add options to the Settings menu to re-instate your first two requests if there's enough demand. But for now it seems you and I are the only ones who like this kind of feature.


Additionally it would be nice to have an integration in the "find declaration / implementation"-functions. (and maybe in the ThreadSearch-plugin, too?): if the line with the search result is in the same file, you do not have the possibility to jump back to the line you entered the search value in.

I don't understand this.  On my system, when I mark a line before doing a search, I have no problem jumping back to it.

As for integration into the CodeCompletion plugin, I don't think I have the where-with-all to climb that mountain.

Any maybe it is possible to add a BrowseMark in the same way as a bookmark, by left-clicking between the line numbers and the folding marks? This would make it easier to manually set the BrowseMarks!
...

Look at the Setting menu entry. (Menu/View/BrowseMarks/Settings).
You can use BrowseMarks as if they were Bookmarks.

Edit: Ok, I see what you mean. Setting the book mark in the margin  is not seen by BrowseTracker. I'll see what I can do about that.

In the meantime: you can use the View/BrowseTracker/Settings/BookMarks option. When you set a BrowseMark, it will actually be set as a bookmark and behave as one.
Title: Re: BrowseTracker plugin
Post by: MortenMacFly on January 24, 2008, 06:00:22 pm
Another minor issue: I think the config dialog looks pretty ugly. Have a look how it looks like on my system:
(http://img116.imageshack.us/img116/6465/btns6.th.png) (http://img116.imageshack.us/my.php?image=btns6.png)
Maybe the sizer's are not setup properly? Or maybe a sizer re-design should take place...?! ;-)
With regards, Morten.
Title: Re: BrowseTracker plugin
Post by: Lazybones on January 25, 2008, 11:32:13 am
Additionally it would be nice to have an integration in the "find declaration / implementation"-functions. (and maybe in the ThreadSearch-plugin, too?): if the line with the search result is in the same file, you do not have the possibility to jump back to the line you entered the search value in.

I don't understand this.  On my system, when I mark a line before doing a search, I have no problem jumping back to it.

As for integration into the CodeCompletion plugin, I don't think I have the where-with-all to climb that mountain.


But you have to mark the line manually. My suggestion is to automatically mark the line, so you always have the possibility to easily jump back from the result-line to the initial line.
Title: Re: BrowseTracker plugin
Post by: rhf on January 26, 2008, 07:55:19 pm
I have been using the BrowseTracker plugin for a couple of months now and find it to be very helpful.
The plugin is described in the CodeBlocks manual; however, it is not included in the svn repository - in either the core or contributed plugins.
It would sure be convenient if it were available via svn.
Are there any plans to commit it to the repository?
Thanks.
Title: Re: BrowseTracker plugin
Post by: kisoft on February 14, 2008, 09:01:11 am
rev 43. Compile error: ToolBox.h: No such file or directory
Check repository, please.
Title: Re: BrowseTracker plugin
Post by: MortenMacFly on February 14, 2008, 09:27:35 am
rev 43. Compile error: ToolBox.h: No such file or directory
Check repository, please.
As a workaround for now: Please remove the "ToolBox" include and the member variable in that class. It won't do any harm, might be this is code has been forgotten to be removed (the member variable is not being used).
Title: Re: BrowseTracker plugin
Post by: kisoft on February 14, 2008, 09:33:31 am
As a workaround for now: Please remove the "ToolBox" include and the member variable in that class. It won't do any harm, might be this is code has been forgotten to be removed (the member variable is not being used).
As usual ;) you right. Thanks! No problems on compile now.
Title: Re: BrowseTracker plugin
Post by: Pecan on February 14, 2008, 03:22:11 pm
rev 43. Compile error: ToolBox.h: No such file or directory
Check repository, please.


Sorry about that. ToolBox is used for debugging. I've now included them in the repository.

Thanks for the report.
Title: Re: BrowseTracker plugin
Post by: killerbot on February 16, 2008, 06:11:31 pm
what about still adding it to contribs ?? then it's part of the release ;-)
Title: Re: BrowseTracker plugin
Post by: Pecan on February 16, 2008, 10:14:48 pm
what about still adding it to contribs ?? then it's part of the release ;-)

I agree, but you'll have to do it. You have the svn authorization level.
Title: Re: BrowseTracker plugin
Post by: killerbot on February 16, 2008, 11:23:40 pm
If you can provide me with a download link (zip file), with all the sources, project files, make files , preferably already on the level of contrib dir, I will try to get it in before we release ;-)
Title: Re: BrowseTracker plugin
Post by: Pecan on February 17, 2008, 12:31:07 am
If you can provide me with a download link (zip file), with all the sources, project files, make files , preferably already on the level of contrib dir, I will try to get it in before we release ;-)

http://code.google.com/p/cbbrowsetracker/
cbbrowsetracker - Google Code

Both source in SVN "Source" tab and source in "Downloads ".zip files.

The SVN is the most up to date. cbBrowseTracker1-2-7.zip contains the same code.

(http://img523.imageshack.us/img523/1596/216qh8.png)
Title: Re: BrowseTracker plugin
Post by: rhf on February 17, 2008, 07:14:44 pm
Pecan,
I just did an SVN update, to Rev 45, on your source code in
http://cbbrowsetracker.googlecode.com/svn/trunk/  and am still getting the ToolBox error discussed earlier.
Are you sure that you fixed the repo version? Maybe I am looking in the wrong place.
Title: Re: BrowseTracker plugin
Post by: Pecan on February 17, 2008, 07:46:29 pm
Pecan,
I just did an SVN update, to Rev 45, on your source code in
http://cbbrowsetracker.googlecode.com/svn/trunk/  and am still getting the ToolBox error discussed earlier.
Are you sure that you fixed the repo version? Maybe I am looking in the wrong place.

I just updated the .cpb files for the project. See if that's the problem.

Edit: 2008/02/17 14:04
I just did a svn checkout to a temp dir. It compiled fine.
Let me know how it goes for you.
Thanks for the report.
Title: Re: BrowseTracker plugin
Post by: killerbot on February 17, 2008, 09:29:39 pm
I have nearly everything ready for commit in CB svn. Indeed the cbp files are not correct. I have updated the windows and linux one. Already builds on windows, haven't been able to try on linux. So tomorrow morning after first commit, a few more commits might follow, to fix linux issues.

Please keep a close watch on the committed files.

One little nasty thing was the include of manager.h from wxAUI ;-)
But it is dealt with, although it is not extremely nice.
Title: Re: BrowseTracker plugin
Post by: killerbot on February 17, 2008, 09:50:49 pm
commit has happened
Title: Re: BrowseTracker plugin
Post by: rhf on February 17, 2008, 11:42:03 pm
I just updated the .cpb files for the project. See if that's the problem.
One little nasty thing was the include of manager.h from wxAUI ;-)
But it is dealt with, although it is not extremely nice.
Pecan,

I had the same problem with manager.h referred to by killerbot above.
However, I did get the source that killerbot committed to the SVN repository and it compiled fine.

Thanks to you and killerbot for this good work!
Title: Re: BrowseTracker plugin
Post by: Pecan on March 09, 2008, 09:13:40 pm
BrowseTracker is now part of the Release 8.02 Contribs.

http://wiki.codeblocks.org/index.php?title=Code::Blocks_Plugins.

You can use the 8.02 installer to install it from the Plugin Contributions category.
 
Title: Re: BrowseTracker plugin
Post by: mariocup on March 13, 2008, 09:06:57 am
Hi Pecan,

I have a little suggestion for Browse Tracker plugin. Since settings for Thread Search and other Plugins can be configured in Settings->Environment dialogue it would be nice to have also an entry for Browse Tracker there instead of the existing menu in View->Browse Tracker->Settings.

Bye,

Mario
Title: Re: BrowseTracker plugin
Post by: Pecan on March 15, 2008, 06:04:45 pm
Hi Pecan,

I have a little suggestion for Browse Tracker plugin. Since settings for Thread Search and other Plugins can be configured in Settings->Environment dialogue it would be nice to have also an entry for Browse Tracker there instead of the existing menu in View->Browse Tracker->Settings.

Bye,

Mario

Done SVN 4961, but added to Settings->Editor
Title: Re: BrowseTracker plugin
Post by: ironhead on April 02, 2008, 03:32:31 pm
Is it possible to persist BrowseTracker bookmarks to a file?  I really like the functionality of this plugin, but when I close CodeBlocks, all the previous bookmarks are lost (i.e. when I open a file, it's always at the start of the file instead of the previous point where I was editing the file).
Title: Re: BrowseTracker plugin
Post by: Pecan on April 02, 2008, 07:16:39 pm
i.e. when I open a file, it's always at the start of the file instead of the previous point where I was editing the file.

I don't understand your statement.

BrowseTracker saves and reloads bookmarks for all files in a project. It does not save bookmarks for files *not* in a project, or for bookmarks to a file modified outside the project.

Could you provide me with an example of how to re-create your problem.
Title: Re: BrowseTracker plugin
Post by: ironhead on April 02, 2008, 08:06:15 pm
I have a project with 14 directories in it.  If I open a given file and go to a certain line and close that file (but leave the project open), when I reopen the file it returns to that line.

example:

Open:
Sources
-- emerge
----main.cpp (click on line 47)
Close the file.

Re-open:
Sources
-- emerge
----main.cpp (editor returns to line 47)
Close the project.

Re-open the project and open:
Sources
-- emerge
----main.cpp (editor starts at the top of the file)

My understanding was that BrowseTracker would keep track of the fact that main.cpp was opened to line 47 and return to that the next time I opened main.cpp (even after closing and re-opening the project).  Perhaps I missunderstood the intent of BrowseTracker?

Title: Re: BrowseTracker plugin
Post by: Pecan on April 03, 2008, 01:52:02 am
...<snip>...
My understanding was that BrowseTracker would keep track of the fact that main.cpp was opened to line 47 and return to that the next time I opened main.cpp (even after closing and re-opening the project).  Perhaps I missunderstood the intent of BrowseTracker?

Correct, that is a misunderstanding.

It is CodeBlocks' "layout" processing that repositions files on reopen. The reason it's not repositioning for you now is that you are closing the file before closing the project.

If you leave the file open, but just close the project, "layout" will reposition the file as you left it.

However, you could set a BrowseMark at a line, then close the file.
On reopen, Browsetracker will be able to reposition to the BrowseMark with Alt-Up/Down.

Also, your "misunderstanding" presents a good idea. I'll think on it.
Title: Re: BrowseTracker plugin
Post by: Seronis on April 03, 2008, 03:52:17 am
Also, your "misunderstanding" presents a good idea. I'll think on it.

I agree.  I would appreciate this extension greatly too.
Title: Re: BrowseTracker plugin
Post by: Pecan on April 05, 2008, 06:10:44 pm
Re-open the project and open:
Sources
-- emerge
----main.cpp (editor starts at the top of the file)

I cannot seem to recreate this problem.

I position to a line, close the file, then close the project.
When I then reopen the project, then reopen the file, the cursor is positioned correctly to the line I last had the cursor when it was closed.

Are you certain that when you closed the file that the *cursor* was on the line you wished to be recorded at close?

Are you certain that the file actually belongs to the active project? Only files added to the project are processed by layout.
Title: Re: BrowseTracker plugin
Post by: ironhead on April 06, 2008, 05:52:15 am
Hrm... it's is indeed working as you describe.  The problem is that when I open the file again the cursor position is cleared.  Can it be setup that it doesn't clear the cursor position on load?

edit

It looks like a focus issue.  When I double click to open the file, the cursor line is selected, but the focus goes back to the file Management Pane, as a result the cursor line 'disappears'.
Title: Re: BrowseTracker plugin
Post by: Pecan on April 06, 2008, 05:30:40 pm
It looks like a focus issue.  When I double click to open the file, the cursor line is selected, but the focus goes back to the file Management Pane, as a result the cursor line 'disappears'.

Turn on Settings->Editor->MouseDragScrolling->AutoFocusEditors

and see if that is more to your liking.

You might want to also try

Settings->Editor->MouseDragScrolling->FocusFollowsMouse
Title: Re: BrowseTracker plugin
Post by: ironhead on April 07, 2008, 12:17:43 am
Turn on Settings->Editor->MouseDragScrolling->AutoFocusEditors

and see if that is more to your liking.

That's perfect, thanx! :)
Title: Re: BrowseTracker plugin
Post by: Jedon on April 14, 2008, 08:40:20 am
Hi Pecan ,where I can get the BrowseTracker plugin for codeblocks 8.0.2, I'm a novice,thanks!
Title: Re: BrowseTracker plugin
Post by: killerbot on April 14, 2008, 08:59:50 am
it is part of the installer !
Title: Re: BrowseTracker plugin
Post by: Jedon on April 14, 2008, 09:59:48 am
I installed the version of codeblocks-8.02mingw-setup.exe,but i can't find BrowseTracker plugin in "Plugins"->"Manage Plugins",there are "Autosave 0.1"、“Class wizard 0.3”、“ Code completion 0.7” and so on,thanks!
Title: Re: BrowseTracker plugin
Post by: dje on April 14, 2008, 10:02:21 am
Hi !

All plugins are not installed by default.
Reionstall C::B and check the extra plugins you need (BrowseTracker is in the list).

Dje
Title: Re: BrowseTracker plugin
Post by: Jedon on April 14, 2008, 11:04:04 am
Hi Dje,This issue is resolved,thank you!
Title: Re: BrowseTracker plugin
Post by: santox on May 28, 2008, 02:26:27 pm
Hi all,
i'm new to codeblocks and i think it's great. But i miss a function to "return to previous position" after a jump with the Find declaration/find implementation tools .... is there some plugin/codeblocks feature a haven't found?
thanks
Title: Re: BrowseTracker plugin
Post by: Pecan on May 28, 2008, 07:43:28 pm
http://wiki.codeblocks.org/index.php?title=BrowseTracker_plugin
BrowseTracker plugin - CodeBlocks
Title: Re: BrowseTracker plugin
Post by: santox on May 29, 2008, 05:34:10 pm
finally i learned it!
thank you!

i have to hold a few my left mouse  button on the function call; after that i can click the right one and use the "find implementation" function;
now i can use Alt+Down to return to the previous position !

Great!
Title: Re: BrowseTracker plugin
Post by: adir on June 01, 2008, 12:24:38 pm
hello, I am a newer to CB. I download the cbBrowseTracker09.zip and I installed the libBrowseTracker.cbplugin. But CB shows a error msg that failed to load the plug in.
I am using Opensuse 10.3 and is it the reason that the differents that between linux & unix? if so, what should I do?
thanks very much
Title: Re: BrowseTracker plugin
Post by: Jenna on June 01, 2008, 12:52:07 pm
If you use binary-packages,there should be a package called something like "codeblocks-contrib...", that contains all the contrib-plugins including browsetracker.

If you compile from source with "./configure" use "--with-contrib-plugins=BrowseTracker" to only build the browsetracker-plugins or "--with-contrib-plugins=all" to build all contrib-plugins, what I recommend to do.

If you compile C::B with C::B you have to build also the "ContribPlugins-unix.workspace" or at least the "BrowseTracker-unix.cbp" in "src/plugins/contrib/BrowseTracker/"
Title: Re: BrowseTracker plugin
Post by: adir on June 01, 2008, 01:08:25 pm
Thanks very much for help, I get it :lol:~~
Title: Re: BrowseTracker plugin
Post by: gd_on on April 28, 2009, 06:01:32 pm
I wanted to build version 5549 on a linux server. Until now it was quite ok (my last build was in february but I forgot which svn number it was, sorry  :( ), but now I obtain a compile error when building BrowseTracker plugin with the standard distributed .cbp file.
Here is the full compile log :

Quote
-------------- Générer: default dans BrowseTracker-unix ---------------

g++ -Wall  -g -I/usr/lib64/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -D__WXGTK__ -pthread  -fPIC -DPIC -DNO_LOGGING -DNO_CB_PRECOMP    -I../../../include -I../../../include/wxscintilla/include  -c /home/gdurand/CodeBlocks_SVN/CodeBlocks_src/trunk/src/plugins/contrib/BrowseTracker/BrowseTracker.cpp -o .objs/BrowseTracker.o
g++ -shared -L../../../devel  .objs/BrowseMarks.o .objs/BrowseSelector.o .objs/BrowseTracker.o .objs/BrowseTrackerConfPanel.o .objs/BrowseTrackerLayout.o .objs/ConfigPanel.o .objs/ProjectData.o .objs/Version.o   -o ../../../devel/share/codeblocks/plugins/libBrowseTracker.so -s -pthread   -L/usr/X11R6/lib64   -lwx_gtk2u_richtext-2.8 -lwx_gtk2u_aui-2.8 -lwx_gtk2u_xrc-2.8 -lwx_gtk2u_qa-2.8 -lwx_gtk2u_html-2.8 -lwx_gtk2u_adv-2.8 -lwx_gtk2u_core-2.8 -lwx_baseu_xml-2.8 -lwx_baseu_net-2.8 -lwx_baseu-2.8    -lwxscintilla -lcodeblocks
In file included from ../../../include/sdk_common.h:40,
                 from /home/gdurand/CodeBlocks_SVN/CodeBlocks_src/trunk/src/plugins/contrib/BrowseTracker/BrowseTracker.cpp:71:
../../../include/prep.h: In member function `ID::operator void*() const':
../../../include/prep.h:316: warning: cast to pointer from integer of different size
/home/gdurand/CodeBlocks_SVN/CodeBlocks_src/trunk/src/plugins/contrib/BrowseTracker/BrowseTracker.cpp: In member function `wxString BrowseTracker::GetCBConfigFile()':
/home/gdurand/CodeBlocks_SVN/CodeBlocks_src/trunk/src/plugins/contrib/BrowseTracker/BrowseTracker.cpp:2619: error: invalid use of undefined type `struct ConfigManager'
../../../include/manager.h:38: error: forward declaration of `struct ConfigManager'
/home/gdurand/CodeBlocks_SVN/CodeBlocks_src/trunk/src/plugins/contrib/BrowseTracker/BrowseTracker.cpp:2619: error: `sdAllKnown' was not declared in this scope
/home/gdurand/CodeBlocks_SVN/CodeBlocks_src/trunk/src/plugins/contrib/BrowseTracker/BrowseTracker.cpp:2619: warning: unused variable 'sdAllKnown'
Le processus s'est terminé avec le statut 1 (0 minutes, 7 secondes)
3 erreurs, 2 avertissements
 

Linux is Redhat 4.7, gcc version is 3.4.6 (I have other compile problems with gcc 4, but probably more related to the installation).

Without BrowseTracker, SVN 5549 compiles normally with all plugins.

I have no problems with Windows version.

gd_on

Title: Re: BrowseTracker plugin
Post by: Pecan on April 28, 2009, 07:21:39 pm
...
Without BrowseTracker, SVN 5549 compiles normally with all plugins.

I have no problems with Windows version.

gd_on

Fixed SVN 5550
thanks
Title: Re: BrowseTracker plugin
Post by: geiermeier on April 29, 2009, 11:47:18 am
I just can't get used to this BrowseTracker. There is a similar feature in IAR Embedded Codebench (or similar name), that's great.

The main differences are:
-there's no popup, just switch view on pressing ALT+Left/Right
-don't jump to the last editor, but to the last position - even if it's inside the same file;
 that way you can simply press ALT+Left after e.g. jump to declaration and you're back, no matter if the jump switched files
-ALT+Right works as expected, e.g. undoing what the last ALT+Left did

Actually I couldn't find out yet what ALT+Right is supposed to do with the CB BrowseTracker.
Title: Re: BrowseTracker plugin
Post by: gd_on on April 29, 2009, 02:23:46 pm
Still not correct in linux :
you have at line 79 in BrowseTracker.cpp :
#include "configmanager.h

but it should be :
#include "configmanager.h"

last " is missing.
After this correction, it compiles.

Thanks.

gd-on
Title: Re: BrowseTracker plugin
Post by: ollydbg on April 29, 2009, 02:25:51 pm
I just can't get used to this BrowseTracker. There is a similar feature in IAR Embedded Codebench (or similar name), that's great.

The main differences are:
-there's no popup, just switch view on pressing ALT+Left/Right
-don't jump to the last editor, but to the last position - even if it's inside the same file;
 that way you can simply press ALT+Left after e.g. jump to declaration and you're back, no matter if the jump switched files
-ALT+Right works as expected, e.g. undoing what the last ALT+Left did

Actually I couldn't find out yet what ALT+Right is supposed to do with the CB BrowseTracker.


The behavior you want is like Visual Assist. All the edit position was recorded automatically, and it is easy to jump back after jump to declaration using ALT+left. (This behavior are very common, even in Acrobat reader, then I can use ALT+left/right to switch between nearly viewed PDF pages).

In current BowseTracker, you should use ALT+up/down to navigate in the same file.

For my person taste, I do suggest BrowseTracker can do this instead of holding down left mouse button to record a tracker position.  :D

I'm not sure Pecan can add this function to BrowseTracker.

Thank!