Author Topic: BrowseTracker plugin  (Read 81116 times)

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2770
Re: BrowseTracker plugin
« Reply #45 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:
  • Saves/Restores BrowseMarks and Book marks.
  • Toggles BrowseMark on/off by holding Left-mouse down for 1/4 second, allowing user better control over BrowseMarks.
  • Ctrl-Left click on a line clears the browse mark.
  • Ctrl-Left click on any unmarked line clears *all* BrowseMarks

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
« Last Edit: December 17, 2007, 01:34:50 am by Pecan »

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: BrowseTracker plugin
« Reply #46 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2770
Re: BrowseTracker plugin
« Reply #47 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.

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2770
Re: BrowseTracker plugin
« Reply #48 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:
  • Saves/Restore BrowseMarks and Book marks.
  • Toggles BrowseMark on/off by holding Left-mouse down for 1/4 second, allowing user better control over BrowseMarks.
  • Ctrl-Left click on a line clears the browse mark.
  • Ctrl-Left click on any unmarked line clears *all* BrowseMarks
  • Multi-Project workspace fixes

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

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2770
Re: BrowseTracker plugin
« Reply #49 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:
  • Saves/Restore BrowseMarks and Book marks.
  • Toggles BrowseMark on/off by user configurable mouse click
  • Clears Browse marks via user configurable mouse click.
  • New BrowseTracker Settings menu item and dialog



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

Commit  1.2.49 2007/12/21
 48) Added Mouse toggle/clear options and dialog

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2770
Re: BrowseTracker plugin
« Reply #50 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:
  • User choice of BrowseMark, BookMark, or Hidden.
  • Fixed: Do not set Mark on double click.
  • Save/Restore marks even when no "extension" in project xml file.
  • Remove dependency on ProjectLoading Hook and IsLoading() calls.



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



Offline dje

  • Lives here!
  • ****
  • Posts: 683
Re: BrowseTracker plugin
« Reply #51 on: January 02, 2008, 05:17:44 pm »
  • Fixed: Do not set Mark on double click.

Thanks for that Pecan !

Dje

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: BrowseTracker plugin
« Reply #52 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...)
« Last Edit: January 02, 2008, 08:59:03 pm by MortenMacFly »
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline rhf

  • Multiple posting newcomer
  • *
  • Posts: 123
Re: BrowseTracker plugin
« Reply #53 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!


Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2770
Re: BrowseTracker plugin
« Reply #54 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.

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2770
Re: BrowseTracker plugin
« Reply #55 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.
 
« Last Edit: January 03, 2008, 04:43:55 pm by Pecan »

Offline rhf

  • Multiple posting newcomer
  • *
  • Posts: 123
Re: BrowseTracker plugin
« Reply #56 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.

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2770
Re: BrowseTracker plugin
« Reply #57 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:
  • Follow BookMarks more closely when used as BrowseMarks.
  • Bug fixes at file load.
  • Work-around for ProjectLoadingHook not being called.



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.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: BrowseTracker plugin
« Reply #58 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. :-(
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2770
Re: BrowseTracker plugin
« Reply #59 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.