Changeset 193 for Docking/CoolDocking/Managers
- Timestamp:
- Mar 11, 2011, 10:57:39 AM (14 years ago)
- Location:
- Docking/CoolDocking/Managers
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
Docking/CoolDocking/Managers/UCDManagerRegions.pas
r192 r193 14 14 end; 15 15 16 { TCD StyleRegions }17 18 TCD StyleRegions = class(TCDManager)16 { TCDManagerRegions } 17 18 TCDManagerRegions = class(TCDManager) 19 19 private 20 20 function GetDirection(InsertAt: TAlign): TCDDirection; … … 28 28 destructor Destroy; override; 29 29 procedure UpdateClientSize; override; 30 procedure DoSetVisible(const AValue: Boolean); 30 procedure DoSetVisible(const AValue: Boolean); override; 31 31 procedure ChangeVisible(Control: TWinControl; Visible: Boolean); 32 32 property DockDirection: TCDDirection read FDockDirection … … 40 40 41 41 42 { TCD StyleRegions }43 44 function TCD StyleRegions.GetDirection(InsertAt: TAlign): TCDDirection;42 { TCDManagerRegions } 43 44 function TCDManagerRegions.GetDirection(InsertAt: TAlign): TCDDirection; 45 45 begin 46 46 Result := ddHorizontal; … … 53 53 end; 54 54 55 procedure TCD StyleRegions.InsertControlPanel(Control: TControl; InsertAt: TAlign;55 procedure TCDManagerRegions.InsertControlPanel(Control: TControl; InsertAt: TAlign; 56 56 DropCtl: TControl); 57 57 var … … 107 107 end; 108 108 109 procedure TCD StyleRegions.RemoveControl(Control: TControl);109 procedure TCDManagerRegions.RemoveControl(Control: TControl); 110 110 var 111 111 ClientPanel: TCDClientPanel; … … 134 134 end; 135 135 136 constructor TCDStyleRegions.Create(ADockSite: TWinControl); 137 var 138 I: Integer; 139 begin 140 inherited; 136 constructor TCDManagerRegions.Create(ADockSite: TWinControl); 137 var 138 I: Integer; 139 begin 140 inherited; 141 FDockStyle := dsList; 141 142 //Panels := TObjectList.Create; 142 143 … … 151 152 end; 152 153 153 destructor TCD StyleRegions.Destroy;154 destructor TCDManagerRegions.Destroy; 154 155 begin 155 156 //Panels.Free; … … 157 158 end; 158 159 159 procedure TCD StyleRegions.UpdateClientSize;160 procedure TCDManagerRegions.UpdateClientSize; 160 161 var 161 162 I: Integer; … … 200 201 end; 201 202 202 procedure TCD StyleRegions.DoSetVisible(const AValue: Boolean);203 var 204 I: Integer; 205 begin 206 // inherited SetVisible(AValue);203 procedure TCDManagerRegions.DoSetVisible(const AValue: Boolean); 204 var 205 I: Integer; 206 begin 207 inherited; 207 208 for I := 0 to DockPanels.Count - 1 do 208 209 … … 222 223 end; 223 224 224 procedure TCD StyleRegions.ChangeVisible(Control: TWinControl;225 procedure TCDManagerRegions.ChangeVisible(Control: TWinControl; 225 226 Visible: Boolean); 226 227 begin -
Docking/CoolDocking/Managers/UCDManagerRegionsPopup.pas
r192 r193 6 6 7 7 uses 8 Classes, SysUtils, UCDManagerRegions ;8 Classes, SysUtils, UCDManagerRegions, UCDCommon, Controls; 9 9 10 10 type 11 TCDStylePopupRegions = class(TCDStyleRegions)12 11 12 { TCDStylePopupRegions } 13 14 TCDStylePopupRegions = class(TCDManagerRegions) 15 constructor Create(ADockSite: TWinControl); 13 16 end; 14 17 … … 19 22 UCDClient; 20 23 24 { TCDStylePopupRegions } 25 26 constructor TCDStylePopupRegions.Create(ADockSite: TWinControl); 27 begin 28 inherited; 29 FDockStyle := dsPopupList; 30 end; 31 21 32 end. 22 33 -
Docking/CoolDocking/Managers/UCDManagerTabs.pas
r192 r193 11 11 type 12 12 13 { TCD StyleTabs }14 15 TCD StyleTabs = class(TCDManager)13 { TCDManagerTabs } 14 15 TCDManagerTabs = class(TCDManager) 16 16 public 17 17 MouseDown: Boolean; … … 35 35 public 36 36 constructor Create(ADockSite: TWinControl); 37 procedure DoSetVisible(const AValue: Boolean); 37 procedure DoSetVisible(const AValue: Boolean); override; 38 38 destructor Destroy; override; 39 39 procedure ChangeVisible(Control: TWinControl; Visible: Boolean); override; … … 49 49 UCDClient; 50 50 51 { TCD StyleTabs }52 53 procedure TCD StyleTabs.PopupMenuTabCloseClick(Sender: TObject);51 { TCDManagerTabs } 52 53 procedure TCDManagerTabs.PopupMenuTabCloseClick(Sender: TObject); 54 54 begin 55 55 if Assigned(PageControl.ActivePage) then … … 57 57 end; 58 58 59 procedure TCD StyleTabs.TabControlMouseLeave(Sender: TObject);59 procedure TCDManagerTabs.TabControlMouseLeave(Sender: TObject); 60 60 begin 61 61 if MouseDown then … … 67 67 end; 68 68 69 procedure TCD StyleTabs.TabControlChange(Sender: TObject);69 procedure TCDManagerTabs.TabControlChange(Sender: TObject); 70 70 var 71 71 I: Integer; … … 120 120 end; 121 121 122 procedure TCD StyleTabs.TabControlMouseDown(Sender: TObject;122 procedure TCDManagerTabs.TabControlMouseDown(Sender: TObject; 123 123 Button: TMouseButton; Shift: TShiftState; X, Y: Integer); 124 124 begin … … 130 130 end; 131 131 132 procedure TCD StyleTabs.TabControlMouseUp(Sender: TObject;132 procedure TCDManagerTabs.TabControlMouseUp(Sender: TObject; 133 133 Button: TMouseButton; Shift: TShiftState; X, Y: Integer); 134 134 begin … … 136 136 end; 137 137 138 constructor TCD StyleTabs.Create(ADockSite: TWinControl);138 constructor TCDManagerTabs.Create(ADockSite: TWinControl); 139 139 var 140 140 NewMenuItem: TMenuItem; … … 144 144 begin 145 145 inherited; 146 FDockStyle := dsTabs; 146 147 TabImageList := TImageList.Create(ADockSite); //FDockSite); 147 148 with TabImageList do begin … … 177 178 end; 178 179 179 destructor TCD StyleTabs.Destroy;180 destructor TCDManagerTabs.Destroy; 180 181 begin 181 182 PageControl.Free; … … 184 185 end; 185 186 186 procedure TCD StyleTabs.Switch(Index: Integer);187 procedure TCDManagerTabs.Switch(Index: Integer); 187 188 begin 188 189 PageControl.TabIndex := Index; 189 190 end; 190 191 191 procedure TCD StyleTabs.InsertControlNoUpdate(AControl: TControl; InsertAt: TAlign);192 procedure TCDManagerTabs.InsertControlNoUpdate(AControl: TControl; InsertAt: TAlign); 192 193 var 193 194 NewTabSheet: TTabSheet; … … 232 233 end; 233 234 234 procedure TCD StyleTabs.RemoveControl(Control: TControl);235 procedure TCDManagerTabs.RemoveControl(Control: TControl); 235 236 begin 236 237 inherited RemoveControl(Control); 237 238 end; 238 239 239 procedure TCD StyleTabs.InsertControlPanel(AControl: TControl; InsertAt: TAlign;240 procedure TCDManagerTabs.InsertControlPanel(AControl: TControl; InsertAt: TAlign; 240 241 DropCtl: TControl); 241 242 var … … 247 248 end; 248 249 249 procedure TCD StyleTabs.UpdateClientSize;250 procedure TCDManagerTabs.UpdateClientSize; 250 251 var 251 252 I: Integer; … … 259 260 end; 260 261 261 procedure TCDStyleTabs.DoSetVisible(const AValue: Boolean); 262 begin 262 procedure TCDManagerTabs.DoSetVisible(const AValue: Boolean); 263 begin 264 inherited; 263 265 if (PageControl.TabIndex >= 0) and (PageControl.TabIndex < DockPanels.Count) then 264 266 with TCDClientPanel(DockPanels[PageControl.TabIndex]) do begin … … 274 276 end; 275 277 276 procedure TCD StyleTabs.ChangeVisible(Control: TWinControl; Visible: Boolean);278 procedure TCDManagerTabs.ChangeVisible(Control: TWinControl; Visible: Boolean); 277 279 var 278 280 I: Integer; … … 318 320 end; 319 321 320 procedure TCD StyleTabs.SetTabsPos(const AValue: THeaderPos);322 procedure TCDManagerTabs.SetTabsPos(const AValue: THeaderPos); 321 323 begin 322 324 if FTabsPos = AValue then Exit; -
Docking/CoolDocking/Managers/UCDManagerTabsPopup.pas
r192 r193 40 40 { TCDStylePopupTabs } 41 41 42 TCDStylePopupTabs = class(TCD StyleTabs)42 TCDStylePopupTabs = class(TCDManagerTabs) 43 43 TabControl: TTabControl; 44 44 TabImageList: TImageList; … … 123 123 constructor TCDAutoHide.Create; 124 124 begin 125 inherited; 125 126 Timer := TTimer.Create(nil); 126 127 Timer.Enabled := False; … … 186 187 begin 187 188 inherited; 189 FDockStyle := dsPopupTabs; 188 190 189 191 AutoHide := TCDAutoHide.Create;
Note:
See TracChangeset
for help on using the changeset viewer.