Changeset 5 for trunk/UCore.pas


Ignore:
Timestamp:
Sep 1, 2014, 7:26:35 PM (10 years ago)
Author:
chronos
Message:
  • Added: Form for console window. Working copy actions will call command line tool to perform operation.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UCore.pas

    r4 r5  
    1515  TCore = class(TDataModule)
    1616    AAbout: TAction;
     17    ACommandUpdate: TAction;
     18    ACommandCleanup: TAction;
     19    ACommandCheckout: TAction;
     20    ACommandCommit: TAction;
     21    ACommandStatus: TAction;
    1722    AProjectClose: TAction;
    1823    ActionList1: TActionList;
     
    2429    ImageList1: TImageList;
    2530    OpenDialog1: TOpenDialog;
     31    procedure ACommandCheckoutExecute(Sender: TObject);
     32    procedure ACommandCleanupExecute(Sender: TObject);
     33    procedure ACommandCommitExecute(Sender: TObject);
     34    procedure ACommandUpdateExecute(Sender: TObject);
    2635    procedure AProjectCloseExecute(Sender: TObject);
    2736    procedure AProjectOpenExecute(Sender: TObject);
     
    8998end;
    9099
     100procedure TCore.ACommandUpdateExecute(Sender: TObject);
     101begin
     102  Project.WorkingCopy.Update;
     103end;
     104
     105procedure TCore.ACommandCleanupExecute(Sender: TObject);
     106begin
     107  Project.WorkingCopy.CleanUp;
     108end;
     109
     110procedure TCore.ACommandCheckoutExecute(Sender: TObject);
     111begin
     112  Project.WorkingCopy.Checkout;
     113end;
     114
     115procedure TCore.ACommandCommitExecute(Sender: TObject);
     116begin
     117  Project.WorkingCopy.Commit;
     118end;
     119
    91120end.
    92121
Note: See TracChangeset for help on using the changeset viewer.