Changeset 52
- Timestamp:
- Apr 3, 2012, 7:28:01 AM (13 years ago)
- Location:
- trunk/Client
- Files:
-
- 3 added
- 3 deleted
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Client/Application/UChronisModule.pas
r51 r52 6 6 7 7 uses 8 Classes, SysUtils, SpecializedList, U ChronisClient;8 Classes, SysUtils, SpecializedList, UPDClient; 9 9 10 10 type -
trunk/Client/Application/UDataTypes.pas
r46 r52 7 7 uses 8 8 Classes, SysUtils, Controls, Spin, StdCtrls, ExtCtrls, MaskEdit, EditBtn, 9 U ChronisClient;9 UPDClient; 10 10 11 11 type … … 155 155 156 156 uses 157 USqlDatabase, U System, UCore, UFormItemSelect, UFormMain;157 USqlDatabase, UFormItemSelect, UFormMain, UCore, USystem; 158 158 159 159 function GetDataType(ACustomType: Integer): TDataType; -
trunk/Client/Forms/UFormItemAdd.pas
r46 r52 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ExtCtrls, 9 9 StdCtrls, Spin, EditBtn, MaskEdit, USqlDatabase, USystem, 10 SpecializedDictionary, SpecializedList, U ChronisClient;10 SpecializedDictionary, SpecializedList, UPDClient; 11 11 12 12 type -
trunk/Client/Forms/UFormItemEdit.pas
r49 r52 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ExtCtrls, 9 9 StdCtrls, Spin, EditBtn, USqlDatabase, MaskEdit, ComCtrls, USystem, 10 SpecializedList, SpecializedDictionary, U ChronisClient;10 SpecializedList, SpecializedDictionary, UPDClient; 11 11 12 12 type -
trunk/Client/Forms/UFormLoginProfile.pas
r50 r52 10 10 11 11 type 12 TConnectProtocol = (cpXMLRPC, cpDirect, cpMySQL );12 TConnectProtocol = (cpXMLRPC, cpDirect, cpMySQL, cpINI, cpRegistry, cpSQLLite); 13 13 14 14 { TConnectProfile } -
trunk/Client/Forms/UFormMain.pas
r50 r52 92 92 uses 93 93 UFormItemView, UFormItemEdit, UFormItemAdd, UFormLogin, UFormSetting, UApplicationInfo, 94 UCore, UFormImportStructure, UFormAbout, UFormLoginProfile, U ChronisClientDirect,95 U ChronisClient, UChronisClientMySQL, UChronisClientXMLRPC, UFormMenu;94 UCore, UFormImportStructure, UFormAbout, UFormLoginProfile, UPDClientIni, 95 UPDClient, UPDClientMySQL, UPDClientXMLRPC, UFormMenu, UPDClientRegistry; 96 96 97 97 {$R *.lfm} … … 241 241 with TConnectProfile(Core.Profiles[Core.LastProfile]) do begin 242 242 FreeAndNil(Core.System.Client); 243 if Protocol = cpMySQL then Core.System.Client := TChronisClientMySQL.Create 244 else if Protocol = cpDirect then Core.System.Client := TChronisClientDirect.Create 245 else if Protocol = cpXMLRPC then Core.System.Client := TChronisClientXMLRPC.Create; 243 if Protocol = cpMySQL then Core.System.Client := TPDClientMySQL.Create 244 //else if Protocol = cpDirect then Core.System.Client := TPDClientDirect.Create 245 else if Protocol = cpXMLRPC then Core.System.Client := TPDClientXMLRPC.Create 246 else if Protocol = cpINI then Core.System.Client := TPDClientIni.Create 247 else if Protocol = cpRegistry then Core.System.Client := TPDClientRegistry.Create; 246 248 Core.System.Client.Host := HostName; 247 249 Core.System.Client.Schema := Database; -
trunk/Client/Forms/UFormMenu.pas
r49 r52 54 54 55 55 uses 56 UFormMain, USystem, U ChronisClient, UChronisClientMySQL, UCore;56 UFormMain, USystem, UPDClient, UCore; 57 57 58 58 procedure TFormMenu.TreeViewMenuChange(Sender: TObject; Node: TTreeNode); -
trunk/Client/Module/UModuleSystem.pas
r51 r52 27 27 28 28 uses 29 USystem, USqlDatabase, U ChronisClient;29 USystem, USqlDatabase, UPDClient; 30 30 31 31 { TModuleSystem } -
trunk/Client/Module/UModuleUser.pas
r51 r52 6 6 7 7 uses 8 Classes, SysUtils, U ChronisClient, UChronisModule;8 Classes, SysUtils, UPDClient, UChronisModule; 9 9 10 10 type -
trunk/Client/UCore.pas
r46 r52 7 7 uses 8 8 Classes, SysUtils, FileUtil, UCoolTranslator, UDebugLog, USystem, Registry, 9 USqlDatabase, UFormLoginProfile, URegistry, U ChronisClient, UModuleSystem;9 USqlDatabase, UFormLoginProfile, URegistry, UPDClient, UModuleSystem; 10 10 11 11 type … … 43 43 44 44 uses 45 UApplicationInfo , UChronisClientDirect, UChronisClientMySQL;45 UApplicationInfo; 46 46 47 47 { TCore } -
trunk/Client/USystem.pas
r51 r52 7 7 uses 8 8 Classes, SysUtils, SpecializedList, SpecializedDictionary, USqlDatabase, 9 Strings, UDataTypes, Dialogs, ComCtrls, StdCtrls, Controls, U ChronisClient,9 Strings, UDataTypes, Dialogs, ComCtrls, StdCtrls, Controls, UPDClient, 10 10 UChronisModule; 11 11 … … 93 93 Base: TChronisBase; 94 94 procedure UpdateList; 95 function IsInstalled: Boolean; 95 96 procedure Install; 96 97 procedure Uninstall; … … 104 105 procedure SetActive(AValue: Boolean); 105 106 public 106 Types: T ChronisTypeList;107 Client: T ChronisClient;107 Types: TPDTypeList; 108 Client: TPDClient; 108 109 Modules: TChronisModuleList; 109 110 ModuleSystem: TChronisModule; … … 635 636 Types.Clear; 636 637 for I := 0 to Proxy.Objects.Count - 1 do begin 637 with T ChronisType(Types.AddNew(TChronisType.Create)) do638 with TPDType(Types.AddNew(TPDType.Create)) do 638 639 with TObjectProxy(Proxy.Objects[I]) do begin 639 640 Id := StrToInt(Properties.Values['Id']); … … 667 668 constructor TChronisBase.Create; 668 669 begin 669 Types := T ChronisTypeList.Create;670 Types := TPDTypeList.Create; 670 671 Modules := TChronisModuleList.Create; 671 672 Modules.Base := Self; … … 781 782 end; 782 783 784 function TChronisModuleList.IsInstalled: Boolean; 785 var 786 NewType: TPDType; 787 begin 788 with TPDType.Create do 789 try 790 Client := Base.Client; 791 Name := SystemModuleObject; 792 Result := IsDefined; 793 finally 794 Free; 795 end; 796 end; 797 783 798 procedure TChronisModuleList.Install; 784 799 var 785 NewType: TChronisType; 786 begin 787 NewType := TChronisType.Create; 788 NewType.Client := Base.Client; 789 NewType.Name := SystemModuleObject; 790 NewType.Properties.Add('SysName', 'String'); 791 NewType.Properties.Add('Name', 'String'); 792 NewType.Properties.Add('Version', 'String'); 793 NewType.Properties.Add('License', 'String'); 794 NewType.Properties.Add('Creator', 'String'); 795 NewType.Properties.Add('HomePage', 'String'); 796 NewType.Properties.Add('Installed', 'Boolean'); 797 NewType.Define; 800 NewType: TPDType; 801 begin 802 with TPDType.Create do 803 try 804 Client := Base.Client; 805 Name := SystemModuleObject; 806 with Properties do begin 807 Add('SysName', 'String'); 808 Add('Name', 'String'); 809 Add('Version', 'String'); 810 Add('License', 'String'); 811 Add('Creator', 'String'); 812 Add('HomePage', 'String'); 813 Add('Installed', 'Boolean'); 814 end; 815 Define; 816 finally 817 Free; 818 end; 798 819 end; 799 820 800 821 procedure TChronisModuleList.Uninstall; 801 822 var 802 NewType: TChronisType; 803 begin 804 NewType := TChronisType.Create; 805 NewType.Client := Base.Client; 806 NewType.Name := SystemModuleObject; 807 NewType.Undefine; 823 NewType: TPDType; 824 begin 825 with TPDType.Create do 826 try 827 Client := Base.Client; 828 Name := SystemModuleObject; 829 Undefine; 830 finally 831 Free; 832 end; 808 833 end; 809 834 -
trunk/Client/chronis.lpi
r51 r52 82 82 </local> 83 83 </RunParams> 84 <RequiredPackages Count=" 6">84 <RequiredPackages Count="7"> 85 85 <Item1> 86 <PackageName Value=" Common"/>86 <PackageName Value="PersistentData"/> 87 87 </Item1> 88 88 <Item2> 89 <PackageName Value="CoolWeb"/> 90 <MinVersion Valid="True"/> 89 <PackageName Value="Common"/> 91 90 </Item2> 92 91 <Item3> 93 <PackageName Value="Cool Translator"/>92 <PackageName Value="CoolWeb"/> 94 93 <MinVersion Valid="True"/> 95 94 </Item3> 96 95 <Item4> 97 <PackageName Value=" LCLBase"/>96 <PackageName Value="CoolTranslator"/> 98 97 <MinVersion Valid="True"/> 99 98 </Item4> 100 99 <Item5> 101 <PackageName Value="TemplateGenerics"/> 100 <PackageName Value="LCLBase"/> 101 <MinVersion Valid="True"/> 102 102 </Item5> 103 103 <Item6> 104 <PackageName Value="TemplateGenerics"/> 105 </Item6> 106 <Item7> 104 107 <PackageName Value="LCL"/> 105 </Item 6>108 </Item7> 106 109 </RequiredPackages> 107 <Units Count="2 8">110 <Units Count="23"> 108 111 <Unit0> 109 112 <Filename Value="chronis.lpr"/> … … 217 220 </Unit16> 218 221 <Unit17> 219 <Filename Value="Application/UChronis Client.pas"/>220 <IsPartOfProject Value="True"/> 221 <UnitName Value="UChronis Client"/>222 <Filename Value="Application/UChronisModule.pas"/> 223 <IsPartOfProject Value="True"/> 224 <UnitName Value="UChronisModule"/> 222 225 </Unit17> 223 226 <Unit18> 224 <Filename Value=" Application/UChronisServer.pas"/>225 <IsPartOfProject Value="True"/> 226 <UnitName Value="U ChronisServer"/>227 <Filename Value="Module/UModuleSystem.pas"/> 228 <IsPartOfProject Value="True"/> 229 <UnitName Value="UModuleSystem"/> 227 230 </Unit18> 228 231 <Unit19> 229 <Filename Value="Application/Clients/UChronisClientDirect.pas"/> 230 <IsPartOfProject Value="True"/> 231 <UnitName Value="UChronisClientDirect"/> 232 <Filename Value="Forms/UFormItemList.pas"/> 233 <IsPartOfProject Value="True"/> 234 <ComponentName Value="ItemListForm"/> 235 <ResourceBaseClass Value="Form"/> 236 <UnitName Value="UFormItemList"/> 232 237 </Unit19> 233 238 <Unit20> 234 <Filename Value=" Application/UChronisModule.pas"/>235 <IsPartOfProject Value="True"/> 236 <UnitName Value="U ChronisModule"/>239 <Filename Value="Common/URemote.pas"/> 240 <IsPartOfProject Value="True"/> 241 <UnitName Value="URemote"/> 237 242 </Unit20> 238 243 <Unit21> 239 <Filename Value="Module/UModule System.pas"/>240 <IsPartOfProject Value="True"/> 241 <UnitName Value="UModule System"/>244 <Filename Value="Module/UModuleUser.pas"/> 245 <IsPartOfProject Value="True"/> 246 <UnitName Value="UModuleUser"/> 242 247 </Unit21> 243 248 <Unit22> 244 <Filename Value="Forms/UForm ItemList.pas"/>245 <IsPartOfProject Value="True"/> 246 <ComponentName Value=" ItemListForm"/>247 <ResourceBaseClass Value="Form"/> 248 <UnitName Value="UForm ItemList"/>249 <Filename Value="Forms/UFormMenu.pas"/> 250 <IsPartOfProject Value="True"/> 251 <ComponentName Value="FormMenu"/> 252 <ResourceBaseClass Value="Form"/> 253 <UnitName Value="UFormMenu"/> 249 254 </Unit22> 250 <Unit23>251 <Filename Value="Application/Clients/UChronisClientXMLRPC.pas"/>252 <IsPartOfProject Value="True"/>253 <UnitName Value="UChronisClientXMLRPC"/>254 </Unit23>255 <Unit24>256 <Filename Value="Application/Clients/UChronisClientMySQL.pas"/>257 <IsPartOfProject Value="True"/>258 <UnitName Value="UChronisClientMySQL"/>259 </Unit24>260 <Unit25>261 <Filename Value="Common/URemote.pas"/>262 <IsPartOfProject Value="True"/>263 <UnitName Value="URemote"/>264 </Unit25>265 <Unit26>266 <Filename Value="Module/UModuleUser.pas"/>267 <IsPartOfProject Value="True"/>268 <UnitName Value="UModuleUser"/>269 </Unit26>270 <Unit27>271 <Filename Value="Forms/UFormMenu.pas"/>272 <IsPartOfProject Value="True"/>273 <ComponentName Value="FormMenu"/>274 <ResourceBaseClass Value="Form"/>275 <UnitName Value="UFormMenu"/>276 </Unit27>277 255 </Units> 278 256 </ProjectOptions> … … 285 263 <IncludeFiles Value="$(ProjOutDir)"/> 286 264 <Libraries Value="/usr/lib/mysql;/usr/lib64/mysql"/> 287 <OtherUnitFiles Value="Common;Forms;Application;Module ;Application/Clients"/>265 <OtherUnitFiles Value="Common;Forms;Application;Module"/> 288 266 <UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)"/> 289 267 </SearchPaths> -
trunk/Client/chronis.lpr
r49 r52 10 10 Forms, UPersistentForm, UTreeState, SysUtils, UFormItemView, UFormItemEdit, 11 11 UFormLogin, UFormMain, UFormItemAdd, TemplateGenerics, CoolTranslator, Common, 12 CoolWeb, USystem, UCore, UApplicationInfo, UFormSetting, UDataTypes, 13 UFormImportStructure, UFormItemSelect, UFormLoginProfile, UFormAbout, 14 UChronisClient, UChronisServer, UChronisClientDirect, UChronisModule, 15 UModuleSystem, 16 UFormItemList, LDockTree, UChronisClientXMLRPC, UChronisClientMySQL, 17 URemote, UModuleUser, UFormMenu 12 CoolWeb, USystem, UCore, UApplicationInfo, UFormSetting, UFormImportStructure, 13 UFormItemSelect, UFormLoginProfile, UFormAbout, UChronisModule, UDataTypes, 14 UModuleSystem, UFormItemList, LDockTree, URemote, UModuleUser, UFormMenu 18 15 { you can add units after this }; 19 16
Note:
See TracChangeset
for help on using the changeset viewer.