Ignore:
Timestamp:
Mar 8, 2011, 1:57:42 PM (14 years ago)
Author:
george
Message:
  • Added: Customization of layouts in "Customize docking" window.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Docking/CoolDocking/UCoolDockWindowList.pas

    r176 r180  
    77uses
    88  Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics, Dialogs,
    9   ComCtrls, StdCtrls, Menus;
     9  ComCtrls, StdCtrls, Menus, UCoolDockLayout;
    1010
    1111type
     
    3434  end;
    3535
    36 var
    37   CoolDockWindowListForm: TCoolDockWindowListForm;
     36  TCoolDockWindowList = class(TComponent)
     37  private
     38    FLayoutList: TCoolDockLayoutList;
     39    Form: TCoolDockWindowListForm;
     40    procedure SetLayoutList(const AValue: TCoolDockLayoutList);
     41  public
     42    function Execute: Boolean;
     43    constructor Create(AOwner: TComponent); override;
     44  published
     45  end;
     46
     47procedure Register;
    3848
    3949implementation
     
    4454  SStateVisible = 'Visible';
    4555  SStateHidden = 'Hidden';
     56
     57procedure Register;
     58begin
     59  RegisterComponents('CoolDocking', [TCoolDockWindowList]);
     60end;
     61
     62{ TCoolDockWindowList }
     63
     64function TCoolDockWindowList.Execute: Boolean;
     65begin
     66  Form := TCoolDockWindowListForm.Create(Self);
     67  Form.ShowModal;
     68  Form.Free;
     69  Result := True;
     70end;
     71
     72constructor TCoolDockWindowList.Create(AOwner: TComponent);
     73begin
     74  inherited Create(AOwner);
     75end;
     76
     77procedure TCoolDockWindowList.SetLayoutList(const AValue: TCoolDockLayoutList);
     78begin
     79  if FLayoutList = AValue then Exit;
     80  FLayoutList := AValue;
     81end;
    4682
    4783{ TCoolDockWindowListForm }
Note: See TracChangeset for help on using the changeset viewer.