mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-24 23:22:08 +02:00
replaced several BoolToStr calls with dbgs
git-svn-id: trunk@12914 -
This commit is contained in:
parent
ec8cae645e
commit
e8f4f6e240
@ -1494,7 +1494,7 @@ begin
|
|||||||
FCurUnknownProperty:='';
|
FCurUnknownProperty:='';
|
||||||
|
|
||||||
DebugLn('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>');
|
DebugLn('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>');
|
||||||
DebugLn('[TJITComponentList.ReaderError] "'+ErrorMsg+'" ignoring=',BoolToStr(Handled));
|
DebugLn(['[TJITComponentList.ReaderError] "'+ErrorMsg+'" ignoring=',Handled]);
|
||||||
DebugLn('<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<');
|
DebugLn('<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<');
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -1190,8 +1190,7 @@ var
|
|||||||
ANonControlForm: TNonControlDesignerForm;
|
ANonControlForm: TNonControlDesignerForm;
|
||||||
begin
|
begin
|
||||||
ANonControlForm:=FindNonControlForm(AComponent);
|
ANonControlForm:=FindNonControlForm(AComponent);
|
||||||
DebugLn('TCustomFormEditor.UpdateDesignerFormName ',
|
//DebugLn(['TCustomFormEditor.UpdateDesignerFormName ',ANonControlForm<>nil, ' ',AComponent.Name]);
|
||||||
BoolToStr(ANonControlForm<>nil), ' ',AComponent.Name);
|
|
||||||
if ANonControlForm<>nil then
|
if ANonControlForm<>nil then
|
||||||
ANonControlForm.Caption:=AComponent.Name;
|
ANonControlForm.Caption:=AComponent.Name;
|
||||||
end;
|
end;
|
||||||
@ -1982,9 +1981,9 @@ procedure TCustomFormEditor.JITListPropertyNotFound(Sender: TObject;
|
|||||||
Reader: TReader; Instance: TPersistent; var PropName: string;
|
Reader: TReader; Instance: TPersistent; var PropName: string;
|
||||||
IsPath: boolean; var Handled, Skip: Boolean);
|
IsPath: boolean; var Handled, Skip: Boolean);
|
||||||
begin
|
begin
|
||||||
DebugLn('TCustomFormEditor.JITListPropertyNotFound ',Sender.ClassName,
|
DebugLn(['TCustomFormEditor.JITListPropertyNotFound ',Sender.ClassName,
|
||||||
' Instance=',Instance.ClassName,' PropName="',PropName,
|
' Instance=',Instance.ClassName,' PropName="',PropName,
|
||||||
'" IsPath=',BoolToStr(IsPath));
|
'" IsPath=',IsPath]);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TCustomFormEditor.GetDesignerBaseClasses(Index: integer
|
function TCustomFormEditor.GetDesignerBaseClasses(Index: integer
|
||||||
|
@ -686,7 +686,7 @@ end;
|
|||||||
|
|
||||||
procedure TManagedBreakPoints.NotifyRemove(const ABreakPoint: TIDEBreakPoint);
|
procedure TManagedBreakPoints.NotifyRemove(const ABreakPoint: TIDEBreakPoint);
|
||||||
begin
|
begin
|
||||||
debugln('TManagedBreakPoints.NotifyRemove A ',ABreakpoint.Source,' ',IntToStr(ABreakpoint.Line),' ',BoolToStr(TManagedBreakPoint(ABreakpoint).SourceMark <> nil));
|
debugln(['TManagedBreakPoints.NotifyRemove A ',ABreakpoint.Source,' ',ABreakpoint.Line,' ',TManagedBreakPoint(ABreakpoint).SourceMark <> nil]);
|
||||||
|
|
||||||
inherited;
|
inherited;
|
||||||
|
|
||||||
|
@ -6928,7 +6928,7 @@ function TMainIDE.DoOpenMainUnit(Flags: TOpenFlags): TModalResult;
|
|||||||
var MainUnitInfo: TUnitInfo;
|
var MainUnitInfo: TUnitInfo;
|
||||||
begin
|
begin
|
||||||
{$IFDEF IDE_VERBOSE}
|
{$IFDEF IDE_VERBOSE}
|
||||||
debugln('[TMainIDE.DoOpenMainUnit] A ProjectLoading=',BoolToStr((ofProjectLoading in Flags)),' MainUnitID=',IntToStr(Project1.MainUnitID));
|
debugln(['[TMainIDE.DoOpenMainUnit] A ProjectLoading=',ofProjectLoading in Flags,' MainUnitID=',Project1.MainUnitID]);
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
Result:=mrCancel;
|
Result:=mrCancel;
|
||||||
if Project1.MainUnitID<0 then exit;
|
if Project1.MainUnitID<0 then exit;
|
||||||
|
@ -783,8 +783,8 @@ begin
|
|||||||
{$ifdef dbgDBGrid}
|
{$ifdef dbgDBGrid}
|
||||||
DebugLn('(',name,') ','TCustomDBGrid.OnEditingChanged');
|
DebugLn('(',name,') ','TCustomDBGrid.OnEditingChanged');
|
||||||
if aDataSet<>nil then begin
|
if aDataSet<>nil then begin
|
||||||
DebugLn('Editing=', BoolToStr(dsEdit = aDataSet.State));
|
DebugLn(['Editing=', dsEdit = aDataSet.State]);
|
||||||
DebugLn('Inserting=',BoolToStr(dsInsert = aDataSet.State));
|
DebugLn(['Inserting=',dsInsert = aDataSet.State]);
|
||||||
end else
|
end else
|
||||||
DebugLn('Dataset=nil');
|
DebugLn('Dataset=nil');
|
||||||
{$endif}
|
{$endif}
|
||||||
@ -2061,7 +2061,7 @@ end;
|
|||||||
|
|
||||||
procedure TCustomDBGrid.EditingColumn(aCol: Integer; Ok: Boolean);
|
procedure TCustomDBGrid.EditingColumn(aCol: Integer; Ok: Boolean);
|
||||||
begin
|
begin
|
||||||
{$ifdef dbgDBGrid} DebugLn('DBGrid.EditingColumn INIT aCol=', InttoStr(aCol), ' Ok=', BoolToStr(ok)); {$endif}
|
{$ifdef dbgDBGrid} DebugLn(['DBGrid.EditingColumn INIT aCol=', aCol, ' Ok=', ok]); {$endif}
|
||||||
if Ok then begin
|
if Ok then begin
|
||||||
FEditingColumn := aCol;
|
FEditingColumn := aCol;
|
||||||
FDatalink.Modified := True;
|
FDatalink.Modified := True;
|
||||||
|
@ -29,7 +29,7 @@ unit GraphType;
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
Classes, SysUtils, LCLType, LCLProc;
|
FPCAdds, Classes, SysUtils, LCLType, LCLProc;
|
||||||
|
|
||||||
{$ifdef Trace}
|
{$ifdef Trace}
|
||||||
{$ASSERTIONS ON}
|
{$ASSERTIONS ON}
|
||||||
@ -857,8 +857,8 @@ function TRawImageDescription.AsString: string;
|
|||||||
begin
|
begin
|
||||||
Result:=
|
Result:=
|
||||||
' Format='+RawImageColorFormatNames[Format]
|
' Format='+RawImageColorFormatNames[Format]
|
||||||
+' HasPalette->'+BoolToStr(PaletteColorCount <> 0, True)
|
+' HasPalette->'+dbgs(PaletteColorCount <> 0)
|
||||||
+' HasMask->'+BoolToStr(PaletteColorCount <> 0, True)
|
+' HasMask->'+dbgs(PaletteColorCount <> 0)
|
||||||
+' Depth='+IntToStr(Depth)
|
+' Depth='+IntToStr(Depth)
|
||||||
+' Width='+IntToStr(Width)
|
+' Width='+IntToStr(Width)
|
||||||
+' Height='+IntToStr(Height)
|
+' Height='+IntToStr(Height)
|
||||||
|
@ -5608,8 +5608,8 @@ var
|
|||||||
R: TRect;
|
R: TRect;
|
||||||
begin
|
begin
|
||||||
{$IfDef dbgPaint}
|
{$IfDef dbgPaint}
|
||||||
DebugLn('InvalidateCell Col=',IntToStr(aCol),
|
DebugLn(['InvalidateCell Col=',aCol,
|
||||||
' Row=',IntToStr(aRow),' Redraw=', BoolToStr(Redraw));
|
' Row=',aRow,' Redraw=', Redraw]);
|
||||||
{$Endif}
|
{$Endif}
|
||||||
if not HandleAllocated then Exit;
|
if not HandleAllocated then Exit;
|
||||||
R:=CellRect(aCol, aRow);
|
R:=CellRect(aCol, aRow);
|
||||||
|
@ -724,8 +724,8 @@ begin
|
|||||||
HideHint;
|
HideHint;
|
||||||
|
|
||||||
{$ifdef DebugHintWindow}
|
{$ifdef DebugHintWindow}
|
||||||
DebugLn('TApplication.ShowHintWindow Info.ControlHasHint=',
|
DebugLn(['TApplication.ShowHintWindow Info.ControlHasHint=',
|
||||||
BoolToStr(Info.ControlHasHint), ' Type=', IntToStr(ord(FHintTimerType)));
|
Info.ControlHasHint, ' Type=', ord(FHintTimerType)]);
|
||||||
{$endif}
|
{$endif}
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -44,10 +44,10 @@ end;
|
|||||||
|
|
||||||
procedure TToolButtonActionLink.SetImageIndex(Value: Integer);
|
procedure TToolButtonActionLink.SetImageIndex(Value: Integer);
|
||||||
begin
|
begin
|
||||||
DebugLn('TToolButtonActionLink.SetImageIndex A ',ClassName,' Client=',
|
DebugLn(['TToolButtonActionLink.SetImageIndex A ',ClassName,' Client=',
|
||||||
TToolButton(FClient).Name,' IsImageIndexLinked=',
|
TToolButton(FClient).Name,' IsImageIndexLinked=',
|
||||||
BoolToStr(IsImageIndexLinked),' Old=',
|
IsImageIndexLinked,' Old=',
|
||||||
IntToStr(TToolButton(FClient).ImageIndex),' New=',IntToStr(Value));
|
TToolButton(FClient).ImageIndex,' New=',Value]);
|
||||||
if IsImageIndexLinked then TToolButton(FClient).ImageIndex := Value;
|
if IsImageIndexLinked then TToolButton(FClient).ImageIndex := Value;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -3914,7 +3914,7 @@ begin
|
|||||||
inherited DragOver(Source,X,Y,State,Accept);
|
inherited DragOver(Source,X,Y,State,Accept);
|
||||||
Node := GetNodeAt(X, Y);
|
Node := GetNodeAt(X, Y);
|
||||||
{$IFDEF VerboseDrag}
|
{$IFDEF VerboseDrag}
|
||||||
DebugLn('TCustomTreeView.DragOver ',Name,':',ClassName,' ',BoolToStr(Node<>nil),' ',BoolToStr(Node <> DropTarget),' ',BoolToStr(Node = FLastDropTarget));
|
DebugLn(['TCustomTreeView.DragOver ',Name,':',ClassName,' ',Node<>nil,' ',Node <> DropTarget,' ',Node = FLastDropTarget]);
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
if (Node <> nil)
|
if (Node <> nil)
|
||||||
and ((Node <> DropTarget) or (Node = FLastDropTarget)) then
|
and ((Node <> DropTarget) or (Node = FLastDropTarget)) then
|
||||||
@ -4418,7 +4418,7 @@ begin
|
|||||||
// mousedown occured in text or icon
|
// mousedown occured in text or icon
|
||||||
// -> select node and begin drag operation
|
// -> select node and begin drag operation
|
||||||
{$IFDEF VerboseDrag}
|
{$IFDEF VerboseDrag}
|
||||||
DebugLn('TCustomTreeView.MouseDown In Text ',Name,':',ClassName,' MouseCapture=',BoolToStr(MouseCapture));
|
DebugLn(['TCustomTreeView.MouseDown In Text ',Name,':',ClassName,' MouseCapture=',MouseCapture]);
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
if MouseCapture then
|
if MouseCapture then
|
||||||
Include(FStates,tvsMouseCapture);
|
Include(FStates,tvsMouseCapture);
|
||||||
|
@ -606,7 +606,7 @@ begin
|
|||||||
|
|
||||||
gtk_tree_view_column_set_alignment(GtkColumn, AlignToGtkAlign(AAlignment));
|
gtk_tree_view_column_set_alignment(GtkColumn, AlignToGtkAlign(AAlignment));
|
||||||
end;
|
end;
|
||||||
//DebugLn('ColSetALignment AIndex=',IntTOStr(AIndex),' (GtkColumn=nil)=', BoolToStr(GtkColumn=nil));
|
//DebugLn(['ColSetALignment AIndex=',AIndex,' (GtkColumn=nil)=', GtkColumn=nil]);
|
||||||
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user