Changeset 7
- Timestamp:
- May 17, 2015, 10:51:50 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormBrowse.lfm
r6 r7 14 14 Width = 241 15 15 Align = alLeft 16 DefaultItemHeight = 2 416 DefaultItemHeight = 28 17 17 TabOrder = 0 18 18 end … … 51 51 end> 52 52 OwnerData = True 53 PopupMenu = PopupMenu1 53 54 ReadOnly = True 54 55 RowSelect = True 56 SmallImages = Core.ImageList1 55 57 TabOrder = 2 56 58 ViewStyle = vsReport 57 59 OnData = ListView1Data 60 OnDblClick = AOpenExecute 61 end 62 object PopupMenu1: TPopupMenu 63 Images = Core.ImageList1 64 left = 353 65 top = 131 66 object MenuItem1: TMenuItem 67 Action = AAdd 68 end 69 object MenuItem2: TMenuItem 70 Action = ADelete 71 end 72 object MenuItem3: TMenuItem 73 Action = ARename 74 end 75 object MenuItem4: TMenuItem 76 Action = AUpdate 77 end 78 object MenuItem5: TMenuItem 79 Action = AProperties 80 end 81 object MenuItem6: TMenuItem 82 Action = AOpen 83 end 84 end 85 object ActionList1: TActionList 86 Images = Core.ImageList1 87 left = 352 88 top = 208 89 object AAdd: TAction 90 Caption = 'Add' 91 end 92 object ADelete: TAction 93 Caption = 'Delete' 94 OnExecute = ADeleteExecute 95 end 96 object ARename: TAction 97 Caption = 'Rename' 98 end 99 object AUpdate: TAction 100 Caption = 'Update' 101 end 102 object AProperties: TAction 103 Caption = 'Properties' 104 end 105 object AOpen: TAction 106 Caption = 'Open' 107 OnExecute = AOpenExecute 108 end 58 109 end 59 110 end -
trunk/Forms/UFormBrowse.pas
r6 r7 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ComCtrls, 9 ExtCtrls, UFindFile;9 ExtCtrls, Menus, ActnList, UFindFile; 10 10 11 11 type … … 14 14 15 15 TFormBrowse = class(TForm) 16 AAdd: TAction; 17 AOpen: TAction; 18 AProperties: TAction; 19 AUpdate: TAction; 20 ARename: TAction; 21 ADelete: TAction; 22 ActionList1: TActionList; 16 23 ListView1: TListView; 24 MenuItem1: TMenuItem; 25 MenuItem2: TMenuItem; 26 MenuItem3: TMenuItem; 27 MenuItem4: TMenuItem; 28 MenuItem5: TMenuItem; 29 MenuItem6: TMenuItem; 30 PopupMenu1: TPopupMenu; 17 31 Splitter1: TSplitter; 18 32 TreeView1: TTreeView; 33 procedure ADeleteExecute(Sender: TObject); 34 procedure AOpenExecute(Sender: TObject); 19 35 procedure ListView1Data(Sender: TObject; Item: TListItem); 36 procedure ListView1DblClick(Sender: TObject); 20 37 private 21 38 FileList: TStringList; … … 41 58 end; 42 59 60 procedure TFormBrowse.ListView1DblClick(Sender: TObject); 61 begin 62 63 end; 64 65 procedure TFormBrowse.ADeleteExecute(Sender: TObject); 66 begin 67 68 end; 69 70 procedure TFormBrowse.AOpenExecute(Sender: TObject); 71 begin 72 if Assigned(ListView1.Selected) then 73 with ListView1.Selected do begin 74 if Caption = '..' then begin 75 Directory := ExtractFileDir(Directory); 76 ReloadList; 77 end else 78 if DirectoryExistsUTF8(Directory + DirectorySeparator + Caption) then begin 79 Directory := Directory + DirectorySeparator + ListView1.Selected.Caption; 80 ReloadList; 81 end; 82 end; 83 end; 84 43 85 procedure TFormBrowse.ReloadList; 44 86 var … … 48 90 FindFile := TFindFile.Create(nil); 49 91 FindFile.Path := Directory; 50 FindFile.FileMask := '*.*';92 FindFile.FileMask := AllFilesMask; 51 93 FindFile.InSubFolders := False; 52 94 FileList := FindFile.SearchForFiles; 53 95 for I := FileList.Count - 1 downto 0 do 54 96 if ExtractFileName(FileList[I]) = '.' then FileList.Delete(I); 97 FileList.Sort; 55 98 ListView1.Items.Count := FileList.Count; 56 99 ListView1.Refresh; -
trunk/Forms/UFormSettings.lfm
r3 r7 7 7 ClientHeight = 497 8 8 ClientWidth = 686 9 LCLVersion = '1. 1'10 object Button 1: TButton9 LCLVersion = '1.5' 10 object ButtonCancel: TButton 11 11 Left = 592 12 12 Height = 25 13 13 Top = 464 14 14 Width = 75 15 Caption = 'Button1' 15 Caption = 'Cancel' 16 ModalResult = 2 16 17 TabOrder = 0 17 18 end 18 object Button 2: TButton19 object ButtonOk: TButton 19 20 Left = 496 20 21 Height = 25 21 22 Top = 464 22 23 Width = 75 23 Caption = 'Button2' 24 Caption = 'Ok' 25 ModalResult = 1 24 26 TabOrder = 1 25 27 end -
trunk/Forms/UFormSettings.pas
r3 r7 13 13 14 14 TFormSettings = class(TForm) 15 Button 1: TButton;16 Button 2: TButton;15 ButtonCancel: TButton; 16 ButtonOk: TButton; 17 17 private 18 18 { private declarations } -
trunk/UCore.lfm
r6 r7 17 17 object ASettings: TAction 18 18 Caption = 'Settings' 19 OnExecute = ASettingsExecute 19 20 end 20 21 object AAbout: TAction … … 55 56 Caption = 'Status' 56 57 end 58 object Action1: TAction 59 Caption = 'Action1' 60 end 57 61 end 58 62 object ImageList1: TImageList -
trunk/UCore.pas
r6 r7 20 20 ACommandCommit: TAction; 21 21 ACommandStatus: TAction; 22 Action1: TAction; 22 23 AProjectClose: TAction; 23 24 ActionList1: TActionList; … … 38 39 procedure AProjectOpenExecute(Sender: TObject); 39 40 procedure AQuitExecute(Sender: TObject); 41 procedure ASettingsExecute(Sender: TObject); 40 42 procedure DataModuleCreate(Sender: TObject); 41 43 procedure DataModuleDestroy(Sender: TObject); … … 60 62 61 63 uses 62 UFormMain, UFormBrowse ;64 UFormMain, UFormBrowse, UFormSettings, UFormCommit; 63 65 64 66 { TCore } … … 67 69 begin 68 70 Application.Terminate; 71 end; 72 73 procedure TCore.ASettingsExecute(Sender: TObject); 74 begin 75 FormSettings.ShowModal; 69 76 end; 70 77 … … 159 166 procedure TCore.ACommandCommitExecute(Sender: TObject); 160 167 begin 161 Project.WorkingCopy.Commit; 168 if FormCommit.ShowModal = mrOk then begin 169 Project.WorkingCopy.Commit(FormCommit.MemoMessage.Lines); 170 end; 162 171 end; 163 172 -
trunk/Units/USubversion.pas
r6 r7 19 19 procedure Update; override; 20 20 procedure CleanUp; override; 21 procedure Commit ; override;21 procedure Commit(Message: TStrings); override; 22 22 procedure Move; override; 23 23 procedure Merge; override; … … 56 56 end; 57 57 58 procedure TSubversion.Commit ;58 procedure TSubversion.Commit(Message: TStrings); 59 59 begin 60 Execute(['commit' ]);60 Execute(['commit', '-m "' + Message.Text + '"']); 61 61 end; 62 62 -
trunk/Units/UVCS.pas
r6 r7 22 22 procedure Update; virtual; 23 23 procedure CleanUp; virtual; 24 procedure Commit ; virtual;24 procedure Commit(Message: TStrings); virtual; 25 25 procedure Move; virtual; 26 26 procedure Merge; virtual; … … 71 71 end; 72 72 73 procedure TWorkingCopy.Commit ;73 procedure TWorkingCopy.Commit(Message: TStrings); 74 74 begin 75 75 -
trunk/VCSCommander.lpi
r6 r7 83 83 </Item4> 84 84 </RequiredPackages> 85 <Units Count="1 0">85 <Units Count="11"> 86 86 <Unit0> 87 87 <Filename Value="VCSCommander.lpr"/> … … 94 94 <HasResources Value="True"/> 95 95 <ResourceBaseClass Value="Form"/> 96 <UnitName Value="UFormMain"/>97 96 </Unit1> 98 97 <Unit2> … … 102 101 <HasResources Value="True"/> 103 102 <ResourceBaseClass Value="DataModule"/> 104 <UnitName Value="UCore"/>105 103 </Unit2> 106 104 <Unit3> … … 110 108 <HasResources Value="True"/> 111 109 <ResourceBaseClass Value="Form"/> 112 <UnitName Value="UFormBrowse"/>113 110 </Unit3> 114 111 <Unit4> 115 112 <Filename Value="Units/UVCS.pas"/> 116 113 <IsPartOfProject Value="True"/> 117 <UnitName Value="UVCS"/>118 114 </Unit4> 119 115 <Unit5> … … 123 119 <HasResources Value="True"/> 124 120 <ResourceBaseClass Value="Form"/> 125 <UnitName Value="UFormFavorites"/>126 121 </Unit5> 127 122 <Unit6> … … 131 126 <HasResources Value="True"/> 132 127 <ResourceBaseClass Value="Form"/> 133 <UnitName Value="UFormSettings"/>134 128 </Unit6> 135 129 <Unit7> 136 130 <Filename Value="Units/USubversion.pas"/> 137 131 <IsPartOfProject Value="True"/> 138 <UnitName Value="USubversion"/>139 132 </Unit7> 140 133 <Unit8> 141 134 <Filename Value="Units/UProject.pas"/> 142 135 <IsPartOfProject Value="True"/> 143 <UnitName Value="UProject"/>144 136 </Unit8> 145 137 <Unit9> … … 149 141 <HasResources Value="True"/> 150 142 <ResourceBaseClass Value="Form"/> 151 <UnitName Value="UFormConsole"/>152 143 </Unit9> 144 <Unit10> 145 <Filename Value="Forms/UFormCommit.pas"/> 146 <IsPartOfProject Value="True"/> 147 <ComponentName Value="FormCommit"/> 148 <HasResources Value="True"/> 149 <ResourceBaseClass Value="Form"/> 150 </Unit10> 153 151 </Units> 154 152 </ProjectOptions> -
trunk/VCSCommander.lpr
r6 r7 9 9 Interfaces, // this includes the LCL widgetset 10 10 Forms, UFormMain, UCore, Common, TemplateGenerics, UFormBrowse, UVCS, 11 UFormFavorites, UFormSettings, UFormConsole, USubversion, UProject 11 UFormFavorites, UFormSettings, UFormConsole, USubversion, UProject, 12 UFormCommit 12 13 { you can add units after this }; 13 14 … … 23 24 Application.CreateForm(TFormSettings, FormSettings); 24 25 Application.CreateForm(TFormConsole, FormConsole); 26 Application.CreateForm(TFormCommit, FormCommit); 25 27 Application.Run; 26 28 end.
Note:
See TracChangeset
for help on using the changeset viewer.