Changeset 24 for trunk/Forms
- Timestamp:
- Feb 13, 2012, 7:28:45 AM (13 years ago)
- Location:
- trunk/Forms
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UInterpretterForm.pas
r23 r24 52 52 procedure Timer1Timer(Sender: TObject); 53 53 private 54 public 54 55 LastStepCounter: Integer; 55 public56 56 procedure RefreshListViewMemory; 57 57 procedure UpadateInterface; -
trunk/Forms/UMainForm.lfm
r23 r24 5 5 Width = 643 6 6 Caption = 'LazFuck' 7 ClientHeight = 44 07 ClientHeight = 446 8 8 ClientWidth = 643 9 9 Menu = MainMenu1 … … 16 16 object MemoSource: TMemo 17 17 Left = 0 18 Height = 3 6318 Height = 370 19 19 Top = 56 20 20 Width = 643 … … 34 34 object StatusBar1: TStatusBar 35 35 Left = 0 36 Height = 2 137 Top = 4 1936 Height = 20 37 Top = 426 38 38 Width = 643 39 39 Panels = < … … 544 544 object MenuItem27: TMenuItem 545 545 Action = AShrinkSource 546 end 547 object MenuItem28: TMenuItem 548 Action = AGenerateNumber 546 549 end 547 550 end … … 745 748 OnExecute = AShrinkSourceExecute 746 749 end 750 object AGenerateNumber: TAction 751 Caption = 'Generate code for number' 752 ImageIndex = 13 753 OnExecute = AGenerateNumberExecute 754 end 747 755 end 748 756 object ImageList1: TImageList … … 750 758 top = 96 751 759 Bitmap = { 752 4C690 D0000001000000010000000000000000000000000000000000000000000760 4C690E0000001000000010000000000000000000000000000000000000000000 753 761 0000000000000000000000000000000000000000000000000000000000000000 754 762 000000000000000000000000000000000000000000FF000000FF000000FF0000 … … 1161 1169 64200000607E000060B2000060C8000060B20000607E00006420000075000000 1162 1170 8100FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF 1171 FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF 1172 FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF 1173 FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF 1174 FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF 1175 FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF 1176 FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF 1177 FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF 1178 FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF 1179 FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF 1180 FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF 1181 FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF 1182 FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF 1183 FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF 1184 FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF0000000063000000B7FFFF 1185 FF00FFFFFF00000000FF000000FF000000B7FFFFFF00FFFFFF00000000FF0000 1186 00FF0000008BFFFFFF00FFFFFF00FFFFFF0000000040000000FF000000B7FFFF 1187 FF0000000063000000B7FFFFFF00000000B700000063000000630000008B0000 1188 0020000000FF00000020FFFFFF0000000020000000FF000000FF000000B7FFFF 1189 FF00FFFFFF00FFFFFF00FFFFFF000000008B0000008BFFFFFF00FFFFFF00FFFF 1190 FF00000000FF00000040FFFFFF0000000020000000B70000008B000000B7FFFF 1191 FF00FFFFFF00FFFFFF00FFFFFF00000000FF0000008BFFFFFF00FFFFFF000000 1192 0020000000FF00000020FFFFFF00FFFFFF00FFFFFF000000008B000000B7FFFF 1193 FF00FFFFFF00FFFFFF000000008B000000FF00000040FFFFFF00FFFFFF000000 1194 00FF00000040FFFFFF00FFFFFF00FFFFFF00FFFFFF000000008B000000B7FFFF 1195 FF00FFFFFF0000000040000000FF000000B7FFFFFF00FFFFFF00FFFFFF00FFFF 1196 FF00000000FF00000063FFFFFF00FFFFFF00FFFFFF000000008B000000B7FFFF 1197 FF00FFFFFF00000000FF000000FF00000020FFFFFF00FFFFFF00FFFFFF00FFFF 1198 FF00000000FF0000008BFFFFFF00FFFFFF00FFFFFF000000008B000000B7FFFF 1199 FF0000000063000000FF00000063FFFFFF00FFFFFF0000000063000000B70000 1200 0020000000FF00000063FFFFFF00FFFFFF00FFFFFF000000008B000000B7FFFF 1201 FF000000008B000000FF000000FF000000FF0000008BFFFFFF00000000B70000 1202 00FF000000B7FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF 1163 1203 FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF 1164 1204 FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF … … 1235 1275 Action = AShrinkSource 1236 1276 end 1277 object MenuItem29: TMenuItem 1278 Action = AGenerateNumber 1279 end 1237 1280 end 1238 1281 end -
trunk/Forms/UMainForm.lrt
r23 r24 32 32 TMAINFORM.AFORMATSOURCE.CAPTION=Format source 33 33 TMAINFORM.ASHRINKSOURCE.CAPTION=Shrink source 34 TMAINFORM.AGENERATENUMBER.CAPTION=Generate code for number -
trunk/Forms/UMainForm.pas
r23 r24 21 21 AAbout: TAction; 22 22 ABreakpointToggle: TAction; 23 AGenerateNumber: TAction; 23 24 AShrinkSource: TAction; 24 25 AFormatSource: TAction; … … 65 66 MenuItem26: TMenuItem; 66 67 MenuItem27: TMenuItem; 68 MenuItem28: TMenuItem; 69 MenuItem29: TMenuItem; 67 70 MenuItemOpenRecent: TMenuItem; 68 71 MenuItemTarget: TMenuItem; … … 95 98 procedure AExitExecute(Sender: TObject); 96 99 procedure AFormatSourceExecute(Sender: TObject); 100 procedure AGenerateNumberExecute(Sender: TObject); 97 101 procedure AOptionsExecute(Sender: TObject); 98 102 procedure AProgramPauseExecute(Sender: TObject); … … 152 156 UCompilerDelphi, UCompilerPHP; 153 157 158 resourcestring 159 SEnterNumber = 'Enter number'; 160 SNumberGeneration = 'Number generation'; 161 154 162 { TMainForm } 155 163 … … 316 324 procedure TMainForm.AProgramRunExecute(Sender: TObject); 317 325 begin 326 InterpreterForm.LastStepCounter := 0; 318 327 InterpreterForm.Show; 319 328 BrainFuckInterpreter.Input := InterpreterForm.MemoInput.Lines.Text; … … 388 397 end; 389 398 399 procedure TMainForm.AGenerateNumberExecute(Sender: TObject); 400 var 401 NumberText: string; 402 Number: Integer; 403 I: Integer; 404 begin 405 NumberText := InputBox(SNumberGeneration, SEnterNumber, '1'); 406 if TryStrToInt(NumberText, Number) then begin 407 NumberText := ''; 408 for I := 0 to Number - 1 do 409 NumberText := NumberText + '+'; 410 MemoSource.Text := MemoSource.Text + NumberText; 411 end; 412 end; 413 390 414 procedure TMainForm.AOptionsExecute(Sender: TObject); 391 415 begin … … 458 482 MemoSource.Lines.SaveToFile(UTF8Decode(SaveDialog1.FileName)); 459 483 ProjectFileName := SaveDialog1.FileName; 484 LastOpenedList.Add(SaveDialog1.FileName); 460 485 Modified := False; 461 486 UpdateInterface;
Note:
See TracChangeset
for help on using the changeset viewer.