Changeset 13 for trunk/Forms
- Timestamp:
- May 30, 2015, 1:02:36 PM (9 years ago)
- Location:
- trunk/Forms
- Files:
-
- 4 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormBrowse.lfm
r11 r13 1 1 object FormBrowse: TFormBrowse 2 Left = 5542 Left = 952 3 3 Height = 526 4 Top = 2 694 Top = 287 5 5 Width = 722 6 6 Caption = 'Browse' -
trunk/Forms/UFormConsole.pas
r8 r13 31 31 Parameters: TStringList; 32 32 WorkingDir: string; 33 Environment : string;33 EnvironmentVariables: TStringList; 34 34 Aborted: Boolean; 35 35 Log: TStringList; … … 50 50 Parameters := TStringList.Create; 51 51 Log := TStringList.Create; 52 EnvironmentVariables := TStringList.Create; 52 53 end; 53 54 54 55 procedure TFormConsole.FormDestroy(Sender: TObject); 55 56 begin 57 EnvironmentVariables.Free; 56 58 Log.Free; 57 59 Parameters.Free; … … 101 103 if WorkingDir <> '' then 102 104 Process.CurrentDirectory := WorkingDir; 103 //WorkingDir := ''; 104 if Environment <> '' then 105 Process.Environment.Text := Environment; 106 Environment := ''; 105 Process.Environment.Assign(EnvironmentVariables); 106 Process.Parameters.Assign(Parameters); 107 107 Process.Executable := Executable; 108 Process.Parameters.Assign(Parameters);109 //for I := 0 to Process.Parameters.Count - 1 do110 // 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;119 108 CommandLine := Executable + ' ' + StringReplace(Parameters.Text, LineEnding, ' ', [rfReplaceAll]); 120 109 if CommandLine[Length(CommandLine)] = LineEnding then -
trunk/Forms/UFormMain.lfm
r8 r13 1 1 object FormMain: TFormMain 2 Left = 3403 Height = 4974 Top = 1525 Width = 6672 Left = 416 3 Height = 568 4 Top = 329 5 Width = 939 6 6 Caption = 'VCSCommander' 7 ClientHeight = 4688 ClientWidth = 6677 ClientHeight = 539 8 ClientWidth = 939 9 9 Menu = MainMenu1 10 10 OnActivate = FormActivate … … 17 17 Height = 26 18 18 Top = 0 19 Width = 66719 Width = 939 20 20 Caption = 'ToolBarMain' 21 Images = Core.ImageList1 21 22 ParentShowHint = False 22 23 ShowHint = True 23 24 TabOrder = 0 25 object ToolButton1: TToolButton 26 Left = 1 27 Top = 2 28 Action = Core.AProjectCheckout 29 end 30 object ToolButton2: TToolButton 31 Left = 24 32 Top = 2 33 Action = Core.AProjectOpen 34 end 35 object ToolButton3: TToolButton 36 Left = 47 37 Top = 2 38 Action = Core.AProjectClose 39 end 24 40 end 25 41 object StatusBar1: TStatusBar 26 42 Left = 0 27 43 Height = 29 28 Top = 43929 Width = 66744 Top = 510 45 Width = 939 30 46 Panels = <> 31 47 end 32 48 object MainMenu1: TMainMenu 49 Images = Core.ImageList1 33 50 left = 232 34 51 top = 88 35 52 object MenuItemFile: TMenuItem 36 Caption = ' File'53 Caption = 'Working copy' 37 54 object MenuItem17: TMenuItem 38 55 Action = Core.AProjectCheckout … … 52 69 object MenuItemQuit: TMenuItem 53 70 Action = Core.AQuit 71 end 72 end 73 object MenuItem19: TMenuItem 74 Caption = 'Project group' 75 object MenuItem20: TMenuItem 76 Action = Core.AProjectGroupNew 77 end 78 object MenuItem21: TMenuItem 79 Action = Core.AProjectGroupOpen 80 end 81 object MenuItemRecentProjectGroup: TMenuItem 82 Caption = 'Open recent' 83 end 84 object MenuItem23: TMenuItem 85 Action = Core.AProjectGroupSave 86 end 87 object MenuItem25: TMenuItem 88 Action = Core.AProjectGroupSaveAs 89 end 90 object MenuItem24: TMenuItem 91 Action = Core.AProjectGroupClose 54 92 end 55 93 end … … 75 113 end 76 114 end 115 object MenuItem15: TMenuItem 116 Caption = 'Tools' 117 object MenuItem18: TMenuItem 118 Action = Core.AViewTest 119 end 120 end 77 121 object MenuItem1: TMenuItem 78 122 Caption = 'General' -
trunk/Forms/UFormMain.pas
r9 r13 1 1 unit UFormMain; 2 2 3 {$mode objfpc}{$H+}3 {$mode delphi}{$H+} 4 4 5 5 interface … … 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ComCtrls, 9 Menus, ActnList ;9 Menus, ActnList, ExtCtrls; 10 10 11 11 type … … 21 21 MenuItem13: TMenuItem; 22 22 MenuItem14: TMenuItem; 23 MenuItem15: TMenuItem; 23 24 MenuItem16: TMenuItem; 24 25 MenuItem17: TMenuItem; 26 MenuItem18: TMenuItem; 27 MenuItem19: TMenuItem; 28 MenuItem20: TMenuItem; 29 MenuItem21: TMenuItem; 30 MenuItemRecentProjectGroup: TMenuItem; 31 MenuItem23: TMenuItem; 32 MenuItem24: TMenuItem; 33 MenuItem25: TMenuItem; 25 34 MenuItemOpenRecent: TMenuItem; 26 35 MenuItem2: TMenuItem; … … 36 45 StatusBar1: TStatusBar; 37 46 ToolBarMain: TToolBar; 47 ToolButton1: TToolButton; 48 ToolButton2: TToolButton; 49 ToolButton3: TToolButton; 38 50 procedure FormActivate(Sender: TObject); 39 51 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction); … … 42 54 Initialized: Boolean; 43 55 public 56 procedure ProjectGroupOpenRecentExecute(Sender: TObject); 44 57 procedure OpenRecentExecute(Sender: TObject); 45 58 procedure UpdateInterface; … … 55 68 56 69 uses 57 UCore, UFormBrowse ;70 UCore, UFormBrowse, UFormProjectGroup; 58 71 59 72 { TFormMain } … … 66 79 procedure TFormMain.OpenRecentExecute(Sender: TObject); 67 80 begin 68 Core.ProjectOpen(Core.LastOpenedList1.Items[TMenuItem(Sender).MenuIndex]); 81 Core.ProjectOpen(Core.LastOpenedListProject.Items[TMenuItem(Sender).MenuIndex]); 82 end; 83 84 procedure TFormMain.ProjectGroupOpenRecentExecute(Sender: TObject); 85 begin 86 Core.ProjectGroupOpen(Core.LastOpenedListProjectGroup.Items[TMenuItem(Sender).MenuIndex]); 69 87 end; 70 88 … … 96 114 97 115 procedure TFormMain.DockInit; 116 var 117 NewSplitter: TSplitter; 98 118 begin 119 FormProjectGroup.ManualDock(Self, nil, alLeft); 120 FormProjectGroup.Align := alLeft; 121 FormProjectGroup.Show; 122 NewSplitter := TSplitter.Create(nil); 123 NewSplitter.ManualDock(Self, nil, alLeft); 124 NewSplitter.Align := alLeft; 125 NewSplitter.Left := FormProjectGroup.Width; 126 NewSplitter.Show; 99 127 FormBrowse.ManualDock(Self, nil, alClient); 100 128 FormBrowse.Align := alClient; -
trunk/Forms/UFormSettings.lfm
r7 r13 7 7 ClientHeight = 497 8 8 ClientWidth = 686 9 OnCreate = FormCreate 9 10 LCLVersion = '1.5' 10 11 object ButtonCancel: TButton … … 26 27 TabOrder = 1 27 28 end 29 object Label1: TLabel 30 Left = 16 31 Height = 25 32 Top = 16 33 Width = 107 34 Caption = 'User name:' 35 ParentColor = False 36 end 37 object Label2: TLabel 38 Left = 16 39 Height = 25 40 Top = 64 41 Width = 57 42 Caption = 'Email:' 43 ParentColor = False 44 end 45 object EditUserName: TEdit 46 Left = 152 47 Height = 35 48 Top = 8 49 Width = 264 50 TabOrder = 2 51 end 52 object EditEmail: TEdit 53 Left = 152 54 Height = 35 55 Top = 56 56 Width = 264 57 TabOrder = 3 58 end 28 59 end -
trunk/Forms/UFormSettings.pas
r7 r13 6 6 7 7 uses 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls; 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, 9 XMLConf; 9 10 10 11 type … … 15 16 ButtonCancel: TButton; 16 17 ButtonOk: TButton; 18 EditUserName: TEdit; 19 EditEmail: TEdit; 20 Label1: TLabel; 21 Label2: TLabel; 22 procedure FormCreate(Sender: TObject); 17 23 private 18 24 { private declarations } 19 25 public 20 { public declarations } 26 procedure Load(XMLConfig: TXMLConfig); 27 procedure Save(XMLConfig: TXMLConfig); 21 28 end; 22 29 … … 28 35 {$R *.lfm} 29 36 37 uses 38 UCore; 39 40 { TFormSettings } 41 42 procedure TFormSettings.FormCreate(Sender: TObject); 43 begin 44 45 end; 46 47 procedure TFormSettings.Load(XMLConfig: TXMLConfig); 48 begin 49 EditUserName.Text := Core.UserName; 50 EditEmail.Text := Core.Email; 51 end; 52 53 procedure TFormSettings.Save(XMLConfig: TXMLConfig); 54 begin 55 Core.UserName := EditUserName.Text; 56 Core.Email := EditEmail.Text; 57 end; 58 30 59 end. 31 60
Note:
See TracChangeset
for help on using the changeset viewer.