examples: objectinspector: lrs to lfm

git-svn-id: trunk@30924 -
This commit is contained in:
mattias 2011-05-27 07:19:10 +00:00
parent 4ef2e5bc3e
commit ea77bd45cf
4 changed files with 28 additions and 43 deletions

1
.gitattributes vendored
View File

@ -3702,7 +3702,6 @@ examples/notebku.pp svneol=native#text/pascal
examples/notebooktest.lpi svneol=native#text/plain examples/notebooktest.lpi svneol=native#text/plain
examples/notebooktest.pp svneol=native#text/pascal examples/notebooktest.pp svneol=native#text/pascal
examples/objectinspector/mainunit.lfm svneol=native#text/plain examples/objectinspector/mainunit.lfm svneol=native#text/plain
examples/objectinspector/mainunit.lrs svneol=native#text/pascal
examples/objectinspector/mainunit.pas svneol=native#text/pascal examples/objectinspector/mainunit.pas svneol=native#text/pascal
examples/objectinspector/oiexample.lpi svneol=native#text/plain examples/objectinspector/oiexample.lpi svneol=native#text/plain
examples/objectinspector/oiexample.lpr svneol=native#text/pascal examples/objectinspector/oiexample.lpr svneol=native#text/pascal

View File

@ -1,17 +0,0 @@
LazarusResources.Add('TForm1','FORMDATA',[
'TPF0'#6'TForm1'#5'Form1'#7'CAPTION'#6#5'Form1'#12'CLIENTHEIGHT'#3','#1#11'CL'
+'IENTWIDTH'#3#227#1#8'ONCREATE'#7#11'Form1CREATE'#9'ONDESTROY'#7#12'Form1DES'
+'TROY'#18'HORZSCROLLBAR.PAGE'#3#228#1#18'VERTSCROLLBAR.PAGE'#3'-'#1#4'LEFT'#3
+#190#1#6'HEIGHT'#3','#1#3'TOP'#3#1#1#5'WIDTH'#3#227#1#0#9'TGROUPBOX'#10'OIGr'
+'oupbox'#7'CAPTION'#6#14'Root Component'#12'CLIENTHEIGHT'#2'h'#11'CLIENTWIDT'
+'H'#3#172#0#11'PARENTCTL3D'#8#8'TABORDER'#2#0#4'LEFT'#2#16#6'HEIGHT'#2'y'#3
+'TOP'#2#24#5'WIDTH'#3#176#0#0#7'TBUTTON'#19'SetOIRootFormButton'#7'CAPTION'#6
+#16'Set Form as Root'#7'TABSTOP'#9#8'TABORDER'#2#0#7'ONCLICK'#7#24'SetOIRoot'
+'FormButtonCLICK'#4'LEFT'#2#15#6'HEIGHT'#2#25#3'TOP'#2#16#5'WIDTH'#3#139#0#0
+#0#7'TBUTTON'#21'SetCompAsOIRootButton'#7'CAPTION'#6#13'Set Component'#7'TAB'
+'STOP'#9#8'TABORDER'#2#1#7'ONCLICK'#7#26'SetCompAsOIRootButtonCLICK'#4'LEFT'
+#2#15#6'HEIGHT'#2#25#3'TOP'#2'6'#5'WIDTH'#3#139#0#0#0#0#9'TGROUPBOX'#16'Prop'
+'GridGroupbox'#7'CAPTION'#6#12'PropertyGrid'#12'CLIENTHEIGHT'#3#244#0#11'CLI'
+'ENTWIDTH'#3#253#0#11'PARENTCTL3D'#8#8'TABORDER'#2#1#4'LEFT'#3#207#0#6'HEIGH'
+'T'#3#5#1#3'TOP'#2#24#5'WIDTH'#3#1#1#0#0#0
]);

View File

