Ignore:
Timestamp:
Apr 25, 2007, 10:29:18 AM (18 years ago)
Author:
RBRi
Message:

changed to use StringUtilsUnit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NewView/SettingsUnit.pas

    r83 r113  
    9797    FileDialogSplit: real;
    9898
    99     // COlours
     99    // Colours
    100100    Colors: array[ 0..NumColorSettings - 1 ] of TColor;
    101101
     
    141141  FileUtilsUnit,
    142142  ACLUtility,
    143   ACLStringUtility,
     143  StringUtilsUnit,
    144144  ControlsUtility;
    145145
     
    267267          MRUItem := TMRUItem.Create;
    268268          MRUItem.Title := MRUFileTitle;
    269           StringToList( MRUFilename,
    270                         MRUItem.Filenames,
    271                         '+' );
     269
     270          StrExtractStrings(MRUItem.Filenames, MRUFilename, ['+'], #0);
    272271          MRUList.Add( MRUItem );
    273272        end;
     
    345344      // Index style
    346345      SettingString := ReadString( GeneralSection, 'IndexStyle', 'Full' );
    347       if StringsSame( SettingString, 'FileOnly' ) then
     346      if StrEqualIgnoringCase( SettingString, 'FileOnly' ) then
    348347        IndexStyle := isFileOnly
    349       else if StringsSame( SettingString, 'Alphabetical' ) then
     348      else if StrEqualIgnoringCase( SettingString, 'Alphabetical' ) then
    350349        IndexStyle := isAlphabetical
    351350      else
     
    361360      SettingString := ReadString( GeneralSection, 'ToolbarStyle', 'ImagesAndText' );
    362361
    363       if StringsSame( SettingString, 'None' ) then
     362      if StrEqualIgnoringCase( SettingString, 'None' ) then
    364363        ToolbarStyle := tsNone
    365       else if StringsSame( SettingString, 'Images' ) then
     364      else if StrEqualIgnoringCase( SettingString, 'Images' ) then
    366365        ToolbarStyle := tsImages
    367       else if StringsSame( SettingString, 'Text' ) then
     366      else if StrEqualIgnoringCase( SettingString, 'Text' ) then
    368367        ToolbarStyle := tsText
    369368      else
     
    389388                                   'Location',
    390389                                   'HelpPaths' );
    391       if StringsSame( SettingString, 'HelpPaths' ) then
     390      if StrEqualIgnoringCase( SettingString, 'HelpPaths' ) then
    392391        GlobalSearchLocation := gsHelpPaths
    393       else if StringsSame( SettingString, 'FixedDrives' ) then
     392      else if StrEqualIgnoringCase( SettingString, 'FixedDrives' ) then
    394393        GlobalSearchLocation := gsFixedDrives
    395       else if StringsSame( SettingString, 'SelectedHelpPaths' ) then
     394      else if StrEqualIgnoringCase( SettingString, 'SelectedHelpPaths' ) then
    396395        GlobalSearchLocation := gsSelectedHelpPaths
    397396      else
Note: See TracChangeset for help on using the changeset viewer.