You've already forked lazarus-ccr
fpspreadsheet: Fix fpspreadsheetchart broken in rev 3020. For the moment don't use the t1.xls in the fpschart folder - it uses a "shared formula" which does not load with the current biff machinery.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3125 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -1,4 +1,4 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<CONFIG>
|
<CONFIG>
|
||||||
<ProjectOptions>
|
<ProjectOptions>
|
||||||
<Version Value="9"/>
|
<Version Value="9"/>
|
||||||
@ -51,13 +51,14 @@
|
|||||||
<Filename Value="mainform.pas"/>
|
<Filename Value="mainform.pas"/>
|
||||||
<IsPartOfProject Value="True"/>
|
<IsPartOfProject Value="True"/>
|
||||||
<ComponentName Value="FPSChartForm"/>
|
<ComponentName Value="FPSChartForm"/>
|
||||||
|
<HasResources Value="True"/>
|
||||||
<ResourceBaseClass Value="Form"/>
|
<ResourceBaseClass Value="Form"/>
|
||||||
<UnitName Value="mainform"/>
|
<UnitName Value="mainform"/>
|
||||||
</Unit1>
|
</Unit1>
|
||||||
</Units>
|
</Units>
|
||||||
</ProjectOptions>
|
</ProjectOptions>
|
||||||
<CompilerOptions>
|
<CompilerOptions>
|
||||||
<Version Value="10"/>
|
<Version Value="11"/>
|
||||||
<Target>
|
<Target>
|
||||||
<Filename Value="fpschart"/>
|
<Filename Value="fpschart"/>
|
||||||
</Target>
|
</Target>
|
||||||
@ -67,7 +68,7 @@
|
|||||||
</SearchPaths>
|
</SearchPaths>
|
||||||
<Linking>
|
<Linking>
|
||||||
<Debugging>
|
<Debugging>
|
||||||
<GenerateDebugInfo Value="True"/>
|
<DebugInfoType Value="dsStabs"/>
|
||||||
</Debugging>
|
</Debugging>
|
||||||
<Options>
|
<Options>
|
||||||
<Win32>
|
<Win32>
|
||||||
|
@ -7,7 +7,7 @@ object FPSChartForm: TFPSChartForm
|
|||||||
ClientHeight = 382
|
ClientHeight = 382
|
||||||
ClientWidth = 700
|
ClientWidth = 700
|
||||||
OnCreate = FormCreate
|
OnCreate = FormCreate
|
||||||
LCLVersion = '0.9.31'
|
LCLVersion = '1.3'
|
||||||
object MyChart: TChart
|
object MyChart: TChart
|
||||||
Left = 352
|
Left = 352
|
||||||
Height = 240
|
Height = 240
|
||||||
@ -15,10 +15,12 @@ object FPSChartForm: TFPSChartForm
|
|||||||
Width = 336
|
Width = 336
|
||||||
AxisList = <
|
AxisList = <
|
||||||
item
|
item
|
||||||
|
Minors = <>
|
||||||
Title.LabelFont.Orientation = 900
|
Title.LabelFont.Orientation = 900
|
||||||
end
|
end
|
||||||
item
|
item
|
||||||
Alignment = calBottom
|
Alignment = calBottom
|
||||||
|
Minors = <>
|
||||||
end>
|
end>
|
||||||
Foot.Brush.Color = clBtnFace
|
Foot.Brush.Color = clBtnFace
|
||||||
Foot.Font.Color = clBlue
|
Foot.Font.Color = clBlue
|
||||||
@ -38,8 +40,43 @@ object FPSChartForm: TFPSChartForm
|
|||||||
Height = 240
|
Height = 240
|
||||||
Top = 136
|
Top = 136
|
||||||
Width = 328
|
Width = 328
|
||||||
|
FrozenCols = 0
|
||||||
|
FrozenRows = 0
|
||||||
|
ReadFormulas = False
|
||||||
|
ColCount = 27
|
||||||
|
ExtendedSelect = False
|
||||||
Options = [goFixedVertLine, goFixedHorzLine, goVertLine, goHorzLine, goRangeSelect, goEditing, goSmoothScroll]
|
Options = [goFixedVertLine, goFixedHorzLine, goVertLine, goHorzLine, goRangeSelect, goEditing, goSmoothScroll]
|
||||||
|
RowCount = 101
|
||||||
TabOrder = 1
|
TabOrder = 1
|
||||||
|
ColWidths = (
|
||||||
|
42
|
||||||
|
64
|
||||||
|
64
|
||||||
|
64
|
||||||
|
64
|
||||||
|
64
|
||||||
|
64
|
||||||
|
64
|
||||||
|
64
|
||||||
|
64
|
||||||
|
64
|
||||||
|
64
|
||||||
|
64
|
||||||
|
64
|
||||||
|
64
|
||||||
|
64
|
||||||
|
64
|
||||||
|
64
|
||||||
|
64
|
||||||
|
64
|
||||||
|
64
|
||||||
|
64
|
||||||
|
64
|
||||||
|
64
|
||||||
|
64
|
||||||
|
64
|
||||||
|
64
|
||||||
|
)
|
||||||
end
|
end
|
||||||
object btnCreateGraphic: TButton
|
object btnCreateGraphic: TButton
|
||||||
Left = 464
|
Left = 464
|
||||||
@ -62,22 +99,22 @@ object FPSChartForm: TFPSChartForm
|
|||||||
end
|
end
|
||||||
object editSourceFile: TFileNameEdit
|
object editSourceFile: TFileNameEdit
|
||||||
Left = 152
|
Left = 152
|
||||||
Height = 25
|
Height = 23
|
||||||
Top = 48
|
Top = 48
|
||||||
Width = 136
|
Width = 136
|
||||||
DialogOptions = []
|
DialogOptions = []
|
||||||
FilterIndex = 0
|
FilterIndex = 0
|
||||||
HideDirectories = False
|
HideDirectories = False
|
||||||
ButtonWidth = 23
|
ButtonWidth = 23
|
||||||
NumGlyphs = 0
|
NumGlyphs = 1
|
||||||
MaxLength = 0
|
MaxLength = 0
|
||||||
TabOrder = 3
|
TabOrder = 3
|
||||||
end
|
end
|
||||||
object Label2: TLabel
|
object Label2: TLabel
|
||||||
Left = 14
|
Left = 14
|
||||||
Height = 18
|
Height = 15
|
||||||
Top = 51
|
Top = 51
|
||||||
Width = 136
|
Width = 106
|
||||||
Caption = 'Source Spreadsheet:'
|
Caption = 'Source Spreadsheet:'
|
||||||
ParentColor = False
|
ParentColor = False
|
||||||
end
|
end
|
||||||
@ -92,18 +129,18 @@ object FPSChartForm: TFPSChartForm
|
|||||||
end
|
end
|
||||||
object editXAxis: TLabeledEdit
|
object editXAxis: TLabeledEdit
|
||||||
Left = 64
|
Left = 64
|
||||||
Height = 25
|
Height = 23
|
||||||
Top = 80
|
Top = 80
|
||||||
Width = 80
|
Width = 80
|
||||||
EditLabel.AnchorSideLeft.Control = editXAxis
|
|
||||||
EditLabel.AnchorSideTop.Control = editXAxis
|
EditLabel.AnchorSideTop.Control = editXAxis
|
||||||
EditLabel.AnchorSideTop.Side = asrCenter
|
EditLabel.AnchorSideTop.Side = asrCenter
|
||||||
EditLabel.AnchorSideRight.Control = editXAxis
|
EditLabel.AnchorSideRight.Control = editXAxis
|
||||||
EditLabel.AnchorSideBottom.Control = editXAxis
|
EditLabel.AnchorSideBottom.Control = editXAxis
|
||||||
EditLabel.Left = 18
|
EditLabel.AnchorSideBottom.Side = asrBottom
|
||||||
EditLabel.Height = 18
|
EditLabel.Left = 25
|
||||||
EditLabel.Top = 83
|
EditLabel.Height = 15
|
||||||
EditLabel.Width = 43
|
EditLabel.Top = 84
|
||||||
|
EditLabel.Width = 36
|
||||||
EditLabel.Caption = 'X-Axis:'
|
EditLabel.Caption = 'X-Axis:'
|
||||||
EditLabel.ParentColor = False
|
EditLabel.ParentColor = False
|
||||||
LabelPosition = lpLeft
|
LabelPosition = lpLeft
|
||||||
@ -112,18 +149,18 @@ object FPSChartForm: TFPSChartForm
|
|||||||
end
|
end
|
||||||
object EditYAxis: TLabeledEdit
|
object EditYAxis: TLabeledEdit
|
||||||
Left = 208
|
Left = 208
|
||||||
Height = 25
|
Height = 23
|
||||||
Top = 80
|
Top = 80
|
||||||
Width = 80
|
Width = 80
|
||||||
EditLabel.AnchorSideLeft.Control = EditYAxis
|
|
||||||
EditLabel.AnchorSideTop.Control = EditYAxis
|
EditLabel.AnchorSideTop.Control = EditYAxis
|
||||||
EditLabel.AnchorSideTop.Side = asrCenter
|
EditLabel.AnchorSideTop.Side = asrCenter
|
||||||
EditLabel.AnchorSideRight.Control = EditYAxis
|
EditLabel.AnchorSideRight.Control = EditYAxis
|
||||||
EditLabel.AnchorSideBottom.Control = EditYAxis
|
EditLabel.AnchorSideBottom.Control = EditYAxis
|
||||||
EditLabel.Left = 164
|
EditLabel.AnchorSideBottom.Side = asrBottom
|
||||||
EditLabel.Height = 18
|
EditLabel.Left = 169
|
||||||
EditLabel.Top = 83
|
EditLabel.Height = 15
|
||||||
EditLabel.Width = 41
|
EditLabel.Top = 84
|
||||||
|
EditLabel.Width = 36
|
||||||
EditLabel.Caption = 'Y-Axis:'
|
EditLabel.Caption = 'Y-Axis:'
|
||||||
EditLabel.ParentColor = False
|
EditLabel.ParentColor = False
|
||||||
LabelPosition = lpLeft
|
LabelPosition = lpLeft
|
||||||
|
@ -59,6 +59,7 @@ type
|
|||||||
destructor Destroy; override;
|
destructor Destroy; override;
|
||||||
procedure LoadPropertiesFromStrings(AXInterval, AYInterval, AXTitle, AYTitle, ATitle: string);
|
procedure LoadPropertiesFromStrings(AXInterval, AYInterval, AXTitle, AYTitle, ATitle: string);
|
||||||
public
|
public
|
||||||
|
procedure LoadFromWorksheetGrid(const AValue: TsWorksheetGrid);
|
||||||
published
|
published
|
||||||
// property WorksheetGrid: TsWorksheetGrid read FWorksheetGrid write SetWorksheetGrid;
|
// property WorksheetGrid: TsWorksheetGrid read FWorksheetGrid write SetWorksheetGrid;
|
||||||
property PointsNumber: Integer read FPointsNumber write SetPointsNumber default 0;
|
property PointsNumber: Integer read FPointsNumber write SetPointsNumber default 0;
|
||||||
@ -193,6 +194,17 @@ begin
|
|||||||
inherited Destroy;
|
inherited Destroy;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TsWorksheetChartSource.LoadFromWorksheetGrid(const AValue: TsWorksheetGrid);
|
||||||
|
begin
|
||||||
|
if AValue = nil then Exit;
|
||||||
|
|
||||||
|
FDataWorksheet := AValue.Worksheet;
|
||||||
|
// AValue.SaveToWorksheet(FDataWorksheet);
|
||||||
|
|
||||||
|
InvalidateCaches;
|
||||||
|
Notify;
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TsWorksheetChartSource.LoadPropertiesFromStrings(AXInterval,
|
procedure TsWorksheetChartSource.LoadPropertiesFromStrings(AXInterval,
|
||||||
AYInterval, AXTitle, AYTitle, ATitle: string);
|
AYInterval, AXTitle, AYTitle, ATitle: string);
|
||||||
var
|
var
|
||||||
|
Reference in New Issue
Block a user