@ -21,15 +21,15 @@ type
end; end;
TForm1 = class(TForm) TForm1 = class(TForm)
PropGridGroupbox: TGROUPBOX; PropGridGroupbox: TGroupBox;
SetCompAsOIRootButton: TBUTTON; SetCompAsOIRootButton: TButton;
SetOIRootFormButton: TBUTTON; SetOIRootFormButton: TButton;
OIGroupbox: TGROUPBOX; OIGroupbox: TGroupBox;
PropertyGrid: TOIPropertyGrid; PropertyGrid: TOIPropertyGrid;
procedure Form1CREATE(Sender: TObject); procedure Form1Create(Sender: TObject);
procedure Form1DESTROY(Sender: TObject); procedure Form1Destroy(Sender: TObject);
procedure SetCompAsOIRootButtonCLICK(Sender: TObject); procedure SetCompAsOIRootButtonClick(Sender: TObject);
procedure SetOIRootFormButtonCLICK(Sender: TObject); procedure SetOIRootFormButtonClick(Sender: TObject);
private private
procedure SetObjectInspectorRoot(AComponent: TComponent); procedure SetObjectInspectorRoot(AComponent: TComponent);
public public
@ -45,7 +45,7 @@ implementation
{ TForm1 } { TForm1 }
procedure TForm1.Form1CREATE(Sender: TObject); procedure TForm1.Form1Create(Sender: TObject);
begin begin
// create the PropertyEditorHook (the interface to the properties) // create the PropertyEditorHook (the interface to the properties)
ThePropertyEditorHook:=TPropertyEditorHook.Create; ThePropertyEditorHook:=TPropertyEditorHook.Create;
@ -75,7 +75,7 @@ begin
SetObjectInspectorRoot(Self); SetObjectInspectorRoot(Self);
end; end;
procedure TForm1.Form1DESTROY(Sender: TObject); procedure TForm1.Form1Destroy(Sender: TObject);
begin begin
// TheObjectInspector is owned by the Application and therefore destroyed // TheObjectInspector is owned by the Application and therefore destroyed
// automatically // automatically
@ -83,12 +83,12 @@ begin
ARootComponent.Free; ARootComponent.Free;
end; end;
procedure TForm1.SetCompAsOIRootButtonCLICK(Sender: TObject); procedure TForm1.SetCompAsOIRootButtonClick(Sender: TObject);
begin begin
SetObjectInspectorRoot(ARootComponent); SetObjectInspectorRoot(ARootComponent);
end; end;
procedure TForm1.SetOIRootFormButtonCLICK(Sender: TObject); procedure TForm1.SetOIRootFormButtonClick(Sender: TObject);
begin begin
SetObjectInspectorRoot(Self); SetObjectInspectorRoot(Self);
end; end;
@ -113,8 +113,7 @@ begin
FAnInteger:=AValue; FAnInteger:=AValue;
end; end;
initialization {$R *.lfm}
{$I mainunit.lrs}
end. end.

View File

@ -1,15 +1,20 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<CONFIG> <CONFIG>
<ProjectOptions> <ProjectOptions>
<Version Value="9"/>
<PathDelim Value="\"/> <PathDelim Value="\"/>
<Version Value="5"/>
<General> <General>
<Flags>
<LRSInOutputDirectory Value="False"/>
</Flags>
<SessionStorage Value="InProjectDir"/> <SessionStorage Value="InProjectDir"/>
<MainUnit Value="0"/> <MainUnit Value="0"/>
<IconPath Value=".\"/>
<TargetFileExt Value=""/>
<Title Value="Example for the Object Inspector"/> <Title Value="Example for the Object Inspector"/>
<ResourceType Value="res"/>
</General> </General>
<BuildModes Count="1">
<Item1 Name="default" Default="True"/>
</BuildModes>
<PublishOptions> <PublishOptions>
<Version Value="2"/> <Version Value="2"/>
<IncludeFileFilter Value="*.(pas|pp|inc|lfm|lpr|lrs|lpi|lpk|sh|xml)"/> <IncludeFileFilter Value="*.(pas|pp|inc|lfm|lpr|lrs|lpi|lpk|sh|xml)"/>
@ -34,24 +39,23 @@
</Unit0> </Unit0>
<Unit1> <Unit1>
<Filename Value="mainunit.pas"/> <Filename Value="mainunit.pas"/>
<ComponentName Value="Form1"/>
<IsPartOfProject Value="True"/> <IsPartOfProject Value="True"/>
<ResourceFilename Value="mainunit.lrs"/> <ComponentName Value="Form1"/>
<UnitName Value="MainUnit"/> <UnitName Value="MainUnit"/>
</Unit1> </Unit1>
</Units> </Units>
</ProjectOptions> </ProjectOptions>
<CompilerOptions> <CompilerOptions>
<Version Value="5"/> <Version Value="10"/>
<PathDelim Value="\"/> <PathDelim Value="\"/>
<SearchPaths> <SearchPaths>
<OtherUnitFiles Value="$(LazarusDir)\components\units\"/> <OtherUnitFiles Value="$(LazarusDir)\components\units"/>
<SrcPath Value="$(LazarusDir)\designer\"/> <SrcPath Value="$(LazarusDir)\designer"/>
</SearchPaths> </SearchPaths>
<CodeGeneration>
<Generate Value="Faster"/>
</CodeGeneration>
<Other> <Other>
<CompilerMessages>
<UseMsgFile Value="True"/>
</CompilerMessages>
<CompilerPath Value="$(CompPath)"/> <CompilerPath Value="$(CompPath)"/>
</Other> </Other>
</CompilerOptions> </CompilerOptions>