Changeset 180 for Docking/CoolDocking/UCoolDocking.pas
- Timestamp:
- Mar 8, 2011, 1:57:42 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Docking/CoolDocking/UCoolDocking.pas
r177 r180 10 10 Classes, SysUtils, Controls, LCLType, LMessages, Graphics, StdCtrls, 11 11 Buttons, ExtCtrls, Contnrs, Forms, ComCtrls, Dialogs, Menus, FileUtil, 12 UCoolDockCustomize, DOM, XMLWrite, XMLRead, UCoolDock WindowList,12 UCoolDockCustomize, DOM, XMLWrite, XMLRead, UCoolDockCommon, 13 13 DateUtils, UCoolDockStyleTabs, UCoolDockStyleRegions, UCoolDockStylePopupTabs, 14 14 UCoolDockStylePopupRegions, UCoolDockStyle, UCoolDockClientPanel, 15 UCoolDockPopupMenu ;15 UCoolDockPopupMenu, UCoolDockLayout; 16 16 17 17 const … … 38 38 procedure PanelVisibleChange(Sender: TObject); 39 39 end; 40 41 TDockStyle = (dsList, dsTabs, dsPopupTabs, dsPopupList);42 40 43 41 // TObjectList<TCoolDockClientPanel> … … 174 172 TCoolDockCustomize = class(TComponent) 175 173 private 174 FLayoutList: TCoolDockLayoutList; 176 175 FMaster: TCoolDockMaster; 177 176 Form: TCoolDockCustomizeForm; 177 procedure SetLayoutList(const AValue: TCoolDockLayoutList); 178 178 procedure SetMaster(const AValue: TCoolDockMaster); 179 179 public … … 183 183 published 184 184 property Master: TCoolDockMaster read FMaster write SetMaster; 185 end; 186 187 { TCoolDockWindowList } 188 189 TCoolDockWindowList = class(TComponent) 190 private 191 Form: TCoolDockWindowListForm; 192 public 193 function Execute: Boolean; 194 constructor Create(AOwner: TComponent); override; 195 published 185 property LayoutList: TCoolDockLayoutList read FLayoutList write SetLayoutList; 196 186 end; 197 187 … … 208 198 RegisterComponents('CoolDocking', [TCoolDockClient]); 209 199 RegisterComponents('CoolDocking', [TCoolDockCustomize]); 210 RegisterComponents('CoolDocking', [TCoolDockWindowList]);211 200 end; 212 201 … … 801 790 end; 802 791 792 procedure TCoolDockCustomize.SetLayoutList(const AValue: TCoolDockLayoutList); 793 begin 794 if FLayoutList=AValue then exit; 795 FLayoutList:=AValue; 796 end; 797 803 798 function TCoolDockCustomize.Execute: Boolean; 804 799 begin … … 808 803 Form.ComboBox1.ItemIndex := Integer(Master.DefaultTabsPos); 809 804 Form.ComboBox2.ItemIndex := Integer(Master.DefaultHeaderPos); 805 Form.LayoutList := FLayoutList; 810 806 end; 811 807 Form.ShowModal; … … 830 826 end; 831 827 832 833 { TCoolDockWindowList }834 835 function TCoolDockWindowList.Execute: Boolean;836 begin837 Form := TCoolDockWindowListForm.Create(Self);838 Form.ShowModal;839 Form.Free;840 Result := True;841 end;842 843 constructor TCoolDockWindowList.Create(AOwner: TComponent);844 begin845 inherited Create(AOwner);846 end;847 828 848 829 { TCoolDockClient }
Note:
See TracChangeset
for help on using the changeset viewer.