Changeset 13 for trunk/Forms/UFormMain.pas
- Timestamp:
- May 30, 2015, 1:02:36 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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;
Note:
See TracChangeset
for help on using the changeset viewer.