Changeset 7 for trunk/StudioCommon/ULDStudioAPI.pas
- Timestamp:
- Aug 3, 2012, 10:42:13 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.