1 #ifndef BROWSEMARKERDEFS_H_INCLUDED
2 #define BROWSEMARKERDEFS_H_INCLUDED
3 
4 //svn5785 #include "wxscintilla/include/wx/wxscintilla.h"
5 #include <wx/wxscintilla.h>
6 
7     const int MaxEntries = 20;
8 
9     // from cbeditor.cpp
10     #define BOOKMARK_MARKER        4
11     #define BOOKMARK_STYLE         wxSCI_MARK_ARROW
12 
13     const int BROWSETRACKER_MARKER       = 9 ;
14     const int BROWSETRACKER_MARKER_STYLE = wxSCI_MARK_DOTDOTDOT ;
15     const int BROWSETRACKER_HIDDEN_STYLE = wxSCI_MARK_EMPTY ;
16     const int BROWSETRACKER_MARKER_MASK  = 1<<BROWSETRACKER_MARKER ;
17 
18 class EditorBase;
19 class BrowseMarks;
20 class ProjectData;
21 class cbProject;
22 // ----------------------------------------------------------------------------
23 // active editors
24 WX_DEFINE_ARRAY_PTR(EditorBase*, ArrayOfEditorBasePtrs);
25 // a hash containing pointers to cursor positions indexed by EditorBase pointers.
26 WX_DECLARE_HASH_MAP(EditorBase*, BrowseMarks*, wxPointerHash, wxPointerEqual, EbBrowse_MarksHash);
27 // ProjectData class pointers associating files to a loaded project
28 WX_DECLARE_HASH_MAP(cbProject*, ProjectData*, wxPointerHash, wxPointerEqual, ProjectDataHash);
29 // ----------------------------------------------------------------------------
30 // hashmap for fast searches: filename, BrowseMark*
31 WX_DECLARE_STRING_HASH_MAP(BrowseMarks*, FileBrowse_MarksHash);
32 
33     enum{
34             Left_Mouse = 0,
35             Ctrl_Left_Mouse = 1,
36             ClearAllOnSingleClick = 0,
37             ClearAllOnDoubleClick = 1,
38 
39             //-BrowseMarksStyle  = 0,
40             BookMarksStyle   = 1,
41             HiddenMarksStyle = 2
42 
43         };
44 
45 
46 #endif // BROWSEMARKERDEFS_H_INCLUDED
47