Стартовый пул

This commit is contained in:
2024-04-02 08:46:59 +03:00
parent fd57fffd3a
commit 3bb34d000b
5591 changed files with 3291734 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 KiB

View File

@@ -0,0 +1,77 @@
<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<ProjectOptions>
<Version Value="10"/>
<General>
<SessionStorage Value="InProjectDir"/>
<MainUnit Value="0"/>
<Title Value="RxIniPropStorage DEMO"/>
<ResourceType Value="res"/>
<UseXPManifest Value="True"/>
<Icon Value="0"/>
</General>
<BuildModes Count="1">
<Item1 Name="Default" Default="True"/>
</BuildModes>
<PublishOptions>
<Version Value="2"/>
</PublishOptions>
<RunParams>
<local>
<FormatVersion Value="1"/>
</local>
</RunParams>
<RequiredPackages Count="2">
<Item1>
<PackageName Value="rxnew"/>
</Item1>
<Item2>
<PackageName Value="LCL"/>
</Item2>
</RequiredPackages>
<Units Count="2">
<Unit0>
<Filename Value="project1.lpr"/>
<IsPartOfProject Value="True"/>
</Unit0>
<Unit1>
<Filename Value="unit1.pas"/>
<IsPartOfProject Value="True"/>
<ComponentName Value="Form1"/>
<HasResources Value="True"/>
<ResourceBaseClass Value="Form"/>
<UnitName Value="Unit1"/>
</Unit1>
</Units>
</ProjectOptions>
<CompilerOptions>
<Version Value="11"/>
<Target>
<Filename Value="project1"/>
</Target>
<SearchPaths>
<IncludeFiles Value="$(ProjOutDir)"/>
<UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)"/>
</SearchPaths>
<Linking>
<Options>
<Win32>
<GraphicApplication Value="True"/>
</Win32>
</Options>
</Linking>
</CompilerOptions>
<Debugging>
<Exceptions Count="3">
<Item1>
<Name Value="EAbort"/>
</Item1>
<Item2>
<Name Value="ECodetoolError"/>
</Item2>
<Item3>
<Name Value="EFOpenError"/>
</Item3>
</Exceptions>
</Debugging>
</CONFIG>

View File

@@ -0,0 +1,22 @@
program project1;
{$mode objfpc}{$H+}
uses
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}
Interfaces, // this includes the LCL widgetset
Forms, Unit1, rxnew
{ you can add units after this };
{$R *.res}
begin
Application.Title:='RxIniPropStorage DEMO';
RequireDerivedFormResource:=True;
Application.Initialize;
Application.CreateForm(TForm1, Form1);
Application.Run;
end.

View File

