Changeset 4 for trunk/Forms/UFormMain.pas
- Timestamp:
- Sep 1, 2014, 7:10:03 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.pas
r3 r4 14 14 15 15 TFormMain = class(TForm) 16 AViewFavorites: TAction;17 AHelp: TAction;18 ASettings: TAction;19 AAbout: TAction;20 AQuit: TAction;21 ActionList1: TActionList;22 ImageList1: TImageList;23 16 MainMenu1: TMainMenu; 24 17 MenuItem1: TMenuItem; 18 MenuItem10: TMenuItem; 25 19 MenuItem2: TMenuItem; 26 20 MenuItem3: TMenuItem; … … 29 23 MenuItem6: TMenuItem; 30 24 MenuItem7: TMenuItem; 25 MenuItem8: TMenuItem; 26 MenuItem9: TMenuItem; 31 27 MenuItemQuit: TMenuItem; 32 28 MenuItemFile: TMenuItem; 33 29 StatusBar1: TStatusBar; 34 30 ToolBarMain: TToolBar; 35 procedure AQuitExecute(Sender: TObject);36 31 private 37 32 { private declarations } 38 33 public 39 { public declarations }34 procedure UpdateInterface; 40 35 end; 41 36 … … 47 42 {$R *.lfm} 48 43 44 uses 45 UCore; 46 49 47 { TFormMain } 50 48 51 procedure TFormMain.AQuitExecute(Sender: TObject); 49 procedure TFormMain.UpdateInterface; 50 const 51 AppName = 'VCSCommander'; 52 52 begin 53 Close; 53 if Assigned(Core.Project) then 54 Caption := Core.Project.Directory + ' - ' + AppName 55 else Caption := AppName 54 56 end; 55 57
Note:
See TracChangeset
for help on using the changeset viewer.