Changeset 10
- Timestamp:
- May 19, 2015, 10:32:51 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 2 2 VCSCommander 3 3 VCSCommander.lps 4 Config.xml 5 heaptrclog.trc
-
- Property svn:ignore
-
trunk/Backends/Bazaar/UBazaar.pas
r9 r10 29 29 procedure Move(Source, Dest: string); override; 30 30 procedure Merge; override; 31 procedure Add(FileName: string); override; 31 32 end; 32 33 … … 70 71 end; 71 72 73 procedure TBazaar.Add(FileName: string); 74 begin 75 Execute(['add', FileName]); 76 end; 77 72 78 { TBackendBazaar } 73 79 -
trunk/Backends/Subversion/USubversion.pas
r9 r10 30 30 procedure Move(Source, Dest: string); override; 31 31 procedure Merge; override; 32 procedure Add(FileName: string); override; 32 33 end; 33 34 … … 85 86 end; 86 87 88 procedure TSubversion.Add(FileName: string); 89 begin 90 Execute(['add', FileName]); 91 end; 92 87 93 end. 88 94 -
trunk/Forms/UFormBrowse.lfm
r8 r10 91 91 object AAdd: TAction 92 92 Caption = 'Add' 93 OnExecute = AAddExecute 93 94 end 94 95 object ADelete: TAction … … 98 99 object ARename: TAction 99 100 Caption = 'Rename' 101 OnExecute = ARenameExecute 100 102 end 101 103 object AUpdate: TAction -
trunk/Forms/UFormBrowse.pas
r8 r10 31 31 Splitter1: TSplitter; 32 32 TreeView1: TTreeView; 33 procedure AAddExecute(Sender: TObject); 33 34 procedure ADeleteExecute(Sender: TObject); 34 35 procedure AOpenExecute(Sender: TObject); 36 procedure ARenameExecute(Sender: TObject); 35 37 procedure FormCreate(Sender: TObject); 36 38 procedure FormDestroy(Sender: TObject); … … 42 44 Directory: string; 43 45 procedure ReloadList; 46 procedure UpdateInterface; 44 47 end; 45 48 … … 48 51 49 52 implementation 53 54 uses 55 UCore; 50 56 51 57 {$R *.lfm} … … 70 76 end; 71 77 78 procedure TFormBrowse.AAddExecute(Sender: TObject); 79 begin 80 Core.Project.WorkingCopy.Add(Directory + DirectorySeparator + ListView1.Selected.Caption); 81 end; 82 72 83 procedure TFormBrowse.AOpenExecute(Sender: TObject); 73 84 begin … … 83 94 end; 84 95 end; 96 end; 97 98 procedure TFormBrowse.ARenameExecute(Sender: TObject); 99 var 100 NewName: string; 101 begin 102 if InputQuery('Rename', 'Enter new name', NewName) then 103 Core.Project.WorkingCopy.Move(Directory + DirectorySeparator + ListView1.Selected.Caption, NewName); 85 104 end; 86 105 … … 120 139 end; 121 140 141 procedure TFormBrowse.UpdateInterface; 142 begin 143 AAdd.Enabled := Assigned(ListView1.Selected); 144 ADelete.Enabled := Assigned(ListView1.Selected); 145 ARename.Enabled := Assigned(ListView1.Selected); 146 AProperties.Enabled := Assigned(ListView1.Selected); 147 end; 148 122 149 end. 123 150 -
trunk/Packages/Common
-
Property svn:ignore
set to
lib
-
Property svn:ignore
set to
-
trunk/Packages/TemplateGenerics
-
Property svn:ignore
set to
lib
-
Property svn:ignore
set to
-
trunk/UCore.pas
r9 r10 69 69 uses 70 70 UFormMain, UFormBrowse, UFormSettings, UFormCommit, UFormCheckout, 71 USubversion, UBazaar ;71 USubversion, UBazaar, UCVS; 72 72 73 73 { TCore } … … 110 110 RegisterBackend(TBackendSubversion.Create); 111 111 RegisterBackend(TBackendBazaar.Create); 112 RegisterBackend(TBackendCVS.Create); 112 113 end; 113 114 -
trunk/Units/UVCS.pas
r9 r10 28 28 procedure Merge; virtual; 29 29 procedure Refresh; virtual; 30 procedure Add(FileName: string); virtual; 30 31 property RepositoryURL: string read FRepositoryURL write SetRepositoryURL; 31 32 property Path: string read FPath write SetPath; … … 103 104 end; 104 105 106 procedure TWorkingCopy.Add(FileName: string); 107 begin 108 109 end; 110 105 111 end. 106 112 -
trunk/VCSCommander.lpi
r9 r10 27 27 <SearchPaths> 28 28 <IncludeFiles Value="$(ProjOutDir)"/> 29 <OtherUnitFiles Value="Backends/CVS"/> 29 30 <UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)"/> 30 31 </SearchPaths> … … 83 84 </Item4> 84 85 </RequiredPackages> 85 <Units Count="1 4">86 <Units Count="15"> 86 87 <Unit0> 87 88 <Filename Value="VCSCommander.lpr"/> … … 164 165 <IsPartOfProject Value="True"/> 165 166 </Unit13> 167 <Unit14> 168 <Filename Value="Backends/CVS/UCVS.pas"/> 169 <IsPartOfProject Value="True"/> 170 </Unit14> 166 171 </Units> 167 172 </ProjectOptions> … … 173 178 <SearchPaths> 174 179 <IncludeFiles Value="$(ProjOutDir)"/> 175 <OtherUnitFiles Value="Forms;Units;Backends/Bazaar;Backends/Subversion "/>180 <OtherUnitFiles Value="Forms;Units;Backends/Bazaar;Backends/Subversion;Backends/CVS"/> 176 181 <UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)"/> 177 182 </SearchPaths>
Note:
See TracChangeset
for help on using the changeset viewer.