Changeset 7
- Timestamp:
- Aug 3, 2012, 10:42:13 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 5 added
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Studio/LibreDevelopStudio.lpi
r5 r7 33 33 </local> 34 34 </RunParams> 35 <RequiredPackages Count=" 3">35 <RequiredPackages Count="4"> 36 36 <Item1> 37 <PackageName Value="LDModule Debug"/>37 <PackageName Value="LDModuleBrainfuck"/> 38 38 </Item1> 39 39 <Item2> 40 <PackageName Value="L ibreDevelopStudio"/>40 <PackageName Value="LDModuleDebug"/> 41 41 </Item2> 42 42 <Item3> 43 <PackageName Value="LibreDevelopStudio"/> 44 </Item3> 45 <Item4> 43 46 <PackageName Value="LCL"/> 44 </Item 3>47 </Item4> 45 48 </RequiredPackages> 46 49 <Units Count="2"> -
trunk/Studio/UCore.pas
r6 r7 31 31 32 32 uses 33 ULDModuleDebug, UFormMain ;33 ULDModuleDebug, UFormMain, ULDModuleBrainfuck, UDataModule; 34 34 35 35 { TCore } … … 51 51 begin 52 52 ModuleManager.RegisterModule(TLDModuleDebug.Create, True); 53 ModuleManager.RegisterModule(TLDModuleBrainfuck.Create, True); 53 54 ModuleManager.InstallMarked; 54 55 end; … … 58 59 TLDStudioAPI(ModuleManager.API).MainForm := FormMain; 59 60 TLDStudioAPI(ModuleManager.API).MainMenu := FormMain.MainMenu; 61 TLDStudioAPI(ModuleManager.API).FileTypes := DataModule1.FileTypes; 60 62 RegisterModules; 61 63 end; -
trunk/StudioCommon/LDStudioCommon.lpk
r5 r7 17 17 </Other> 18 18 </CompilerOptions> 19 <Files Count=" 1">19 <Files Count="2"> 20 20 <Item1> 21 21 <Filename Value="ULDStudioAPI.pas"/> 22 22 <UnitName Value="ULDStudioAPI"/> 23 23 </Item1> 24 <Item2> 25 <Filename Value="USource.pas"/> 26 <UnitName Value="USource"/> 27 </Item2> 24 28 </Files> 25 29 <Type Value="RunAndDesignTime"/> 26 <RequiredPkgs Count=" 3">30 <RequiredPkgs Count="4"> 27 31 <Item1> 28 <PackageName Value=" LCL"/>32 <PackageName Value="TemplateGenerics"/> 29 33 </Item1> 30 34 <Item2> 31 <PackageName Value=" ModularSystem"/>35 <PackageName Value="LCL"/> 32 36 </Item2> 33 37 <Item3> 38 <PackageName Value="ModularSystem"/> 39 </Item3> 40 <Item4> 34 41 <PackageName Value="FCL"/> 35 </Item 3>42 </Item4> 36 43 </RequiredPkgs> 37 44 <UsageOptions> -
trunk/StudioCommon/LDStudioCommon.pas
r5 r7 8 8 9 9 uses 10 ULDStudioAPI, LazarusPackageIntf;10 ULDStudioAPI, USource, LazarusPackageIntf; 11 11 12 12 implementation -
trunk/StudioCommon/ULDStudioAPI.pas
r5 r7 6 6 7 7 uses 8 Classes, SysUtils, UModularSystem, ActnList, Menus, Forms; 8 Classes, SysUtils, UModularSystem, ActnList, Menus, Forms, USource, 9 SpecializedList; 9 10 10 11 type … … 18 19 MainForm: TForm; 19 20 MainMenu: TMainMenu; 21 FileTypes: TFileTypes; 20 22 constructor Create; 21 23 destructor Destroy; override; 22 24 23 25 // API functions 26 procedure RegisterFileType(FileType: TSourceType); 27 procedure UnregisterFileType(FileType: TSourceType); 24 28 procedure RegisterForm(Form: TForm); 25 29 procedure UnregisterForm(Form: TForm); … … 44 48 FreeAndNil(Actions); 45 49 inherited Destroy; 50 end; 51 52 procedure TLDStudioAPI.RegisterFileType(FileType: TSourceType); 53 begin 54 FileTypes.Add(FileType); 55 end; 56 57 procedure TLDStudioAPI.UnregisterFileType(FileType: TSourceType); 58 begin 59 FileTypes.Remove(FileType); 46 60 end; 47 61 -
trunk/StudioModules/LDModuleBrainfuck
-
Property svn:ignore
set to
lib
-
Property svn:ignore
set to
-
trunk/StudioPackage/Forms/UFormMain.lfm
r6 r7 1 1 object FormMain: TFormMain 2 Left = 26 62 Left = 265 3 3 Height = 520 4 Top = 1 134 Top = 144 5 5 Width = 747 6 6 Caption = 'LibreDevelop Studio' … … 118 118 left = 80 119 119 top = 48 120 object MenuItem26: TMenuItem 121 Caption = 'File' 122 object MenuItem27: TMenuItem 123 Action = AFileNew 124 end 125 object MenuItem28: TMenuItem 126 Action = AFileOpen 127 end 128 object MenuItem29: TMenuItem 129 Action = AFileOpenRecent 130 end 131 object MenuItem30: TMenuItem 132 Action = AFileSave 133 end 134 object MenuItem31: TMenuItem 135 Action = AFileSaveAs 136 end 137 object MenuItem32: TMenuItem 138 Action = AFileClose 139 end 140 object MenuItem33: TMenuItem 141 Caption = '-' 142 end 143 object MenuItem34: TMenuItem 144 Action = AExit 145 end 146 end 120 147 object MenuItem1: TMenuItem 121 148 Caption = 'Project' … … 358 385 end 359 386 object MenuItem14: TMenuItem 360 Action = AExit 361 Bitmap.Data = { 362 36040000424D3604000000000000360000002800000010000000100000000100 363 2000000000000004000064000000640000000000000000000000000000000000 364 0000000000000000000000000000000000FF0000000000000000000000000000 365 0000000000000000000000000000000000000000000000000000000000000000 366 00000000000000000000000000FF000000FF0000000000000000000000000000 367 0000000000000000000000000000000000000000000000000000000000000000 368 000000000000000000FF008484FF000000FF0000000000000000000000000000 369 0000000000000000000000000000000000000000000000000000000000000000 370 0000000000FF008484FF008484FF000000FF0000000000000000000000000000 371 0000000000000000000000000000000000000000000000000000000000FF0000 372 00FF008484FF008484FF008484FF000000FF000000FF000000FF000000FF0000 373 00FF000000FF000000FF000000FF000000000000000000000000000000000000 374 00FF008484FF008484FF008484FF000000FFFFFFFFFFFFFFFFFF000000FF0000 375 0000000000000000000000000000000000000000000000000000000000000000 376 00FF008484FF008484FF000000FF000000FFFFFFFFFFFFFFFFFF000000FF0000 377 0000000000000000000000000000840000FF0000000000000000000000000000 378 00FF008484FF008484FF008484FF000000FFFFFFFFFFFFFFFFFF000000FF0000 379 00000000000000000000840000FF840000FF0000000000000000000000000000 380 00FF008484FF008484FF008484FF000000FFFFFFFFFFFFFFFFFF000000FF0000 381 000000000000840000FF840000FF840000FF840000FF840000FF000000000000 382 00FF008484FF008484FF008484FF000000FFFFFFFFFFFFFFFFFF000000FF0000 383 0000840000FF840000FF840000FF840000FF840000FF840000FF000000000000 384 00FF008484FF008484FF008484FF000000FFFFFFFFFFFFFFFFFF000000FF0000 385 000000000000840000FF840000FF840000FF840000FF840000FF000000000000 386 00FF008484FF008484FF000000FFFFFFFFFFFFFFFFFFFFFFFFFF000000FF0000 387 00000000000000000000840000FF840000FF0000000000000000000000000000 388 00FF008484FF000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000FF0000 389 0000000000000000000000000000840000FF0000000000000000000000000000 390 00FF000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000FF0000 391 0000000000000000000000000000000000000000000000000000000000000000 392 00FF000000FF000000FF000000FF000000FF000000FF000000FF000000FF0000 393 0000000000000000000000000000000000000000000000000000000000000000 394 0000000000000000000000000000000000000000000000000000000000000000 395 0000000000000000000000000000000000000000000000000000 396 } 387 Action = AViewProjectManager 397 388 end 398 389 end … … 542 533 object MenuItem19: TMenuItem 543 534 Action = AViewSettings 535 Bitmap.Data = { 536 36040000424D3604000000000000360000002800000010000000100000000100 537 2000000000000004000064000000640000000000000000000000986B37FF976A 538 36FF966935FF966734FF956633FF946532FF946531FF936430FF92622FFF9261 539 2EFF91602DFF90602CFF905F2BFF8F5D2AFF8E5C29FF8D5B28FF996C38FFF8F7 540 F6FFF8F7F5FFF7F6F5FFF6F6F4FFF6F5F3FFF5F5F3FFF5F4F2FFF4F3F1FFF4F3 541 F1FFF3F2F0FFF3F2EFFFF2F1EFFFF2F0EEFFF1F0EDFF8E5D29FF996D3AFFF9F8 542 F7FF959594FF878787FF9B9A9AFFF7F6F4FFF6F5F3FFF6F5F3FFF5F4F2FFF4F3 543 F1FFF4F3F1FFF3F2F0FFF3F2EFFFF2F1EFFFF2F1EEFF8F5E2AFF9A6E3BFFF9F9 544 F8FF7C7C7CFFC4C4C4FF878787FFF7F6F5FF7A7A7AFF787878FF747474FF7171 545 70FF6D6D6CFF696968FF656565FF616161FFF2F1EFFF905F2BFF9B6F3CFFFAF9 546 F8FFBEBEBDFF929292FFBCBCBBFFF8F7F6FFF7F7F5FFF7F6F4FFF6F5F4FFF6F5 547 F3FFF5F4F2FFF5F4F2FFF4F3F1FFF4F2F0FFF3F2F0FF91602DFF9C703DFFFAFA 548 F9FFFAF9F9FFF9F9F8FFF9F8F7FFF8F8F7FFF8F7F6FFF7F7F5FFF7F6F5FFF6F5 549 F4FFF6F5F3FFF5F4F3FFF5F4F2FFF4F3F1FFF4F3F0FF92612EFF9D723EFFFBFB 550 FAFF9F9F9EFF7F7F7FFFAEAEADFFF9F8F7FFF8F8F7FFF8F7F6FFF7F7F5FFF7F6 551 F5FFF6F6F4FFF6F5F3FFF5F4F3FFF5F4F2FFF4F3F1FF92622FFF9D7340FFFCFB 552 FBFF818181FFC4C4C4FF8F8F8FFFFAF9F8FF7B7B7AFF797979FF757574FF7271 553 71FF6D6D6DFF696969FF666665FF626261FFF5F4F2FF936430FF9E7441FFFCFC 554 FCFFB5B5B5FF848484FFBEBDBDFFFAFAF9FFFAF9F8FFF9F9F7FFF9F8F7FFF8F8 555 F6FFF8F7F5FFF7F6F5FFF7F6F4FFF6F5F3FFF6F5F3FF946531FF9F7542FFFDFD 556 FCFFFCFCFCFFFCFCFBFFFBFBFAFFFBFAFAFFFAFAF9FFFAF9F8FFF9F9F8FFF9F8 557 F7FFF8F8F6FFF8F7F6FFF7F6F5FFF7F6F4FFF6F5F4FF956633FFA07643FFFEFD 558 FDFF8C8C8CFF525252FFA4A4A4FFFBFBFAFFFBFBFAFFFAFAF9FFFAF9F8FFF9F9 559 F8FFF9F8F7FFF8F8F6FFF8F7F6FFF7F7F5FFF7F6F4FF966734FFA17844FFFEFE 560 FEFF5F5F5FFF949494FF535353FFFCFCFBFF7B7B7BFF797979FF757575FF7272 561 72FF6E6E6EFF6A6A69FF666666FF626262FFF7F7F5FF966935FFA17946FFFFFF 562 FFFF878787FF5D5D5DFFA0A0A0FFFDFCFCFFFCFCFBFFFCFBFBFFFBFBFAFFFBFA 563 F9FFFAFAF9FFFAF9F8FFF9F8F7FFF8F8F7FFF8F7F6FF976A36FFA27A47FFFFFF 564 FFFFFFFFFFFFFEFEFEFFFEFEFEFFFDFDFDFFFDFDFCFFFCFCFBFFFCFBFBFFFBFB 565 FAFFFBFAF9FFFAFAF9FFFAF9F8FFF9F9F7FFF9F8F7FF986B37FFA37B48FFBEA2 566 7FFFBEA17EFFBDA17DFFBDA07CFFBD9F7CFFBC9F7BFFBB9E7AFFBB9D7AFFBB9D 567 79FFBA9C78FFB99B78FFB99A77FFB89A76FFB89975FF996C39FFA37B48FFA37B 568 48FFA27A47FFA27946FFA17845FFA07744FFA07643FF9F7542FF9E7441FF9E73 569 40FF9D723FFF9C713EFF9C703DFF9B6F3CFF9A6E3BFF9A6D3AFF 570 } 544 571 end 545 572 end 546 573 object MenuItem17: TMenuItem 547 574 Caption = 'View' 548 object MenuItem18: TMenuItem549 Action = AViewProjectManager550 end551 575 end 552 576 object MenuItem15: TMenuItem … … 563 587 Hint = 'New project' 564 588 ImageIndex = 4 565 ShortCut = 16462566 589 end 567 590 object AProjectOpen: TAction … … 570 593 Hint = 'Open project' 571 594 ImageIndex = 8 572 ShortCut = 16463 595 end 596 object AProjectOpenRecent: TAction 597 Category = 'Project' 598 Caption = 'Open recent' 599 Hint = 'Open recent project' 600 ImageIndex = 8 601 end 602 object AProjectSave: TAction 603 Category = 'Project' 604 Caption = 'Save' 605 Hint = 'Save project' 606 ImageIndex = 13 607 end 608 object AProjectSaveAs: TAction 609 Category = 'Project' 610 Caption = 'Save as...' 611 Hint = 'Save project as' 612 ImageIndex = 13 573 613 end 574 614 object AProjectClose: TAction … … 577 617 Hint = 'Close project' 578 618 ImageIndex = 3 579 end580 object AProjectSave: TAction581 Category = 'Project'582 Caption = 'Save'583 Hint = 'Save project'584 ImageIndex = 13585 ShortCut = 16467586 end587 object AProjectSaveAs: TAction588 Category = 'Project'589 Caption = 'Save as...'590 Hint = 'Save project as'591 ImageIndex = 13592 ShortCut = 24659593 end594 object AProjectOpenRecent: TAction595 Category = 'Project'596 Caption = 'Open recent'597 Hint = 'Open recent project'598 ImageIndex = 8599 619 end 600 620 object AClipboardCopy: TAction … … 662 682 Category = 'Build' 663 683 Caption = 'Clean' 684 end 685 object AFileNew: TAction 686 Category = 'File' 687 Caption = 'New...' 688 ImageIndex = 4 689 ShortCut = 16462 690 end 691 object AFileOpen: TAction 692 Category = 'File' 693 Caption = 'Open...' 694 ImageIndex = 8 695 OnExecute = AFileOpenExecute 696 ShortCut = 16463 697 end 698 object AFileOpenRecent: TAction 699 Category = 'File' 700 Caption = 'Open recent' 701 ImageIndex = 8 702 end 703 object AFileSave: TAction 704 Category = 'File' 705 Caption = 'Save' 706 ImageIndex = 13 707 ShortCut = 16467 708 end 709 object AFileSaveAs: TAction 710 Category = 'File' 711 Caption = 'Save as...' 712 ImageIndex = 13 713 ShortCut = 24659 714 end 715 object AFileClose: TAction 716 Category = 'File' 717 Caption = 'Close' 718 ImageIndex = 3 664 719 end 665 720 end … … 1375 1430 } 1376 1431 end 1432 object OpenDialogFile: TOpenDialog 1433 Filter = 'kkk|.kk|jj|.jj' 1434 left = 82 1435 top = 210 1436 end 1437 object SaveDialogFile: TSaveDialog 1438 left = 82 1439 top = 264 1440 end 1377 1441 end -
trunk/StudioPackage/Forms/UFormMain.lrt
r6 r7 5 5 TFORMMAIN.TABSHEET3.CAPTION=TabSheet3 6 6 TFORMMAIN.TABSHEETSOURCE.CAPTION=TabSheetSource 7 TFORMMAIN.MENUITEM26.CAPTION=File 8 TFORMMAIN.MENUITEM33.CAPTION=- 7 9 TFORMMAIN.MENUITEM1.CAPTION=Project 8 10 TFORMMAIN.MENUITEM13.CAPTION=- … … 16 18 TFORMMAIN.APROJECTOPEN.CAPTION=Open... 17 19 TFORMMAIN.APROJECTOPEN.HINT=Open project 18 TFORMMAIN.APROJECT CLOSE.CAPTION=Close19 TFORMMAIN.APROJECT CLOSE.HINT=Closeproject20 TFORMMAIN.APROJECTOPENRECENT.CAPTION=Open recent 21 TFORMMAIN.APROJECTOPENRECENT.HINT=Open recent project 20 22 TFORMMAIN.APROJECTSAVE.CAPTION=Save 21 23 TFORMMAIN.APROJECTSAVE.HINT=Save project 22 24 TFORMMAIN.APROJECTSAVEAS.CAPTION=Save as... 23 25 TFORMMAIN.APROJECTSAVEAS.HINT=Save project as 24 TFORMMAIN.APROJECT OPENRECENT.CAPTION=Open recent25 TFORMMAIN.APROJECT OPENRECENT.HINT=Open recentproject26 TFORMMAIN.APROJECTCLOSE.CAPTION=Close 27 TFORMMAIN.APROJECTCLOSE.HINT=Close project 26 28 TFORMMAIN.ACLIPBOARDCOPY.CAPTION=Copy 27 29 TFORMMAIN.ACLIPBOARDCOPY.HINT=Copy to clipboard … … 41 43 TFORMMAIN.AREBUILD.CAPTION=Rebuild 42 44 TFORMMAIN.ABUILDCLEAN.CAPTION=Clean 45 TFORMMAIN.AFILENEW.CAPTION=New... 46 TFORMMAIN.AFILEOPEN.CAPTION=Open... 47 TFORMMAIN.AFILEOPENRECENT.CAPTION=Open recent 48 TFORMMAIN.AFILESAVE.CAPTION=Save 49 TFORMMAIN.AFILESAVEAS.CAPTION=Save as... 50 TFORMMAIN.AFILECLOSE.CAPTION=Close -
trunk/StudioPackage/Forms/UFormMain.pas
r6 r7 18 18 ABuild: TAction; 19 19 ABuildClean: TAction; 20 AFileOpenRecent: TAction; 21 AFileNew: TAction; 22 AFileSaveAs: TAction; 23 AFileSave: TAction; 24 AFileClose: TAction; 25 AFileOpen: TAction; 20 26 ARebuild: TAction; 21 27 AStop: TAction; … … 44 50 MenuItem16: TMenuItem; 45 51 MenuItem17: TMenuItem; 46 MenuItem18: TMenuItem;47 52 MenuItem19: TMenuItem; 48 53 MenuItem2: TMenuItem; … … 53 58 MenuItem24: TMenuItem; 54 59 MenuItem25: TMenuItem; 60 MenuItem26: TMenuItem; 61 MenuItem27: TMenuItem; 62 MenuItem28: TMenuItem; 63 MenuItem29: TMenuItem; 55 64 MenuItem3: TMenuItem; 65 MenuItem30: TMenuItem; 66 MenuItem31: TMenuItem; 67 MenuItem32: TMenuItem; 68 MenuItem33: TMenuItem; 69 MenuItem34: TMenuItem; 56 70 MenuItem4: TMenuItem; 57 71 MenuItem5: TMenuItem; … … 60 74 MenuItem8: TMenuItem; 61 75 MenuItem9: TMenuItem; 76 OpenDialogFile: TOpenDialog; 62 77 PageControl1: TPageControl; 63 78 PageControl2: TPageControl; 64 79 PageControl3: TPageControl; 65 80 PageControl4: TPageControl; 81 SaveDialogFile: TSaveDialog; 66 82 Splitter1: TSplitter; 67 83 Splitter2: TSplitter; … … 77 93 ToolButton4: TToolButton; 78 94 procedure AExitExecute(Sender: TObject); 95 procedure AFileOpenExecute(Sender: TObject); 79 96 procedure AViewProjectManagerExecute(Sender: TObject); 80 97 procedure AViewSettingsExecute(Sender: TObject); … … 94 111 95 112 uses 96 UFormProject, UFormSourceCode, UFormSettings ;113 UFormProject, UFormSourceCode, UFormSettings, UDataModule; 97 114 98 115 { TFormMain } … … 101 118 begin 102 119 Application.Terminate; 120 end; 121 122 procedure TFormMain.AFileOpenExecute(Sender: TObject); 123 begin 124 OpenDialogFile.Filter := DataModule1.FileTypes.GetDialogFilter; 125 if OpenDialogFile.Execute then ; 103 126 end; 104 127 -
trunk/StudioPackage/UDataModule.lfm
r6 r7 1 1 object DataModule1: TDataModule1 2 2 OnCreate = DataModuleCreate 3 OnDestroy = DataModuleDestroy 3 4 OldCreateOrder = False 4 5 Height = 297 -
trunk/StudioPackage/UDataModule.pas
r6 r7 1 1 unit UDataModule; 2 2 3 {$mode objfpc}{$H+}3 {$mode delphi}{$H+} 4 4 5 5 interface 6 6 7 7 uses 8 Classes, SysUtils, FileUtil, UProject, Forms ;8 Classes, SysUtils, FileUtil, UProject, Forms, SpecializedList, USource; 9 9 10 10 type 11 12 11 { TDataModule1 } 13 12 14 13 TDataModule1 = class(TDataModule) 15 14 procedure DataModuleCreate(Sender: TObject); 15 procedure DataModuleDestroy(Sender: TObject); 16 16 private 17 17 { private declarations } 18 18 public 19 19 Project: TProject; 20 FileTypes: TFileTypes; 20 21 end; 21 22 … … 39 40 Application.CreateForm(TFormSourceCode, FormSourceCode); 40 41 Application.CreateForm(TFormSettings, FormSettings); 42 FileTypes := TFileTypes.Create; 43 end; 44 45 procedure TDataModule1.DataModuleDestroy(Sender: TObject); 46 begin 47 FreeAndNil(FileTypes); 41 48 end; 42 49
Note:
See TracChangeset
for help on using the changeset viewer.