Changeset 6 for trunk/UAcronym.pas


Ignore:
Timestamp:
Apr 21, 2016, 10:22:08 AM (9 years ago)
Author:
chronos
Message:
  • Added: Acronyms can be loaded from/saved to different files.
  • Added: Application remembers list of last used files.
  • Added: Show question dialog on exit if acronyms were modified.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UAcronym.pas

    r5 r6  
    7676
    7777  TAcronymDb = class
     78    FileName: string;
    7879    Sources: TObjectList; // TObjectList<TAcronymSource>
    7980    Acronyms: TAcronyms;
    8081    Contexts: TAcronymContexts;
     82    Modified: Boolean;
    8183    constructor Create;
    8284    destructor Destroy; override;
     
    222224  AcronymContext: TAcronymContext;
    223225begin
     226  Self.FileName := FileName;
    224227  Acronyms.Clear;
    225228  F := TStringList.Create;
     
    261264    Context.Free;
    262265  end;
     266  Modified := False;
    263267end;
    264268
     
    272276  Context: TStringList;
    273277begin
     278  Self.FileName := FileName;
    274279  F := TStringList.Create;
    275280  Line := TStringList.Create;
     
    299304    Context.Free;
    300305  end;
     306  Modified := False;
    301307end;
    302308
     
    336342    Acronym.Meanings.Add(Meaning);
    337343  end;
     344  Modified := True;
    338345end;
    339346
     
    352359    end;
    353360  end;
     361  Modified := True;
    354362end;
    355363
Note: See TracChangeset for help on using the changeset viewer.