Changeset 11 for platform/trunk
- Timestamp:
- Apr 27, 2014, 1:49:43 PM (11 years ago)
- Location:
- platform/trunk
- Files:
-
- 5 added
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
platform/trunk/Demo/Demo.dproj
r10 r11 66 66 </PropertyGroup> 67 67 <PropertyGroup Condition="'$(Cfg_1_Win32)'!=''"> 68 <DCC_UnitSearchPath>..\;$(DCC_UnitSearchPath)</DCC_UnitSearchPath> 69 <VerInfo_IncludeVerInfo>true</VerInfo_IncludeVerInfo> 70 <VerInfo_Locale>1033</VerInfo_Locale> 68 71 <DCC_RemoteDebug>false</DCC_RemoteDebug> 69 72 </PropertyGroup> … … 134 137 </VersionInfoKeys> 135 138 <Excluded_Packages> 136 <Excluded_Packages Name="$(BDSBIN)\dcldb170.bpl">Embarcadero Database Components</Excluded_Packages> 137 <Excluded_Packages Name="$(BDSBIN)\dclwebsnap170.bpl">Embarcadero WebSnap Components</Excluded_Packages> 138 <Excluded_Packages Name="$(BDSBIN)\dclwbm170.bpl">Embarcadero InternetExpress Components</Excluded_Packages> 139 <Excluded_Packages Name="$(BDSBIN)\dclmid170.bpl">Embarcadero MyBase DataAccess Components</Excluded_Packages> 140 <Excluded_Packages Name="$(BDSBIN)\dclbindcomp170.bpl">Embarcadero LiveBindings Components</Excluded_Packages> 141 <Excluded_Packages Name="$(BDSBIN)\dclbindcompfmx170.bpl">Embarcadero LiveBindings Components FireMonkey</Excluded_Packages> 142 <Excluded_Packages Name="$(BDSBIN)\dclbindcompvcl170.bpl">Embarcadero LiveBindings Components VCL</Excluded_Packages> 143 <Excluded_Packages Name="$(BDSBIN)\dclbde170.bpl">Embarcadero BDE DB Components</Excluded_Packages> 144 <Excluded_Packages Name="$(BDSBIN)\dclib170.bpl">Embarcadero InterBase Express Components</Excluded_Packages> 145 <Excluded_Packages Name="$(BDSBIN)\dclado170.bpl">Embarcadero ADO DB Components</Excluded_Packages> 146 <Excluded_Packages Name="$(BDSBIN)\DataExplorerDBXPluginInt170.bpl">DBExpress InterBase Data Explorer Integration</Excluded_Packages> 147 <Excluded_Packages Name="$(BDSBIN)\dclbindcompdbx170.bpl">LiveBindings Expression Components DbExpress</Excluded_Packages> 148 <Excluded_Packages Name="$(BDSBIN)\dcldbx170.bpl">Embarcadero dbExpress Components</Excluded_Packages> 149 <Excluded_Packages Name="$(BDSBIN)\dcldbxcds170.bpl">Embarcadero SimpleDataset Component (DBX)</Excluded_Packages> 150 <Excluded_Packages Name="$(BDSBIN)\DataExplorerDBXPlugin170.bpl">DBExpress Data Explorer Integration</Excluded_Packages> 151 <Excluded_Packages Name="$(BDSBIN)\dclmcn170.bpl">Embarcadero DataSnap Connection Components</Excluded_Packages> 152 <Excluded_Packages Name="$(BDSBIN)\DataExplorerDBXPluginEnt170.bpl">DBExpress Enterprise Data Explorer Integration</Excluded_Packages> 153 <Excluded_Packages Name="$(BDSBIN)\dclDataSnapClient170.bpl">Embarcadero DBExpress DataSnap Client Components</Excluded_Packages> 154 <Excluded_Packages Name="$(BDSBIN)\dclDataSnapCommon170.bpl">Embarcadero DBExpress DataSnap Common Design package</Excluded_Packages> 155 <Excluded_Packages Name="$(BDSBIN)\dclDataSnapIndy10ServerTransport170.bpl">Embarcadero DBExpress DataSnap Server Transport Components</Excluded_Packages> 156 <Excluded_Packages Name="$(BDSBIN)\dclDataSnapProviderClient170.bpl">Embarcadero DBExpress DataSnap Provider Client Components</Excluded_Packages> 157 <Excluded_Packages Name="$(BDSBIN)\dclDataSnapServer170.bpl">Embarcadero DBExpress DataSnap Server Components</Excluded_Packages> 158 <Excluded_Packages Name="$(BDSBIN)\dclDataSnapConnectors170.bpl">Embarcadero DataSnap Connector Components</Excluded_Packages> 159 <Excluded_Packages Name="$(BDSBIN)\dcloffice2k170.bpl">Microsoft Office 2000 Sample Automation Server Wrapper Components</Excluded_Packages> 160 <Excluded_Packages Name="$(BDSBIN)\dclofficexp170.bpl">Microsoft Office XP Sample Automation Server Wrapper Components</Excluded_Packages> 161 <Excluded_Packages Name="C:\Program Files\FastReports\LibD17\dclfs17.bpl">File C:\Program Files\FastReports\LibD17\dclfs17.bpl not found</Excluded_Packages> 162 <Excluded_Packages Name="C:\Program Files\FastReports\LibD17\dclfrx17.bpl">File C:\Program Files\FastReports\LibD17\dclfrx17.bpl not found</Excluded_Packages> 163 <Excluded_Packages Name="C:\Program Files\FastReports\LibD17\dclfsDB17.bpl">File C:\Program Files\FastReports\LibD17\dclfsDB17.bpl not found</Excluded_Packages> 164 <Excluded_Packages Name="C:\Program Files\FastReports\LibD17\dclfrxDB17.bpl">File C:\Program Files\FastReports\LibD17\dclfrxDB17.bpl not found</Excluded_Packages> 165 <Excluded_Packages Name="C:\Program Files\FastReports\LibD17\dclfrxe17.bpl">File C:\Program Files\FastReports\LibD17\dclfrxe17.bpl not found</Excluded_Packages> 139 <Excluded_Packages Name="$(BDSBIN)\dcloffice2k180.bpl">Microsoft Office 2000 Sample Automation Server Wrapper Components</Excluded_Packages> 140 <Excluded_Packages Name="$(BDSBIN)\dclofficexp180.bpl">Microsoft Office XP Sample Automation Server Wrapper Components</Excluded_Packages> 166 141 </Excluded_Packages> 167 142 <Source> -
platform/trunk/Demo/ProjectGroupDemo.groupproj
r10 r11 1 1 <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> 2 2 <PropertyGroup> 3 <ProjectGuid>{ 7010F654-75CD-4D4D-A4CB-CC5146AD99F2}</ProjectGuid>3 <ProjectGuid>{899CB87A-4824-4F8D-B9AF-4A7885362224}</ProjectGuid> 4 4 </PropertyGroup> 5 5 <ItemGroup> -
platform/trunk/LDPlatform.Core.dfm
r10 r11 2 2 OldCreateOrder = False 3 3 OnCreate = DataModuleCreate 4 Height = 464 5 Width = 582 4 OnDestroy = DataModuleDestroy 5 Height = 526 6 Width = 625 6 7 object ActionList1: TActionList 7 8 Images = ImageList1 … … 16 17 OnExecute = AQuitExecute 17 18 end 19 object AFileOpen: TAction 20 Caption = '&Open...' 21 ShortCut = 16463 22 OnExecute = AFileOpenExecute 23 end 24 object AFileClose: TAction 25 Caption = 'Close' 26 end 27 object AFileSave: TAction 28 Caption = 'Save' 29 ShortCut = 16467 30 OnExecute = AFileSaveExecute 31 end 32 object AFileSaveAs: TAction 33 Caption = 'Save as...' 34 OnExecute = AFileSaveAsExecute 35 end 36 object ANew: TAction 37 Caption = 'Other...' 38 OnExecute = ANewExecute 39 end 40 object AFileCloseAll: TAction 41 Caption = 'Close all' 42 end 43 object AFileSaveAll: TAction 44 Caption = 'Save all' 45 end 46 object AHelpAbout: TAction 47 Caption = 'About' 48 end 18 49 end 19 50 object ImageList1: TImageList … … 21 52 Top = 144 22 53 end 54 object OpenDialog1: TOpenDialog 55 Filter = 56 'Delphi project (.dpr)|*.dpr|Delphi source (.pas)|*.pas|Delphi pa' + 57 'ckage (.dpk)|*.dpk|Any file|*.*' 58 Left = 432 59 Top = 312 60 end 61 object SaveDialog1: TSaveDialog 62 Left = 352 63 Top = 312 64 end 23 65 end -
platform/trunk/LDPlatform.Core.pas
r10 r11 5 5 uses 6 6 System.SysUtils, System.Classes, Vcl.Forms, LDPlatform.FormMain, LDPlatform.FormOptions, 7 System.Actions, Vcl.ActnList, Vcl.ImgList, Vcl.Controls; 7 System.Actions, Vcl.ActnList, Vcl.ImgList, Vcl.Controls, LDPlatform.FormNew, 8 Generics.Collections, Vcl.Dialogs, UProject; 8 9 9 10 type 11 TOpenedFile = class 12 FileName: string; 13 end; 14 10 15 TCore = class(TDataModule) 11 16 ActionList1: TActionList; … … 13 18 AOptions: TAction; 14 19 AQuit: TAction; 20 AFileOpen: TAction; 21 AFileClose: TAction; 22 AFileSave: TAction; 23 AFileSaveAs: TAction; 24 ANew: TAction; 25 AFileCloseAll: TAction; 26 AFileSaveAll: TAction; 27 AHelpAbout: TAction; 28 OpenDialog1: TOpenDialog; 29 SaveDialog1: TSaveDialog; 15 30 procedure DataModuleCreate(Sender: TObject); 31 procedure DataModuleDestroy(Sender: TObject); 16 32 procedure AOptionsExecute(Sender: TObject); 17 33 procedure AQuitExecute(Sender: TObject); 34 procedure ANewExecute(Sender: TObject); 35 procedure AFileOpenExecute(Sender: TObject); 36 procedure AFileSaveAsExecute(Sender: TObject); 37 procedure AFileSaveExecute(Sender: TObject); 18 38 private 19 39 { Private declarations } 20 40 public 41 Project: TProject; 42 OpenedFiles: TList<TOpenedFile>; 43 FormNew: TFormNew; 21 44 FormMain: TFormMain; 22 45 FormOptions: TFormOptions; … … 31 54 32 55 {$R *.dfm} 56 57 procedure TCore.AFileOpenExecute(Sender: TObject); 58 begin 59 if OpenDialog1.Execute then begin 60 Project.LoadFromFile(OpenDialog1.FileName); 61 end; 62 end; 63 64 procedure TCore.AFileSaveAsExecute(Sender: TObject); 65 begin 66 SaveDialog1.FileName := Project.FileName; 67 if SaveDialog1.Execute then begin 68 Project.SaveToFile(SaveDialog1.FileName); 69 end; 70 end; 71 72 procedure TCore.AFileSaveExecute(Sender: TObject); 73 begin 74 if Project.Modified then AFileSaveAs.Execute 75 else Project.Save; 76 end; 77 78 procedure TCore.ANewExecute(Sender: TObject); 79 begin 80 try 81 FormNew := TFormNew.Create(nil); 82 //FormNew.Load; 83 if FormNew.ShowModal = mrOk then begin 84 //FormOptions.Save; 85 end; 86 finally 87 FreeAndNil(FormNew); 88 end; 89 end; 33 90 34 91 procedure TCore.AOptionsExecute(Sender: TObject); … … 52 109 procedure TCore.DataModuleCreate(Sender: TObject); 53 110 begin 111 Project := TProject.Create; 112 OpenedFiles := TList<TOpenedFile>.Create; 54 113 Application.CreateForm(TFormMain, FormMain); 55 114 FormMain.Show; 56 115 end; 57 116 117 procedure TCore.DataModuleDestroy(Sender: TObject); 118 begin 119 Project.Free; 120 OpenedFiles.Free; 121 end; 122 58 123 end. -
platform/trunk/LDPlatform.FormMain.dfm
r10 r11 28 28 object File1: TMenuItem 29 29 Caption = 'File' 30 object MenuItemNew: TMenuItem 31 Caption = 'New' 32 object N1: TMenuItem 33 Caption = '-' 34 end 35 object Options2: TMenuItem 36 Action = Core.ANew 37 end 38 end 39 object Open1: TMenuItem 40 Action = Core.AFileOpen 41 end 42 object Reopen1: TMenuItem 43 Caption = 'Reopen' 44 object TMenuItem 45 end 46 end 47 object Save1: TMenuItem 48 Action = Core.AFileSave 49 end 50 object Saveas1: TMenuItem 51 Action = Core.AFileSaveAs 52 end 53 object Saveall1: TMenuItem 54 Action = Core.AFileSaveAll 55 end 56 object Close1: TMenuItem 57 Action = Core.AFileClose 58 end 59 object Closeall1: TMenuItem 60 Action = Core.AFileCloseAll 61 end 62 object N2: TMenuItem 63 Caption = '-' 64 end 30 65 object Quit1: TMenuItem 31 66 Action = Core.AQuit … … 38 73 end 39 74 end 75 object Help1: TMenuItem 76 Caption = 'Help' 77 object About1: TMenuItem 78 Action = Core.AHelpAbout 79 end 80 end 40 81 end 41 82 end -
platform/trunk/LDPlatform.FormMain.pas
r10 r11 18 18 Options1: TMenuItem; 19 19 Quit1: TMenuItem; 20 MenuItemNew: TMenuItem; 21 N1: TMenuItem; 22 Options2: TMenuItem; 23 N2: TMenuItem; 24 Open1: TMenuItem; 25 Save1: TMenuItem; 26 Saveas1: TMenuItem; 27 Saveall1: TMenuItem; 28 Close1: TMenuItem; 29 Closeall1: TMenuItem; 30 Reopen1: TMenuItem; 31 Help1: TMenuItem; 32 About1: TMenuItem; 20 33 private 21 34 { Private declarations } -
platform/trunk/LDPlatform.dpk
r10 r11 26 26 {$DEFINE DEBUG} 27 27 {$ENDIF IMPLICITBUILDING} 28 {$DESIGNONLY} 28 29 {$IMPLICITBUILD ON} 29 30 … … 31 32 rtl, 32 33 vcl, 33 vclactnband; 34 vclactnband, 35 xmlrtl; 34 36 35 37 contains … … 37 39 LDPlatform.FormOptions in 'LDPlatform.FormOptions.pas' {FormOptions}, 38 40 ULDPlatform in 'ULDPlatform.pas', 39 LDPlatform.Core in 'LDPlatform.Core.pas' {Core: TDataModule}; 41 LDPlatform.Core in 'LDPlatform.Core.pas' {Core: TDataModule}, 42 LDPlatform.FormNew in 'LDPlatform.FormNew.pas' {FormNew}, 43 UProject in 'UProject.pas', 44 LDPlatform.FormSource in 'LDPlatform.FormSource.pas' {FormSource}; 40 45 41 46 end. -
platform/trunk/LDPlatform.dproj
r10 r11 46 46 </PropertyGroup> 47 47 <PropertyGroup Condition="'$(Base)'!=''"> 48 <DesignOnlyPackage>true</DesignOnlyPackage> 48 49 <DCC_Namespace>System;Xml;Data;Datasnap;Web;Soap;Vcl;Vcl.Imaging;Vcl.Touch;Vcl.Samples;Vcl.Shell;$(DCC_Namespace)</DCC_Namespace> 49 50 <GenPackage>true</GenPackage> … … 75 76 </PropertyGroup> 76 77 <PropertyGroup Condition="'$(Cfg_1_Win32)'!=''"> 78 <VerInfo_IncludeVerInfo>true</VerInfo_IncludeVerInfo> 79 <VerInfo_Locale>1033</VerInfo_Locale> 77 80 <DCC_RemoteDebug>false</DCC_RemoteDebug> 78 81 </PropertyGroup> … … 90 93 <DCCReference Include="vcl.dcp"/> 91 94 <DCCReference Include="vclactnband.dcp"/> 95 <DCCReference Include="xmlrtl.dcp"/> 92 96 <DCCReference Include="LDPlatform.FormMain.pas"> 93 97 <Form>FormMain</Form> … … 102 106 <FormType>dfm</FormType> 103 107 <DesignClass>TDataModule</DesignClass> 108 </DCCReference> 109 <DCCReference Include="LDPlatform.FormNew.pas"> 110 <Form>FormNew</Form> 111 <FormType>dfm</FormType> 112 </DCCReference> 113 <DCCReference Include="UProject.pas"/> 114 <DCCReference Include="LDPlatform.FormSource.pas"> 115 <Form>FormSource</Form> 116 <FormType>dfm</FormType> 104 117 </DCCReference> 105 118 <BuildConfiguration Include="Release"> … … 159 172 </VersionInfoKeys> 160 173 <Excluded_Packages> 161 <Excluded_Packages Name="$(BDSBIN)\dcldb170.bpl">Embarcadero Database Components</Excluded_Packages> 162 <Excluded_Packages Name="$(BDSBIN)\dclwebsnap170.bpl">Embarcadero WebSnap Components</Excluded_Packages> 163 <Excluded_Packages Name="$(BDSBIN)\dclwbm170.bpl">Embarcadero InternetExpress Components</Excluded_Packages> 164 <Excluded_Packages Name="$(BDSBIN)\dclmid170.bpl">Embarcadero MyBase DataAccess Components</Excluded_Packages> 165 <Excluded_Packages Name="$(BDSBIN)\dclbindcomp170.bpl">Embarcadero LiveBindings Components</Excluded_Packages> 166 <Excluded_Packages Name="$(BDSBIN)\dclbindcompfmx170.bpl">Embarcadero LiveBindings Components FireMonkey</Excluded_Packages> 167 <Excluded_Packages Name="$(BDSBIN)\dclbindcompvcl170.bpl">Embarcadero LiveBindings Components VCL</Excluded_Packages> 168 <Excluded_Packages Name="$(BDSBIN)\dclbde170.bpl">Embarcadero BDE DB Components</Excluded_Packages> 169 <Excluded_Packages Name="$(BDSBIN)\dclib170.bpl">Embarcadero InterBase Express Components</Excluded_Packages> 170 <Excluded_Packages Name="$(BDSBIN)\dclado170.bpl">Embarcadero ADO DB Components</Excluded_Packages> 171 <Excluded_Packages Name="$(BDSBIN)\DataExplorerDBXPluginInt170.bpl">DBExpress InterBase Data Explorer Integration</Excluded_Packages> 172 <Excluded_Packages Name="$(BDSBIN)\dclbindcompdbx170.bpl">LiveBindings Expression Components DbExpress</Excluded_Packages> 173 <Excluded_Packages Name="$(BDSBIN)\dcldbx170.bpl">Embarcadero dbExpress Components</Excluded_Packages> 174 <Excluded_Packages Name="$(BDSBIN)\dcldbxcds170.bpl">Embarcadero SimpleDataset Component (DBX)</Excluded_Packages> 175 <Excluded_Packages Name="$(BDSBIN)\DataExplorerDBXPlugin170.bpl">DBExpress Data Explorer Integration</Excluded_Packages> 176 <Excluded_Packages Name="$(BDSBIN)\dclmcn170.bpl">Embarcadero DataSnap Connection Components</Excluded_Packages> 177 <Excluded_Packages Name="$(BDSBIN)\DataExplorerDBXPluginEnt170.bpl">DBExpress Enterprise Data Explorer Integration</Excluded_Packages> 178 <Excluded_Packages Name="$(BDSBIN)\dclDataSnapClient170.bpl">Embarcadero DBExpress DataSnap Client Components</Excluded_Packages> 179 <Excluded_Packages Name="$(BDSBIN)\dclDataSnapCommon170.bpl">Embarcadero DBExpress DataSnap Common Design package</Excluded_Packages> 180 <Excluded_Packages Name="$(BDSBIN)\dclDataSnapIndy10ServerTransport170.bpl">Embarcadero DBExpress DataSnap Server Transport Components</Excluded_Packages> 181 <Excluded_Packages Name="$(BDSBIN)\dclDataSnapProviderClient170.bpl">Embarcadero DBExpress DataSnap Provider Client Components</Excluded_Packages> 182 <Excluded_Packages Name="$(BDSBIN)\dclDataSnapServer170.bpl">Embarcadero DBExpress DataSnap Server Components</Excluded_Packages> 183 <Excluded_Packages Name="$(BDSBIN)\dclDataSnapConnectors170.bpl">Embarcadero DataSnap Connector Components</Excluded_Packages> 184 <Excluded_Packages Name="$(BDSBIN)\dcloffice2k170.bpl">Microsoft Office 2000 Sample Automation Server Wrapper Components</Excluded_Packages> 185 <Excluded_Packages Name="$(BDSBIN)\dclofficexp170.bpl">Microsoft Office XP Sample Automation Server Wrapper Components</Excluded_Packages> 186 <Excluded_Packages Name="C:\Program Files\FastReports\LibD17\dclfs17.bpl">File C:\Program Files\FastReports\LibD17\dclfs17.bpl not found</Excluded_Packages> 187 <Excluded_Packages Name="C:\Program Files\FastReports\LibD17\dclfrx17.bpl">File C:\Program Files\FastReports\LibD17\dclfrx17.bpl not found</Excluded_Packages> 188 <Excluded_Packages Name="C:\Program Files\FastReports\LibD17\dclfsDB17.bpl">File C:\Program Files\FastReports\LibD17\dclfsDB17.bpl not found</Excluded_Packages> 189 <Excluded_Packages Name="C:\Program Files\FastReports\LibD17\dclfrxDB17.bpl">File C:\Program Files\FastReports\LibD17\dclfrxDB17.bpl not found</Excluded_Packages> 190 <Excluded_Packages Name="C:\Program Files\FastReports\LibD17\dclfrxe17.bpl">File C:\Program Files\FastReports\LibD17\dclfrxe17.bpl not found</Excluded_Packages> 174 <Excluded_Packages Name="$(BDSBIN)\dcloffice2k180.bpl">Microsoft Office 2000 Sample Automation Server Wrapper Components</Excluded_Packages> 175 <Excluded_Packages Name="$(BDSBIN)\dclofficexp180.bpl">Microsoft Office XP Sample Automation Server Wrapper Components</Excluded_Packages> 191 176 </Excluded_Packages> 192 177 </Delphi.Personality> -
platform/trunk/ULDPlatform.pas
r10 r11 15 15 Core: TCore; 16 16 procedure Show; 17 constructor Create(AOwnere: TComponent); override; 18 destructor Destroy; override; 17 19 published 18 20 end; … … 29 31 { TLDPlatform } 30 32 31 procedure TLDPlatform.Show;33 constructor TLDPlatform.Create(AOwnere: TComponent); 32 34 begin 35 inherited; 33 36 Core := TCore.Create(Self); 34 37 end; 35 38 39 destructor TLDPlatform.Destroy; 40 begin 41 inherited; 42 end; 43 44 procedure TLDPlatform.Show; 45 begin 46 end; 47 36 48 end.
Note:
See TracChangeset
for help on using the changeset viewer.