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/Forms/UFormMain.pas

    r6 r7  
    1818    ABuild: TAction;
    1919    ABuildClean: TAction;
     20    AFileOpenRecent: TAction;
     21    AFileNew: TAction;
     22    AFileSaveAs: TAction;
     23    AFileSave: TAction;
     24    AFileClose: TAction;
     25    AFileOpen: TAction;
    2026    ARebuild: TAction;
    2127    AStop: TAction;
     
    4450    MenuItem16: TMenuItem;
    4551    MenuItem17: TMenuItem;
    46     MenuItem18: TMenuItem;
    4752    MenuItem19: TMenuItem;
    4853    MenuItem2: TMenuItem;
     
    5358    MenuItem24: TMenuItem;
    5459    MenuItem25: TMenuItem;
     60    MenuItem26: TMenuItem;
     61    MenuItem27: TMenuItem;
     62    MenuItem28: TMenuItem;
     63    MenuItem29: TMenuItem;
    5564    MenuItem3: TMenuItem;
     65    MenuItem30: TMenuItem;
     66    MenuItem31: TMenuItem;
     67    MenuItem32: TMenuItem;
     68    MenuItem33: TMenuItem;
     69    MenuItem34: TMenuItem;
    5670    MenuItem4: TMenuItem;
    5771    MenuItem5: TMenuItem;
     
    6074    MenuItem8: TMenuItem;
    6175    MenuItem9: TMenuItem;
     76    OpenDialogFile: TOpenDialog;
    6277    PageControl1: TPageControl;
    6378    PageControl2: TPageControl;
    6479    PageControl3: TPageControl;
    6580    PageControl4: TPageControl;
     81    SaveDialogFile: TSaveDialog;
    6682    Splitter1: TSplitter;
    6783    Splitter2: TSplitter;
     
    7793    ToolButton4: TToolButton;
    7894    procedure AExitExecute(Sender: TObject);
     95    procedure AFileOpenExecute(Sender: TObject);
    7996    procedure AViewProjectManagerExecute(Sender: TObject);
    8097    procedure AViewSettingsExecute(Sender: TObject);
     
    94111
    95112uses
    96   UFormProject, UFormSourceCode, UFormSettings;
     113  UFormProject, UFormSourceCode, UFormSettings, UDataModule;
    97114
    98115{ TFormMain }
     
    101118begin
    102119  Application.Terminate;
     120end;
     121
     122procedure TFormMain.AFileOpenExecute(Sender: TObject);
     123begin
     124  OpenDialogFile.Filter := DataModule1.FileTypes.GetDialogFilter;
     125  if OpenDialogFile.Execute then ;
    103126end;
    104127
Note: See TracChangeset for help on using the changeset viewer.