Changeset 8 for trunk/Forms


Ignore:
Timestamp:
May 18, 2015, 12:15:30 AM (10 years ago)
Author:
chronos
Message:
  • Added: Checkout form and ability to checkout new working copy.
Location:
trunk/Forms
Files:
2 added
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormBrowse.lfm

    r7 r8  
    77  ClientHeight = 526
    88  ClientWidth = 722
     9  OnCreate = FormCreate
     10  OnDestroy = FormDestroy
    911  LCLVersion = '1.5'
    1012  object TreeView1: TTreeView
  • trunk/Forms/UFormBrowse.pas

    r7 r8  
    3333    procedure ADeleteExecute(Sender: TObject);
    3434    procedure AOpenExecute(Sender: TObject);
     35    procedure FormCreate(Sender: TObject);
     36    procedure FormDestroy(Sender: TObject);
    3537    procedure ListView1Data(Sender: TObject; Item: TListItem);
    3638    procedure ListView1DblClick(Sender: TObject);
     
    8385end;
    8486
     87procedure TFormBrowse.FormCreate(Sender: TObject);
     88begin
     89  FileList := TStringList.Create;
     90end;
     91
     92procedure TFormBrowse.FormDestroy(Sender: TObject);
     93begin
     94  FileList.Free;
     95end;
     96
    8597procedure TFormBrowse.ReloadList;
    8698var
    8799  FindFile: TFindFile;
     100  FoundFileList: TStrings;
    88101  I: Integer;
    89102begin
    90   FindFile := TFindFile.Create(nil);
    91   FindFile.Path := Directory;
    92   FindFile.FileMask := AllFilesMask;
    93   FindFile.InSubFolders := False;
    94   FileList := FindFile.SearchForFiles;
    95   for I := FileList.Count - 1 downto 0 do
    96     if ExtractFileName(FileList[I]) = '.' then FileList.Delete(I);
    97   FileList.Sort;
    98   ListView1.Items.Count := FileList.Count;
     103  if DirectoryExistsUTF8(Directory) then begin
     104    FindFile := TFindFile.Create(nil);
     105    try
     106      FindFile.Path := Directory;
     107      FindFile.FileMask := AllFilesMask;
     108      FindFile.InSubFolders := False;
     109      FoundFileList := FindFile.SearchForFiles;
     110      FileList.Assign(FoundFileList);
     111      for I := FileList.Count - 1 downto 0 do
     112        if ExtractFileName(FileList[I]) = '.' then FileList.Delete(I);
     113      FileList.Sort;
     114      ListView1.Items.Count := FileList.Count;
     115    finally
     116      FindFile.Free;
     117    end;
     118  end else ListView1.Items.Count := 0;
    99119  ListView1.Refresh;
    100120end;
  • trunk/Forms/UFormConsole.lfm

    r6 r8  
    3939  object EditCommand: TEdit
    4040    Left = 4
    41     Height = 32
     41    Height = 35
    4242    Top = 7
    4343    Width = 884
  • trunk/Forms/UFormConsole.pas

    r6 r8  
    9292  Line: string;
    9393  CommandLine: string;
     94  I: Integer;
    9495begin
    9596  Text := '';
     
    104105      Process.Environment.Text := Environment;
    105106    Environment := '';
    106     //Process.Executable := Executable;
    107     //Process.Parameters.Assign(Parameters);
    108     Process.CommandLine := Executable + ' ' + Parameters.Text;
     107    Process.Executable := Executable;
     108    Process.Parameters.Assign(Parameters);
     109    //for I := 0 to Process.Parameters.Count - 1 do
     110    //  ShowMessage('"' + Process.Parameters[I] + '"');
     111    //Process.CommandLine := Executable + ' checkout http://svn.zdechov.net/svn/xtactics /home/chronos/Smazat/svn3';
     112    //Process.Parameters.Clear;
     113    //Process.Parameters.Add('checkout');
     114    //Process.Parameters.Add('http://svn.zdechov.net/svn/xtactics');
     115    //Process.Parameters.Add('/home/chronos/Smazat/svn3');
     116    //Process.Parameters.Add('checkout');
     117    //Process.Parameters.Add('dasd');;
     118    //Process.CommandLine := Executable + ' ' + Parameters.Text;
    109119    CommandLine := Executable + ' ' + StringReplace(Parameters.Text, LineEnding, ' ', [rfReplaceAll]);
    110120    if CommandLine[Length(CommandLine)] = LineEnding then
  • trunk/Forms/UFormMain.lfm

    r6 r8  
    55  Width = 667
    66  Caption = 'VCSCommander'
    7   ClientHeight = 471
     7  ClientHeight = 468
    88  ClientWidth = 667
    99  Menu = MainMenu1
     
    2525  object StatusBar1: TStatusBar
    2626    Left = 0
    27     Height = 26
    28     Top = 445
     27    Height = 29
     28    Top = 439
    2929    Width = 667
    3030    Panels = <>
     
    3535    object MenuItemFile: TMenuItem
    3636      Caption = 'File'
     37      object MenuItem17: TMenuItem
     38        Action = Core.AProjectCheckout
     39      end
    3740      object MenuItem8: TMenuItem
    3841        Action = Core.AProjectOpen
     
    6871        Action = Core.ACommandCleanup
    6972      end
    70       object MenuItem15: TMenuItem
    71         Action = Core.ACommandCheckout
    72       end
    7373      object MenuItem16: TMenuItem
    7474        Action = Core.ACommandStatus
  • trunk/Forms/UFormMain.pas

    r6 r8  
    2121    MenuItem13: TMenuItem;
    2222    MenuItem14: TMenuItem;
    23     MenuItem15: TMenuItem;
    2423    MenuItem16: TMenuItem;
     24    MenuItem17: TMenuItem;
    2525    MenuItemOpenRecent: TMenuItem;
    2626    MenuItem2: TMenuItem;
Note: See TracChangeset for help on using the changeset viewer.