Changeset 7 for trunk/UCore.pas


Ignore:
Timestamp:
May 17, 2015, 10:51:50 PM (10 years ago)
Author:
chronos
Message:
  • Added: Commit form.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UCore.pas

    r6 r7  
    2020    ACommandCommit: TAction;
    2121    ACommandStatus: TAction;
     22    Action1: TAction;
    2223    AProjectClose: TAction;
    2324    ActionList1: TActionList;
     
    3839    procedure AProjectOpenExecute(Sender: TObject);
    3940    procedure AQuitExecute(Sender: TObject);
     41    procedure ASettingsExecute(Sender: TObject);
    4042    procedure DataModuleCreate(Sender: TObject);
    4143    procedure DataModuleDestroy(Sender: TObject);
     
    6062
    6163uses
    62   UFormMain, UFormBrowse;
     64  UFormMain, UFormBrowse, UFormSettings, UFormCommit;
    6365
    6466{ TCore }
     
    6769begin
    6870  Application.Terminate;
     71end;
     72
     73procedure TCore.ASettingsExecute(Sender: TObject);
     74begin
     75  FormSettings.ShowModal;
    6976end;
    7077
     
    159166procedure TCore.ACommandCommitExecute(Sender: TObject);
    160167begin
    161   Project.WorkingCopy.Commit;
     168  if FormCommit.ShowModal = mrOk then begin
     169    Project.WorkingCopy.Commit(FormCommit.MemoMessage.Lines);
     170  end;
    162171end;
    163172
Note: See TracChangeset for help on using the changeset viewer.