mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-07-31 21:56:15 +02:00
cody: added function to insert an int64 id
git-svn-id: trunk@53019 -
This commit is contained in:
parent
284c7d20d0
commit
291ce7da29
@ -131,6 +131,10 @@ begin
|
|||||||
CreateSourceCommand(CmdCatCodeTools,'InsertCallInherited',
|
CreateSourceCommand(CmdCatCodeTools,'InsertCallInherited',
|
||||||
crsInsertCallInherited,nil,@InsertCallInherited);
|
crsInsertCallInherited,nil,@InsertCallInherited);
|
||||||
|
|
||||||
|
// insert int64 ID
|
||||||
|
CreateSourceCommand(CmdCatCodeTools,'InsertInt64ID',
|
||||||
|
'Insert int64 id YYYYDDMMhhnnss',nil,@InsertInt64ID);
|
||||||
|
|
||||||
// Show unit / identifier dictionary
|
// Show unit / identifier dictionary
|
||||||
InitUnitDictionary;
|
InitUnitDictionary;
|
||||||
CreateSourceCommand(CmdCatCodeTools,'ShowUnitDictionary',
|
CreateSourceCommand(CmdCatCodeTools,'ShowUnitDictionary',
|
||||||
|
@ -110,6 +110,7 @@ type
|
|||||||
procedure ExplodeAWithBlockCmd(Sender: TObject);
|
procedure ExplodeAWithBlockCmd(Sender: TObject);
|
||||||
procedure InsertFileAtCursor(Sender: TObject);
|
procedure InsertFileAtCursor(Sender: TObject);
|
||||||
procedure InsertCallInherited(Sender: TObject);
|
procedure InsertCallInherited(Sender: TObject);
|
||||||
|
procedure InsertInt64ID(Sender: TObject);
|
||||||
|
|
||||||
function ParseTilCursor(out Tool: TCodeTool; out CleanPos: integer;
|
function ParseTilCursor(out Tool: TCodeTool; out CleanPos: integer;
|
||||||
out Node: TCodeTreeNode; out ErrorHandled: boolean;
|
out Node: TCodeTreeNode; out ErrorHandled: boolean;
|
||||||
@ -318,6 +319,16 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure InsertInt64ID(Sender: TObject);
|
||||||
|
var
|
||||||
|
SrcEdit: TSourceEditorInterface;
|
||||||
|
begin
|
||||||
|
SrcEdit:=SourceEditorManagerIntf.ActiveEditor;
|
||||||
|
if SrcEdit=nil then exit;
|
||||||
|
|
||||||
|
SrcEdit.Selection:=FormatDateTime('YYYYMMDDhhnnss',Now);
|
||||||
|
end;
|
||||||
|
|
||||||
function ParseTilCursor(out Tool: TCodeTool; out CleanPos: integer;
|
function ParseTilCursor(out Tool: TCodeTool; out CleanPos: integer;
|
||||||
out Node: TCodeTreeNode; out ErrorHandled: boolean;
|
out Node: TCodeTreeNode; out ErrorHandled: boolean;
|
||||||
JumpToError: boolean; CodePos: PCodeXYPosition): TCUParseError;
|
JumpToError: boolean; CodePos: PCodeXYPosition): TCUParseError;
|
||||||
|
Loading…
Reference in New Issue
Block a user