Sorry, I can't figure how to check if the current file was opened in cbEditor. Can someone help me?
here is the patch.( The patch has include some patches from oBFusCATed adding a command entry)
http://sites.google.com/site/studycodeblocks/imagescb/breakpoints.patch This patch has been updated in
https://developer.berlios.de/patch/index.php?func=detailpatch&patch_id=2775&group_id=5358Here is some explanation about this patch:
1, I add two files: breakpointslayout.cpp and breakpointslayout.h(They are similar with code in BrowserTracker plugin)
2, I add some code in doing DebuggerGDB::OnProjectOpened and DebuggerGDB::OnProjectClosed
3, When a project is opened, I will use Addbreakpoints function in debuggerstate structure.
4, when a project is closed, I just read the breakpointsList in debuggerstate, then save them to a xml file.
5, I still can't find a way to notify cbEditor, so, the breakpoints add silently.
By the way, I can't upload an attachment any more(upload folder is FULL), can someone help me?
Thanks
Edit: Here are some ideas:
class ProjectFile : public BlockAllocated<ProjectFile, 1000>
{
......
/** If true, the file is open inside an editor. */
bool editorOpen; // layout info
Can we use "ProjectFile" related method?