Changeset 7 for trunk/StudioCommon
- Timestamp:
- Aug 3, 2012, 10:42:13 AM (12 years ago)
- Location:
- trunk/StudioCommon
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/StudioCommon/LDStudioCommon.lpk
r5 r7 17 17 </Other> 18 18 </CompilerOptions> 19 <Files Count=" 1">19 <Files Count="2"> 20 20 <Item1> 21 21 <Filename Value="ULDStudioAPI.pas"/> 22 22 <UnitName Value="ULDStudioAPI"/> 23 23 </Item1> 24 <Item2> 25 <Filename Value="USource.pas"/> 26 <UnitName Value="USource"/> 27 </Item2> 24 28 </Files> 25 29 <Type Value="RunAndDesignTime"/> 26 <RequiredPkgs Count=" 3">30 <RequiredPkgs Count="4"> 27 31 <Item1> 28 <PackageName Value=" LCL"/>32 <PackageName Value="TemplateGenerics"/> 29 33 </Item1> 30 34 <Item2> 31 <PackageName Value=" ModularSystem"/>35 <PackageName Value="LCL"/> 32 36 </Item2> 33 37 <Item3> 38 <PackageName Value="ModularSystem"/> 39 </Item3> 40 <Item4> 34 41 <PackageName Value="FCL"/> 35 </Item 3>42 </Item4> 36 43 </RequiredPkgs> 37 44 <UsageOptions> -
trunk/StudioCommon/LDStudioCommon.pas
r5 r7 8 8 9 9 uses 10 ULDStudioAPI, LazarusPackageIntf;10 ULDStudioAPI, USource, LazarusPackageIntf; 11 11 12 12 implementation -
trunk/StudioCommon/ULDStudioAPI.pas
r5 r7 6 6 7 7 uses 8 Classes, SysUtils, UModularSystem, ActnList, Menus, Forms; 8 Classes, SysUtils, UModularSystem, ActnList, Menus, Forms, USource, 9 SpecializedList; 9 10 10 11 type … … 18 19 MainForm: TForm; 19 20 MainMenu: TMainMenu; 21 FileTypes: TFileTypes; 20 22 constructor Create; 21 23 destructor Destroy; override; 22 24 23 25 // API functions 26 procedure RegisterFileType(FileType: TSourceType); 27 procedure UnregisterFileType(FileType: TSourceType); 24 28 procedure RegisterForm(Form: TForm); 25 29 procedure UnregisterForm(Form: TForm); … … 44 48 FreeAndNil(Actions); 45 49 inherited Destroy; 50 end; 51 52 procedure TLDStudioAPI.RegisterFileType(FileType: TSourceType); 53 begin 54 FileTypes.Add(FileType); 55 end; 56 57 procedure TLDStudioAPI.UnregisterFileType(FileType: TSourceType); 58 begin 59 FileTypes.Remove(FileType); 46 60 end; 47 61
Note:
See TracChangeset
for help on using the changeset viewer.