mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-31 09:21:35 +02:00
added msg view clear menun item
git-svn-id: trunk@8880 -
This commit is contained in:
parent
90502c4356
commit
b0df4cc0b7
@ -87,6 +87,7 @@ type
|
||||
procedure CopyMenuItemClick(Sender: TObject);
|
||||
procedure FormDeactivate(Sender: TObject);
|
||||
procedure HelpMenuItemClick(Sender: TObject);
|
||||
procedure ClearMenuItemClick(Sender: TObject);
|
||||
procedure MainPopupMenuPopup(Sender: TObject);
|
||||
procedure MessageViewDblClicked(Sender: TObject);
|
||||
procedure MessageViewClicked(Sender: TObject);
|
||||
@ -160,6 +161,7 @@ type
|
||||
|
||||
var
|
||||
MessagesView: TMessagesView;
|
||||
MsgClearIDEMenuCommand: TIDEMenuCommand;
|
||||
MsgCopyIDEMenuCommand: TIDEMenuCommand;
|
||||
MsgCopyAllIDEMenuCommand: TIDEMenuCommand;
|
||||
MsgCopyAllAndHiddenIDEMenuCommand: TIDEMenuCommand;
|
||||
@ -230,6 +232,8 @@ var
|
||||
begin
|
||||
MessagesMenuRoot := RegisterIDEMenuRoot(MessagesMenuRootName);
|
||||
Path := MessagesMenuRoot.Name;
|
||||
MsgClearIDEMenuCommand :=
|
||||
RegisterIDEMenuCommand(Path, 'Clear', srVK_CLEAR);
|
||||
MsgCopyIDEMenuCommand := RegisterIDEMenuCommand(Path, 'Copy selected',
|
||||
lisCopySelectedMessagesToClipboard);
|
||||
MsgCopyAllIDEMenuCommand := RegisterIDEMenuCommand(Path, 'Copy all',
|
||||
@ -298,6 +302,7 @@ begin
|
||||
//MainPopupMenu.Items.WriteDebugReport('TMessagesView.Create ');
|
||||
|
||||
MsgHelpIDEMenuCommand.OnClick := @HelpMenuItemClick;
|
||||
MsgClearIDEMenuCommand.OnClick := @ClearMenuItemClick;
|
||||
MsgCopyIDEMenuCommand.OnClick := @CopyMenuItemClick;
|
||||
MsgCopyAllIDEMenuCommand.OnClick := @CopyAllMenuItemClick;
|
||||
MsgCopyAllAndHiddenIDEMenuCommand.OnClick := @CopyAllAndHiddenMenuItemClick;
|
||||
@ -752,6 +757,11 @@ begin
|
||||
ExecuteIDECommand(Self, ecContextHelp);
|
||||
end;
|
||||
|
||||
procedure TMessagesView.ClearMenuItemClick(Sender: TObject);
|
||||
begin
|
||||
Clear;
|
||||
end;
|
||||
|
||||
procedure TMessagesView.MainPopupMenuPopup(Sender: TObject);
|
||||
var
|
||||
i: LongInt;
|
||||
|
Loading…
Reference in New Issue
Block a user