44
44
class wxFindReplaceDialog;
47
// NB The following are sci markers, which are zero based. So smt_bookmark is actually the eighth of them (important when masking it!)
48
// If you add another type here, watch out for smt_LAST_BP_TYPE; and you need also to add to the enum 'marker_mask_type' below
49
// The higher the value, the nearer the top of the pecking order displaywise. So keep the most important breakpoint at the top i.e. smt_breakpoint,
50
// but have smt_breakpointsmt_indicator above it, so you can see the indicator when there's a breakpt too
52
{ smt_bookmark=7, smt_FIRST_BP_TYPE=8, smt_cond_bp_disabled = smt_FIRST_BP_TYPE, smt_bp_cmdlist_disabled, smt_bp_disabled,
53
smt_bp_ignored, smt_cond_bp, smt_bp_cmdlist, smt_breakpoint, smt_LAST_BP_TYPE = smt_breakpoint, smt_indicator, smt_warning, smt_error
56
// These are bitmap masks of the various margin markers.
57
// So 256 == 0x100 == 100000000, 2^9, and masks the ninth marker, smt_cond_bp_disabled==8 (as the markers are zero-based)
58
// 0x7f00 is binary 111111100000000 and masks all the 7 current breakpoint types. If you add others, change it
60
{ mmt_folds=wxSCI_MASK_FOLDERS, mmt_bookmarks=128, mmt_FIRST_BP_TYPE=0x100, mmt_cond_bp_disabled=mmt_FIRST_BP_TYPE, mmt_bp_cmdlist_disabled=0x200, mmt_bp_disabled=0x400,
61
mmt_bp_ignored=0x800, mmt_cond_bp=0x1000,mmt_bp_cmdlist=0x2000, mmt_breakpoint=0x4000, mmt_LAST_BP_TYPE=mmt_breakpoint, mmt_all_breakpoints=0x7f00, mmt_indicator=0x8000,
62
mmt_compiler=0x30000 /* masks compiler errors/warnings */
67
* Holds which marker and mask are associated with each breakpoint type
47
// NB The following are sci markers, which are zero based. So smt_bookmark is actually the eighth of them (important when masking it!)
48
// If you add another type here, watch out for smt_LAST_BP_TYPE; and you need also to add to the enum 'marker_mask_type' below
49
// The higher the value, the nearer the top of the pecking order displaywise. So keep the most important breakpoint at the top i.e. smt_breakpoint,
50
// but have smt_breakpointsmt_indicator above it, so you can see the indicator when there's a breakpt too
51
enum sci_marker_types { smt_bookmark=7, smt_FIRST_BP_TYPE=8, smt_cond_bp_disabled = smt_FIRST_BP_TYPE, smt_bp_cmdlist_disabled, smt_bp_disabled,
52
smt_bp_ignored, smt_cond_bp, smt_bp_cmdlist, smt_breakpoint, smt_LAST_BP_TYPE = smt_breakpoint, smt_indicator, smt_warning, smt_error
55
// These are bitmap masks of the various margin markers.
56
// So 256 == 0x100 == 100000000, 2^9, and masks the ninth marker, smt_cond_bp_disabled==8 (as the markers are zero-based)
57
// 0x7f00 is binary 111111100000000 and masks all the 7 current breakpoint types. If you add others, change it
58
enum marker_mask_type { mmt_folds=wxSCI_MASK_FOLDERS, mmt_bookmarks=128, mmt_FIRST_BP_TYPE=0x100, mmt_cond_bp_disabled=mmt_FIRST_BP_TYPE, mmt_bp_cmdlist_disabled=0x200, mmt_bp_disabled=0x400,
59
mmt_bp_ignored=0x800, mmt_cond_bp=0x1000,mmt_bp_cmdlist=0x2000, mmt_breakpoint=0x4000, mmt_LAST_BP_TYPE=mmt_breakpoint, mmt_all_breakpoints=0x7f00, mmt_indicator=0x8000,
60
mmt_compiler=0x30000 /* masks compiler errors/warnings */
63
enum calltip_type { ct_function_hover, ct_debugger, ct_function_proto, ct_breakpoint, ct_compiler_msg, ct_none};
67
* Holds which marker and mask are associated with each breakpoint type
69
69
typedef struct _BPtoMarker {
70
70
enum BP_type bp_type; // An enum of possible break/watchpoint types. In debugger.h
71
71
sci_marker_types marker;
364
364
virtual void HighlightLine(int lineno);
365
365
virtual void UnHighlightAll();
367
// compiler warnings and errors
368
void SetWarningMarker(int lineno);
369
void SetErrorMarker(int lineno);
370
void DelAllCompilerMarkers();
367
// compiler warnings and errors
368
void SetWarningMarker(int lineno);
369
void SetErrorMarker(int lineno);
370
void DelAllCompilerMarkers();
371
void DoShowCalltip(int pos, const wxString &tip, calltip_type type, int hltPos = wxNOT_FOUND, int hltLen = wxNOT_FOUND);
372
void DoCancelCalltip();
373
int DoGetOpenBracePos();
375
calltip_type GetCalltipType() const {return m_calltipType;}
372
377
//----------------------------------
373
378
//File modifications
374
379
//----------------------------------
377
* return the last modification time (on disk) of editor's underlying file
379
time_t GetFileLastModifiedTime() const;
382
* return the last modification time (on disk) of editor's underlying file
384
time_t GetFileLastModifiedTime() const;
382
387
* return/set the last modification time that was made by the editor