mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-13 10:19:16 +02:00
IDEIntf: less unit dependencies, less hints, fixed passing AsLast
git-svn-id: trunk@44243 -
This commit is contained in:
parent
8a1eedadd8
commit
27d7dc5448
@ -30,7 +30,7 @@ unit IDECommands;
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
Classes, SysUtils, LCLProc, Forms, LCLType, Menus, PropEdits, TextTools;
|
Classes, SysUtils, LCLProc, Forms, LCLType, Menus, PropEdits;
|
||||||
|
|
||||||
const
|
const
|
||||||
{ editor commands constants. see syneditkeycmds.pp for more
|
{ editor commands constants. see syneditkeycmds.pp for more
|
||||||
@ -1571,15 +1571,11 @@ const
|
|||||||
);
|
);
|
||||||
|
|
||||||
function IdentToIDECommand(const Ident: string; var Cmd: longint): boolean;
|
function IdentToIDECommand(const Ident: string; var Cmd: longint): boolean;
|
||||||
var
|
|
||||||
IDECommand: TIDECommand;
|
|
||||||
begin
|
begin
|
||||||
Result := IdentToInt(Ident, Cmd, IDEEditorCommandStrs);
|
Result := IdentToInt(Ident, Cmd, IDEEditorCommandStrs);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function IDECommandToIdent(Cmd: longint; var Ident: string): boolean;
|
function IDECommandToIdent(Cmd: longint; var Ident: string): boolean;
|
||||||
var
|
|
||||||
IDECommand: TIDECommand;
|
|
||||||
begin
|
begin
|
||||||
Result := IntToIdent(Cmd, Ident, IDEEditorCommandStrs);
|
Result := IntToIdent(Cmd, Ident, IDEEditorCommandStrs);
|
||||||
end;
|
end;
|
||||||
|
@ -211,7 +211,7 @@ end;
|
|||||||
|
|
||||||
uses
|
uses
|
||||||
Classes, SysUtils, Forms, LCLProc,
|
Classes, SysUtils, Forms, LCLProc,
|
||||||
TextTools, IDECommands, IDEExternToolIntf;
|
TextTools, IDECommands;
|
||||||
|
|
||||||
type
|
type
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ unit MenuIntf;
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
Classes, SysUtils, LCLType, LCLProc, Menus, ImgList, Graphics, LazHelpIntf,
|
Classes, SysUtils, LCLType, LCLProc, Menus, ImgList, Graphics,
|
||||||
IDECommands, IDEImagesIntf;
|
IDECommands, IDEImagesIntf;
|
||||||
|
|
||||||
type
|
type
|
||||||
@ -1509,7 +1509,7 @@ end;
|
|||||||
procedure TIDEMenuSection.AddHandlerOnShow(const OnShowEvent: TNotifyEvent;
|
procedure TIDEMenuSection.AddHandlerOnShow(const OnShowEvent: TNotifyEvent;
|
||||||
AsLast: boolean);
|
AsLast: boolean);
|
||||||
begin
|
begin
|
||||||
AddHandler(imshtOnShow,TMethod(OnShowEvent));
|
AddHandler(imshtOnShow,TMethod(OnShowEvent),AsLast);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TIDEMenuSection.RemoveHandlerOnShow(const OnShowEvent: TNotifyEvent);
|
procedure TIDEMenuSection.RemoveHandlerOnShow(const OnShowEvent: TNotifyEvent);
|
||||||
@ -1585,7 +1585,7 @@ procedure TIDEMenuSection.AddHandler(HandlerType: TIDEMenuSectionHandlerType;
|
|||||||
begin
|
begin
|
||||||
if FSectionHandlers[HandlerType]=nil then
|
if FSectionHandlers[HandlerType]=nil then
|
||||||
FSectionHandlers[HandlerType]:=TMethodList.Create;
|
FSectionHandlers[HandlerType]:=TMethodList.Create;
|
||||||
FSectionHandlers[HandlerType].Add(AMethod);
|
FSectionHandlers[HandlerType].Add(AMethod,AsLast);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TIDEMenuSection.RemoveHandler(
|
procedure TIDEMenuSection.RemoveHandler(
|
||||||
|
@ -190,10 +190,10 @@ type
|
|||||||
procedure CompletePrefix(var Prefix: string); virtual; abstract;
|
procedure CompletePrefix(var Prefix: string); virtual; abstract;
|
||||||
|
|
||||||
function HasCustomPaint: boolean; virtual;
|
function HasCustomPaint: boolean; virtual;
|
||||||
procedure PaintItem(const AKey: string; ACanvas: TCanvas;
|
procedure PaintItem(const {%H-}AKey: string; {%H-}ACanvas: TCanvas;
|
||||||
X, Y: integer; ItemSelected: boolean; Index: integer); virtual;
|
{%H-}X, {%H-}Y: integer; {%H-}ItemSelected: boolean; {%H-}Index: integer); virtual;
|
||||||
function MeasureItem(const AKey: string; ACanvas: TCanvas;
|
function MeasureItem(const {%H-}AKey: string; {%H-}ACanvas: TCanvas;
|
||||||
ItemSelected: boolean; Index: integer): TPoint; virtual;
|
{%H-}ItemSelected: boolean; {%H-}Index: integer): TPoint; virtual;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{ TSourceEditorWindowInterface }
|
{ TSourceEditorWindowInterface }
|
||||||
|
Loading…
Reference in New Issue
Block a user