@@ -0,0 +1,155 @@
object Form1: TForm1
Left = 676
Height = 330
Top = 298
Width = 632
Caption = 'RxIniPropStorage DEMO'
ClientHeight = 330
ClientWidth = 632
Position = poScreenCenter
SessionProperties = 'Edit1.Text;Edit2.Text'
LCLVersion = '1.7'
object Label1: TLabel
AnchorSideLeft.Control = Owner
AnchorSideTop.Control = Label5
AnchorSideTop.Side = asrBottom
Left = 6
Height = 20
Top = 32
Width = 48
BorderSpacing.Around = 6
Caption = 'Value 1'
ParentColor = False
end
object Edit1: TEdit
AnchorSideLeft.Control = Label1
AnchorSideTop.Control = Label1
AnchorSideTop.Side = asrBottom
AnchorSideRight.Control = Label5
Left = 12
Height = 37
Top = 58
Width = 267
Anchors = [akTop, akLeft, akRight]
BorderSpacing.Around = 6
TabOrder = 0
end
object Label2: TLabel
AnchorSideLeft.Control = Label5
AnchorSideLeft.Side = asrBottom
AnchorSideTop.Control = Label5
AnchorSideTop.Side = asrBottom
Left = 354
Height = 20
Top = 32
Width = 48
BorderSpacing.Around = 6
Caption = 'Value 2'
ParentColor = False
end
object Edit2: TEdit
AnchorSideLeft.Control = Label2
AnchorSideTop.Control = Label2
AnchorSideTop.Side = asrBottom
AnchorSideRight.Control = Owner
AnchorSideRight.Side = asrBottom
Left = 360
Height = 37
Top = 58
Width = 266
Anchors = [akTop, akLeft, akRight]
BorderSpacing.Around = 6
TabOrder = 1
end
object Edit3: TEdit
AnchorSideLeft.Control = Label3
AnchorSideTop.Control = Label3
AnchorSideTop.Side = asrBottom
AnchorSideRight.Control = Label6
Left = 12
Height = 37
Top = 207
Width = 259
Anchors = [akTop, akLeft, akRight]
BorderSpacing.Around = 6
TabOrder = 2
end
object SpinEdit1: TSpinEdit
AnchorSideLeft.Control = Label4
AnchorSideTop.Control = Label4
AnchorSideTop.Side = asrBottom
AnchorSideRight.Control = Owner
AnchorSideRight.Side = asrBottom
Left = 368
Height = 37
Top = 207
Width = 258
Anchors = [akTop, akLeft, akRight]
BorderSpacing.Around = 6
TabOrder = 3
Value = 1
end
object Label3: TLabel
AnchorSideLeft.Control = Owner
AnchorSideTop.Control = Label6
AnchorSideTop.Side = asrBottom
Left = 6
Height = 20
Top = 181
Width = 96
BorderSpacing.Around = 6
Caption = 'Manual value 1'
ParentColor = False
end
object Label4: TLabel
AnchorSideLeft.Control = Label6
AnchorSideLeft.Side = asrBottom
AnchorSideTop.Control = Label6
AnchorSideTop.Side = asrBottom
Left = 362
Height = 20
Top = 181
Width = 96
BorderSpacing.Around = 6
Caption = 'Manual value 2'
ParentColor = False
end
object Label5: TLabel
AnchorSideLeft.Control = Owner
AnchorSideLeft.Side = asrCenter
AnchorSideTop.Control = Owner
Left = 285
Height = 20
Top = 6
Width = 63
BorderSpacing.Around = 6
Caption = 'Auto save'
ParentColor = False
end
object Label6: TLabel
AnchorSideLeft.Control = Owner
AnchorSideLeft.Side = asrCenter
AnchorSideTop.Control = Owner
AnchorSideTop.Side = asrCenter
Left = 277
Height = 20
Top = 155
Width = 79
Caption = 'Manual save'
ParentColor = False
end
object RxIniPropStorage1: TRxIniPropStorage
StoredValues = <
item
Name = 'STRING_VALUE1'
end
item
Name = 'INT_VALUE2'
end>
OnSavingProperties = RxIniPropStorage1SavingProperties
OnRestoreProperties = RxIniPropStorage1RestoreProperties
SeparateFiles = True
left = 304
top = 96
end
end

View File

@@ -0,0 +1,59 @@
unit Unit1;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, RxIniPropStorage, Forms, Controls, Graphics,
Dialogs, StdCtrls, Spin;
type
{ TForm1 }
TForm1 = class(TForm)
Edit1: TEdit;
Edit2: TEdit;
Edit3: TEdit;
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
Label4: TLabel;
Label5: TLabel;
Label6: TLabel;
RxIniPropStorage1: TRxIniPropStorage;
SpinEdit1: TSpinEdit;
procedure RxIniPropStorage1RestoreProperties(Sender: TObject);
procedure RxIniPropStorage1SavingProperties(Sender: TObject);
private
public
end;
var
Form1: TForm1;
implementation
{$R *.lfm}
{ TForm1 }
procedure TForm1.RxIniPropStorage1RestoreProperties(Sender: TObject);
begin
Edit3.Text:=RxIniPropStorage1.StoredValue['STRING_VALUE1'];
if RxIniPropStorage1.StoredValue['INT_VALUE2'] <> '' then
SpinEdit1.Value:=StrToIntDef(RxIniPropStorage1.StoredValue['INT_VALUE2'], 0);
end;
procedure TForm1.RxIniPropStorage1SavingProperties(Sender: TObject);
begin
RxIniPropStorage1.StoredValue['STRING_VALUE1']:=Edit3.Text;
RxIniPropStorage1.StoredValue['INT_VALUE2']:=IntToStr(SpinEdit1.Value);
end;
end.