IDE: ComponentPalette cleanup. Move MainBase reference from implementation to interface.

git-svn-id: trunk@47274 -
This commit is contained in:
juha 2014-12-31 20:36:26 +00:00
parent 9676758e82
commit c7510d07b7

View File

@ -43,7 +43,7 @@ uses
{$IFDEF CustomIDEComps}
CustomIDEComps,
{$ENDIF}
LazarusIDEStrConsts, ComponentReg, DesignerProcs, PackageDefs, EnvironmentOpts;
MainBase, LazarusIDEStrConsts, ComponentReg, DesignerProcs, PackageDefs, EnvironmentOpts;
const
CompPalSelectionToolBtnPrefix = 'PaletteSelectBtn';
@ -156,7 +156,6 @@ type
function GetSelectButtonIcon: TCustomBitmap;
function SelectAButton(Button: TComponent): boolean;
protected
procedure DoBeginUpdate; override;
procedure DoEndUpdate(Changed: boolean); override;
procedure OnPageAddedComponent(Component: TRegisteredComponent); override;
procedure OnPageRemovedComponent(Page: TBaseComponentPage;
@ -198,8 +197,6 @@ implementation
{$R ../images/components_images.res}
{$DEFINE USE_PageIndex}
uses
MainBase;
const
OVERVIEW_PANEL_WIDTH = 20;
@ -884,11 +881,6 @@ begin
PopupMenu.Items.Add(MenuItem);
end;
procedure TComponentPalette.DoBeginUpdate;
begin
inherited DoBeginUpdate;
end;
procedure TComponentPalette.DoEndUpdate(Changed: boolean);
begin
if Changed or fNoteBookNeedsUpdate then begin