Changeset 233
- Timestamp:
- Apr 14, 2011, 12:51:20 PM (14 years ago)
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
CoolStreaming/CoolStreaming.lpk
r172 r233 6 6 <Author Value="Chronos"/> 7 7 <CompilerOptions> 8 <Version Value=" 10"/>8 <Version Value="9"/> 9 9 <PathDelim Value="\"/> 10 10 <SearchPaths> … … 49 49 </Files> 50 50 <Type Value="RunAndDesignTime"/> 51 <RequiredPkgs Count=" 3">51 <RequiredPkgs Count="2"> 52 52 <Item1> 53 <PackageName Value=" MicroThreading"/>53 <PackageName Value="TemplateGenerics"/> 54 54 </Item1> 55 55 <Item2> 56 <PackageName Value="TemplateGenerics"/>57 </Item2>58 <Item3>59 56 <PackageName Value="FCL"/> 60 57 <MinVersion Major="1" Valid="True"/> 61 </Item 3>58 </Item2> 62 59 </RequiredPkgs> 63 60 <UsageOptions> -
CoolStreaming/UStreamHelper.pas
r172 r233 6 6 7 7 uses 8 Classes, DateUtils, syncobjs , UMicroThreading;8 Classes, DateUtils, syncobjs; 9 9 10 10 type … … 19 19 FEndianness: TEndianness; 20 20 SwapData: Boolean; 21 function GetItem(Index: Integer): Byte; 21 22 procedure SetEndianness(const AValue: TEndianness); 23 procedure SetItem(Index: Integer; const AValue: Byte); 22 24 public 23 25 procedure WriteByte(Data: Byte); … … 50 52 constructor Create; overload; 51 53 constructor Create(AStream: TStream); overload; 54 procedure Clear; 52 55 destructor Destroy; override; 53 56 function GetSize: Int64; override; … … 58 61 property Endianness: TEndianness read FEndianness write SetEndianness; 59 62 property Stream: TStream read FStream write FStream; 60 end; 61 62 { TThreadStreamHelper } 63 64 TThreadStreamHelper = class(TStreamHelper) 65 Lock: TMicroThreadCriticalSection; 66 procedure Clear; 67 constructor Create; 68 destructor Destroy; override; 63 property Items[Index: Integer]: Byte read GetItem write SetItem; default; 69 64 end; 70 65 … … 195 190 end; 196 191 192 procedure TStreamHelper.Clear; 193 begin 194 Stream.Size := 0; 195 end; 196 197 197 destructor TStreamHelper.Destroy; 198 198 begin … … 273 273 end; 274 274 275 function TStreamHelper.GetItem(Index: Integer): Byte; 276 begin 277 Position := Index; 278 Result := ReadByte; 279 end; 280 281 procedure TStreamHelper.SetItem(Index: Integer; const AValue: Byte); 282 begin 283 Position := Index; 284 WriteByte(AValue); 285 end; 286 275 287 procedure TStreamHelper.WriteAnsiString(Data: string); 276 288 var … … 348 360 end; 349 361 350 { TThreadStreamHelper }351 352 procedure TThreadStreamHelper.Clear;353 begin354 try355 Lock.Acquire;356 Size := 0;357 finally358 Lock.Release;359 end;360 end;361 362 constructor TThreadStreamHelper.Create;363 begin364 inherited Create;365 Lock := TMicroThreadCriticalSection.Create;366 end;367 368 destructor TThreadStreamHelper.Destroy;369 begin370 Lock.Free;371 inherited Destroy;372 end;373 362 374 363 end. -
CoolTranslator/ReadMe.txt
r229 r233 31 31 32 32 * TCollection: TListView.Columns 33 * TStrings: TRadioGroup. 33 * TStrings: TRadioGroup.Items, TPageControl.Pages, TComboBox.Items, TMemo.Lines 34 34 35 35 ==Other constants== -
CoolTranslator/UCoolTranslator.pas
r229 r233 217 217 with TCollection(Obj).Items[I] do 218 218 TranslateComponent(TCollection(Obj).Items[I]); 219 if Obj is TStrings then219 (*if Obj is TStrings then 220 220 for I := 0 to TStrings(Obj).Count - 1 do 221 221 with TStrings(Obj) do 222 222 Strings[I] := TranslateText(Strings[I], Strings[I]); 223 *) 223 224 end; 224 225 end; … … 327 328 destructor TCoolTranslator.Destroy; 328 329 begin 330 FPOFile.Free; 329 331 Languages.Free; 332 ComponentExcludes.Free; 330 333 inherited Destroy; 331 334 end; -
Docking/CoolDocking/Managers/UCDManagerTabs.pas
r218 r233 28 28 MouseButton: TMouseButton; 29 29 FDockItems: TObjectList; // TList<TCDManagerRegionsItem> 30 FUpdating: Boolean; 30 31 procedure TabControlMouseLeave(Sender: TObject); 31 32 procedure TabControlMouseDown(Sender: TObject; Button: TMouseButton; … … 335 336 for I := 0 to DockItems.Count - 1 do 336 337 with TCDManagerTabsItem(DockItems[I]) do begin 338 //Control.Tag := Integer(dhtTemporal); 337 339 //Control.Visible := False; 338 340 //Control.Parent := nil; … … 369 371 end; 370 372 PageControl.Pages[I].TabVisible := Control.Visible or (HideType = dhtTemporal); 373 371 374 //TCDClientPanel(DockPanels[I]).ClientAreaPanel.Width := DockSite.Width; 372 375 //TCDClientPanel(DockPanels[I]).ClientAreaPanel.Height := DockSite.Height - PageControl.Height;
Note:
See TracChangeset
for help on using the changeset viewer.