Ignore:
Timestamp:
Jun 6, 2023, 11:15:57 AM (18 months ago)
Author:
chronos
Message:
  • Added: New file compare dialog with additional normalize options.
  • Modified: Compare action uses external compare tool.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/FormSettings.pas

    r149 r151  
    1212
    1313  TFormSettings = class(TForm)
    14     Bevel1: TBevel;
     14    ButtonBrowse: TButton;
    1515    ButtonOk: TButton;
    1616    ButtonCancel: TButton;
     17    CheckBoxAutomaticDPI: TCheckBox;
    1718    CheckBoxReopenLastFileOnStart: TCheckBox;
    18     CheckBoxAutomaticDPI: TCheckBox;
    1919    ComboBoxLanguage: TComboBox;
    2020    ComboBoxTheme: TComboBox;
     21    EditCompareTool: TEdit;
    2122    EditDefaultVcardVersion: TEdit;
     23    EditDefaultPhoneCountryPrefix: TEdit;
    2224    EditMapUrl: TEdit;
    2325    Label1: TLabel;
    2426    Label2: TLabel;
    2527    Label3: TLabel;
     28    Label4: TLabel;
     29    Label5: TLabel;
     30    Label6: TLabel;
    2631    LabelDPI: TLabel;
     32    OpenDialog1: TOpenDialog;
     33    ScrollBox1: TScrollBox;
    2734    SpinEditDPI: TSpinEdit;
     35    procedure ButtonBrowseClick(Sender: TObject);
    2836    procedure ButtonOkClick(Sender: TObject);
    2937    procedure CheckBoxAutomaticDPIChange(Sender: TObject);
     
    7179end;
    7280
     81procedure TFormSettings.ButtonBrowseClick(Sender: TObject);
     82begin
     83  OpenDialog1.InitialDir := ExtractFileDir(EditCompareTool.Text);
     84  OpenDialog1.FileName := ExtractFileName(EditCompareTool.Text);
     85  if OpenDialog1.Execute then begin
     86    EditCompareTool.Text := OpenDialog1.FileName;
     87  end;
     88end;
     89
    7390procedure TFormSettings.CheckBoxAutomaticDPIChange(Sender: TObject);
    7491begin
     
    101118    EditDefaultVcardVersion.Text := DefaultVcardVersion;
    102119    EditMapUrl.Text := MapUrl;
     120    EditCompareTool.Text := CompareTool;
     121    EditDefaultPhoneCountryPrefix.Text := DefaultPhoneCountryPrefix;
    103122  end;
    104123  UpdateInterface;
     
    113132    DefaultVcardVersion := EditDefaultVcardVersion.Text;
    114133    MapUrl := EditMapUrl.Text;
     134    CompareTool := EditCompareTool.Text;
     135    DefaultPhoneCountryPrefix := EditDefaultPhoneCountryPrefix.Text;
    115136  end;
    116137end;
Note: See TracChangeset for help on using the changeset viewer.