IDEMessages: add OpenSelection function

This commit is contained in:
Ondrej Pokorny 2022-12-30 22:43:56 +01:00
parent ba918c5eb2
commit cc81fa77a5
2 changed files with 7 additions and 0 deletions

View File

@ -91,6 +91,7 @@ type
WithSrcPos: boolean): boolean; virtual; abstract;
function SelectNextUrgentMessage(aMinUrgency: TMessageLineUrgency;
WithSrcPos, Downwards: boolean): boolean; virtual; abstract;
function OpenSelection: Boolean; virtual; abstract;
function AddCustomMessage(TheUrgency: TMessageLineUrgency; Msg: string;
aSrcFilename: string = ''; LineNumber: integer = 0; Column: integer = 0;

View File

@ -81,6 +81,7 @@ type
function AddCustomMessage(TheUrgency: TMessageLineUrgency; Msg: string;
aSrcFilename: string=''; LineNumber: integer=0; Column: integer=0;
const ViewCaption: string=''): TMessageLine; override;
function OpenSelection: Boolean; override;
// misc
procedure SourceEditorPopup(MarkLine: TSynEditMarkLine; const LogicalCaretXY: TPoint);
@ -142,6 +143,11 @@ begin
end;
end;
function TMessagesView.OpenSelection: Boolean;
begin
Result := MessagesFrame1.MessagesCtrl.OpenSelection;
end;
procedure TMessagesView.SetDblClickJumps(AValue: boolean);
begin
if AValue then