You've already forked lazarus-ccr
Fix : unable to add parameter
Fix : parameter name is not shown git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@801 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@@ -95,6 +95,7 @@
|
|||||||
<Filename Value="uinterfaceedit.pas"/>
|
<Filename Value="uinterfaceedit.pas"/>
|
||||||
<ComponentName Value="fInterfaceEdit"/>
|
<ComponentName Value="fInterfaceEdit"/>
|
||||||
<IsPartOfProject Value="True"/>
|
<IsPartOfProject Value="True"/>
|
||||||
|
<ResourceBaseClass Value="Form"/>
|
||||||
<UnitName Value="uinterfaceedit"/>
|
<UnitName Value="uinterfaceedit"/>
|
||||||
</Unit9>
|
</Unit9>
|
||||||
<Unit10>
|
<Unit10>
|
||||||
@@ -130,6 +131,7 @@
|
|||||||
<Filename Value="uargedit.pas"/>
|
<Filename Value="uargedit.pas"/>
|
||||||
<ComponentName Value="fArgEdit"/>
|
<ComponentName Value="fArgEdit"/>
|
||||||
<IsPartOfProject Value="True"/>
|
<IsPartOfProject Value="True"/>
|
||||||
|
<ResourceBaseClass Value="Form"/>
|
||||||
<UnitName Value="uargedit"/>
|
<UnitName Value="uargedit"/>
|
||||||
</Unit15>
|
</Unit15>
|
||||||
<Unit16>
|
<Unit16>
|
||||||
|
@@ -3,14 +3,13 @@ object fArgEdit: TfArgEdit
|
|||||||
Height = 393
|
Height = 393
|
||||||
Top = 180
|
Top = 180
|
||||||
Width = 400
|
Width = 400
|
||||||
HorzScrollBar.Page = 399
|
|
||||||
VertScrollBar.Page = 392
|
|
||||||
ActiveControl = Button1
|
ActiveControl = Button1
|
||||||
BorderStyle = bsSizeToolWin
|
BorderStyle = bsSizeToolWin
|
||||||
Caption = 'fArgEdit'
|
Caption = 'fArgEdit'
|
||||||
ClientHeight = 393
|
ClientHeight = 393
|
||||||
ClientWidth = 400
|
ClientWidth = 400
|
||||||
Position = poMainFormCenter
|
Position = poMainFormCenter
|
||||||
|
LCLVersion = '0.9.26.2'
|
||||||
object Panel1: TPanel
|
object Panel1: TPanel
|
||||||
Height = 50
|
Height = 50
|
||||||
Top = 343
|
Top = 343
|
||||||
@@ -85,9 +84,7 @@ object fArgEdit: TfArgEdit
|
|||||||
Top = 114
|
Top = 114
|
||||||
Width = 352
|
Width = 352
|
||||||
Anchors = [akTop, akLeft, akRight]
|
Anchors = [akTop, akLeft, akRight]
|
||||||
AutoCompleteText = [cbactEndOfLineComplete, cbactSearchAscending]
|
|
||||||
ItemHeight = 13
|
ItemHeight = 13
|
||||||
MaxLength = 0
|
|
||||||
Style = csDropDownList
|
Style = csDropDownList
|
||||||
TabOrder = 1
|
TabOrder = 1
|
||||||
end
|
end
|
||||||
|
@@ -1,39 +1,40 @@
|
|||||||
|
{ Ceci est un fichier ressource généré automatiquement par Lazarus }
|
||||||
|
|
||||||
LazarusResources.Add('TfArgEdit','FORMDATA',[
|
LazarusResources.Add('TfArgEdit','FORMDATA',[
|
||||||
'TPF0'#9'TfArgEdit'#8'fArgEdit'#4'Left'#3#243#2#6'Height'#3#137#1#3'Top'#3#180
|
'TPF0'#9'TfArgEdit'#8'fArgEdit'#4'Left'#3#243#2#6'Height'#3#137#1#3'Top'#3#180
|
||||||
+#0#5'Width'#3#144#1#18'HorzScrollBar.Page'#3#143#1#18'VertScrollBar.Page'#3
|
+#0#5'Width'#3#144#1#13'ActiveControl'#7#7'Button1'#11'BorderStyle'#7#13'bsSi'
|
||||||
+#136#1#13'ActiveControl'#7#7'Button1'#11'BorderStyle'#7#13'bsSizeToolWin'#7
|
+'zeToolWin'#7'Caption'#6#8'fArgEdit'#12'ClientHeight'#3#137#1#11'ClientWidth'
|
||||||
+'Caption'#6#8'fArgEdit'#12'ClientHeight'#3#137#1#11'ClientWidth'#3#144#1#8'P'
|
+#3#144#1#8'Position'#7#16'poMainFormCenter'#10'LCLVersion'#6#8'0.9.26.2'#0#6
|
||||||
+'osition'#7#16'poMainFormCenter'#0#6'TPanel'#6'Panel1'#6'Height'#2'2'#3'Top'
|
+'TPanel'#6'Panel1'#6'Height'#2'2'#3'Top'#3'W'#1#5'Width'#3#144#1#5'Align'#7#8
|
||||||
+#3'W'#1#5'Width'#3#144#1#5'Align'#7#8'alBottom'#12'ClientHeight'#2'2'#11'Cli'
|
+'alBottom'#12'ClientHeight'#2'2'#11'ClientWidth'#3#144#1#8'TabOrder'#2#0#0#7
|
||||||
+'entWidth'#3#144#1#8'TabOrder'#2#0#0#7'TButton'#7'Button1'#4'Left'#3#224#0#6
|
+'TButton'#7'Button1'#4'Left'#3#224#0#6'Height'#2#25#3'Top'#2#11#5'Width'#2'K'
|
||||||
+'Height'#2#25#3'Top'#2#11#5'Width'#2'K'#6'Action'#7#5'actOK'#7'Anchors'#11#5
|
+#6'Action'#7#5'actOK'#7'Anchors'#11#5'akTop'#7'akRight'#0#25'BorderSpacing.I'
|
||||||
+'akTop'#7'akRight'#0#25'BorderSpacing.InnerBorder'#2#4#7'Default'#9#8'TabOrd'
|
+'nnerBorder'#2#4#7'Default'#9#8'TabOrder'#2#0#0#0#7'TButton'#7'Button2'#4'Le'
|
||||||
+'er'#2#0#0#0#7'TButton'#7'Button2'#4'Left'#3'8'#1#6'Height'#2#25#3'Top'#2#10
|
+'ft'#3'8'#1#6'Height'#2#25#3'Top'#2#10#5'Width'#2'K'#7'Anchors'#11#5'akTop'#7
|
||||||
+#5'Width'#2'K'#7'Anchors'#11#5'akTop'#7'akRight'#0#25'BorderSpacing.InnerBor'
|
+'akRight'#0#25'BorderSpacing.InnerBorder'#2#4#6'Cancel'#9#7'Caption'#6#6'Can'
|
||||||
+'der'#2#4#6'Cancel'#9#7'Caption'#6#6'Cancel'#11'ModalResult'#2#2#8'TabOrder'
|
+'cel'#11'ModalResult'#2#2#8'TabOrder'#2#1#0#0#0#12'TPageControl'#12'PageCont'
|
||||||
+#2#1#0#0#0#12'TPageControl'#12'PageControl1'#6'Height'#3'W'#1#5'Width'#3#144
|
+'rol1'#6'Height'#3'W'#1#5'Width'#3#144#1#10'ActivePage'#7#9'TabSheet1'#5'Ali'
|
||||||
+#1#10'ActivePage'#7#9'TabSheet1'#5'Align'#7#8'alClient'#8'TabIndex'#2#0#8'Ta'
|
+'gn'#7#8'alClient'#8'TabIndex'#2#0#8'TabOrder'#2#1#0#9'TTabSheet'#9'TabSheet'
|
||||||
+'bOrder'#2#1#0#9'TTabSheet'#9'TabSheet1'#7'Caption'#6#8'Argument'#12'ClientH'
|
+'1'#7'Caption'#6#8'Argument'#12'ClientHeight'#3'='#1#11'ClientWidth'#3#136#1
|
||||||
+'eight'#3'='#1#11'ClientWidth'#3#136#1#0#6'TLabel'#6'Label1'#4'Left'#2#20#6
|
+#0#6'TLabel'#6'Label1'#4'Left'#2#20#6'Height'#2#14#3'Top'#2#26#5'Width'#2#28
|
||||||
+'Height'#2#14#3'Top'#2#26#5'Width'#2#28#7'Caption'#6#4'Name'#11'ParentColor'
|
+#7'Caption'#6#4'Name'#11'ParentColor'#8#0#0#6'TLabel'#6'Label2'#4'Left'#2#20
|
||||||
+#8#0#0#6'TLabel'#6'Label2'#4'Left'#2#20#6'Height'#2#14#3'Top'#2'_'#5'Width'#2
|
+#6'Height'#2#14#3'Top'#2'_'#5'Width'#2#25#7'Caption'#6#4'Type'#11'ParentColo'
|
||||||
+#25#7'Caption'#6#4'Type'#11'ParentColor'#8#0#0#5'TEdit'#7'edtName'#4'Left'#2
|
+'r'#8#0#0#5'TEdit'#7'edtName'#4'Left'#2#20#6'Height'#2#23#3'Top'#2'/'#5'Widt'
|
||||||
+#20#6'Height'#2#23#3'Top'#2'/'#5'Width'#3'`'#1#7'Anchors'#11#5'akTop'#6'akLe'
|
+'h'#3'`'#1#7'Anchors'#11#5'akTop'#6'akLeft'#7'akRight'#0#8'TabOrder'#2#0#4'T'
|
||||||
+'ft'#7'akRight'#0#8'TabOrder'#2#0#4'Text'#6#7'edtName'#0#0#9'TComboBox'#7'ed'
|
+'ext'#6#7'edtName'#0#0#9'TComboBox'#7'edtType'#4'Left'#2#20#6'Height'#2#21#3
|
||||||
+'tType'#4'Left'#2#20#6'Height'#2#21#3'Top'#2'r'#5'Width'#3'`'#1#7'Anchors'#11
|
+'Top'#2'r'#5'Width'#3'`'#1#7'Anchors'#11#5'akTop'#6'akLeft'#7'akRight'#0#10
|
||||||
+#5'akTop'#6'akLeft'#7'akRight'#0#16'AutoCompleteText'#11#22'cbactEndOfLineCo'
|
+'ItemHeight'#2#13#5'Style'#7#14'csDropDownList'#8'TabOrder'#2#1#0#0#11'TRadi'
|
||||||
+'mplete'#20'cbactSearchAscending'#0#10'ItemHeight'#2#13#9'MaxLength'#2#0#5'S'
|
+'oGroup'#11'edtModifier'#4'Left'#2#20#6'Height'#3#133#0#3'Top'#3#157#0#5'Wid'
|
||||||
+'tyle'#7#14'csDropDownList'#8'TabOrder'#2#1#0#0#11'TRadioGroup'#11'edtModifi'
|
+'th'#3'`'#1#7'Anchors'#11#5'akTop'#6'akLeft'#7'akRight'#8'akBottom'#0#8'Auto'
|
||||||
+'er'#4'Left'#2#20#6'Height'#3#133#0#3'Top'#3#157#0#5'Width'#3'`'#1#7'Anchors'
|
+'Fill'#9#7'Caption'#6#12' Modifier '#28'ChildSizing.LeftRightSpacing'#2#6
|
||||||
+#11#5'akTop'#6'akLeft'#7'akRight'#8'akBottom'#0#8'AutoFill'#9#7'Caption'#6#12
|
+#28'ChildSizing.TopBottomSpacing'#2#6#29'ChildSizing.EnlargeHorizontal'#7#24
|
||||||
+' Modifier '#28'ChildSizing.LeftRightSpacing'#2#6#28'ChildSizing.TopBottom'
|
+'crsHomogenousChildResize'#27'ChildSizing.EnlargeVertical'#7#24'crsHomogenou'
|
||||||
+'Spacing'#2#6#29'ChildSizing.EnlargeHorizontal'#7#24'crsHomogenousChildResiz'
|
+'sChildResize'#28'ChildSizing.ShrinkHorizontal'#7#14'crsScaleChilds'#26'Chil'
|
||||||
+'e'#27'ChildSizing.EnlargeVertical'#7#24'crsHomogenousChildResize'#28'ChildS'
|
+'dSizing.ShrinkVertical'#7#14'crsScaleChilds'#18'ChildSizing.Layout'#7#29'cc'
|
||||||
+'izing.ShrinkHorizontal'#7#14'crsScaleChilds'#26'ChildSizing.ShrinkVertical'
|
+'lLeftToRightThenTopToBottom'#27'ChildSizing.ControlsPerLine'#2#2#12'ClientH'
|
||||||
+#7#14'crsScaleChilds'#18'ChildSizing.Layout'#7#29'cclLeftToRightThenTopToBot'
|
+'eight'#2's'#11'ClientWidth'#3'\'#1#7'Columns'#2#2#13'Items.Strings'#1#6#7'D'
|
||||||
+'tom'#27'ChildSizing.ControlsPerLine'#2#2#12'ClientHeight'#2's'#11'ClientWid'
|
+'efault'#6#5'Const'#6#3'Var'#6#3'Out'#0#8'TabOrder'#2#2#0#0#0#0#11'TActionLi'
|
||||||
+'th'#3'\'#1#7'Columns'#2#2#13'Items.Strings'#1#6#7'Default'#6#5'Const'#6#3'V'
|
+'st'#2'AL'#4'left'#3#152#0#3'top'#3#213#0#0#7'TAction'#5'actOK'#7'Caption'#6
|
||||||
+'ar'#6#3'Out'#0#8'TabOrder'#2#2#0#0#0#0#11'TActionList'#2'AL'#4'left'#3#152#0
|
+#2'OK'#18'DisableIfNoHandler'#9#9'OnExecute'#7#12'actOKExecute'#8'OnUpdate'#7
|
||||||
+#3'top'#3#213#0#0#7'TAction'#5'actOK'#7'Caption'#6#2'OK'#18'DisableIfNoHandl'
|
+#11'actOKUpdate'#0#0#0#0
|
||||||
+'er'#9#9'OnExecute'#7#12'actOKExecute'#8'OnUpdate'#7#11'actOKUpdate'#0#0#0#0
|
|
||||||
]);
|
]);
|
||||||
|
@@ -71,16 +71,18 @@ var
|
|||||||
i : Integer;
|
i : Integer;
|
||||||
locArg : TPasArgument;
|
locArg : TPasArgument;
|
||||||
argList : TList;
|
argList : TList;
|
||||||
|
locName : string;
|
||||||
begin
|
begin
|
||||||
b := ( not IsStrEmpty(edtName.Text) ) and
|
locName := edtName.Text;
|
||||||
|
b := ( not IsStrEmpty(locName) ) and
|
||||||
( edtType.ItemIndex > -1 );
|
( edtType.ItemIndex > -1 );
|
||||||
if b then begin
|
if b then begin
|
||||||
argList := TPasProcedureType(FObject.Parent).Args;
|
argList := TPasProcedureType(FObject.Parent).Args;
|
||||||
for i := 0 to Pred(argList.Count) do begin
|
for i := 0 to Pred(argList.Count) do begin
|
||||||
locArg := TPasArgument(argList[i]);
|
locArg := TPasArgument(argList[i]);
|
||||||
if ( locArg <> FObject ) and
|
if ( locArg <> FObject ) and
|
||||||
( AnsiSameText(locArg.Name,FObject.Name) or
|
( AnsiSameText(locArg.Name,locName) or
|
||||||
AnsiSameText(FSymbolTable.GetExternalName(locArg),FSymbolTable.GetExternalName(FObject))
|
AnsiSameText(FSymbolTable.GetExternalName(locArg),locName)
|
||||||
)
|
)
|
||||||
then begin
|
then begin
|
||||||
b := False;
|
b := False;
|
||||||
|
@@ -1,5 +1,3 @@
|
|||||||
{ Ceci est un fichier ressource g�n�r� automatiquement par Lazarus }
|
|
||||||
|
|
||||||
LazarusResources.Add('TfProcEdit','FORMDATA',[
|
LazarusResources.Add('TfProcEdit','FORMDATA',[
|
||||||
'TPF0'#10'TfProcEdit'#9'fProcEdit'#4'Left'#3'"'#1#6'Height'#3#31#2#3'Top'#2'v'
|
'TPF0'#10'TfProcEdit'#9'fProcEdit'#4'Left'#3'"'#1#6'Height'#3#31#2#3'Top'#2'v'
|
||||||
+#5'Width'#3#10#2#13'ActiveControl'#7#7'edtName'#11'BorderStyle'#7#13'bsSizeT'
|
+#5'Width'#3#10#2#13'ActiveControl'#7#7'edtName'#11'BorderStyle'#7#13'bsSizeT'
|
||||||
|
@@ -130,7 +130,7 @@ begin
|
|||||||
if ( locProc <> FObject ) and
|
if ( locProc <> FObject ) and
|
||||||
( AnsiSameText(locProc.Name,locName) or
|
( AnsiSameText(locProc.Name,locName) or
|
||||||
( ( Self.UpdateType = etUpdate ) and
|
( ( Self.UpdateType = etUpdate ) and
|
||||||
AnsiSameText(FSymbolTable.GetExternalName(locProc),FSymbolTable.GetExternalName(FObject))
|
AnsiSameText(FSymbolTable.GetExternalName(locProc),locName)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
then begin
|
then begin
|
||||||
|
@@ -772,9 +772,9 @@ begin
|
|||||||
for j := 0 to Pred(memberList.Count) do begin
|
for j := 0 to Pred(memberList.Count) do begin
|
||||||
pmr := TPasArgument(memberList[j]);
|
pmr := TPasArgument(memberList[j]);
|
||||||
ss := AccessNames[pmr.Access];
|
ss := AccessNames[pmr.Access];
|
||||||
if ( Length(ss) > 0 ) then begin
|
if ( Length(ss) > 0 ) then
|
||||||
ss := ss + ' ' + AContainer.GetExternalName(pmr);
|
ss := ss + ' ';
|
||||||
end;
|
ss := ss + AContainer.GetExternalName(pmr);
|
||||||
AddChildNode(Result,ss);
|
AddChildNode(Result,ss);
|
||||||
end;
|
end;
|
||||||
if locMthd.InheritsFrom(TPasFunction) then begin
|
if locMthd.InheritsFrom(TPasFunction) then begin
|
||||||
|
Reference in New Issue
Block a user