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/UFormImport.pas

    r86 r90  
    1515  TFormImport = class(TForm)
    1616    ButtonLoadFromFile: TButton;
    17     ButtonImport: TButton;
     17    ButtonProcess: TButton;
    1818    ComboBoxDataFormat: TComboBox;
    1919    Label1: TLabel;
    2020    Memo1: TMemo;
    2121    OpenDialog1: TOpenDialog;
    22     procedure ButtonImportClick(Sender: TObject);
     22    procedure ButtonProcessClick(Sender: TObject);
    2323    procedure ButtonLoadFromFileClick(Sender: TObject);
    2424  private
     
    4545{ TFormImport }
    4646
    47 procedure TFormImport.ButtonImportClick(Sender: TObject);
     47procedure TFormImport.ButtonProcessClick(Sender: TObject);
    4848begin
    4949  if ComboBoxDataFormat.ItemIndex = 0 then ImportCSV;
     
    5353procedure TFormImport.ButtonLoadFromFileClick(Sender: TObject);
    5454begin
     55  if ComboBoxDataFormat.ItemIndex = 0 then OpenDialog1.DefaultExt := '.csv';
     56  if ComboBoxDataFormat.ItemIndex = 1 then OpenDialog1.DefaultExt := '.txt';
    5557  if OpenDialog1.Execute then
    5658    Memo1.Lines.LoadFromFile(OpenDialog1.FileName);
Note: See TracChangeset for help on using the changeset viewer.