Changeset 2 for trunk/Forms/UMainForm.pas
- Timestamp:
- Jul 28, 2009, 1:39:09 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UMainForm.pas
r1 r2 6 6 Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, 7 7 Dialogs, Menus, ExtCtrls, StdCtrls, ComCtrls, DockPanel, URegistry, 8 UApplicationInfo, UDockManagement, ActnList, XPStyleActnCtrls, ActnMan; 8 UApplicationInfo, UDockManagement, ActnList, XPStyleActnCtrls, ActnMan, 9 UProject, XPMan, ImgList, DockManagerPro, StdStyleActnCtrls, ToolWin, 10 ActnCtrls, ActnMenus; 9 11 10 12 type 11 13 TMainForm = class(TForm) 12 MainMenu1: TMainMenu;13 File1: TMenuItem;14 Edit1: TMenuItem;15 Search1: TMenuItem;16 view1: TMenuItem;17 Project1: TMenuItem;18 Run1: TMenuItem;19 Component1: TMenuItem;20 ools1: TMenuItem;21 Windows1: TMenuItem;22 Help1: TMenuItem;23 New1: TMenuItem;24 Open1: TMenuItem;25 Openproject1: TMenuItem;26 Reopen1: TMenuItem;27 N1: TMenuItem;28 Save1: TMenuItem;29 Saveas1: TMenuItem;30 Saveproject1: TMenuItem;31 SaveAll1: TMenuItem;32 Close1: TMenuItem;33 CloseAll1: TMenuItem;34 N2: TMenuItem;35 Exit1: TMenuItem;36 Undo1: TMenuItem;37 Redo1: TMenuItem;38 N3: TMenuItem;39 Copy1: TMenuItem;40 Cut1: TMenuItem;41 Paste1: TMenuItem;42 Delete1: TMenuItem;43 DeleteAll1: TMenuItem;44 Find1: TMenuItem;45 ProjectManager1: TMenuItem;46 oolPalete1: TMenuItem;47 ObjectInspector1: TMenuItem;48 Structure1: TMenuItem;49 14 DockPanel1: TDockPanel; 50 15 DockPanel2: TDockPanel; … … 52 17 ActionManager1: TActionManager; 53 18 ActionExit: TAction; 19 ActionProjectOpen: TAction; 20 ActionProjectSaveAs: TAction; 21 ActionFileOpen: TAction; 22 ActionFileSave: TAction; 23 ActionFileClose: TAction; 24 ActionFileCloseAll: TAction; 25 ActionUnitTest: TAction; 26 ActionPrint: TAction; 27 ActionFileSaveAs: TAction; 28 ImageList1: TImageList; 29 ActionMainMenuBar1: TActionMainMenuBar; 30 ActionFile: TAction; 31 ActionFileNew: TAction; 32 ActionFileReopen: TAction; 33 ActionFileSaveAll: TAction; 34 ActionEdit: TAction; 35 OpenDialog1: TOpenDialog; 36 SaveDialog1: TSaveDialog; 37 FindDialog1: TFindDialog; 38 ReplaceDialog1: TReplaceDialog; 39 ActionEditUndo: TAction; 40 ActionEditRedo: TAction; 41 ActionEditCut: TAction; 42 ActionEditCopy: TAction; 43 ActionEditPaste: TAction; 44 ActionEditDelete: TAction; 45 ActionEditSelectAll: TAction; 46 ActionEditAlignToGrid: TAction; 47 ActionEditBringToFront: TAction; 48 ActionEditSendToBack: TAction; 49 ActionEditAlign: TAction; 50 ActionEditSize: TAction; 51 ActionEditScale: TAction; 52 ActionEditTabOrder: TAction; 53 ActionEditCreationOrder: TAction; 54 ActionEditFlipChildren: TAction; 55 ActionEditLockControls: TAction; 56 ActionSearch: TAction; 57 ActionView: TAction; 58 ActionProject: TAction; 59 ActionRun: TAction; 60 ActionComponent: TAction; 61 ActionTools: TAction; 62 ActionWindow: TAction; 63 ActionHelp: TAction; 54 64 procedure FormShow(Sender: TObject); 55 65 procedure ObjectInspector1Click(Sender: TObject); … … 61 71 procedure FormDestroy(Sender: TObject); 62 72 procedure ActionExitExecute(Sender: TObject); 73 procedure ActionFileUpdate(Sender: TObject); 74 procedure ActionEditExecute(Sender: TObject); 75 procedure ActionProjectOpenExecute(Sender: TObject); 76 procedure ActionFileOpenExecute(Sender: TObject); 77 procedure ActionProjectSaveAsExecute(Sender: TObject); 63 78 private 64 79 CustomDockManager: TDDockManager; … … 83 98 {$R *.dfm} 84 99 100 procedure TMainForm.ActionEditExecute(Sender: TObject); 101 begin 102 // 103 end; 104 85 105 procedure TMainForm.ActionExitExecute(Sender: TObject); 86 106 begin 87 107 Close; 108 end; 109 110 procedure TMainForm.ActionFileOpenExecute(Sender: TObject); 111 begin 112 if OpenDialog1.Execute then begin 113 end; 114 end; 115 116 procedure TMainForm.ActionFileUpdate(Sender: TObject); 117 begin 118 // 119 end; 120 121 procedure TMainForm.ActionProjectOpenExecute(Sender: TObject); 122 begin 123 if OpenDialog1.Execute then begin 124 end; 125 end; 126 127 procedure TMainForm.ActionProjectSaveAsExecute(Sender: TObject); 128 begin 129 if SaveDialog1.Execute then begin 130 end; 88 131 end; 89 132 … … 125 168 RegisterDockForm(ObjectInspector, 100, 400, 'PanelRight', True); 126 169 RegisterDockForm(StructureView, 100, 400, 'PanelRight', True); 170 RegisterDockForm(CodeEdit, 500, 400, 'PanelCenter', True); 127 171 with BaseDockPanel do begin 128 172 PanelLeft.Tag := 300; … … 136 180 LoadFormPosition(Self); 137 181 CodeEdit.Show; 182 ActionManager1.Style := XPStyle; 138 183 end; 139 184
Note:
See TracChangeset
for help on using the changeset viewer.