Changeset 13 for trunk/UMainForm.pas
- Timestamp:
- Feb 11, 2012, 5:53:25 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UMainForm.pas
r12 r13 18 18 ABreakpointSet: TAction; 19 19 ABreakpointUnset: TAction; 20 AOptions: TAction; 20 21 AInterpretterStepOut: TAction; 21 22 AInterpretterRunToCursor: TAction; … … 51 52 MenuItem2: TMenuItem; 52 53 MenuItem20: TMenuItem; 54 MenuItem22: TMenuItem; 53 55 MenuItem40: TMenuItem; 54 56 MenuItem21: TMenuItem; … … 72 74 ToolButton6: TToolButton; 73 75 ToolButton7: TToolButton; 76 ToolButton8: TToolButton; 74 77 procedure ACompileExecute(Sender: TObject); 75 78 procedure AExitExecute(Sender: TObject); 79 procedure AOptionsExecute(Sender: TObject); 76 80 procedure AProgramPauseExecute(Sender: TObject); 77 81 procedure AProgramStopExecute(Sender: TObject); … … 115 119 116 120 uses 117 UInterpreterForm, UApplicationInfo, UCompiledForm ;121 UInterpreterForm, UApplicationInfo, UCompiledForm, UOptionsForm; 118 122 119 123 { TMainForm } … … 193 197 194 198 procedure TMainForm.AProgramRunExecute(Sender: TObject); 195 var196 SourceText: string;197 199 begin 198 200 InterpreterForm.Show; 199 201 BrainFuckInterpreter.Input := InterpreterForm.MemoInput.Lines.Text; 200 SourceText := MemoSource.Lines.Text; 201 SetLength(BrainFuckInterpreter.Source, Length(SourceText)); 202 Move(Pointer(SourceText)^, Pointer(BrainFuckInterpreter.Source)^, Length(SourceText)); 202 BrainFuckInterpreter.Source := MemoSource.Text; 203 203 BrainFuckInterpreter.Run; 204 204 end; … … 222 222 begin 223 223 Close; 224 end; 225 226 procedure TMainForm.AOptionsExecute(Sender: TObject); 227 begin 228 if OptionsForm.ShowModal = mrOK then begin 229 230 end; 224 231 end; 225 232
Note:
See TracChangeset
for help on using the changeset viewer.