Changeset 11
- Timestamp:
- Aug 3, 2012, 3:06:51 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 9 added
- 4 deleted
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Studio/LibreDevelopStudio.lpi
r8 r11 33 33 </local> 34 34 </RunParams> 35 <RequiredPackages Count=" 5">35 <RequiredPackages Count="6"> 36 36 <Item1> 37 <PackageName Value="LDModuleP ascal"/>37 <PackageName Value="LDModuleProject"/> 38 38 </Item1> 39 39 <Item2> 40 <PackageName Value="LDModule Brainfuck"/>40 <PackageName Value="LDModulePascal"/> 41 41 </Item2> 42 42 <Item3> 43 <PackageName Value="LDModule Debug"/>43 <PackageName Value="LDModuleBrainfuck"/> 44 44 </Item3> 45 45 <Item4> 46 <PackageName Value="L ibreDevelopStudio"/>46 <PackageName Value="LDModuleDebug"/> 47 47 </Item4> 48 48 <Item5> 49 <PackageName Value="LibreDevelopStudio"/> 50 </Item5> 51 <Item6> 49 52 <PackageName Value="LCL"/> 50 </Item 5>53 </Item6> 51 54 </RequiredPackages> 52 55 <Units Count="2"> -
trunk/Studio/LibreDevelopStudio.lpr
r8 r11 8 8 {$ENDIF}{$ENDIF} 9 9 Interfaces, // this includes the LCL widgetset 10 Forms, UCore, U DataModule;10 Forms, UCore, ULDModuleProject; 11 11 12 12 {$R *.res} -
trunk/Studio/UCore.pas
r9 r11 29 29 30 30 uses 31 ULDModuleDebug, UFormMain, ULDModuleBrainfuck, UDataModule, ULDModulePascal; 31 ULDModuleDebug, UFormMain, ULDModuleBrainfuck, UDataModule, ULDModulePascal, 32 ULDModuleProject; 32 33 33 34 { TCore } … … 49 50 RegisterModule(TLDModuleBrainfuck.Create, True); 50 51 RegisterModule(TLDModulePascal.Create, True); 52 RegisterModule(TLDModuleProject.Create, True); 51 53 InstallMarked; 52 54 end; -
trunk/StudioCommon/ULDStudioAPI.pas
r10 r11 24 24 25 25 // API functions 26 procedure OpenFile(FileName: string); 26 27 procedure RegisterFileType(FileType: TSourceType); 27 28 procedure UnregisterFileType(FileType: TSourceType); … … 48 49 FreeAndNil(Actions); 49 50 inherited Destroy; 51 end; 52 53 procedure TLDStudioAPI.OpenFile(FileName: string); 54 begin 55 50 56 end; 51 57 -
trunk/StudioModules/LDModuleBrainfuck/ULDModuleBrainfuck.pas
r7 r11 35 35 begin 36 36 inherited Create; 37 Name:= 'Brainfuck';37 Identification := 'Brainfuck'; 38 38 Title := SBrainfuck; 39 39 Version := '0.1'; -
trunk/StudioModules/LDModuleDebug/ULDModuleDebug.pas
r10 r11 45 45 begin 46 46 inherited Create; 47 Name:= 'Debug';47 Identification := 'Debug'; 48 48 Title := SDebug; 49 49 end; -
trunk/StudioModules/LDModulePascal/ULDModulePascal.pas
r8 r11 35 35 begin 36 36 inherited Create; 37 Name:= 'Pascal';37 Identification := 'Pascal'; 38 38 Title := SPascal; 39 39 Version := '0.1'; -
trunk/StudioPackage/Forms/UFormMain.lfm
r10 r11 30 30 object ToolButton1: TToolButton 31 31 Left = 1 32 Hint = 'New project' 32 33 Top = 2 33 Action = AProjectNew 34 Caption = 'New...' 35 ImageIndex = 4 34 36 end 35 37 object ToolButton2: TToolButton 36 38 Left = 24 39 Hint = 'Open project' 37 40 Top = 2 38 Action = AProjectOpen 41 Caption = 'Open...' 42 ImageIndex = 8 39 43 end 40 44 object ToolButton3: TToolButton 41 45 Left = 47 46 Hint = 'Save project' 42 47 Top = 2 43 Action = AProjectSave 48 Caption = 'Save' 49 ImageIndex = 13 44 50 end 45 51 object ToolButton4: TToolButton 46 52 Left = 70 53 Hint = 'Close project' 47 54 Top = 2 48 Action = AProjectClose 55 Caption = 'Close' 56 ImageIndex = 3 49 57 end 50 58 end … … 125 133 object MenuItem27: TMenuItem 126 134 Action = AFileNew 127 end128 object MenuItem28: TMenuItem129 Action = AFileOpen130 end131 object MenuItem29: TMenuItem132 Action = AFileOpenRecent133 end134 object MenuItem30: TMenuItem135 Action = AFileSave136 end137 object MenuItem31: TMenuItem138 Action = AFileSaveAs139 end140 object MenuItem32: TMenuItem141 Action = AFileClose142 end143 object MenuItem33: TMenuItem144 Caption = '-'145 end146 object MenuItem34: TMenuItem147 Action = AExit148 end149 end150 object MenuItem1: TMenuItem151 Caption = 'Project'152 object MenuItem3: TMenuItem153 Action = AProjectNew154 135 Bitmap.Data = { 155 136 36040000424D3604000000000000360000002800000010000000100000000100 … … 189 170 } 190 171 end 191 object MenuItem 8: TMenuItem192 Action = A ProjectOpen172 object MenuItem28: TMenuItem 173 Action = AFileOpen 193 174 Bitmap.Data = { 194 175 36040000424D3604000000000000360000002800000010000000100000000100 … … 228 209 } 229 210 end 230 object MenuItem 9: TMenuItem231 Action = A ProjectOpenRecent211 object MenuItem29: TMenuItem 212 Action = AFileOpenRecent 232 213 Bitmap.Data = { 233 214 36040000424D3604000000000000360000002800000010000000100000000100 … … 267 248 } 268 249 end 269 object MenuItem 10: TMenuItem270 Action = A ProjectSave250 object MenuItem30: TMenuItem 251 Action = AFileSave 271 252 Bitmap.Data = { 272 253 36040000424D3604000000000000360000002800000010000000100000000100 … … 306 287 } 307 288 end 308 object MenuItem 11: TMenuItem309 Action = A ProjectSaveAs289 object MenuItem31: TMenuItem 290 Action = AFileSaveAs 310 291 Bitmap.Data = { 311 292 36040000424D3604000000000000360000002800000010000000100000000100 … … 345 326 } 346 327 end 347 object MenuItem 12: TMenuItem348 Action = A ProjectClose328 object MenuItem32: TMenuItem 329 Action = AFileClose 349 330 Bitmap.Data = { 350 331 36040000424D3604000000000000360000002800000010000000100000000100 … … 384 365 } 385 366 end 386 object MenuItem 13: TMenuItem367 object MenuItem33: TMenuItem 387 368 Caption = '-' 388 369 end 389 object MenuItem14: TMenuItem 390 Action = AViewProjectManager 370 object MenuItem34: TMenuItem 371 Action = AExit 372 Bitmap.Data = { 373 36040000424D3604000000000000360000002800000010000000100000000100 374 2000000000000004000064000000640000000000000000000000000000000000 375 0000000000000000000000000000000000FF0000000000000000000000000000 376 0000000000000000000000000000000000000000000000000000000000000000 377 00000000000000000000000000FF000000FF0000000000000000000000000000 378 0000000000000000000000000000000000000000000000000000000000000000 379 000000000000000000FF008484FF000000FF0000000000000000000000000000 380 0000000000000000000000000000000000000000000000000000000000000000 381 0000000000FF008484FF008484FF000000FF0000000000000000000000000000 382 0000000000000000000000000000000000000000000000000000000000FF0000 383 00FF008484FF008484FF008484FF000000FF000000FF000000FF000000FF0000 384 00FF000000FF000000FF000000FF000000000000000000000000000000000000 385 00FF008484FF008484FF008484FF000000FFFFFFFFFFFFFFFFFF000000FF0000 386 0000000000000000000000000000000000000000000000000000000000000000 387 00FF008484FF008484FF000000FF000000FFFFFFFFFFFFFFFFFF000000FF0000 388 0000000000000000000000000000840000FF0000000000000000000000000000 389 00FF008484FF008484FF008484FF000000FFFFFFFFFFFFFFFFFF000000FF0000 390 00000000000000000000840000FF840000FF0000000000000000000000000000 391 00FF008484FF008484FF008484FF000000FFFFFFFFFFFFFFFFFF000000FF0000 392 000000000000840000FF840000FF840000FF840000FF840000FF000000000000 393 00FF008484FF008484FF008484FF000000FFFFFFFFFFFFFFFFFF000000FF0000 394 0000840000FF840000FF840000FF840000FF840000FF840000FF000000000000 395 00FF008484FF008484FF008484FF000000FFFFFFFFFFFFFFFFFF000000FF0000 396 000000000000840000FF840000FF840000FF840000FF840000FF000000000000 397 00FF008484FF008484FF000000FFFFFFFFFFFFFFFFFFFFFFFFFF000000FF0000 398 00000000000000000000840000FF840000FF0000000000000000000000000000 399 00FF008484FF000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000FF0000 400 0000000000000000000000000000840000FF0000000000000000000000000000 401 00FF000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000FF0000 402 0000000000000000000000000000000000000000000000000000000000000000 403 00FF000000FF000000FF000000FF000000FF000000FF000000FF000000FF0000 404 0000000000000000000000000000000000000000000000000000000000000000 405 0000000000000000000000000000000000000000000000000000000000000000 406 0000000000000000000000000000000000000000000000000000 407 } 391 408 end 392 409 end … … 630 647 left = 80 631 648 top = 104 632 object AProjectNew: TAction633 Category = 'Project'634 Caption = 'New...'635 Hint = 'New project'636 ImageIndex = 4637 end638 object AProjectOpen: TAction639 Category = 'Project'640 Caption = 'Open...'641 Hint = 'Open project'642 ImageIndex = 8643 end644 object AProjectOpenRecent: TAction645 Category = 'Project'646 Caption = 'Open recent'647 Hint = 'Open recent project'648 ImageIndex = 8649 end650 object AProjectSave: TAction651 Category = 'Project'652 Caption = 'Save'653 Hint = 'Save project'654 ImageIndex = 13655 end656 object AProjectSaveAs: TAction657 Category = 'Project'658 Caption = 'Save as...'659 Hint = 'Save project as'660 ImageIndex = 13661 end662 object AProjectClose: TAction663 Category = 'Project'664 Caption = 'Close'665 Hint = 'Close project'666 ImageIndex = 3667 end668 649 object AClipboardCopy: TAction 669 650 Category = 'Edit' … … 703 684 Category = 'View' 704 685 Caption = 'Project manager' 705 OnExecute = AViewProjectManagerExecute706 686 end 707 687 object AViewSettings: TAction … … 1531 1511 object SaveDialogFile: TSaveDialog 1532 1512 left = 82 1533 top = 2 641513 top = 272 1534 1514 end 1535 1515 end -
trunk/StudioPackage/Forms/UFormMain.lrt
r9 r11 1 1 TFORMMAIN.CAPTION=LibreDevelop Studio 2 2 TFORMMAIN.TOOLBAR1.CAPTION=ToolBar1 3 TFORMMAIN.TOOLBUTTON1.HINT=New project 4 TFORMMAIN.TOOLBUTTON1.CAPTION=New... 5 TFORMMAIN.TOOLBUTTON2.HINT=Open project 6 TFORMMAIN.TOOLBUTTON2.CAPTION=Open... 7 TFORMMAIN.TOOLBUTTON3.HINT=Save project 8 TFORMMAIN.TOOLBUTTON3.CAPTION=Save 9 TFORMMAIN.TOOLBUTTON4.HINT=Close project 10 TFORMMAIN.TOOLBUTTON4.CAPTION=Close 3 11 TFORMMAIN.TABSHEETPROJECT.CAPTION=TabSheetProject 4 12 TFORMMAIN.TABSHEET2.CAPTION=TabSheet2 … … 7 15 TFORMMAIN.MENUITEM26.CAPTION=File 8 16 TFORMMAIN.MENUITEM33.CAPTION=- 9 TFORMMAIN.MENUITEM1.CAPTION=Project10 TFORMMAIN.MENUITEM13.CAPTION=-11 17 TFORMMAIN.MENUITEM2.CAPTION=Edit 12 18 TFORMMAIN.MENUITEM18.CAPTION=- … … 18 24 TFORMMAIN.MENUITEM17.CAPTION=View 19 25 TFORMMAIN.MENUITEM15.CAPTION=Help 20 TFORMMAIN.APROJECTNEW.CAPTION=New...21 TFORMMAIN.APROJECTNEW.HINT=New project22 TFORMMAIN.APROJECTOPEN.CAPTION=Open...23 TFORMMAIN.APROJECTOPEN.HINT=Open project24 TFORMMAIN.APROJECTOPENRECENT.CAPTION=Open recent25 TFORMMAIN.APROJECTOPENRECENT.HINT=Open recent project26 TFORMMAIN.APROJECTSAVE.CAPTION=Save27 TFORMMAIN.APROJECTSAVE.HINT=Save project28 TFORMMAIN.APROJECTSAVEAS.CAPTION=Save as...29 TFORMMAIN.APROJECTSAVEAS.HINT=Save project as30 TFORMMAIN.APROJECTCLOSE.CAPTION=Close31 TFORMMAIN.APROJECTCLOSE.HINT=Close project32 26 TFORMMAIN.ACLIPBOARDCOPY.CAPTION=Copy 33 27 TFORMMAIN.ACLIPBOARDCOPY.HINT=Copy to clipboard -
trunk/StudioPackage/Forms/UFormMain.pas
r10 r11 43 43 ASelectAll: TAction; 44 44 AClipboardCut: TAction; 45 AProjectOpenRecent: TAction;46 AProjectSaveAs: TAction;47 AProjectSave: TAction;48 AProjectClose: TAction;49 AProjectOpen: TAction;50 AProjectNew: TAction;51 45 ActionListMain: TActionList; 52 46 ImageListMain: TImageList; 53 47 MainMenu: TMainMenu; 54 MenuItem1: TMenuItem;55 MenuItem10: TMenuItem;56 MenuItem11: TMenuItem;57 MenuItem12: TMenuItem;58 MenuItem13: TMenuItem;59 MenuItem14: TMenuItem;60 48 MenuItem15: TMenuItem; 61 49 MenuItem16: TMenuItem; … … 74 62 MenuItem28: TMenuItem; 75 63 MenuItem29: TMenuItem; 76 MenuItem3: TMenuItem;77 64 MenuItem30: TMenuItem; 78 65 MenuItem31: TMenuItem; … … 98 85 MenuItem6: TMenuItem; 99 86 MenuItem7: TMenuItem; 100 MenuItem8: TMenuItem;101 MenuItem9: TMenuItem;102 87 OpenDialogFile: TOpenDialog; 103 88 PageControlRight: TPageControl; … … 122 107 procedure AFileOpenExecute(Sender: TObject); 123 108 procedure AViewModulesExecute(Sender: TObject); 124 procedure AViewProjectManagerExecute(Sender: TObject);125 109 procedure AViewSettingsExecute(Sender: TObject); 126 110 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction); … … 142 126 143 127 uses 144 UForm Project, UFormSourceCode, UFormSettings, UFormModuleList;128 UFormSourceCode, UFormSettings, UFormModuleList; 145 129 146 130 { TFormMain } … … 168 152 FormModuleList.ModuleManager := DataModule1.ModuleManager; 169 153 FormModuleList.Show; 170 end;171 172 procedure TFormMain.AViewProjectManagerExecute(Sender: TObject);173 begin174 FormProject.Show;175 154 end; 176 155 … … 201 180 procedure TFormMain.DockInit; 202 181 begin 203 FormProject.ManualDock(TabSheetProject, nil, alClient);182 { FormProject.ManualDock(TabSheetProject, nil, alClient); 204 183 FormProject.Align := alClient; 205 184 FormProject.Show; 206 end;185 }end; 207 186 208 187 procedure TFormMain.OpenFileExecute(OpenedFile: TOpenedFile); -
trunk/StudioPackage/Forms/UFormModuleList.pas
r9 r11 64 64 if (Item.Index >= 0) and (Item.Index < FModuleManager.Modules.Count) then 65 65 with TModule(FModuleManager.Modules[Item.Index]) do begin 66 Item.Caption := Name;66 Item.Caption := Identification; 67 67 Item.Data := FModuleManager.Modules[Item.Index]; 68 68 Item.SubItems.Add(Title); -
trunk/StudioPackage/Forms/UFormSourceCode.pas
r4 r11 1 1 unit UFormSourceCode; 2 2 3 {$mode objfpc}{$H+}3 {$mode delphi}{$H+} 4 4 5 5 interface … … 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, 9 SynEdit, SynHighlighterPas , UProject;9 SynEdit, SynHighlighterPas; 10 10 11 11 type … … 18 18 procedure SynEditSourceChange(Sender: TObject); 19 19 private 20 FFileName: string; 20 21 FOnChange: TNotifyEvent; 21 FProjectFile: TProjectFile; 22 procedure SetProjectFile(const AValue: TProjectFile); 22 procedure SetFileName(AValue: string); 23 23 public 24 property ProjectFile: TProjectFile read FProjectFile write SetProjectFile;24 property FileName: string read FFileName write SetFileName; 25 25 procedure Save; 26 26 procedure UpdateInterface; … … 47 47 end; 48 48 49 procedure TFormSourceCode.Set ProjectFile(const AValue: TProjectFile);49 procedure TFormSourceCode.SetFileName(AValue: string); 50 50 begin 51 if F ProjectFile = AValue then Exit;52 F ProjectFile := AValue;53 if Assigned(AValue) then54 SynEditSource.Lines. Assign(FProjectFile.Source)51 if FFileName = AValue then Exit; 52 FFileName := AValue; 53 if FileExistsUTF8(FFileName) then 54 SynEditSource.Lines.LoadFromFile(FFileName) 55 55 else SynEditSource.ClearAll; 56 56 end; … … 58 58 procedure TFormSourceCode.Save; 59 59 begin 60 if Assigned(ProjectFile) then61 ProjectFile.Source.Assign(SynEditSource.Lines); 60 { if Assigned(ProjectFile) then 61 ProjectFile.Source.Assign(SynEditSource.Lines);} 62 62 end; 63 63 64 64 procedure TFormSourceCode.UpdateInterface; 65 65 begin 66 SynEditSource.Enabled := Assigned(DataModule1.Project);67 if not Assigned(DataModule1.Project) then SynEditSource.ClearAll;66 // SynEditSource.Enabled := Assigned(DataModule1.Project); 67 // if not Assigned(DataModule1.Project) then SynEditSource.ClearAll; 68 68 end; 69 69 -
trunk/StudioPackage/LibreDevelopStudio.lpk
r9 r11 23 23 </Other> 24 24 </CompilerOptions> 25 <Files Count=" 7">25 <Files Count="5"> 26 26 <Item1> 27 27 <Filename Value="Forms\UFormMain.pas"/> … … 29 29 </Item1> 30 30 <Item2> 31 <Filename Value="U Project.pas"/>32 <UnitName Value="U Project"/>31 <Filename Value="UDataModule.pas"/> 32 <UnitName Value="UDataModule"/> 33 33 </Item2> 34 34 <Item3> 35 <Filename Value=" UDataModule.pas"/>36 <UnitName Value="U DataModule"/>35 <Filename Value="Forms\UFormSourceCode.pas"/> 36 <UnitName Value="UFormSourceCode"/> 37 37 </Item3> 38 38 <Item4> 39 <Filename Value="Forms\UForm Project.pas"/>40 <UnitName Value="UForm Project"/>39 <Filename Value="Forms\UFormSettings.pas"/> 40 <UnitName Value="UFormSettings"/> 41 41 </Item4> 42 42 <Item5> 43 <Filename Value="Forms\UFormSourceCode.pas"/>44 <UnitName Value="UFormSourceCode"/>45 </Item5>46 <Item6>47 <Filename Value="Forms\UFormSettings.pas"/>48 <UnitName Value="UFormSettings"/>49 </Item6>50 <Item7>51 43 <Filename Value="Forms\UFormModuleList.pas"/> 52 44 <UnitName Value="UFormModuleList"/> 53 </Item 7>45 </Item5> 54 46 </Files> 55 47 <i18n> -
trunk/StudioPackage/LibreDevelopStudio.pas
r9 r11 8 8 9 9 uses 10 UFormMain, U Project, UDataModule, UFormProject, UFormSourceCode,11 UFormSettings, UFormModuleList,LazarusPackageIntf;10 UFormMain, UDataModule, UFormSourceCode, UFormSettings, UFormModuleList, 11 LazarusPackageIntf; 12 12 13 13 implementation -
trunk/StudioPackage/UDataModule.pas
r10 r11 6 6 7 7 uses 8 Classes, SysUtils, FileUtil, UProject,Forms, SpecializedList, USource,8 Classes, SysUtils, FileUtil, Forms, SpecializedList, USource, 9 9 UModularSystem, ULDStudioAPI; 10 10 … … 47 47 public 48 48 ModuleManager: TModuleManager; 49 Project: TProject;50 49 FileTypes: TFileTypes; 51 50 OpenedFiles: TOpenedFiles; … … 61 60 62 61 uses 63 UFormSourceCode, UFormMain, UForm Project, UFormSettings, UFormModuleList;62 UFormSourceCode, UFormMain, UFormSettings, UFormModuleList; 64 63 65 64 procedure TOpenedFile.SetFileName(AValue: string); … … 111 110 Application.UpdateMainForm(FormMain); 112 111 OpenedFiles.OnOpenFile := FormMain.OpenFileExecute; 113 FormProject := TFormProject.Create(nil);114 112 FormSourceCode := TFormSourceCode.Create(nil); 115 113 FormSettings := TFormSettings.Create(nil); … … 127 125 FreeAndNil(API); 128 126 FreeAndNil(FormMain); 129 FreeAndNil(FormProject);130 127 FreeAndNil(FormSourceCode); 131 128 FreeAndNil(FormSettings);
Note:
See TracChangeset
for help on using the changeset viewer.