Changeset 78 for branches/Transpascal/Forms/UMainForm.pas
- Timestamp:
- Oct 22, 2010, 11:34:06 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Transpascal/Forms/UMainForm.pas
r77 r78 29 29 ActionList1: TActionList; 30 30 Button1: TButton; 31 CheckBoxLogParsing: TCheckBox; 31 32 ComboBoxTargetSelection: TComboBox; 32 33 CoolDockClient1: TCoolDockClient; … … 47 48 Splitter3: TSplitter; 48 49 ToolBar1: TToolBar; 50 procedure AProjectCloseExecute(Sender: TObject); 49 51 procedure AProjectOpenExecute(Sender: TObject); 50 52 procedure AProjectSaveAsExecute(Sender: TObject); … … 53 55 procedure FormShow(Sender: TObject); 54 56 procedure FormClose(Sender: TObject; var Action: TCloseAction); 55 procedure ButtonCompileClick(Sender: TObject);57 procedure ABuildExecute(Sender: TObject); 56 58 procedure FormCreate(Sender: TObject); 57 59 procedure FormDestroy(Sender: TObject); … … 83 85 { TMainForm } 84 86 85 procedure TMainForm. ButtonCompileClick(Sender: TObject);87 procedure TMainForm.ABuildExecute(Sender: TObject); 86 88 begin 87 89 // Compile project file 90 if CheckBoxLogParsing.Checked then 91 Compiler.Parser.OnDebugLog := CompilerDebugLog 92 else Compiler.Parser.OnDebugLog := nil; 88 93 Compiler.ProducerType := TProducerType(ComboBoxTargetSelection.ItemIndex); 89 94 Compiler.Init; … … 157 162 ComboBoxTargetSelection.ItemIndex := 158 163 ReadIntegerWithDefault('ProducerType', 0); 164 CheckBoxLogParsing.Checked := ReadBoolWithDefault('LogParsing', False); 159 165 finally 160 166 Free; … … 171 177 WriteBool('ReopenLastOpenedFile', ReopenLastOpenedFile); 172 178 WriteInteger('ProducerType', ComboBoxTargetSelection.ItemIndex); 179 WriteBool('LogParsing', CheckBoxLogParsing.Checked); 173 180 finally 174 181 Free; … … 200 207 DeleteFile(DebugLog.FileName); 201 208 Compiler := TCompiler.Create; 202 Compiler.Parser.OnDebugLog := CompilerDebugLog;203 209 Project := TProject.Create; 204 210 LastOpenedFiles := TLastOpenedList.Create; … … 245 251 procedure TMainForm.ComboBox1Change(Sender: TObject); 246 252 begin 247 ButtonCompileClick(Self);253 ABuildExecute(Self); 248 254 end; 249 255 … … 255 261 end; 256 262 263 procedure TMainForm.AProjectCloseExecute(Sender: TObject); 264 begin 265 Close; 266 end; 267 257 268 procedure TMainForm.AProjectSaveAsExecute(Sender: TObject); 258 269 begin … … 264 275 procedure TMainForm.ComboBoxTargetSelectionChange(Sender: TObject); 265 276 begin 266 ButtonCompileClick(Self);277 ABuildExecute(Self); 267 278 end; 268 279
Note:
See TracChangeset
for help on using the changeset viewer.