- Timestamp:
- Nov 24, 2021, 7:34:57 PM (4 years ago)
- Location:
- trunk
- Files:
- 
      - 12 edited
 
 - 
          
  . (modified) (1 prop)
- 
          
  Forms/UFormContact.pas (modified) (1 diff)
- 
          
  Forms/UFormContacts.pas (modified) (1 diff)
- 
          
  Forms/UFormFindDuplicity.pas (modified) (7 diffs)
- 
          
  Forms/UFormGenerate.pas (modified) (2 diffs)
- 
          
  Install/snap/snapcraft.yaml (modified) (1 diff)
- 
          
  UContact.pas (modified) (3 diffs)
- 
          
  UCore.lfm (modified) (1 diff)
- 
          
  UCore.pas (modified) (1 diff)
- 
          
  UDataFile.pas (modified) (2 diffs)
- 
          
  vCardStudio.lpi (modified) (1 diff)
- 
          
  vCardStudio.lpr (modified) (1 diff)
 
Legend:
- Unmodified
- Added
- Removed
- 
      trunk- Property svn:ignore
- 
      old new 6 6 *.res 7 7 vCardStudio.exe 8 vCardStudio.dbg 
 
- 
      
 
- Property svn:ignore
- 
      trunk/Forms/UFormContact.pasr23 r29 87 87 var 88 88 FormContact: TFormContact; 89 89 90 90 91 implementation 
- 
      trunk/Forms/UFormContacts.pasr23 r29 43 43 FContacts: TContacts; 44 44 procedure SetContacts(AValue: TContacts); 45 46 45 public 47 46 property Contacts: TContacts read FContacts write SetContacts; 
- 
      trunk/Forms/UFormFindDuplicity.pasr23 r29 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ComCtrls, 9 ExtCtrls, StdCtrls, ActnList, Menus, Contnrs, UContact;9 ExtCtrls, StdCtrls, ActnList, Menus, fgl, UContact; 10 10 11 11 type … … 22 22 { TFoundItems } 23 23 24 TFoundItems = class(T ObjectList)24 TFoundItems = class(TFPGObjectList<TFoundItem>) 25 25 function SearchByField(Field: string): TFoundItem; 26 26 end; … … 47 47 FContacts: TContacts; 48 48 procedure SetContacts(AValue: TContacts); 49 50 49 public 51 50 FoundItems: TFoundItems; … … 59 58 FormFindDuplicity: TFormFindDuplicity; 60 59 60 61 61 implementation 62 62 … … 89 89 destructor TFoundItem.Destroy; 90 90 begin 91 Contacts.Free;92 inherited Destroy;91 FreeAndNil(Contacts); 92 inherited; 93 93 end; 94 94 … … 118 118 end; 119 119 120 function FoundItemsSort( Item1, Item2: Pointer): Integer;121 begin 122 if TFoundItem(Item1).Contacts.Count < TFoundItem(Item2).Contacts.Count then Result := 1123 else if TFoundItem(Item1).Contacts.Count > TFoundItem(Item2).Contacts.Count then Result := -1120 function FoundItemsSort(const Item1, Item2: TFoundItem): Integer; 121 begin 122 if Item1.Contacts.Count < Item2.Contacts.Count then Result := 1 123 else if Item1.Contacts.Count > Item2.Contacts.Count then Result := -1 124 124 else Result := 0; 125 125 end; … … 206 206 procedure TFormFindDuplicity.FormDestroy(Sender: TObject); 207 207 begin 208 F oundItems.Free;208 FreeAndNil(FoundItems); 209 209 end; 210 210 
- 
      trunk/Forms/UFormGenerate.pasr23 r29 21 21 procedure FormCreate(Sender: TObject); 22 22 procedure FormShow(Sender: TObject); 23 private24 25 23 public 26 24 Contacts: TContacts; … … 30 28 var 31 29 FormGenerate: TFormGenerate; 30 32 31 33 32 implementation 
- 
      trunk/Install/snap/snapcraft.yamlr26 r29 88 88 - desktop 89 89 - x11 90 - home 90 91 91 92 layout: 
- 
      trunk/UContact.pasr21 r29 6 6 7 7 uses 8 Classes, SysUtils, Contnrs, Dialogs, UDataFile, LazUTF8, base64;8 Classes, SysUtils, fgl, Dialogs, UDataFile, LazUTF8, base64; 9 9 10 10 type … … 32 32 { TContactFields } 33 33 34 TContactFields = class(T ObjectList)34 TContactFields = class(TFPGObjectList<TContactField>) 35 35 function AddNew(Name: string; Index: TContactFieldIndex; DataType: 36 36 TDataType): TContactField; … … 86 86 { TContacts } 87 87 88 TContacts = class(T ObjectList)88 TContacts = class(TFPGObjectList<TContact>) 89 89 ContactsFile: TContactsFile; 90 90 function AddNew: TContact; 
- 
      trunk/UCore.lfmr26 r29 501 501 AppName = 'vCard Studio' 502 502 Description = 'vCard files management tool' 503 ReleaseDate = 44 427503 ReleaseDate = 44524 504 504 RegistryKey = '\Software\Chronosoft\vCard Studio' 505 505 RegistryRoot = rrKeyCurrentUser 
- 
      trunk/UCore.pasr23 r29 96 96 97 97 uses 98 UFormMain, UForm About, UFormSettings, UContact, UFormContacts, UFormFindDuplicity,98 UFormMain, UFormSettings, UContact, UFormContacts, UFormFindDuplicity, 99 99 UFormGenerate; 100 100 
- 
      trunk/UDataFile.pasr3 r29 6 6 7 7 uses 8 Classes, SysUtils, Contnrs;8 Classes, SysUtils, fgl; 9 9 10 10 type … … 33 33 TDataFileClass = class of TDataFile; 34 34 35 TDataFiles = class(T ObjectList)35 TDataFiles = class(TFPGObjectList<TDataFile>) 36 36 end; 37 37 
- 
      trunk/vCardStudio.lpir22 r29 197 197 <Debugging> 198 198 <UseHeaptrc Value="True"/> 199 <UseExternalDbgSyms Value="True"/> 199 200 </Debugging> 200 201 <Options> 
- 
      trunk/vCardStudio.lprr23 r29 21 21 begin 22 22 Application.Scaled:=True; 23 Application.Title :='vCard Studio';23 Application.Title := 'vCard Studio'; 24 24 {$if declared(UseHeapTrace)} 25 25 DeleteFile(ExtractFilePath(ParamStr(0)) + HeapTraceLog); 
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  
