Changeset 25 for trunk/Form
- Timestamp:
- Apr 5, 2016, 10:54:28 PM (9 years ago)
- Location:
- trunk/Form
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Form/UFormMain.lfm
r24 r25 38 38 end 39 39 end 40 object Panel1: TPanel41 Left = 59742 Height = 101443 Top = 2644 Width = 110645 Align = alClient46 BevelOuter = bvNone47 ClientHeight = 101448 ClientWidth = 110649 TabOrder = 150 object Image1: TImage51 Left = 852 Height = 99853 Top = 854 Width = 109055 Align = alClient56 BorderSpacing.Around = 857 OnResize = Image1Resize58 end59 end60 40 object Panel2: TPanel 61 41 Left = 0 … … 67 47 ClientHeight = 1014 68 48 ClientWidth = 592 69 TabOrder = 249 TabOrder = 1 70 50 object Panel3: TPanel 71 51 Left = 0 … … 364 344 Width = 5 365 345 end 346 object PageControl1: TPageControl 347 Left = 597 348 Height = 1014 349 Top = 26 350 Width = 1106 351 ActivePage = TabSheetSpeed 352 Align = alClient 353 TabIndex = 1 354 TabOrder = 3 355 object TabSheetSectors: TTabSheet 356 Caption = 'Sector map' 357 ClientHeight = 972 358 ClientWidth = 1100 359 object Image1: TImage 360 Left = 4 361 Height = 964 362 Top = 4 363 Width = 1092 364 Align = alClient 365 BorderSpacing.Around = 4 366 OnResize = Image1Resize 367 end 368 end 369 object TabSheetSpeed: TTabSheet 370 Caption = 'Transfer speed' 371 ClientHeight = 972 372 ClientWidth = 1100 373 object ChartSpeed: TChart 374 Left = 4 375 Height = 964 376 Top = 4 377 Width = 1092 378 AxisList = < 379 item 380 Marks.Format = '%0:.9g MB/s' 381 Marks.Style = smsCustom 382 Minors = <> 383 Range.UseMin = True 384 Title.LabelFont.Orientation = 900 385 end 386 item 387 Alignment = calBottom 388 Minors = <> 389 end> 390 Foot.Brush.Color = clBtnFace 391 Foot.Font.Color = clBlue 392 Title.Brush.Color = clBtnFace 393 Title.Font.Color = clBlue 394 Title.Text.Strings = ( 395 'TAChart' 396 ) 397 Align = alClient 398 BorderSpacing.Around = 4 399 object ChartSpeedLineSeries1: TLineSeries 400 LinePen.Color = clWhite 401 end 402 end 403 end 404 end 366 405 object Timer1: TTimer 367 406 Interval = 500 -
trunk/Form/UFormMain.pas
r24 r25 6 6 7 7 uses 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,9 Menus, ComCtrls, ExtCtrls, ActnList, dateutils, syncobjs, UProject,10 U DriveScan, UPrefixMultiplier, ULastOpenedList, UPersistentForm, XMLConf,11 UPhysDrive;8 Classes, SysUtils, FileUtil, TAGraph, TASeries, Forms, Controls, Graphics, 9 Dialogs, StdCtrls, Menus, ComCtrls, ExtCtrls, ActnList, dateutils, syncobjs, 10 UProject, UDriveScan, UPrefixMultiplier, ULastOpenedList, UPersistentForm, 11 XMLConf, UPhysDrive; 12 12 13 13 type … … 38 38 ButtonScan1: TButton; 39 39 ButtonScan2: TButton; 40 ChartSpeed: TChart; 41 ChartSpeedLineSeries1: TLineSeries; 40 42 ComboBoxDrive: TComboBox; 41 43 Image1: TImage; … … 83 85 MenuItem9: TMenuItem; 84 86 OpenDialog1: TOpenDialog; 85 Pa nel1: TPanel;87 PageControl1: TPageControl; 86 88 Panel2: TPanel; 87 89 Panel3: TPanel; … … 91 93 Splitter1: TSplitter; 92 94 Splitter2: TSplitter; 95 TabSheetSectors: TTabSheet; 96 TabSheetSpeed: TTabSheet; 93 97 Timer1: TTimer; 94 98 ToolBar1: TToolBar; … … 135 139 procedure DoDraw; 136 140 procedure UpdateInterface; 141 procedure UpdateSpeedChart; 137 142 public 138 143 procedure SaveConfig; … … 176 181 UpdateInterface; 177 182 end; 183 PageControl1.TabIndex := 0; 178 184 end; 179 185 … … 465 471 CurrentScan.Lock.Release; 466 472 end; 473 UpdateSpeedChart; 467 474 end else 468 475 with Image1 do begin … … 522 529 end; 523 530 531 procedure TFormMain.UpdateSpeedChart; 532 var 533 I: Integer; 534 begin 535 if TabSheetSpeed.Visible then 536 if Assigned(Core.Project) then 537 with Core.Project do 538 if Assigned(CurrentScan) then 539 with CurrentScan do begin 540 ChartSpeed.BottomAxis.Range.UseMax := True; 541 ChartSpeed.BottomAxis.Range.Max := Length(SpeedSteps); 542 ChartSpeedLineSeries1.Clear; 543 for I := 0 to Length(SpeedSteps) - 1 do 544 if not SpeedSteps[I].Null then 545 ChartSpeedLineSeries1.AddXY(I, SpeedSteps[I].Average / (1024 * 1024)); 546 end; 547 end; 548 524 549 procedure TFormMain.SaveConfig; 525 550 begin
Note:
See TracChangeset
for help on using the changeset viewer.