mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-06 02:59:30 +01:00
lvlgraph example
git-svn-id: trunk@40602 -
This commit is contained in:
parent
114a0f6e2d
commit
eb4d86f7ca
6
.gitattributes
vendored
6
.gitattributes
vendored
@ -4471,6 +4471,12 @@ examples/lclversion/lclversionexample.lpr svneol=native#text/plain
|
|||||||
examples/lclversion/unit1.lfm svneol=native#text/plain
|
examples/lclversion/unit1.lfm svneol=native#text/plain
|
||||||
examples/lclversion/unit1.lrs svneol=native#text/pascal
|
examples/lclversion/unit1.lrs svneol=native#text/pascal
|
||||||
examples/lclversion/unit1.pas svneol=native#text/plain
|
examples/lclversion/unit1.pas svneol=native#text/plain
|
||||||
|
examples/levelgraph/lvlgraph_dep_unit1.lfm svneol=native#text/plain
|
||||||
|
examples/levelgraph/lvlgraph_dep_unit1.pas svneol=native#text/plain
|
||||||
|
examples/levelgraph/lvlgraph_dependencies.ico -text svneol=unset#image/ico
|
||||||
|
examples/levelgraph/lvlgraph_dependencies.lpi svneol=native#text/plain
|
||||||
|
examples/levelgraph/lvlgraph_dependencies.lpr svneol=native#text/plain
|
||||||
|
examples/levelgraph/lvlgraph_dependencies.res -text
|
||||||
examples/listboxtest.lpi svneol=native#text/plain
|
examples/listboxtest.lpi svneol=native#text/plain
|
||||||
examples/listboxtest.pp svneol=native#text/pascal
|
examples/listboxtest.pp svneol=native#text/pascal
|
||||||
examples/listview/listview.lpi svneol=native#text/plain
|
examples/listview/listview.lpi svneol=native#text/plain
|
||||||
|
|||||||
40
examples/levelgraph/lvlgraph_dep_unit1.lfm
Normal file
40
examples/levelgraph/lvlgraph_dep_unit1.lfm
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
object Form1: TForm1
|
||||||
|
Left = 161
|
||||||
|
Height = 474
|
||||||
|
Top = 149
|
||||||
|
Width = 754
|
||||||
|
Caption = 'Form1'
|
||||||
|
ClientHeight = 474
|
||||||
|
ClientWidth = 754
|
||||||
|
OnCreate = FormCreate
|
||||||
|
Position = poScreenCenter
|
||||||
|
LCLVersion = '1.1'
|
||||||
|
object Panel1: TPanel
|
||||||
|
Left = 0
|
||||||
|
Height = 474
|
||||||
|
Top = 0
|
||||||
|
Width = 200
|
||||||
|
Align = alLeft
|
||||||
|
ClientHeight = 474
|
||||||
|
ClientWidth = 200
|
||||||
|
TabOrder = 0
|
||||||
|
object TIPropertyGrid1: TTIPropertyGrid
|
||||||
|
Left = 1
|
||||||
|
Height = 472
|
||||||
|
Top = 1
|
||||||
|
Width = 198
|
||||||
|
Align = alClient
|
||||||
|
DefaultValueFont.Color = clWindowText
|
||||||
|
Filter = [tkInteger, tkChar, tkEnumeration, tkFloat, tkSet, tkMethod, tkSString, tkLString, tkAString, tkWString, tkVariant, tkArray, tkRecord, tkInterface, tkClass, tkObject, tkWChar, tkBool, tkInt64, tkQWord, tkDynArray, tkInterfaceRaw, tkProcVar, tkUString, tkUChar, tkHelper]
|
||||||
|
Indent = 13
|
||||||
|
NameFont.Color = clWindowText
|
||||||
|
ValueFont.Color = clMaroon
|
||||||
|
end
|
||||||
|
end
|
||||||
|
object Splitter1: TSplitter
|
||||||
|
Left = 200
|
||||||
|
Height = 474
|
||||||
|
Top = 0
|
||||||
|
Width = 5
|
||||||
|
end
|
||||||
|
end
|
||||||
64
examples/levelgraph/lvlgraph_dep_unit1.pas
Normal file
64
examples/levelgraph/lvlgraph_dep_unit1.pas
Normal file
@ -0,0 +1,64 @@
|
|||||||
|
unit lvlgraph_dep_unit1;
|
||||||
|
|
||||||
|
{$mode objfpc}{$H+}
|
||||||
|
|
||||||
|
interface
|
||||||
|
|
||||||
|
uses
|
||||||
|
Classes, SysUtils, FileUtil, RTTIGrids, Forms, Controls, Graphics,
|
||||||
|
Dialogs, ExtCtrls, LvlGraphCtrl;
|
||||||
|
|
||||||
|
type
|
||||||
|
|
||||||
|
{ TForm1 }
|
||||||
|
|
||||||
|
TForm1 = class(TForm)
|
||||||
|
Panel1: TPanel;
|
||||||
|
Splitter1: TSplitter;
|
||||||
|
TIPropertyGrid1: TTIPropertyGrid;
|
||||||
|
procedure FormCreate(Sender: TObject);
|
||||||
|
private
|
||||||
|
{ private declarations }
|
||||||
|
public
|
||||||
|
{ public declarations }
|
||||||
|
end;
|
||||||
|
|
||||||
|
var
|
||||||
|
Form1: TForm1;
|
||||||
|
|
||||||
|
implementation
|
||||||
|
|
||||||
|
{$R *.lfm}
|
||||||
|
|
||||||
|
{ TForm1 }
|
||||||
|
|
||||||
|
procedure TForm1.FormCreate(Sender: TObject);
|
||||||
|
var
|
||||||
|
LvlGraph: TLvlGraphControl;
|
||||||
|
begin
|
||||||
|
LvlGraph:=TLvlGraphControl.Create(Self);
|
||||||
|
with LvlGraph do begin
|
||||||
|
Name:='LvlGraph';
|
||||||
|
Graph.GetEdge('-Project-','LCL',true);
|
||||||
|
Graph.GetEdge('-Project-','Cody',true);
|
||||||
|
Graph.GetEdge('Cody','IDEIntf',true);
|
||||||
|
Graph.GetEdge('IDEIntf','LCL',true);
|
||||||
|
Graph.GetEdge('IDEIntf','LazControls',true);
|
||||||
|
Graph.GetEdge('LazControls','LCL',true);
|
||||||
|
Graph.GetEdge('LCL','LCLBase',true);
|
||||||
|
Graph.GetEdge('LCLBase','LazUtils',true);
|
||||||
|
Graph.GetEdge('LazUtils','FCL',true);
|
||||||
|
Graph.GetEdge('Cody','CodeTools',true);
|
||||||
|
Graph.GetEdge('CodeTools','LazUtils',true);
|
||||||
|
Graph.GetEdge('Cody','LazUtils',true);
|
||||||
|
Graph.GetEdge('-Project-','OpenGLControl',true);
|
||||||
|
Graph.GetEdge('OpenGLControl','LCL',true);
|
||||||
|
Align:=alClient;
|
||||||
|
Parent:=Self;
|
||||||
|
end;
|
||||||
|
|
||||||
|
TIPropertyGrid1.TIObject:=LvlGraph;
|
||||||
|
end;
|
||||||
|
|
||||||
|
end.
|
||||||
|
|
||||||
BIN
examples/levelgraph/lvlgraph_dependencies.ico
Normal file
BIN
examples/levelgraph/lvlgraph_dependencies.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 134 KiB |
95
examples/levelgraph/lvlgraph_dependencies.lpi
Normal file
95
examples/levelgraph/lvlgraph_dependencies.lpi
Normal file
@ -0,0 +1,95 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<CONFIG>
|
||||||
|
<ProjectOptions>
|
||||||
|
<Version Value="9"/>
|
||||||
|
<General>
|
||||||
|
<SessionStorage Value="InProjectDir"/>
|
||||||
|
<MainUnit Value="0"/>
|
||||||
|
<Title Value="lvlgraph_dependencies"/>
|
||||||
|
<ResourceType Value="res"/>
|
||||||
|
<UseXPManifest Value="True"/>
|
||||||
|
<Icon Value="0"/>
|
||||||
|
</General>
|
||||||
|
<i18n>
|
||||||
|
<EnableI18N LFM="False"/>
|
||||||
|
</i18n>
|
||||||
|
<VersionInfo>
|
||||||
|
<StringTable ProductVersion=""/>
|
||||||
|
</VersionInfo>
|
||||||
|
<BuildModes Count="1">
|
||||||
|
<Item1 Name="Default" Default="True"/>
|
||||||
|
</BuildModes>
|
||||||
|
<PublishOptions>
|
||||||
|
<Version Value="2"/>
|
||||||
|
<IncludeFileFilter Value="*.(pas|pp|inc|lfm|lpr|lrs|lpi|lpk|sh|xml)"/>
|
||||||
|
<ExcludeFileFilter Value="*.(bak|ppu|o|so);*~;backup"/>
|
||||||
|
</PublishOptions>
|
||||||
|
<RunParams>
|
||||||
|
<local>
|
||||||
|
<FormatVersion Value="1"/>
|
||||||
|
</local>
|
||||||
|
</RunParams>
|
||||||
|
<RequiredPackages Count="3">
|
||||||
|
<Item1>
|
||||||
|
<PackageName Value="RunTimeTypeInfoControls"/>
|
||||||
|
</Item1>
|
||||||
|
<Item2>
|
||||||
|
<PackageName Value="Cody"/>
|
||||||
|
</Item2>
|
||||||
|
<Item3>
|
||||||
|
<PackageName Value="LCL"/>
|
||||||
|
</Item3>
|
||||||
|
</RequiredPackages>
|
||||||
|
<Units Count="2">
|
||||||
|
<Unit0>
|
||||||
|
<Filename Value="lvlgraph_dependencies.lpr"/>
|
||||||
|
<IsPartOfProject Value="True"/>
|
||||||
|
<UnitName Value="lvlgraph_dependencies"/>
|
||||||
|
</Unit0>
|
||||||
|
<Unit1>
|
||||||
|
<Filename Value="lvlgraph_dep_unit1.pas"/>
|
||||||
|
<IsPartOfProject Value="True"/>
|
||||||
|
<ComponentName Value="Form1"/>
|
||||||
|
<HasResources Value="True"/>
|
||||||
|
<ResourceBaseClass Value="Form"/>
|
||||||
|
<UnitName Value="lvlgraph_dep_unit1"/>
|
||||||
|
</Unit1>
|
||||||
|
</Units>
|
||||||
|
</ProjectOptions>
|
||||||
|
<CompilerOptions>
|
||||||
|
<Version Value="11"/>
|
||||||
|
<Target>
|
||||||
|
<Filename Value="lvlgraph_dependencies"/>
|
||||||
|
</Target>
|
||||||
|
<SearchPaths>
|
||||||
|
<IncludeFiles Value="$(ProjOutDir)"/>
|
||||||
|
<UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)"/>
|
||||||
|
</SearchPaths>
|
||||||
|
<Linking>
|
||||||
|
<Options>
|
||||||
|
<Win32>
|
||||||
|
<GraphicApplication Value="True"/>
|
||||||
|
</Win32>
|
||||||
|
</Options>
|
||||||
|
</Linking>
|
||||||
|
<Other>
|
||||||
|
<CompilerMessages>
|
||||||
|
<MsgFileName Value=""/>
|
||||||
|
</CompilerMessages>
|
||||||
|
<CompilerPath Value="$(CompPath)"/>
|
||||||
|
</Other>
|
||||||
|
</CompilerOptions>
|
||||||
|
<Debugging>
|
||||||
|
<Exceptions Count="3">
|
||||||
|
<Item1>
|
||||||
|
<Name Value="EAbort"/>
|
||||||
|
</Item1>
|
||||||
|
<Item2>
|
||||||
|
<Name Value="ECodetoolError"/>
|
||||||
|
</Item2>
|
||||||
|
<Item3>
|
||||||
|
<Name Value="EFOpenError"/>
|
||||||
|
</Item3>
|
||||||
|
</Exceptions>
|
||||||
|
</Debugging>
|
||||||
|
</CONFIG>
|
||||||
21
examples/levelgraph/lvlgraph_dependencies.lpr
Normal file
21
examples/levelgraph/lvlgraph_dependencies.lpr
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
program lvlgraph_dependencies;
|
||||||
|
|
||||||
|
{$mode objfpc}{$H+}
|
||||||
|
|
||||||
|
uses
|
||||||
|
{$IFDEF UNIX}{$IFDEF UseCThreads}
|
||||||
|
cthreads,
|
||||||
|
{$ENDIF}{$ENDIF}
|
||||||
|
Interfaces, // this includes the LCL widgetset
|
||||||
|
Forms, runtimetypeinfocontrols, lvlgraph_dep_unit1
|
||||||
|
{ you can add units after this };
|
||||||
|
|
||||||
|
{$R *.res}
|
||||||
|
|
||||||
|
begin
|
||||||
|
RequireDerivedFormResource := True;
|
||||||
|
Application.Initialize;
|
||||||
|
Application.CreateForm(TForm1, Form1);
|
||||||
|
Application.Run;
|
||||||
|
end.
|
||||||
|
|
||||||
BIN
examples/levelgraph/lvlgraph_dependencies.res
Normal file
BIN
examples/levelgraph/lvlgraph_dependencies.res
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user