Changeset 46 for trunk/Forms


Ignore:
Timestamp:
Jul 15, 2016, 2:24:18 PM (8 years ago)
Author:
chronos
Message:
  • Added: Now user name and password can be specified for import sources which require user authentication. Password is not stored in project file for safety reasons. Only Basic authentication is supported.
Location:
trunk/Forms
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormImportSource.lfm

    r35 r46  
    11object FormImportSource: TFormImportSource
    22  Left = 492
    3   Height = 403
     3  Height = 444
    44  Top = 313
    55  Width = 604
    66  Caption = 'Import source'
    7   ClientHeight = 403
     7  ClientHeight = 444
    88  ClientWidth = 604
    99  OnShow = FormShow
     
    4444    Left = 515
    4545    Height = 25
    46     Top = 365
     46    Top = 406
    4747    Width = 75
    4848    Anchors = [akRight, akBottom]
     
    5454    Left = 413
    5555    Height = 25
    56     Top = 365
     56    Top = 406
    5757    Width = 75
    5858    Anchors = [akRight, akBottom]
     
    136136    Left = 10
    137137    Height = 2
    138     Top = 352
     138    Top = 393
    139139    Width = 580
    140140    Anchors = [akLeft, akBottom]
     141  end
     142  object Label5: TLabel
     143    Left = 10
     144    Height = 20
     145    Top = 352
     146    Width = 73
     147    Caption = 'User name:'
     148    ParentColor = False
     149  end
     150  object Label6: TLabel
     151    Left = 305
     152    Height = 20
     153    Top = 351
     154    Width = 65
     155    Caption = 'Password:'
     156    ParentColor = False
     157  end
     158  object EditUserName: TEdit
     159    Left = 136
     160    Height = 28
     161    Top = 351
     162    Width = 153
     163    TabOrder = 10
     164  end
     165  object EditPassword: TEdit
     166    Left = 436
     167    Height = 28
     168    Top = 351
     169    Width = 153
     170    EchoMode = emPassword
     171    PasswordChar = '*'
     172    TabOrder = 11
    141173  end
    142174  object ActionList1: TActionList
  • trunk/Forms/UFormImportSource.lrt

    r33 r46  
    88TFORMIMPORTSOURCE.CHECKBOXENABLED.CAPTION=Enabled
    99TFORMIMPORTSOURCE.LABEL4.CAPTION=Categories:
     10TFORMIMPORTSOURCE.LABEL5.CAPTION=User name:
     11TFORMIMPORTSOURCE.LABEL6.CAPTION=Password:
    1012TFORMIMPORTSOURCE.ACATEGORYREMOVE.CAPTION=Remove
    1113TFORMIMPORTSOURCE.ACATEGORYADD.CAPTION=Add
  • trunk/Forms/UFormImportSource.pas

    r33 r46  
    77uses
    88  Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
    9   ActnList, Menus, ExtCtrls, UAcronym;
     9  ActnList, Menus, ExtCtrls, MaskEdit, UAcronym;
    1010
    1111type
     
    2525    CheckBoxEnabled: TCheckBox;
    2626    ComboBox1: TComboBox;
     27    EditUserName: TEdit;
    2728    EditName: TEdit;
    2829    EditURL: TEdit;
     30    EditPassword: TEdit;
    2931    Label1: TLabel;
    3032    Label2: TLabel;
    3133    Label3: TLabel;
    3234    Label4: TLabel;
     35    Label5: TLabel;
     36    Label6: TLabel;
    3337    ListBox1: TListBox;
    3438    MenuItem1: TMenuItem;
     
    132136  CheckBoxEnabled.Checked := ImportSource.Enabled;
    133137  ImportSource.Categories.AssignToStrings(ListBox1.Items);
     138  EditUserName.Text := ImportSource.UserName;
     139  EditPassword.Text := ImportSource.Password;
    134140end;
    135141
     
    141147  ImportSource.Enabled := CheckBoxEnabled.Checked;
    142148  ImportSource.Categories.AssignFromStrings(ListBox1.Items);
     149  ImportSource.UserName := EditUserName.Text;
     150  ImportSource.Password := EditPassword.Text;
    143151end;
    144152
Note: See TracChangeset for help on using the changeset viewer.