mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-07 12:20:25 +02:00
Refactor: move CompareMethods to LazMethodList. Keep alias in LCLProc.
git-svn-id: trunk@58204 -
This commit is contained in:
parent
672ece7241
commit
f440f660a2
@ -24,7 +24,7 @@ uses
|
|||||||
LCLProc, LResources, Forms, Controls, Menus, ExtCtrls, CustomTimer, Graphics,
|
LCLProc, LResources, Forms, Controls, Menus, ExtCtrls, CustomTimer, Graphics,
|
||||||
Grids, CheckLst, Buttons, ComCtrls, Dialogs, GraphType,
|
Grids, CheckLst, Buttons, ComCtrls, Dialogs, GraphType,
|
||||||
// LazUtils
|
// LazUtils
|
||||||
Maps,
|
Maps, LazMethodList,
|
||||||
// IdeIntf
|
// IdeIntf
|
||||||
LazStringGridEdit, CheckListboxEditorDlg, CheckGroupEditorDlg,
|
LazStringGridEdit, CheckListboxEditorDlg, CheckGroupEditorDlg,
|
||||||
PropEdits, PropEditUtils, ComponentReg,
|
PropEdits, PropEditUtils, ComponentReg,
|
||||||
|
@ -25,7 +25,10 @@ interface
|
|||||||
|
|
||||||
uses
|
uses
|
||||||
Classes, SysUtils, typinfo, Laz_AVL_Tree, fgl,
|
Classes, SysUtils, typinfo, Laz_AVL_Tree, fgl,
|
||||||
Controls, Laz2_XMLCfg, LCLProc;
|
// LCL
|
||||||
|
Controls, LCLProc,
|
||||||
|
// LazUtils
|
||||||
|
Laz2_XMLCfg, LazMethodList;
|
||||||
|
|
||||||
type
|
type
|
||||||
TComponentPriorityCategory = (
|
TComponentPriorityCategory = (
|
||||||
|
@ -16,7 +16,10 @@ unit CompOptsIntf;
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
Classes, SysUtils, LCLProc,
|
Classes, SysUtils,
|
||||||
|
// LazUtils
|
||||||
|
LazMethodList,
|
||||||
|
// IdeIntf
|
||||||
IDEOptionsIntf;
|
IDEOptionsIntf;
|
||||||
|
|
||||||
type
|
type
|
||||||
|
@ -30,8 +30,13 @@ unit IDECommands;
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
Classes, SysUtils, LCLProc, Forms, LCLType, Menus, PropEdits, IDEImagesIntf,
|
Classes, SysUtils,
|
||||||
ExtCtrls, LCLIntf;
|
// LCL
|
||||||
|
LCLProc, LCLType, LCLIntf, Forms, Menus,
|
||||||
|
// LazUtils
|
||||||
|
LazMethodList,
|
||||||
|
// IdeIntf
|
||||||
|
PropEdits, IDEImagesIntf;
|
||||||
|
|
||||||
const
|
const
|
||||||
{ editor commands constants. see syneditkeycmds.pp for more
|
{ editor commands constants. see syneditkeycmds.pp for more
|
||||||
|
@ -18,7 +18,7 @@ uses
|
|||||||
// LCL
|
// LCL
|
||||||
LCLProc,
|
LCLProc,
|
||||||
// LazUtils
|
// LazUtils
|
||||||
UTF8Process, LazFileUtils, LazFileCache,
|
UTF8Process, LazFileUtils, LazFileCache, LazMethodList,
|
||||||
// IdeIntf
|
// IdeIntf
|
||||||
ObjInspStrConsts, LazLoggerBase, Menus;
|
ObjInspStrConsts, LazLoggerBase, Menus;
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ uses
|
|||||||
// LCL
|
// LCL
|
||||||
LCLProc, Controls, Buttons, Forms, StdCtrls, Graphics, ComCtrls, Grids,
|
LCLProc, Controls, Buttons, Forms, StdCtrls, Graphics, ComCtrls, Grids,
|
||||||
// LazUtils
|
// LazUtils
|
||||||
Laz2_XMLCfg,
|
Laz2_XMLCfg, LazMethodList,
|
||||||
// IdeIntf
|
// IdeIntf
|
||||||
EditorSyntaxHighlighterDef;
|
EditorSyntaxHighlighterDef;
|
||||||
|
|
||||||
|
@ -17,8 +17,13 @@ unit IDEWindowIntf;
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
Math, Classes, SysUtils, LCLProc, LazConfigStorage, LazUTF8, Forms, Controls,
|
Math, Classes, SysUtils,
|
||||||
LCLIntf, IDEOptionsIntf;
|
// LCL
|
||||||
|
LCLProc, LCLIntf, Forms, Controls,
|
||||||
|
// LazUtils
|
||||||
|
LazConfigStorage, LazUTF8, LazMethodList,
|
||||||
|
// IdeIntf
|
||||||
|
IDEOptionsIntf;
|
||||||
|
|
||||||
const
|
const
|
||||||
IDEWndCfgFileVersion = 2;
|
IDEWndCfgFileVersion = 2;
|
||||||
|
@ -16,9 +16,14 @@ unit LazIDEIntf;
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
Classes, SysUtils, LCLProc, Forms, Controls, Dialogs, PropEdits, LazHelpHTML,
|
Classes, SysUtils,
|
||||||
IDEOptionsIntf, CompOptsIntf, ProjectIntf,
|
// LCL
|
||||||
IDEExternToolIntf, SrcEditorIntf, IDEWindowIntf;
|
LCLProc, Forms, Controls, Dialogs, LazHelpHTML,
|
||||||
|
// LazUtils
|
||||||
|
LazMethodList,
|
||||||
|
// IdeIntf
|
||||||
|
PropEdits, IDEOptionsIntf, CompOptsIntf, ProjectIntf, IDEExternToolIntf,
|
||||||
|
SrcEditorIntf, IDEWindowIntf;
|
||||||
|
|
||||||
type
|
type
|
||||||
TIDEDirective = (
|
TIDEDirective = (
|
||||||
|
@ -18,7 +18,12 @@ unit MenuIntf;
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
Classes, SysUtils, LCLType, LCLProc, Menus, ImgList, Graphics,
|
Classes, SysUtils,
|
||||||
|
// LCL
|
||||||
|
LCLType, LCLProc, Menus, ImgList, Graphics,
|
||||||
|
// LazUtils
|
||||||
|
LazMethodList,
|
||||||
|
// IdeIntf
|
||||||
IDECommands, IDEImagesIntf;
|
IDECommands, IDEImagesIntf;
|
||||||
|
|
||||||
type
|
type
|
||||||
|
@ -20,7 +20,7 @@ uses
|
|||||||
// LCL
|
// LCL
|
||||||
LCLProc, Forms,
|
LCLProc, Forms,
|
||||||
// LazUtils
|
// LazUtils
|
||||||
LazConfigStorage,
|
LazConfigStorage, LazMethodList,
|
||||||
// IdeIntf
|
// IdeIntf
|
||||||
NewItemIntf, ProjPackIntf, PackageDependencyIntf;
|
NewItemIntf, ProjPackIntf, PackageDependencyIntf;
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ uses
|
|||||||
// LazControls
|
// LazControls
|
||||||
{$IFnDEF UseOINormalCheckBox} CheckBoxThemed, {$ENDIF}
|
{$IFnDEF UseOINormalCheckBox} CheckBoxThemed, {$ENDIF}
|
||||||
// LazUtils
|
// LazUtils
|
||||||
FileUtil, StringHashList, FPCAdds, // for StrToQWord in older fpc versions
|
FileUtil, StringHashList, LazMethodList, FPCAdds, // for StrToQWord in older fpc versions
|
||||||
// IdeIntf
|
// IdeIntf
|
||||||
ObjInspStrConsts, PropEditUtils, IDEUtils,
|
ObjInspStrConsts, PropEditUtils, IDEUtils,
|
||||||
// Forms with .lfm files
|
// Forms with .lfm files
|
||||||
|
@ -18,7 +18,9 @@ uses
|
|||||||
Classes, SysUtils, Types, Math,
|
Classes, SysUtils, Types, Math,
|
||||||
// LCL
|
// LCL
|
||||||
Controls, StdCtrls, Graphics, ActnList, Forms,
|
Controls, StdCtrls, Graphics, ActnList, Forms,
|
||||||
LCLIntf, LMessages, LCLProc, LCLType, Themes;
|
LCLIntf, LMessages, LCLProc, LCLType, Themes,
|
||||||
|
// LazUtils
|
||||||
|
LazMethodList;
|
||||||
|
|
||||||
type
|
type
|
||||||
TCustomCheckBoxThemed = class;
|
TCustomCheckBoxThemed = class;
|
||||||
|
@ -232,11 +232,6 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function CompareMethods(const m1, m2: TMethod): boolean;
|
|
||||||
begin
|
|
||||||
Result:=(m1.Code=m2.Code) and (m1.Data=m2.Data);
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure RegisterDefinePropertiesPas(aClass: TPersistentClass;
|
procedure RegisterDefinePropertiesPas(aClass: TPersistentClass;
|
||||||
const OnDefineProperties: TCWPDefinePropertiesProc);
|
const OnDefineProperties: TCWPDefinePropertiesProc);
|
||||||
var
|
var
|
||||||
|
@ -62,8 +62,16 @@ type
|
|||||||
property AllowDuplicates: boolean read FAllowDuplicates write SetAllowDuplicates; // default false, changed in Lazarus 1.3
|
property AllowDuplicates: boolean read FAllowDuplicates write SetAllowDuplicates; // default false, changed in Lazarus 1.3
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
function CompareMethods(const m1, m2: TMethod): boolean;
|
||||||
|
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
|
function CompareMethods(const m1, m2: TMethod): boolean;
|
||||||
|
begin
|
||||||
|
Result:=(m1.Code=m2.Code) and (m1.Data=m2.Data);
|
||||||
|
end;
|
||||||
|
|
||||||
{ TMethodList.TItemsEnumerator }
|
{ TMethodList.TItemsEnumerator }
|
||||||
|
|
||||||
function TMethodList.TItemsEnumerator.GetCurrent: TMethod;
|
function TMethodList.TItemsEnumerator.GetCurrent: TMethod;
|
||||||
|
@ -6,7 +6,12 @@ unit LazSynTextArea;
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
Classes, SysUtils, Graphics, Controls, LCLType, LCLIntf, LCLProc,
|
Classes, SysUtils,
|
||||||
|
// LCL
|
||||||
|
Graphics, Controls, LCLType, LCLIntf, LCLProc,
|
||||||
|
// LazUtils
|
||||||
|
LazMethodList,
|
||||||
|
// SynEdit
|
||||||
SynEditTypes, SynEditMiscProcs, SynEditMiscClasses, LazSynEditText,
|
SynEditTypes, SynEditMiscProcs, SynEditMiscClasses, LazSynEditText,
|
||||||
SynEditMarkup, SynEditHighlighter, SynTextDrawer;
|
SynEditMarkup, SynEditHighlighter, SynTextDrawer;
|
||||||
|
|
||||||
|
@ -45,10 +45,14 @@ unit SynEditFoldedView;
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
LCLProc, LazLoggerBase, Graphics,
|
Classes, SysUtils,
|
||||||
Classes, SysUtils, LazSynEditText, SynEditTypes, SynEditMiscClasses,
|
// LCL
|
||||||
SynEditMiscProcs, SynEditPointClasses,
|
LCLProc, Graphics,
|
||||||
SynEditHighlighter, SynEditHighlighterFoldBase;
|
// LazUtils
|
||||||
|
LazLoggerBase, LazMethodList,
|
||||||
|
// SynEdit
|
||||||
|
LazSynEditText, SynEditTypes, SynEditMiscClasses, SynEditMiscProcs,
|
||||||
|
SynEditPointClasses, SynEditHighlighter, SynEditHighlighterFoldBase;
|
||||||
|
|
||||||
type
|
type
|
||||||
|
|
||||||
|
@ -32,8 +32,12 @@ unit SynEditHighlighter;
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
SysUtils, Classes,
|
SysUtils, Classes, Registry, IniFiles,
|
||||||
Graphics, LazUTF8, LCLProc, LCLIntf, LCLType, Registry, IniFiles,
|
// LCL
|
||||||
|
LCLProc, LCLIntf, LCLType, Graphics,
|
||||||
|
// LazUtils
|
||||||
|
LazUTF8, LazMethodList,
|
||||||
|
// SynEdit
|
||||||
SynEditTypes, SynEditTextBase;
|
SynEditTypes, SynEditTextBase;
|
||||||
|
|
||||||
type
|
type
|
||||||
|
@ -26,9 +26,14 @@ unit SynEditMarkupHighAll;
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
Classes, SysUtils, ExtCtrls, SynEditMarkup, SynEditTypes, SynEditSearch,
|
Classes, SysUtils,
|
||||||
SynEditMiscClasses, Controls, LCLProc, SynEditHighlighter, SynEditPointClasses,
|
// LCL
|
||||||
SynEditMiscProcs, SynEditFoldedView, SynEditTextBase, LazClasses, LazUTF8;
|
LCLProc, Controls, ExtCtrls,
|
||||||
|
// LazUtils
|
||||||
|
LazClasses, LazUTF8, LazMethodList,
|
||||||
|
// SynEdit
|
||||||
|
SynEditMarkup, SynEditTypes, SynEditSearch, SynEditMiscClasses, SynEditHighlighter,
|
||||||
|
SynEditPointClasses, SynEditMiscProcs, SynEditFoldedView, SynEditTextBase;
|
||||||
|
|
||||||
type
|
type
|
||||||
|
|
||||||
|
@ -23,10 +23,15 @@ unit SynEditMarkupIfDef;
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
SysUtils, Classes, SynEditMiscClasses, SynHighlighterPas, SynEditMarkupHighAll,
|
SysUtils, Classes,
|
||||||
|
// LCL
|
||||||
|
Graphics, LCLProc,
|
||||||
|
// LazUtils
|
||||||
|
LazClasses, LazLoggerBase, LazMethodList,
|
||||||
|
// SynEdit
|
||||||
|
SynEditMiscClasses, SynHighlighterPas, SynEditMarkupHighAll,
|
||||||
SynEditHighlighterFoldBase, SynEditFoldedView, LazSynEditText, SynEditMiscProcs,
|
SynEditHighlighterFoldBase, SynEditFoldedView, LazSynEditText, SynEditMiscProcs,
|
||||||
SynEditMarkup, SynEditPointClasses, SynEditHighlighter, LazClasses, LazLoggerBase, Graphics,
|
SynEditMarkup, SynEditPointClasses, SynEditHighlighter;
|
||||||
LCLProc;
|
|
||||||
|
|
||||||
type
|
type
|
||||||
|
|
||||||
|
@ -42,9 +42,13 @@ unit SynEditMiscClasses;
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
LCLIntf, LCLType, LCLProc,
|
Classes, SysUtils,
|
||||||
Classes, Graphics, Controls, SysUtils, Clipbrd, SynEditHighlighter,
|
// LazUtils
|
||||||
SynEditMiscProcs, SynEditTypes, LazSynEditText, SynEditPointClasses, ImgList;
|
LazMethodList,
|
||||||
|
// LCL
|
||||||
|
LCLIntf, LCLType, LCLProc, Graphics, Controls, Clipbrd, ImgList,
|
||||||
|
// SynEdit
|
||||||
|
SynEditHighlighter, SynEditMiscProcs, SynEditTypes, LazSynEditText, SynEditPointClasses;
|
||||||
|
|
||||||
type
|
type
|
||||||
|
|
||||||
|
@ -35,8 +35,13 @@ unit SynEditMouseCmds;
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
LazSynEditMouseCmdsTypes, Classes, Controls, SysUtils, SynEditStrConst, SynEditPointClasses,
|
Classes, SysUtils,
|
||||||
SynEditKeyCmds, Dialogs, LCLProc, Menus;
|
// LCL
|
||||||
|
LCLProc, Controls, Dialogs, Menus,
|
||||||
|
// LazUtils
|
||||||
|
LazMethodList,
|
||||||
|
// SynEdit
|
||||||
|
LazSynEditMouseCmdsTypes, SynEditStrConst, SynEditPointClasses, SynEditKeyCmds;
|
||||||
|
|
||||||
type
|
type
|
||||||
|
|
||||||
|
@ -36,11 +36,16 @@ unit SynEditPointClasses;
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
Classes, SysUtils, Controls, LCLProc, LCLType, LCLIntf, ExtCtrls, Graphics, Forms,
|
Classes, SysUtils,
|
||||||
|
// LCL
|
||||||
|
Controls, LCLProc, LCLType, LCLIntf, ExtCtrls, Graphics, Forms,
|
||||||
{$IFDEF SYN_MBCSSUPPORT}
|
{$IFDEF SYN_MBCSSUPPORT}
|
||||||
Imm,
|
Imm,
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
LazSynEditText, SynEditTypes, SynEditMiscProcs;//, SynEditTextBuffer;
|
// LazUtils
|
||||||
|
LazMethodList,
|
||||||
|
// SynEdit
|
||||||
|
LazSynEditText, SynEditTypes, SynEditMiscProcs;
|
||||||
|
|
||||||
type
|
type
|
||||||
|
|
||||||
|
@ -37,7 +37,13 @@ unit SynEditTextBase;
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
Classes, SysUtils, LCLProc, SynEditMiscProcs, SynEditKeyCmds;
|
Classes, SysUtils,
|
||||||
|
// LCL
|
||||||
|
LCLProc,
|
||||||
|
// LazUtils
|
||||||
|
LazMethodList,
|
||||||
|
// SynEdit
|
||||||
|
SynEditMiscProcs, SynEditKeyCmds;
|
||||||
|
|
||||||
type
|
type
|
||||||
|
|
||||||
|
@ -5,8 +5,13 @@ unit SynGutterBase;
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
Classes, SysUtils, Graphics, Controls, Menus, math, LCLProc, SynEditMarks,
|
Classes, SysUtils, math,
|
||||||
SynEditMiscClasses, SynTextDrawer, SynEditMouseCmds, SynEditFoldedView;
|
// LCL
|
||||||
|
LCLProc, Graphics, Controls, Menus,
|
||||||
|
// LazUtils
|
||||||
|
LazMethodList,
|
||||||
|
// SynEdit
|
||||||
|
SynEditMarks, SynEditMiscClasses, SynTextDrawer, SynEditMouseCmds, SynEditFoldedView;
|
||||||
|
|
||||||
type
|
type
|
||||||
|
|
||||||
|
@ -67,7 +67,12 @@ unit SynTextDrawer;
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
Classes, Types, SysUtils, LCLProc, LCLType, LCLIntf, Graphics, GraphUtil,
|
Classes, Types, SysUtils,
|
||||||
|
// LCL
|
||||||
|
LCLProc, LCLType, LCLIntf, Graphics, GraphUtil,
|
||||||
|
// LazUtils
|
||||||
|
LazMethodList,
|
||||||
|
// SynEdit
|
||||||
SynEditTypes, SynEditMiscProcs;
|
SynEditTypes, SynEditMiscProcs;
|
||||||
|
|
||||||
type
|
type
|
||||||
|
@ -43,7 +43,7 @@ uses
|
|||||||
FileProcs, CodeToolsCfgScript, LinkScanner,
|
FileProcs, CodeToolsCfgScript, LinkScanner,
|
||||||
// LazUtils
|
// LazUtils
|
||||||
LConvEncoding, FileUtil, LazFileUtils, LazFileCache, LazUTF8, Laz2_XMLCfg,
|
LConvEncoding, FileUtil, LazFileUtils, LazFileCache, LazUTF8, Laz2_XMLCfg,
|
||||||
LazUtilities,
|
LazUtilities, LazMethodList,
|
||||||
// IDEIntf
|
// IDEIntf
|
||||||
IDEOptionsIntf, ProjectIntf, MacroIntf, IDEDialogs, IDEExternToolIntf,
|
IDEOptionsIntf, ProjectIntf, MacroIntf, IDEDialogs, IDEExternToolIntf,
|
||||||
CompOptsIntf, LazIDEIntf, MacroDefIntf, IDEMsgIntf,
|
CompOptsIntf, LazIDEIntf, MacroDefIntf, IDEMsgIntf,
|
||||||
|
@ -48,7 +48,7 @@ uses
|
|||||||
KeywordFuncLists, PascalParserTool, CodeCache, CacheCodeTools, CustomCodeTool,
|
KeywordFuncLists, PascalParserTool, CodeCache, CacheCodeTools, CustomCodeTool,
|
||||||
FileProcs, DefineTemplates,
|
FileProcs, DefineTemplates,
|
||||||
// LazUtils
|
// LazUtils
|
||||||
AvgLvlTree, FileUtil, LazFileUtils, LazUTF8, LazFileCache,
|
AvgLvlTree, FileUtil, LazFileUtils, LazUTF8, LazFileCache, LazMethodList,
|
||||||
Laz2_DOM, Laz2_XMLRead, Laz2_XMLWrite,
|
Laz2_DOM, Laz2_XMLRead, Laz2_XMLWrite,
|
||||||
// SynEdit
|
// SynEdit
|
||||||
SynHighlighterPas,
|
SynHighlighterPas,
|
||||||
|
@ -64,6 +64,8 @@ uses
|
|||||||
LCLType, Buttons, Controls, Graphics, Dialogs, Forms, LCLProc,
|
LCLType, Buttons, Controls, Graphics, Dialogs, Forms, LCLProc,
|
||||||
// Codetools
|
// Codetools
|
||||||
CodeCache,
|
CodeCache,
|
||||||
|
// LazUtils
|
||||||
|
LazMethodList,
|
||||||
// IDEIntf
|
// IDEIntf
|
||||||
PropEdits, ObjectInspector, MenuIntf, SrcEditorIntf, ProjectIntf,
|
PropEdits, ObjectInspector, MenuIntf, SrcEditorIntf, ProjectIntf,
|
||||||
CompOptsIntf, LazIDEIntf, IDEWindowIntf,
|
CompOptsIntf, LazIDEIntf, IDEWindowIntf,
|
||||||
|
@ -54,7 +54,8 @@ uses
|
|||||||
CodeToolsConfig, ExprEval, DefineTemplates, BasicCodeTools, CodeToolsCfgScript,
|
CodeToolsConfig, ExprEval, DefineTemplates, BasicCodeTools, CodeToolsCfgScript,
|
||||||
LinkScanner, CodeToolManager, CodeCache, FileProcs,
|
LinkScanner, CodeToolManager, CodeCache, FileProcs,
|
||||||
// LazUtils
|
// LazUtils
|
||||||
FPCAdds, LazUtilities, FileUtil, LazFileUtils, LazFileCache, LazUTF8, Laz2_XMLCfg, Maps,
|
FPCAdds, LazUtilities, FileUtil, LazFileUtils, LazFileCache, LazMethodList,
|
||||||
|
LazUTF8, Laz2_XMLCfg, Maps,
|
||||||
// IDEIntf
|
// IDEIntf
|
||||||
PropEdits, UnitResources, EditorSyntaxHighlighterDef,
|
PropEdits, UnitResources, EditorSyntaxHighlighterDef,
|
||||||
CompOptsIntf, ProjectIntf, MacroIntf, MacroDefIntf, SrcEditorIntf,
|
CompOptsIntf, ProjectIntf, MacroIntf, MacroDefIntf, SrcEditorIntf,
|
||||||
|
@ -52,7 +52,7 @@ uses
|
|||||||
// LazControls
|
// LazControls
|
||||||
ExtendedNotebook,
|
ExtendedNotebook,
|
||||||
// LazUtils
|
// LazUtils
|
||||||
LConvEncoding, LazUtilities, LazFileCache, LazUTF8Classes, LazUTF8,
|
LConvEncoding, LazUtilities, LazFileCache, LazUTF8Classes, LazUTF8, LazMethodList,
|
||||||
LazLoggerBase, Translations,
|
LazLoggerBase, Translations,
|
||||||
// codetools
|
// codetools
|
||||||
BasicCodeTools, CodeBeautifier, CodeToolManager, CodeCache, SourceLog,
|
BasicCodeTools, CodeBeautifier, CodeToolManager, CodeCache, SourceLog,
|
||||||
|
@ -41,6 +41,8 @@ uses
|
|||||||
Classes, SysUtils, Laz_AVL_Tree,
|
Classes, SysUtils, Laz_AVL_Tree,
|
||||||
// LCL
|
// LCL
|
||||||
Graphics, Controls, LCLProc,
|
Graphics, Controls, LCLProc,
|
||||||
|
// LazUtils
|
||||||
|
LazMethodList,
|
||||||
// SynEdit
|
// SynEdit
|
||||||
SynEdit, SynEditMarks, SynEditMarkupGutterMark,
|
SynEdit, SynEditMarks, SynEditMarkupGutterMark,
|
||||||
// IdeIntf
|
// IdeIntf
|
||||||
|
@ -39,7 +39,9 @@ uses
|
|||||||
// LCL
|
// LCL
|
||||||
LCLStrConsts, LCLType, LCLProc, GraphType, Graphics, LMessages, LCLIntf,
|
LCLStrConsts, LCLType, LCLProc, GraphType, Graphics, LMessages, LCLIntf,
|
||||||
InterfaceBase, ImgList, PropertyStorage, Menus, ActnList, LCLClasses,
|
InterfaceBase, ImgList, PropertyStorage, Menus, ActnList, LCLClasses,
|
||||||
LResources, LCLPlatformDef;
|
LResources, LCLPlatformDef,
|
||||||
|
// LazUtils
|
||||||
|
LazMethodList;
|
||||||
|
|
||||||
{$I controlconsts.inc}
|
{$I controlconsts.inc}
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ uses
|
|||||||
LResources, GraphType, Graphics, Menus, LMessages, CustomTimer, ActnList,
|
LResources, GraphType, Graphics, Menus, LMessages, CustomTimer, ActnList,
|
||||||
ClipBrd, HelpIntfs, Controls, ImgList, Themes,
|
ClipBrd, HelpIntfs, Controls, ImgList, Themes,
|
||||||
// LazUtils
|
// LazUtils
|
||||||
LazFileUtils, LazUTF8, Maps, IntegerList
|
LazFileUtils, LazUTF8, Maps, IntegerList, LazMethodList
|
||||||
{$ifndef wince},gettext{$endif}// remove ifdefs when gettext is fixed and a new fpc is released
|
{$ifndef wince},gettext{$endif}// remove ifdefs when gettext is fixed and a new fpc is released
|
||||||
;
|
;
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ uses
|
|||||||
{$IFDEF Darwin}MacOSAll, {$ENDIF}
|
{$IFDEF Darwin}MacOSAll, {$ENDIF}
|
||||||
Classes, SysUtils, Math, TypInfo, Types, Laz_AVL_Tree,
|
Classes, SysUtils, Math, TypInfo, Types, Laz_AVL_Tree,
|
||||||
// LazUtils
|
// LazUtils
|
||||||
FPCAdds, LazFileUtils, LazMethodList, LazUTF8, LazUTF8Classes,
|
FPCAdds, LazFileUtils, LazUtilities, LazMethodList, LazUTF8, LazUTF8Classes,
|
||||||
{$IFnDEF WithOldDebugln} LazLoggerBase, {$ENDIF}
|
{$IFnDEF WithOldDebugln} LazLoggerBase, {$ENDIF}
|
||||||
// LCL
|
// LCL
|
||||||
LCLStrConsts, LCLType;
|
LCLStrConsts, LCLType;
|
||||||
@ -141,11 +141,11 @@ procedure CalculateLeftTopWidthHeight(X1,Y1,X2,Y2: integer;
|
|||||||
function DeleteAmpersands(var Str : String) : Longint;
|
function DeleteAmpersands(var Str : String) : Longint;
|
||||||
function BreakString(const s: string; MaxLineLength, Indent: integer): string;
|
function BreakString(const s: string; MaxLineLength, Indent: integer): string;
|
||||||
|
|
||||||
function ComparePointers(p1, p2: Pointer): integer;
|
function ComparePointers(p1, p2: Pointer): integer; inline;
|
||||||
function CompareHandles(h1, h2: THandle): integer;
|
function CompareHandles(h1, h2: THandle): integer;
|
||||||
function CompareRect(R1, R2: PRect): Boolean;
|
function CompareRect(R1, R2: PRect): Boolean;
|
||||||
function ComparePoints(const p1, p2: TPoint): integer;
|
function ComparePoints(const p1, p2: TPoint): integer;
|
||||||
function CompareMethods(const m1, m2: TMethod): boolean;
|
function CompareMethods(const m1, m2: TMethod): boolean; inline;
|
||||||
|
|
||||||
function RoundToInt(const e: Extended): integer;
|
function RoundToInt(const e: Extended): integer;
|
||||||
function RoundToCardinal(const e: Extended): cardinal;
|
function RoundToCardinal(const e: Extended): cardinal;
|
||||||
@ -1270,12 +1270,7 @@ end;
|
|||||||
|
|
||||||
function ComparePointers(p1, p2: Pointer): integer;
|
function ComparePointers(p1, p2: Pointer): integer;
|
||||||
begin
|
begin
|
||||||
if p1>p2 then
|
Result:=LazUtilities.ComparePointers(p1, p2);
|
||||||
Result:=1
|
|
||||||
else if p1<p2 then
|
|
||||||
Result:=-1
|
|
||||||
else
|
|
||||||
Result:=0;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function CompareHandles(h1, h2: THandle): integer;
|
function CompareHandles(h1, h2: THandle): integer;
|
||||||
@ -1314,7 +1309,7 @@ end;
|
|||||||
|
|
||||||
function CompareMethods(const m1, m2: TMethod): boolean;
|
function CompareMethods(const m1, m2: TMethod): boolean;
|
||||||
begin
|
begin
|
||||||
Result:=(m1.Code=m2.Code) and (m1.Data=m2.Data);
|
Result:=LazMethodList.CompareMethods(m1, m2);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function RoundToInt(const e: Extended): integer;
|
function RoundToInt(const e: Extended): integer;
|
||||||
|
@ -38,8 +38,12 @@ interface
|
|||||||
{$endif}
|
{$endif}
|
||||||
|
|
||||||
uses
|
uses
|
||||||
Types, Classes, SysUtils, LCLStrConsts, LCLType, LCLProc, LCLIntf, InterfaceBase,
|
Types, Classes, SysUtils,
|
||||||
LResources, LMessages, ActnList, Graphics, ImgList, LCLClasses, Themes;
|
// LCL
|
||||||
|
LCLStrConsts, LCLType, LCLProc, LCLIntf, LCLClasses, LResources, LMessages,
|
||||||
|
ActnList, Graphics, ImgList, Themes,
|
||||||
|
// LazUtils
|
||||||
|
LazMethodList;
|
||||||
|
|
||||||
type
|
type
|
||||||
TMenu = class;
|
TMenu = class;
|
||||||
|
@ -29,7 +29,7 @@ uses
|
|||||||
LCLStrConsts, LCLType, LCLProc, LCLIntf, LMessages, LResources, Graphics,
|
LCLStrConsts, LCLType, LCLProc, LCLIntf, LMessages, LResources, Graphics,
|
||||||
ActnList, Controls, Forms, Menus, Themes,
|
ActnList, Controls, Forms, Menus, Themes,
|
||||||
// LazUtils
|
// LazUtils
|
||||||
TextStrings, ExtendedStrings, LazUTF8;
|
TextStrings, ExtendedStrings, LazUTF8, LazMethodList;
|
||||||
|
|
||||||
type
|
type
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user