mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 20:39:14 +02:00
reduced debugging output and extended debugging of lcl
git-svn-id: trunk@8565 -
This commit is contained in:
parent
5029251f8f
commit
c5381fa007
@ -35,7 +35,7 @@ interface
|
|||||||
|
|
||||||
{$I codetools.inc}
|
{$I codetools.inc}
|
||||||
|
|
||||||
{$DEFINE CTDEBUG}
|
{ $DEFINE CTDEBUG}
|
||||||
{ $DEFINE ShowAllProcs}
|
{ $DEFINE ShowAllProcs}
|
||||||
|
|
||||||
uses
|
uses
|
||||||
|
@ -1999,6 +1999,7 @@ var
|
|||||||
begin
|
begin
|
||||||
Result:=false;
|
Result:=false;
|
||||||
if not GetSetTypeData(CompData,TypeData) then exit;
|
if not GetSetTypeData(CompData,TypeData) then exit;
|
||||||
|
if (CompData=nil) or (TypeData=nil) then ;
|
||||||
i:=GetIndexOfSetElement(AliasName);
|
i:=GetIndexOfSetElement(AliasName);
|
||||||
if i>=0 then begin
|
if i>=0 then begin
|
||||||
Integer(IntegerSet) := Editor.GetOrdValue;
|
Integer(IntegerSet) := Editor.GetOrdValue;
|
||||||
@ -2015,6 +2016,7 @@ var
|
|||||||
IntegerSet: TIntegerSet;
|
IntegerSet: TIntegerSet;
|
||||||
begin
|
begin
|
||||||
if not GetSetTypeData(CompData,TypeData) then exit;
|
if not GetSetTypeData(CompData,TypeData) then exit;
|
||||||
|
if (CompData=nil) or (TypeData=nil) then ;
|
||||||
i:=GetIndexOfSetElement(AliasName);
|
i:=GetIndexOfSetElement(AliasName);
|
||||||
if i>=0 then begin
|
if i>=0 then begin
|
||||||
Integer(IntegerSet) := Editor.GetOrdValue;
|
Integer(IntegerSet) := Editor.GetOrdValue;
|
||||||
|
@ -889,6 +889,7 @@ begin
|
|||||||
Canvas.FillRect(aRect);
|
Canvas.FillRect(aRect);
|
||||||
//debugln('TTICustomGrid.DefaultDrawCell A Col=',dbgs(aCol),' Row=',dbgs(aRow));
|
//debugln('TTICustomGrid.DefaultDrawCell A Col=',dbgs(aCol),' Row=',dbgs(aRow));
|
||||||
MapCell(aCol,aRow,ObjectIndex,PropertyIndex,CellType);
|
MapCell(aCol,aRow,ObjectIndex,PropertyIndex,CellType);
|
||||||
|
if (PropertyIndex=0) then ;
|
||||||
if CellType in [tgctValue,tgctPropName] then begin
|
if CellType in [tgctValue,tgctPropName] then begin
|
||||||
// fetch a property editor and draw cell
|
// fetch a property editor and draw cell
|
||||||
PropEditor:=nil;
|
PropEditor:=nil;
|
||||||
@ -1147,6 +1148,7 @@ var
|
|||||||
begin
|
begin
|
||||||
Result:=nil;
|
Result:=nil;
|
||||||
MapCell(Col,Row,ObjectIndex,PropertyIndex,CellType);
|
MapCell(Col,Row,ObjectIndex,PropertyIndex,CellType);
|
||||||
|
if (ObjectIndex=0) or (PropertyIndex=0) then ;
|
||||||
if CellType=tgctValue then
|
if CellType=tgctValue then
|
||||||
Result:=Properties[PropertyIndex];
|
Result:=Properties[PropertyIndex];
|
||||||
end;
|
end;
|
||||||
|
@ -1779,6 +1779,7 @@ begin
|
|||||||
SetupEnvironmentMenu;
|
SetupEnvironmentMenu;
|
||||||
SetupWindowsMenu;
|
SetupWindowsMenu;
|
||||||
SetupHelpMenu;
|
SetupHelpMenu;
|
||||||
|
mnuMain.MenuItem:=MainIDEBar.mnuMainMenu.Items;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TMainIDE.SetupStandardIDEMenuItems;
|
procedure TMainIDE.SetupStandardIDEMenuItems;
|
||||||
|
@ -316,7 +316,7 @@ procedure TMainIDEBase.SetupMainMenu;
|
|||||||
begin
|
begin
|
||||||
MainIDEBar.mnuMainMenu := TMainMenu.Create(MainIDEBar);
|
MainIDEBar.mnuMainMenu := TMainMenu.Create(MainIDEBar);
|
||||||
with MainIDEBar do begin
|
with MainIDEBar do begin
|
||||||
mnuMain:=RegisterIDEMenuRoot('IDEMainMenu',mnuMainMenu.Items);
|
mnuMain:=RegisterIDEMenuRoot('IDEMainMenu',nil);
|
||||||
CreateMainMenuItem(mnuFile,'File',lisMenuFile);
|
CreateMainMenuItem(mnuFile,'File',lisMenuFile);
|
||||||
CreateMainMenuItem(mnuEdit,'Edit',lisMenuEdit);
|
CreateMainMenuItem(mnuEdit,'Edit',lisMenuEdit);
|
||||||
CreateMainMenuItem(mnuSearch,'Search',lisMenuSearch);
|
CreateMainMenuItem(mnuSearch,'Search',lisMenuSearch);
|
||||||
|
@ -116,6 +116,7 @@ end;
|
|||||||
procedure TMenuItem.CreateHandle;
|
procedure TMenuItem.CreateHandle;
|
||||||
var i: Integer;
|
var i: Integer;
|
||||||
begin
|
begin
|
||||||
|
//DebugLn('TMenuItem.CreateHandle ',dbgsName(Self),' ',dbgs(Self));
|
||||||
//DebugLn('TMenuItem.CreateHandle START ',Name,':',ClassName);
|
//DebugLn('TMenuItem.CreateHandle START ',Name,':',ClassName);
|
||||||
if not FVisible then RaiseGDBException('');
|
if not FVisible then RaiseGDBException('');
|
||||||
Handle := TWSMenuItemClass(WidgetSetClass).CreateHandle(Self);
|
Handle := TWSMenuItemClass(WidgetSetClass).CreateHandle(Self);
|
||||||
@ -562,6 +563,7 @@ procedure TMenuItem.DestroyHandle;
|
|||||||
var i: integer;
|
var i: integer;
|
||||||
begin
|
begin
|
||||||
if not HandleAllocated then exit;
|
if not HandleAllocated then exit;
|
||||||
|
//DebugLn('TMenuItem.DestroyHandle ',dbgsName(Self),' ',dbgs(Self));
|
||||||
if assigned (FItems) then begin
|
if assigned (FItems) then begin
|
||||||
i := FItems.Count-1;
|
i := FItems.Count-1;
|
||||||
while i>=0 do begin
|
while i>=0 do begin
|
||||||
|
@ -759,6 +759,9 @@ var
|
|||||||
begin
|
begin
|
||||||
UpdateItemCache;
|
UpdateItemCache;
|
||||||
RemoveItemCallbacks(Index);
|
RemoveItemCallbacks(Index);
|
||||||
|
{$IFDEF DebugLCLComponents}
|
||||||
|
DebugGtkWidgets.MarkDestroyed(FCachedItems[Index]);
|
||||||
|
{$ENDIF}
|
||||||
// remove item from cache
|
// remove item from cache
|
||||||
if (Index<FCachedCount-1) then begin
|
if (Index<FCachedCount-1) then begin
|
||||||
System.Move(FCachedItems[Index+1],FCachedItems[Index],
|
System.Move(FCachedItems[Index+1],FCachedItems[Index],
|
||||||
@ -778,14 +781,16 @@ begin
|
|||||||
{ Work round gtk bug - crashes if deleting first item in list
|
{ Work round gtk bug - crashes if deleting first item in list
|
||||||
and item has focus and there are remaining items }
|
and item has focus and there are remaining items }
|
||||||
if (Index = 0) and (PGTKContainer(FGtkList)^.focus_child <> nil)
|
if (Index = 0) and (PGTKContainer(FGtkList)^.focus_child <> nil)
|
||||||
and (gtk_list_child_position(FGtkList,PGTKContainer(FGtkList)^.focus_child) = 0) then begin
|
and (gtk_list_child_position(FGtkList,PGTKContainer(FGtkList)^.focus_child) = 0)
|
||||||
|
then begin
|
||||||
Next := FGtkList^.children^.next;
|
Next := FGtkList^.children^.next;
|
||||||
if Next <> nil then
|
if Next <> nil then
|
||||||
gtk_widget_grab_focus(Next^.data);
|
gtk_widget_grab_focus(Next^.data);
|
||||||
end;
|
end;
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
end;
|
end;
|
||||||
gtk_list_clear_items(FGtkList, Index, Index + 1);
|
gtk_list_clear_items(FGtkList, Index, Index + 1);
|
||||||
|
Include(FStates,glsItemCacheNeedsUpdate);
|
||||||
{$IFDEF CheckGtkList}
|
{$IFDEF CheckGtkList}
|
||||||
ConsistencyCheck;
|
ConsistencyCheck;
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
@ -871,6 +876,9 @@ begin
|
|||||||
else begin
|
else begin
|
||||||
li:=gtk_list_item_new_with_label(PChar(S));
|
li:=gtk_list_item_new_with_label(PChar(S));
|
||||||
end;
|
end;
|
||||||
|
{$IFDEF DebugLCLComponents}
|
||||||
|
DebugGtkWidgets.MarkCreated(li,dbgsName(Owner)+' Index='+dbgs(Index)+' Count='+dbgs(Count));
|
||||||
|
{$ENDIF}
|
||||||
ConnectItemCallbacks(PGtkListItem(li));
|
ConnectItemCallbacks(PGtkListItem(li));
|
||||||
// grow capacity
|
// grow capacity
|
||||||
UpdateItemCache;
|
UpdateItemCache;
|
||||||
|
@ -5466,6 +5466,9 @@ begin
|
|||||||
end; //end case
|
end; //end case
|
||||||
StrDispose(StrTemp);
|
StrDispose(StrTemp);
|
||||||
FinishComponentCreate(Sender, P, SetupProps);
|
FinishComponentCreate(Sender, P, SetupProps);
|
||||||
|
{$IFDEF DebugLCLComponents}
|
||||||
|
DebugGtkWidgets.MarkCreated(P,dbgsName(Sender));
|
||||||
|
{$ENDIF}
|
||||||
Result := THandle(P);
|
Result := THandle(P);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -774,7 +774,8 @@ begin
|
|||||||
Result := (DeliverMessage(AInfo^.LCLObject, Msg) <> 0) xor CallBackDefaultReturn;
|
Result := (DeliverMessage(AInfo^.LCLObject, Msg) <> 0) xor CallBackDefaultReturn;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TGtkWSBaseScrollingWinControl.CreateHandle(const AWinControl: TWinControl; const AParams: TCreateParams): HWND;
|
function TGtkWSBaseScrollingWinControl.CreateHandle(
|
||||||
|
const AWinControl: TWinControl; const AParams: TCreateParams): HWND;
|
||||||
var
|
var
|
||||||
Widget: PGtkWidget;
|
Widget: PGtkWidget;
|
||||||
WidgetInfo: PWidgetInfo;
|
WidgetInfo: PWidgetInfo;
|
||||||
@ -782,6 +783,10 @@ var
|
|||||||
Allocation: TGTKAllocation;
|
Allocation: TGTKAllocation;
|
||||||
begin
|
begin
|
||||||
Widget := gtk_scrolled_window_new(nil, nil);
|
Widget := gtk_scrolled_window_new(nil, nil);
|
||||||
|
{$IFDEF DebugLCLComponents}
|
||||||
|
DebugGtkWidgets.MarkCreated(Widget,dbgsName(AWinControl));
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
Result := THandle(Widget);
|
Result := THandle(Widget);
|
||||||
if Result = 0 then Exit;
|
if Result = 0 then Exit;
|
||||||
|
|
||||||
|
@ -1998,13 +1998,13 @@ begin
|
|||||||
DebugLn('WARNING: TPkgManager.MacroFunctionPkgSrcPath unknown package id: ',FuncData^.Param);
|
DebugLn('WARNING: TPkgManager.MacroFunctionPkgSrcPath unknown package id: ',FuncData^.Param);
|
||||||
end;
|
end;
|
||||||
//if AnsiCompareText(APackage.IDAsString,'uni_avglvltree')=0 then begin
|
//if AnsiCompareText(APackage.IDAsString,'uni_avglvltree')=0 then begin
|
||||||
debugln('TPkgManager.MacroFunctionPkgSrcPath PkgID=',FuncData^.Param,' ',dbgs(APackage<>nil),' FuncData^.Result="',FuncData^.Result,'"');
|
//debugln('TPkgManager.MacroFunctionPkgSrcPath PkgID=',FuncData^.Param,' ',dbgs(APackage<>nil),' FuncData^.Result="',FuncData^.Result,'"');
|
||||||
if APackage<>nil then begin
|
{if APackage<>nil then begin
|
||||||
with APackage.SourceDirectories.CreateFileList do begin
|
with APackage.SourceDirectories.CreateFileList do begin
|
||||||
debugln(Text);
|
debugln(Text);
|
||||||
Free;
|
Free;
|
||||||
end;
|
end;
|
||||||
end;
|
end;}
|
||||||
//end;
|
//end;
|
||||||
end else begin
|
end else begin
|
||||||
DebugLn('WARNING: TPkgManager.MacroFunctionPkgSrcPath invalid package id: ',FuncData^.Param);
|
DebugLn('WARNING: TPkgManager.MacroFunctionPkgSrcPath invalid package id: ',FuncData^.Param);
|
||||||
|
@ -63,6 +63,7 @@ Targets='i386-win32'
|
|||||||
|
|
||||||
#===============================================================================
|
#===============================================================================
|
||||||
# download and build binutils and fpc
|
# download and build binutils and fpc
|
||||||
|
set -x
|
||||||
Params=""
|
Params=""
|
||||||
if [ $DownloadBinutils = "yes" ]; then
|
if [ $DownloadBinutils = "yes" ]; then
|
||||||
Params="$Params downloadbinutils"
|
Params="$Params downloadbinutils"
|
||||||
@ -79,7 +80,8 @@ fi
|
|||||||
if [ $BuildCrossFPC = "yes" ]; then
|
if [ $BuildCrossFPC = "yes" ]; then
|
||||||
Params="$Params buildcrossfpc"
|
Params="$Params buildcrossfpc"
|
||||||
fi
|
fi
|
||||||
if [ "x$Params" == "x" ]; then
|
|
||||||
|
if [ "x$Params" != "x" ]; then
|
||||||
Params="$Params targets=i386-win32"
|
Params="$Params targets=i386-win32"
|
||||||
echo "calling update_cross_fpc.sh $Params ..."
|
echo "calling update_cross_fpc.sh $Params ..."
|
||||||
./update_cross_fpc.sh $Params
|
./update_cross_fpc.sh $Params
|
||||||
|
Loading…
Reference in New Issue
Block a user