mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 16:49:12 +02:00
LCL: fixed typos related to 'occur' word
git-svn-id: trunk@65207 -
This commit is contained in:
parent
171338a8db
commit
b8d0d9366b
@ -5717,11 +5717,11 @@ begin
|
|||||||
(CursorNode <> nil) then
|
(CursorNode <> nil) then
|
||||||
begin
|
begin
|
||||||
if FMouseDownOnFoldingSign then
|
if FMouseDownOnFoldingSign then
|
||||||
// mousedown occured on expand sign -> expand/collapse
|
// mousedown occurred on expand sign -> expand/collapse
|
||||||
CursorNode.Expanded := not CursorNode.Expanded
|
CursorNode.Expanded := not CursorNode.Expanded
|
||||||
else if (LogicalX >= CursorNode.DisplayStateIconLeft) or (tvoRowSelect in Options) then
|
else if (LogicalX >= CursorNode.DisplayStateIconLeft) or (tvoRowSelect in Options) then
|
||||||
begin
|
begin
|
||||||
// mousedown occured in text or icon -> select node and begin drag operation
|
// mousedown occurred in text or icon -> select node and begin drag operation
|
||||||
{$IFDEF VerboseDrag}
|
{$IFDEF VerboseDrag}
|
||||||
DebugLn(['TCustomTreeView.MouseDown In Text ',DbgSName(Self),' MouseCapture=',MouseCapture]);
|
DebugLn(['TCustomTreeView.MouseDown In Text ',DbgSName(Self),' MouseCapture=',MouseCapture]);
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
@ -7604,7 +7604,7 @@ begin
|
|||||||
AdjustSize;
|
AdjustSize;
|
||||||
finally
|
finally
|
||||||
//DebugLn(['TWinControl.CreateWnd created ',DbgSName(Self),' enable autosizing ...']);
|
//DebugLn(['TWinControl.CreateWnd created ',DbgSName(Self),' enable autosizing ...']);
|
||||||
(* If an error occured and FHandle was not created,
|
(* If an error occurred and FHandle was not created,
|
||||||
then EnableAutoSizing must not be called.
|
then EnableAutoSizing must not be called.
|
||||||
EnableAutoSizing will need the Handle, and trigger another attempt to create it.
|
EnableAutoSizing will need the Handle, and trigger another attempt to create it.
|
||||||
This leads to an endless loop/recursion.
|
This leads to an endless loop/recursion.
|
||||||
|
@ -111,7 +111,7 @@ begin
|
|||||||
Result := objc_getClass({Str_TPrivateCocoaCarbonTrayIcon} Str_NSObject);
|
Result := objc_getClass({Str_TPrivateCocoaCarbonTrayIcon} Str_NSObject);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{Removes/replaces all occurences of a character from a string}
|
{Removes/replaces all occurrences of a character from a string}
|
||||||
function TPrivateCocoaCarbonTrayIcon.TrimAllChar(const S: string; const ch: Char): string;
|
function TPrivateCocoaCarbonTrayIcon.TrimAllChar(const S: string; const ch: Char): string;
|
||||||
var
|
var
|
||||||
buf: string;
|
buf: string;
|
||||||
|
@ -744,7 +744,7 @@ begin
|
|||||||
begin
|
begin
|
||||||
lTimer := GetTimer(i);
|
lTimer := GetTimer(i);
|
||||||
|
|
||||||
// if selectresult = 0 then a timeout occured, in other cases guess how
|
// if selectresult = 0 then a timeout occurred, in other cases guess how
|
||||||
// much time passed
|
// much time passed
|
||||||
if selectresult = 0 then Inc(lTimer.NativeHandle, lTimeoutInterval)
|
if selectresult = 0 then Inc(lTimer.NativeHandle, lTimeoutInterval)
|
||||||
else Inc(lTimer.NativeHandle, 10);
|
else Inc(lTimer.NativeHandle, 10);
|
||||||
|
@ -108,7 +108,7 @@ begin
|
|||||||
Result := objc_getClass({Str_TPrivateCocoaCarbonTrayIcon} Str_NSObject);
|
Result := objc_getClass({Str_TPrivateCocoaCarbonTrayIcon} Str_NSObject);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{Removes/replaces all occurences of a character from a string}
|
{Removes/replaces all occurrences of a character from a string}
|
||||||
function TPrivateCocoaCarbonTrayIcon.TrimAllChar(const S: string; const ch: Char): string;
|
function TPrivateCocoaCarbonTrayIcon.TrimAllChar(const S: string; const ch: Char): string;
|
||||||
var
|
var
|
||||||
buf: string;
|
buf: string;
|
||||||
|
@ -819,7 +819,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
{$endif}
|
{$endif}
|
||||||
|
|
||||||
// if overflow occured, then previous SetLength() would have fixed the buffer
|
// if overflow occurred, then previous SetLength() would have fixed the buffer
|
||||||
// size, so run Xutf8LookupString again to read correct value.
|
// size, so run Xutf8LookupString again to read correct value.
|
||||||
if CDWidgetset.ComposeStatus = XBufferOverflow then
|
if CDWidgetset.ComposeStatus = XBufferOverflow then
|
||||||
Xutf8LookupString(CDWidgetset.InputContext, @Event, @CDWidgetset.ComposeBuffer[1],
|
Xutf8LookupString(CDWidgetset.InputContext, @Event, @CDWidgetset.ComposeBuffer[1],
|
||||||
|
@ -277,7 +277,7 @@ begin
|
|||||||
{$IFDEF VerboseGtkToDos}{$note TODO: enable standard error_log handling}{$ENDIF}
|
{$IFDEF VerboseGtkToDos}{$note TODO: enable standard error_log handling}{$ENDIF}
|
||||||
{$IfDef REPORT_GDK_ERRORS}
|
{$IfDef REPORT_GDK_ERRORS}
|
||||||
If (Xerror<>0) then
|
If (Xerror<>0) then
|
||||||
RaiseGDBException('A GDK/X Error occured, this is normally fatal. The error code was : ' + IntToStr(Xerror));
|
RaiseGDBException('A GDK/X Error occurred, this is normally fatal. The error code was: ' + IntToStr(Xerror));
|
||||||
{$EndIf}
|
{$EndIf}
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -835,7 +835,7 @@ var
|
|||||||
try
|
try
|
||||||
if not gdk_pixbuf_loader_write(Loader, TGdkPixBufBuffer(@Header), MIN_LOADER_HEADER_SIZE {$ifdef gtk2},nil{$endif})
|
if not gdk_pixbuf_loader_write(Loader, TGdkPixBufBuffer(@Header), MIN_LOADER_HEADER_SIZE {$ifdef gtk2},nil{$endif})
|
||||||
then begin
|
then begin
|
||||||
DebugLn('WARNING: [TGtkWidgetSet.CreateBitmap] Error occured loading Bitmap Header!');
|
DebugLn('WARNING: [TGtkWidgetSet.CreateBitmap] Error loading Bitmap Header!');
|
||||||
Exit;
|
Exit;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -862,14 +862,14 @@ var
|
|||||||
|
|
||||||
if not res
|
if not res
|
||||||
then begin
|
then begin
|
||||||
DebugLn('WARNING: [TGtkWidgetSet.CreateBitmap] Error occured loading Image!');
|
DebugLn('WARNING: [TGtkWidgetSet.CreateBitmap] Error loading Image!');
|
||||||
Exit;
|
Exit;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
Src := gdk_pixbuf_loader_get_pixbuf(loader);
|
Src := gdk_pixbuf_loader_get_pixbuf(loader);
|
||||||
if Src = nil
|
if Src = nil
|
||||||
then begin
|
then begin
|
||||||
DebugLn('WARNING: [TGtkWidgetSet.CreateBitmap] Error occured loading Pixbuf!');
|
DebugLn('WARNING: [TGtkWidgetSet.CreateBitmap] Error loading Pixbuf!');
|
||||||
Exit;
|
Exit;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -250,7 +250,7 @@ begin
|
|||||||
{$IFDEF VerboseGtkToDos}{$note TODO: enable standard error_log handling}{$ENDIF}
|
{$IFDEF VerboseGtkToDos}{$note TODO: enable standard error_log handling}{$ENDIF}
|
||||||
{$IfDef REPORT_GDK_ERRORS}
|
{$IfDef REPORT_GDK_ERRORS}
|
||||||
If (Xerror<>0) then
|
If (Xerror<>0) then
|
||||||
RaiseGDBException('A GDK/X Error occured, this is normally fatal. The error code was : ' + IntToStr(Xerror));
|
RaiseGDBException('A GDK/X Error occurred, this is normally fatal. The error code was: ' + IntToStr(Xerror));
|
||||||
{$EndIf}
|
{$EndIf}
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -812,7 +812,7 @@ var
|
|||||||
try
|
try
|
||||||
if not gdk_pixbuf_loader_write(Loader, TGdkPixBufBuffer(@Header), MIN_LOADER_HEADER_SIZE,nil)
|
if not gdk_pixbuf_loader_write(Loader, TGdkPixBufBuffer(@Header), MIN_LOADER_HEADER_SIZE,nil)
|
||||||
then begin
|
then begin
|
||||||
DebugLn('WARNING: [TGtk2WidgetSet.CreateBitmap] Error occured loading Bitmap Header!');
|
DebugLn('WARNING: [TGtk2WidgetSet.CreateBitmap] Error loading Bitmap Header!');
|
||||||
Exit;
|
Exit;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -839,14 +839,14 @@ var
|
|||||||
|
|
||||||
if not res
|
if not res
|
||||||
then begin
|
then begin
|
||||||
DebugLn('WARNING: [TGtk2WidgetSet.CreateBitmap] Error occured loading Image!');
|
DebugLn('WARNING: [TGtk2WidgetSet.CreateBitmap] Error loading Image!');
|
||||||
Exit;
|
Exit;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
Src := gdk_pixbuf_loader_get_pixbuf(loader);
|
Src := gdk_pixbuf_loader_get_pixbuf(loader);
|
||||||
if Src = nil
|
if Src = nil
|
||||||
then begin
|
then begin
|
||||||
DebugLn('WARNING: [TGtk2WidgetSet.CreateBitmap] Error occured loading Pixbuf!');
|
DebugLn('WARNING: [TGtk2WidgetSet.CreateBitmap] Error loading Pixbuf!');
|
||||||
Exit;
|
Exit;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -237,12 +237,12 @@ begin
|
|||||||
begin
|
begin
|
||||||
WInfo^.FormWindowState := Event^.window_state;
|
WInfo^.FormWindowState := Event^.window_state;
|
||||||
// needed to lock recursions, normally send_event can be 0 or 1
|
// needed to lock recursions, normally send_event can be 0 or 1
|
||||||
// we add 2 to know if recursion occured.
|
// we add 2 to know if recursion occurred.
|
||||||
WInfo^.FormWindowState.send_event := 2;
|
WInfo^.FormWindowState.send_event := 2;
|
||||||
g_idle_add(@gtk2WSDelayedWindowStateChange, Data);
|
g_idle_add(@gtk2WSDelayedWindowStateChange, Data);
|
||||||
end else
|
end else
|
||||||
begin
|
begin
|
||||||
// our send_event flag is 2, mean recursion occured
|
// our send_event flag is 2, mean recursion occurred
|
||||||
// so we have to normalize things first.
|
// so we have to normalize things first.
|
||||||
while WInfo^.FormWindowState.send_event = 2 do
|
while WInfo^.FormWindowState.send_event = 2 do
|
||||||
begin
|
begin
|
||||||
|
@ -1157,7 +1157,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
if HasCommaAndPeriod then
|
if HasCommaAndPeriod then
|
||||||
begin
|
begin
|
||||||
//When mask has both period and comma only the first occurence is jumpable
|
//When mask has both period and comma only the first occurrence is jumpable
|
||||||
if P2 < P then HasNextDot := False;
|
if P2 < P then HasNextDot := False;
|
||||||
end;
|
end;
|
||||||
CanJump := HasNextDot and (P < FMaskLength) and (not IsLiteral(P+1));
|
CanJump := HasNextDot and (P < FMaskLength) and (not IsLiteral(P+1));
|
||||||
|
Loading…
Reference in New Issue
Block a user