Changeset 6 for trunk/UCore.pas
- Timestamp:
- Sep 19, 2014, 7:12:01 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UCore.pas
r5 r6 13 13 14 14 TCore = class(TDataModule) 15 AFileSaveAs: TAction; 16 AFileSave: TAction; 17 AFileClose: TAction; 18 AFileOpen: TAction; 19 AZoomNormal: TAction; 20 AZoomAll: TAction; 21 AZoomIn: TAction; 22 AZoomOut: TAction; 15 23 AImageRandom: TAction; 16 24 AImageClear: TAction; 17 25 AExit: TAction; 18 A ProjectNew: TAction;26 AFileNew: TAction; 19 27 ActionList1: TActionList; 28 ImageList1: TImageList; 20 29 procedure AExitExecute(Sender: TObject); 21 30 procedure AImageClearExecute(Sender: TObject); 22 31 procedure AImageRandomExecute(Sender: TObject); 23 procedure AProjectNewExecute(Sender: TObject); 32 procedure AFileNewExecute(Sender: TObject); 33 procedure AZoomInExecute(Sender: TObject); 34 procedure AZoomNormalExecute(Sender: TObject); 35 procedure AZoomOutExecute(Sender: TObject); 24 36 procedure DataModuleCreate(Sender: TObject); 25 37 private … … 54 66 end; 55 67 56 procedure TCore.A ProjectNewExecute(Sender: TObject);68 procedure TCore.AFileNewExecute(Sender: TObject); 57 69 begin 58 70 if FormNew.ShowModal = mrOk then begin … … 65 77 FormMain.Redraw; 66 78 end; 79 end; 80 81 procedure TCore.AZoomInExecute(Sender: TObject); 82 begin 83 Project.ViewPort.Zoom := Project.ViewPort.Zoom * 1.3; 84 FormMain.Redraw; 85 end; 86 87 procedure TCore.AZoomNormalExecute(Sender: TObject); 88 begin 89 Project.ViewPort.Zoom := 1; 90 FormMain.Redraw; 91 end; 92 93 procedure TCore.AZoomOutExecute(Sender: TObject); 94 begin 95 Project.ViewPort.Zoom := Project.ViewPort.Zoom / 1.3; 96 FormMain.Redraw; 67 97 end; 68 98
Note:
See TracChangeset
for help on using the changeset viewer.