Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
101 changes: 36 additions & 65 deletions Demos/FPC/Demo01/project1.lpi
Original file line number Diff line number Diff line change
@@ -1,33 +1,35 @@
<?xml version="1.0"?>
<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<ProjectOptions>
<Version Value="9"/>
<Version Value="11"/>
<PathDelim Value="\"/>
<General>
<MainUnit Value="0"/>
<UseXPManifest Value="True"/>
<Icon Value="0"/>
<ActiveWindowIndexAtStart Value="0"/>
</General>
<VersionInfo>
<Language Value=""/>
<CharSet Value=""/>
<StringTable ProductVersion=""/>
</VersionInfo>
<BuildModes Count="1">
<Item1 Name="default" Default="True"/>
</BuildModes>
<PublishOptions>
<Version Value="2"/>
<IgnoreBinaries Value="False"/>
<IncludeFileFilter Value="*.(pas|pp|inc|lfm|lpr|lrs|lpi|lpk|sh|xml)"/>
<ExcludeFileFilter Value="*.(bak|ppu|ppw|o|so);*~;backup"/>
</PublishOptions>
<RunParams>
<local>
<FormatVersion Value="1"/>
<LaunchingApplication PathPlusParams="/usr/X11R6/bin/xterm -T 'Lazarus Run Output' -e $(LazarusDir)/tools/runwait.sh $(TargetCmdLine)"/>
</local>
<FormatVersion Value="2"/>
<Modes Count="1">
<Mode0 Name="default">
<local>
<LaunchingApplication PathPlusParams="/usr/X11R6/bin/xterm -T 'Lazarus Run Output' -e $(LazarusDir)/tools/runwait.sh $(TargetCmdLine)"/>
</local>
</Mode0>
</Modes>
</RunParams>
<RequiredPackages Count="2">
<Item1>
Expand All @@ -38,120 +40,92 @@
<PackageName Value="LCL"/>
</Item2>
</RequiredPackages>
<Units Count="8">
<Units Count="9">
<Unit0>
<Filename Value="project1.lpr"/>
<IsPartOfProject Value="True"/>
<UnitName Value="project1"/>
<UsageCount Value="74"/>
</Unit0>
<Unit1>
<Filename Value="unit1.pas"/>
<IsPartOfProject Value="True"/>
<ComponentName Value="Form1"/>
<HasResources Value="True"/>
<ResourceBaseClass Value="Form"/>
<UnitName Value="Unit1"/>
<EditorIndex Value="0"/>
<WindowIndex Value="0"/>
<TopLine Value="30"/>
<CursorPos X="62" Y="43"/>
<CursorPos X="55" Y="9"/>
<UsageCount Value="74"/>
<Loaded Value="True"/>
<LoadedDesigner Value="True"/>
</Unit1>
<Unit2>
<Filename Value="..\..\..\..\..\..\lazarus\fpc\2.2.4\source\rtl\inc\variants.pp"/>
<UnitName Value="variants"/>
<WindowIndex Value="0"/>
<TopLine Value="4220"/>
<CursorPos X="9" Y="4225"/>
<UsageCount Value="37"/>
</Unit2>
<Unit3>
<Filename Value="..\..\..\..\..\..\lazarus\fpc\2.2.4\source\rtl\inc\varianth.inc"/>
<WindowIndex Value="0"/>
<TopLine Value="115"/>
<CursorPos X="94" Y="134"/>
<UsageCount Value="37"/>
</Unit3>
<Unit4>
<Filename Value="..\..\..\Components\Sources\Core\PythonGUIInputOutput.pas"/>
<UnitName Value="PythonGUIInputOutput"/>
<EditorIndex Value="3"/>
<WindowIndex Value="0"/>
<EditorIndex Value="-1"/>
<TopLine Value="154"/>
<CursorPos X="52" Y="166"/>
<UsageCount Value="11"/>
<Loaded Value="True"/>
<DefaultSyntaxHighlighter Value="Delphi"/>
</Unit4>
<Unit5>
<Filename Value="..\..\..\Components\Sources\Core\PythonEngine.pas"/>
<UnitName Value="PythonEngine"/>
<EditorIndex Value="4"/>
<WindowIndex Value="0"/>
<TopLine Value="1"/>
<CursorPos X="1" Y="1"/>
<EditorIndex Value="-1"/>
<UsageCount Value="11"/>
<Loaded Value="True"/>
<DefaultSyntaxHighlighter Value="Delphi"/>
</Unit5>
<Unit6>
<Filename Value="..\..\..\Components\p4dlaz.pas"/>
<UnitName Value="P4DLaz"/>
<EditorIndex Value="2"/>
<WindowIndex Value="0"/>
<TopLine Value="1"/>
<EditorIndex Value="-1"/>
<CursorPos X="36" Y="11"/>
<UsageCount Value="10"/>
<Loaded Value="True"/>
<DefaultSyntaxHighlighter Value="Delphi"/>
</Unit6>
<Unit7>
<Filename Value="..\Demo06\Unit1.lfm"/>
<IsVisibleTab Value="True"/>
<EditorIndex Value="1"/>
<WindowIndex Value="0"/>
<TopLine Value="1"/>
<CursorPos X="1" Y="1"/>
<ComponentName Value="Form1"/>
<HasResources Value="True"/>
<ResourceBaseClass Value="Form"/>
<EditorIndex Value="2"/>
<UsageCount Value="10"/>
<Loaded Value="True"/>
<LoadedDesigner Value="True"/>
<DefaultSyntaxHighlighter Value="LFM"/>
</Unit7>
<Unit8>
<Filename Value="..\..\..\Source\PythonEngine.pas"/>
<IsVisibleTab Value="True"/>
<EditorIndex Value="1"/>
<TopLine Value="4691"/>
<CursorPos X="11" Y="4720"/>
<UsageCount Value="10"/>
<Loaded Value="True"/>
<DefaultSyntaxHighlighter Value="Delphi"/>
</Unit8>
</Units>
<JumpHistory Count="7" HistoryIndex="6">
<JumpHistory Count="2" HistoryIndex="1">
<Position1>
<Filename Value="..\..\..\Components\Sources\Core\PythonGUIInputOutput.pas"/>
<Caret Line="1" Column="1" TopLine="1"/>
<Filename Value="..\Demo06\Unit1.lfm"/>
</Position1>
<Position2>
<Filename Value="..\..\..\Components\Sources\Core\PythonGUIInputOutput.pas"/>
<Caret Line="205" Column="19" TopLine="193"/>
<Filename Value="unit1.pas"/>
<Caret Line="9" Column="55"/>
</Position2>
<Position3>
<Filename Value="..\..\..\Components\Sources\Core\PythonEngine.pas"/>
<Caret Line="1" Column="1" TopLine="1"/>
</Position3>
<Position4>
<Filename Value="..\..\..\Components\Sources\Core\PythonEngine.pas"/>
<Caret Line="3044" Column="28" TopLine="3032"/>
</Position4>
<Position5>
<Filename Value="..\..\..\Components\Sources\Core\PythonEngine.pas"/>
<Caret Line="9602" Column="10" TopLine="9597"/>
</Position5>
<Position6>
<Filename Value="..\..\..\Components\Sources\Core\PythonEngine.pas"/>
<Caret Line="2875" Column="61" TopLine="2863"/>
</Position6>
<Position7>
<Filename Value="..\..\..\Components\p4dlaz.pas"/>
<Caret Line="1" Column="1" TopLine="1"/>
</Position7>
</JumpHistory>
</ProjectOptions>
<CompilerOptions>
<Version Value="9"/>
<Version Value="11"/>
<PathDelim Value="\"/>
<SearchPaths>
<IncludeFiles Value="$(ProjOutDir)"/>
Expand All @@ -168,9 +142,6 @@
</Win32>
</Options>
</Linking>
<Other>
<CompilerPath Value="$(CompPath)"/>
</Other>
</CompilerOptions>
<Debugging>
<Exceptions Count="3">
Expand Down
Binary file modified Demos/FPC/Demo01/project1.res
Binary file not shown.
10 changes: 5 additions & 5 deletions Demos/FPC/Demo01/unit1.lfm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ object Form1: TForm1
Caption = 'Form1'
ClientHeight = 391
ClientWidth = 547
LCLVersion = '0.9.30.2'
LCLVersion = '2.0.10.0'
object Panel1: TPanel
Left = 0
Height = 391
Expand Down Expand Up @@ -79,15 +79,15 @@ object Form1: TForm1
end
object PythonEngine1: TPythonEngine
IO = PythonGUIInputOutput1
left = 96
top = 48
Left = 96
Top = 48
end
object PythonGUIInputOutput1: TPythonGUIInputOutput
DelayWrites = True
UnicodeIO = False
RawOutput = False
Output = Memo1
left = 338
top = 48
Left = 338
Top = 48
end
end
20 changes: 10 additions & 10 deletions Demos/FPC/Demo01/unit1.lrs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
LazarusResources.Add('TForm1','FORMDATA',[
'TPF0'#6'TForm1'#5'Form1'#4'Left'#3'"'#1#6'Height'#3#135#1#3'Top'#3#175#0#5'W'
+'idth'#3'#'#2#7'Caption'#6#5'Form1'#12'ClientHeight'#3#135#1#11'ClientWidth'
+#3'#'#2#10'LCLVersion'#6#8'0.9.30.2'#0#6'TPanel'#6'Panel1'#4'Left'#2#0#6'Hei'
+#3'#'#2#10'LCLVersion'#6#8'2.0.10.0'#0#6'TPanel'#6'Panel1'#4'Left'#2#0#6'Hei'
+'ght'#3#135#1#3'Top'#2#0#5'Width'#3'#'#2#5'Align'#7#8'alClient'#12'ClientHei'
+'ght'#3#135#1#11'ClientWidth'#3'#'#2#8'TabOrder'#2#0#0#5'TMemo'#5'Memo1'#4'L'
+'eft'#2#1#6'Height'#3#183#0#3'Top'#2#1#5'Width'#3'!'#2#5'Align'#7#5'alTop'#8
Expand All @@ -13,13 +13,13 @@ LazarusResources.Add('TForm1','FORMDATA',[
+#6'Height'#2#8#3'Top'#2#0#5'Width'#2'-'#0#0#17'TPairSplitterSide'#17'PairSpl'
+'itterSide2'#6'Cursor'#7#7'crArrow'#4'Left'#2'2'#6'Height'#2#8#3'Top'#2#0#5
+'Width'#3#239#1#0#0#0#5'TMemo'#5'Memo2'#4'Left'#2#1#6'Height'#3#152#0#3'Top'
+#3#192#0#5'Width'#3'!'#2#5'Align'#7#8'alClient'#13'Lines.Strings'#1#6#9'prin'
+'t 2+2'#0#8'TabOrder'#2#2#0#0#6'TPanel'#6'Panel2'#4'Left'#2#1#6'Height'#2'.'
+#3'Top'#3'X'#1#5'Width'#3'!'#2#5'Align'#7#8'alBottom'#12'ClientHeight'#2'.'
+#11'ClientWidth'#3'!'#2#8'TabOrder'#2#3#0#7'TButton'#7'Button1'#4'Left'#3#223
+#0#6'Height'#2#25#3'Top'#2#8#5'Width'#2'K'#7'Caption'#6#7'Execute'#7'OnClick'
+#7#12'Button1Click'#8'TabOrder'#2#0#0#0#0#0#13'TPythonEngine'#13'PythonEngin'
+'e1'#2'IO'#7#21'PythonGUIInputOutput1'#4'left'#2'`'#3'top'#2'0'#0#0#21'TPyth'
+'onGUIInputOutput'#21'PythonGUIInputOutput1'#11'DelayWrites'#9#9'UnicodeIO'#8
+#9'RawOutput'#8#6'Output'#7#5'Memo1'#4'left'#3'R'#1#3'top'#2'0'#0#0#0
+#3#192#0#5'Width'#3'!'#2#5'Align'#7#8'alClient'#13'Lines.Strings'#1#6#10'pri'
+'nt(2+2)'#0#8'TabOrder'#2#2#0#0#6'TPanel'#6'Panel2'#4'Left'#2#1#6'Height'#2
+'.'#3'Top'#3'X'#1#5'Width'#3'!'#2#5'Align'#7#8'alBottom'#12'ClientHeight'#2
+'.'#11'ClientWidth'#3'!'#2#8'TabOrder'#2#3#0#7'TButton'#7'Button1'#4'Left'#3
+#223#0#6'Height'#2#25#3'Top'#2#8#5'Width'#2'K'#7'Caption'#6#7'Execute'#7'OnC'
+'lick'#7#12'Button1Click'#8'TabOrder'#2#0#0#0#0#0#13'TPythonEngine'#13'Pytho'
+'nEngine1'#2'IO'#7#21'PythonGUIInputOutput1'#4'Left'#2'`'#3'Top'#2'0'#0#0#21
+'TPythonGUIInputOutput'#21'PythonGUIInputOutput1'#11'DelayWrites'#9#9'Unicod'
+'eIO'#8#9'RawOutput'#8#6'Output'#7#5'Memo1'#4'Left'#3'R'#1#3'Top'#2'0'#0#0#0
]);
2 changes: 1 addition & 1 deletion Demos/FPC/Demo01/unit1.pas
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ interface

uses
Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics, Dialogs,
StdCtrls, ExtCtrls, PairSplitter, PythonEngine, PythonGUIInputOutput;
StdCtrls, ExtCtrls, PairSplitter, PythonEngine, lcl.PythonGUIInputOutput;

type

Expand Down
51 changes: 42 additions & 9 deletions Demos/FPC/Demo06/Project1.lpi
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<ProjectOptions>
<Version Value="10"/>
<Version Value="11"/>
<PathDelim Value="\"/>
<General>
<MainUnit Value="0"/>
Expand All @@ -17,15 +17,19 @@
</BuildModes>
<PublishOptions>
<Version Value="2"/>
<IgnoreBinaries Value="False"/>
<IncludeFileFilter Value="*.(pas|pp|inc|lfm|lpr|lrs|lpi|lpk|sh|xml)"/>
<ExcludeFileFilter Value="*.(bak|ppu|ppw|o|so);*~;backup"/>
</PublishOptions>
<RunParams>
<local>
<FormatVersion Value="1"/>
<LaunchingApplication PathPlusParams="\usr\X11R6\bin\xterm -T 'Lazarus Run Output' -e $(LazarusDir)\tools\runwait.sh $(TargetCmdLine)"/>
</local>
<FormatVersion Value="2"/>
<Modes Count="1">
<Mode0 Name="default">
<local>
<LaunchingApplication PathPlusParams="\usr\X11R6\bin\xterm -T 'Lazarus Run Output' -e $(LazarusDir)\tools\runwait.sh $(TargetCmdLine)"/>
</local>
</Mode0>
</Modes>
</RunParams>
<RequiredPackages Count="2">
<Item1>
Expand All @@ -51,8 +55,8 @@
<HasResources Value="True"/>
<ResourceBaseClass Value="Form"/>
<IsVisibleTab Value="True"/>
<TopLine Value="4"/>
<CursorPos X="17" Y="16"/>
<TopLine Value="244"/>
<CursorPos X="16" Y="292"/>
<UsageCount Value="45"/>
<Loaded Value="True"/>
<LoadedDesigner Value="True"/>
Expand Down Expand Up @@ -112,13 +116,42 @@
<DefaultSyntaxHighlighter Value="Delphi"/>
</Unit8>
</Units>
<JumpHistory HistoryIndex="-1"/>
<JumpHistory Count="7" HistoryIndex="6">
<Position1>
<Filename Value="Unit1.pas"/>
<Caret Line="16" Column="17" TopLine="4"/>
</Position1>
<Position2>
<Filename Value="Unit1.pas"/>
<Caret Line="11" Column="17"/>
</Position2>
<Position3>
<Filename Value="Unit1.pas"/>
<Caret Line="9" Column="2" TopLine="2"/>
</Position3>
<Position4>
<Filename Value="Unit1.pas"/>
<Caret Line="292"/>
</Position4>
<Position5>
<Filename Value="Unit1.pas"/>
<Caret Line="57" Column="23" TopLine="29"/>
</Position5>
<Position6>
<Filename Value="Unit1.pas"/>
<Caret Line="58" Column="31" TopLine="30"/>
</Position6>
<Position7>
<Filename Value="Unit1.pas"/>
<Caret Line="59" Column="35" TopLine="31"/>
</Position7>
</JumpHistory>
</ProjectOptions>
<CompilerOptions>
<Version Value="11"/>
<PathDelim Value="\"/>
<SearchPaths>
<IncludeFiles Value="$(ProjOutDir);..\..\..\Components\Sources\Core"/>
<IncludeFiles Value="$(ProjOutDir);..\..\..\Source"/>
</SearchPaths>
<Parsing>
<SyntaxOptions>
Expand Down
Binary file modified Demos/FPC/Demo06/Project1.res
Binary file not shown.
Loading