User forums > General (but related to Code::Blocks)
A feature request about CC and BrowseTracker
ollydbg:
I'm currently considering a good data structure to hold the browse position. It is similar to a "undo" and "redo" data structure.
In codelite source code, I found it use a "std::vector<BrowseRecord> m_jumps" array to keep the positions.
They were implemented in these files:
https://codelite.svn.sourceforge.net/svnroot/codelite/trunk/Plugin/navigationmanager.cpp
https://codelite.svn.sourceforge.net/svnroot/codelite/trunk/Plugin/navigationmanager.h
https://codelite.svn.sourceforge.net/svnroot/codelite/trunk/Plugin/browse_record.h
Any one has a comments on this method? Thanks.
blueshake:
i get a quick review on these codes.it is good .
and would you try to implement this function in a new plugin
or modify an old one ?
ollydbg:
At this time, I have no idea.
One option is I change the browsetracker source code.
The other option is I would create another plugin.
The later options seems a little simpler. What I would to do is
1, handle the SCN_UPDATEUI message in the plugin, and record browse position.
2, handle two key "alt + left arrow" and "alt + right arrow" to navigate backward and forward.
Also, there are some guide lines:
1, once a new project is opened, the std::vector<browserecord> should be cleared.
2, Additional toolbar could be add to implement the backward and forward
3, we can use a DebugLog output to test whether the new plugin add or remove browseRecord correctly.
....
It seems a lot of work to do, nowadays, I'm still busy on my work, so. :?
ollydbg:
Also, mmkider's TrackBar plugin is a strong reference. It has only one cpp and one header files.
http://forums.codeblocks.org/index.php/topic,9886.msg68973.html#msg68973
blueshake:
i think it would be esay to modify browsetracker plugin.
according to guild line,2 has been done by this plugin. and
3 is also done too.
so we just need to hook the plugin ,and do some work here ,i
think it would be easy, and according to address you post ,i
can not found that source codes.can you pass me one?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version