Changeset 180 for Docking/CoolDocking/UCoolDockWindowList.pas
- Timestamp:
- Mar 8, 2011, 1:57:42 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Docking/CoolDocking/UCoolDockWindowList.pas
r176 r180 7 7 uses 8 8 Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics, Dialogs, 9 ComCtrls, StdCtrls, Menus ;9 ComCtrls, StdCtrls, Menus, UCoolDockLayout; 10 10 11 11 type … … 34 34 end; 35 35 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 47 procedure Register; 38 48 39 49 implementation … … 44 54 SStateVisible = 'Visible'; 45 55 SStateHidden = 'Hidden'; 56 57 procedure Register; 58 begin 59 RegisterComponents('CoolDocking', [TCoolDockWindowList]); 60 end; 61 62 { TCoolDockWindowList } 63 64 function TCoolDockWindowList.Execute: Boolean; 65 begin 66 Form := TCoolDockWindowListForm.Create(Self); 67 Form.ShowModal; 68 Form.Free; 69 Result := True; 70 end; 71 72 constructor TCoolDockWindowList.Create(AOwner: TComponent); 73 begin 74 inherited Create(AOwner); 75 end; 76 77 procedure TCoolDockWindowList.SetLayoutList(const AValue: TCoolDockLayoutList); 78 begin 79 if FLayoutList = AValue then Exit; 80 FLayoutList := AValue; 81 end; 46 82 47 83 { TCoolDockWindowListForm }
Note:
See TracChangeset
for help on using the changeset viewer.