Ignore:
Timestamp:
Aug 3, 2012, 10:42:13 AM (12 years ago)
Author:
chronos
Message:
  • Added: Registration of file types for modules.
  • Added: Some Brainfuck module sample code.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/StudioPackage/UDataModule.pas

    r6 r7  
    11unit UDataModule;
    22
    3 {$mode objfpc}{$H+}
     3{$mode delphi}{$H+}
    44
    55interface
    66
    77uses
    8   Classes, SysUtils, FileUtil, UProject, Forms;
     8  Classes, SysUtils, FileUtil, UProject, Forms, SpecializedList, USource;
    99
    1010type
    11 
    1211  { TDataModule1 }
    1312
    1413  TDataModule1 = class(TDataModule)
    1514    procedure DataModuleCreate(Sender: TObject);
     15    procedure DataModuleDestroy(Sender: TObject);
    1616  private
    1717    { private declarations }
    1818  public
    1919    Project: TProject;
     20    FileTypes: TFileTypes;
    2021  end;
    2122
     
    3940  Application.CreateForm(TFormSourceCode, FormSourceCode);
    4041  Application.CreateForm(TFormSettings, FormSettings);
     42  FileTypes := TFileTypes.Create;
     43end;
     44
     45procedure TDataModule1.DataModuleDestroy(Sender: TObject);
     46begin
     47  FreeAndNil(FileTypes);
    4148end;
    4249
Note: See TracChangeset for help on using the changeset viewer.