mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-30 10:50:53 +02:00
IDE: Debug messages when component palette is updated from MainIDE.
git-svn-id: trunk@47082 -
This commit is contained in:
parent
0f0e014df7
commit
7ff40bae71
16
ide/main.pp
16
ide/main.pp
@ -3680,6 +3680,10 @@ begin
|
||||
and (LastFormActivated.Designer<>nil)
|
||||
and (LastFormActivated.Designer.LookupRoot<>nil)
|
||||
and not (LastFormActivated.Designer.LookupRoot is TControl);
|
||||
{$IFDEF VerboseComponentPalette}
|
||||
DebugLn(['* TMainIDE.UpdateIDEComponentPalette: Updating palette *',
|
||||
', HideControls=', IDEComponentPalette.HideControls]);
|
||||
{$ENDIF}
|
||||
IDEComponentPalette.Update;
|
||||
TComponentPalette(IDEComponentPalette).OnClassSelected := @ComponentPaletteClassSelected;
|
||||
SetupHints;
|
||||
@ -8583,6 +8587,10 @@ begin
|
||||
GlobalDesignHook.LookupRoot:=TheControlSelection.LookupRoot;
|
||||
if NewForm<>nil then
|
||||
NewForm.Invalidate;
|
||||
{$IFDEF VerboseComponentPalette}
|
||||
DebugLn('***');
|
||||
DebugLn('** TMainIDE.OnControlSelectionFormChanged: Calling UpdateIDEComponentPalette(true) **');
|
||||
{$ENDIF}
|
||||
UpdateIDEComponentPalette(true);
|
||||
end;
|
||||
|
||||
@ -10518,6 +10526,10 @@ begin
|
||||
{$ENDIF}
|
||||
DisplayState:= dsForm;
|
||||
LastFormActivated := (Sender as TDesigner).Form;
|
||||
{$IFDEF VerboseComponentPalette}
|
||||
DebugLn('***');
|
||||
DebugLn('** TMainIDE.OnDesignerActivated: Calling UpdateIDEComponentPalette(true) **');
|
||||
{$ENDIF}
|
||||
UpdateIDEComponentPalette(true);
|
||||
end;
|
||||
|
||||
@ -12020,6 +12032,10 @@ begin
|
||||
Format(lisACanNotHoldTControlsYouCanOnlyPutNonVisualComponen,
|
||||
[AParent.ClassName, LineEnding]),
|
||||
mtError,[mbCancel]);
|
||||
{$IFDEF VerboseComponentPalette}
|
||||
DebugLn('***');
|
||||
DebugLn('** TMainIDE.OnPropHookBeforeAddPersistent: Calling UpdateIDEComponentPalette(false) **');
|
||||
{$ENDIF}
|
||||
// make sure the component palette shows only the available components
|
||||
UpdateIDEComponentPalette(false);
|
||||
exit;
|
||||
|
Loading…
Reference in New Issue
Block a user