Changeset 34 for trunk/IDE/Forms/UMainForm.pas
- Timestamp:
- Feb 13, 2012, 1:47:33 PM (13 years ago)
- Location:
- trunk/IDE
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IDE
- Property svn:ignore
-
old new 1 1 lib 2 2 backup 3 Transpascal.dbg 4 Transpascal.lps 5 Transpascal.exe
-
- Property svn:ignore
-
trunk/IDE/Forms/UMainForm.pas
r30 r34 22 22 TMainForm = class(TForm) 23 23 ABuild: TAction; 24 AViewMessages: TAction; 25 AViewSourceEditor: TAction; 26 AViewObjectInspector: TAction; 27 AViewProject: TAction; 28 AHomepage: TAction; 29 ARun: TAction; 30 AAbout: TAction; 31 AExit: TAction; 24 32 AProjectNew: TAction; 25 33 AProjectOpen: TAction; … … 29 37 ActionList1: TActionList; 30 38 Button1: TButton; 31 CDCustomize1: TCDCustomize;32 CDLayoutList1: TCDLayoutList;33 CDWindowList1: TCDWindowList;34 39 CheckBoxLogParsing: TCheckBox; 35 40 ComboBoxAnalyzer: TComboBox; 36 41 ComboBoxProducer: TComboBox; 37 CoolDockClient1: TCDClient; 38 CoolDockMaster1: TCDMaster; 42 DebugLog1: TDebugLog; 39 43 ImageList1: TImageList; 40 44 Label1: TLabel; … … 42 46 MainMenu1: TMainMenu; 43 47 MenuItem1: TMenuItem; 48 MenuItem10: TMenuItem; 49 MenuItem11: TMenuItem; 50 MenuItem12: TMenuItem; 51 MenuItem13: TMenuItem; 52 MenuItem14: TMenuItem; 53 MenuItem15: TMenuItem; 54 MenuItem16: TMenuItem; 55 MenuItem17: TMenuItem; 56 MenuItem18: TMenuItem; 44 57 MenuItem2: TMenuItem; 45 58 MenuItem3: TMenuItem; … … 50 63 MenuItem8: TMenuItem; 51 64 DockPanel: TPanel; 65 MenuItem9: TMenuItem; 52 66 MenuItemOpenRecent: TMenuItem; 53 67 OpenDialog1: TOpenDialog; 68 PageControl1: TPageControl; 69 PageControl2: TPageControl; 54 70 SaveDialog1: TSaveDialog; 71 Splitter1: TSplitter; 55 72 Splitter3: TSplitter; 73 TabSheet1: TTabSheet; 74 TabSheet2: TTabSheet; 75 TabSheet3: TTabSheet; 76 TabSheet4: TTabSheet; 56 77 ToolBar1: TToolBar; 78 procedure AAboutExecute(Sender: TObject); 79 procedure AExitExecute(Sender: TObject); 80 procedure AHomepageExecute(Sender: TObject); 57 81 procedure AProjectCloseExecute(Sender: TObject); 58 82 procedure AProjectNewExecute(Sender: TObject); … … 60 84 procedure AProjectSaveAsExecute(Sender: TObject); 61 85 procedure AProjectSaveExecute(Sender: TObject); 86 procedure ABuildExecute(Sender: TObject); 62 87 procedure ComboBox1Change(Sender: TObject); 63 88 procedure ComboBoxProducerChange(Sender: TObject); 64 89 procedure FormShow(Sender: TObject); 65 90 procedure FormClose(Sender: TObject; var Action: TCloseAction); 66 procedure ABuildExecute(Sender: TObject);67 91 procedure FormCreate(Sender: TObject); 68 92 procedure FormDestroy(Sender: TObject); … … 91 115 92 116 uses 93 UMessagesForm, UCodeForm, UProjectManager; 117 UMessagesForm, UCodeForm, UProjectManager, UCommon, UAboutForm; 118 119 resourcestring 120 SNewProject = 'New project'; 94 121 95 122 { TMainForm } … … 144 171 Container2: TCDConjoinForm; 145 172 begin 146 ProjectManager.ManualDock(DockPanel, nil, alLeft); 173 CodeForm.ManualDock(DockPanel, nil, alClient); 174 CodeForm.Align := alClient; 175 CodeForm.Show; 176 MessagesForm.ManualDock(TabSheet3, nil, alClient); 177 MessagesForm.Align := alClient; 178 MessagesForm.Show; 179 ProjectManager.ManualDock(TabSheet1, nil, alClient); 180 ProjectManager.Align := alClient; 181 ProjectManager.Show; 182 CodeTreeForm.ManualDock(TabSheet2, nil, alClient); 183 CodeTreeForm.Align := alClient; 184 CodeTreeForm.Show; 185 CompiledForm.ManualDock(TabSheet4, nil, alClient); 186 CompiledForm.Align := alClient; 187 CompiledForm.Show; 188 189 (*ProjectManager.ManualDock(DockPanel, nil, alLeft); 147 190 ProjectManager.Show; 148 191 … … 176 219 177 220 Container1.Parent.Parent.Width := MainForm.Width - ProjectManager.Width - 200; 178 Container2.Parent.Parent.Height := MainForm.Height; 221 Container2.Parent.Parent.Height := MainForm.Height;*) 179 222 end; 180 223 … … 235 278 I: Integer; 236 279 begin 237 DebugLog.FileName := 'DebugLog.txt'; 238 DeleteFile(DebugLog.FileName); 280 DeleteFile(DebugLog1.FileName); 239 281 Compiler := TCompiler.Create; 240 282 Project := TProject.Create; … … 261 303 procedure TMainForm.CompilerDebugLog(Text: string); 262 304 begin 263 DebugLog .Add('', Text);305 DebugLog1.Add('', Text); 264 306 end; 265 307 … … 301 343 end; 302 344 345 procedure TMainForm.AExitExecute(Sender: TObject); 346 begin 347 Close; 348 end; 349 350 procedure TMainForm.AAboutExecute(Sender: TObject); 351 begin 352 AboutForm.ShowModal; 353 end; 354 355 procedure TMainForm.AHomepageExecute(Sender: TObject); 356 begin 357 OpenWebPage(ApplicationInfo.HomePage); 358 end; 359 303 360 procedure TMainForm.AProjectNewExecute(Sender: TObject); 304 361 begin 305 362 Project.Clear; 306 Project.Name := 'New project';363 Project.Name := SNewProject; 307 364 ProjectManager.UpdateProjectTree; 308 365 Caption := ApplicationInfo.Name + ' - ' + Project.Name;
Note:
See TracChangeset
for help on using the changeset viewer.