Ignore:
Timestamp:
Aug 10, 2016, 11:24:45 PM (8 years ago)
Author:
chronos
Message:
  • Added: Acronym export action in menu Tools - Export. Supported formats are CSV and MediaWiki list/table.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormMain.pas

    r87 r90  
    1616
    1717  TFormMain = class(TForm)
     18    AExport: TAction;
    1819    AProcessImports: TAction;
    1920    AShowImportFormats: TAction;
     
    2829    AFileNew: TAction;
    2930    AFileOpen: TAction;
    30     AManualImport: TAction;
     31    AImport: TAction;
    3132    AShow: TAction;
    3233    AExit: TAction;
     
    5758    MenuItem23: TMenuItem;
    5859    MenuItem24: TMenuItem;
     60    MenuItem25: TMenuItem;
    5961    MenuItemToolbar: TMenuItem;
    6062    MenuItem4: TMenuItem;
     
    8890    TrayIcon1: TTrayIcon;
    8991    procedure AExitExecute(Sender: TObject);
     92    procedure AExportExecute(Sender: TObject);
    9093    procedure AFileCloseExecute(Sender: TObject);
    9194    procedure AFileNewExecute(Sender: TObject);
     
    9396    procedure AFileSaveAsExecute(Sender: TObject);
    9497    procedure AFileSaveExecute(Sender: TObject);
    95     procedure AManualImportExecute(Sender: TObject);
     98    procedure AImportExecute(Sender: TObject);
    9699    procedure AProcessImportsExecute(Sender: TObject);
    97100    procedure ASettingsExecute(Sender: TObject);
     
    150153
    151154uses
    152   UFormImport, UFormSettings, UFormCategories, UFormAcronyms,
     155  UFormImport, UFormSettings, UFormCategories, UFormAcronyms, UFormExport,
    153156  UFormImportSources, UFormAbout, UFormImportFormats, UCore;
    154157
     
    199202begin
    200203  Close;
     204end;
     205
     206procedure TFormMain.AExportExecute(Sender: TObject);
     207begin
     208  FormExport.ShowModal;
    201209end;
    202210
     
    270278end;
    271279
    272 procedure TFormMain.AManualImportExecute(Sender: TObject);
     280procedure TFormMain.AImportExecute(Sender: TObject);
    273281begin
    274282  FormImport.ShowModal;
     
    421429    case Column of
    422430      0: Result := CompareString(TAcronymMeaning(Item1).Acronym.Name, TAcronymMeaning(Item2).Acronym.Name);
    423       1: Result := CompareString(TAcronymMeaning(Item1).Description, TAcronymMeaning(Item2).Description);
     431      1: Result := CompareString(TAcronymMeaning(Item1).Name, TAcronymMeaning(Item2).Name);
    424432      2: Result := CompareString(TAcronymMeaning(Item1).Categories.GetString, TAcronymMeaning(Item2).Categories.GetString);
    425433    end;
     
    543551  AFileSave.Enabled := Assigned(Core.AcronymDb) and Core.AcronymDb.Modified;
    544552  AFileSaveAs.Enabled := Assigned(Core.AcronymDb);
    545   AManualImport.Enabled := Assigned(Core.AcronymDb);
     553  AImport.Enabled := Assigned(Core.AcronymDb);
     554  AExport.Enabled := Assigned(Core.AcronymDb);
    546555  AProcessImports.Enabled := Assigned(Core.AcronymDb);
    547556  AShowCategories.Enabled := Assigned(Core.AcronymDb);
Note: See TracChangeset for help on using the changeset viewer.