Changeset 180 for Docking/CoolDocking/UCoolDockLayout.pas
- Timestamp:
- Mar 8, 2011, 1:57:42 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Docking/CoolDocking/UCoolDockLayout.pas
r179 r180 1 1 unit UCoolDockLayout; 2 2 3 {$mode objfpc}{$H+}3 {$mode Delphi}{$H+} 4 4 5 5 interface 6 6 7 7 uses 8 Classes, SysUtils, FileUtil, Contnrs, URectangle, UCoolDocking, Forms,8 Classes, SysUtils, FileUtil, Contnrs, URectangle, Forms, UCoolDockCommon, 9 9 DOM, XMLWrite, XMLRead; 10 10 … … 52 52 procedure SaveToFile(FileName: string); 53 53 procedure PopulateStringList(List: TStrings); 54 function FindByName(Name: string): TCoolDockLayout; 54 55 constructor Create(AOwner: TComponent); override; 55 56 destructor Destroy; override; … … 171 172 for I := 0 to Items.Count - 1 do 172 173 List.AddObject(TCoolDockLayout(Items[I]).Name, TCoolDockLayout(Items[I])); 174 end; 175 176 function TCoolDockLayoutList.FindByName(Name: string): TCoolDockLayout; 177 var 178 I: Integer; 179 begin 180 I := 0; 181 while (I < Items.Count) and (TCoolDockLayout(Items[I]).Name <> Name) do Inc(I); 182 if I < Items.Count then Result := TCoolDockLayout(Items[I]) else Result := nil; 173 183 end; 174 184
Note:
See TracChangeset
for help on using the changeset viewer.