Changeset 51 for oup/current/Tools


Ignore:
Timestamp:
Dec 23, 2006, 11:16:42 PM (18 years ago)
Author:
alloc
Message:
 
Location:
oup/current/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • oup/current/Tools/Template.dfm

    r46 r51  
    2929    AutoSnap = False
    3030    Beveled = True
    31     MinSize = 150
     31    MinSize = 155
    3232    ExplicitHeight = 473
    3333  end
     
    6262        200
    6363        129)
     64      object Label2: TLabel
     65        Left = 100
     66        Top = 105
     67        Width = 17
     68        Height = 18
     69        AutoSize = False
     70        Caption = '.'
     71        Font.Charset = DEFAULT_CHARSET
     72        Font.Color = clWindowText
     73        Font.Height = -13
     74        Font.Name = 'Tahoma'
     75        Font.Style = [fsBold]
     76        ParentFont = False
     77      end
     78      object Label1: TLabel
     79        Left = 47
     80        Top = 105
     81        Width = 17
     82        Height = 18
     83        AutoSize = False
     84        Caption = '-'
     85        Font.Charset = DEFAULT_CHARSET
     86        Font.Color = clWindowText
     87        Font.Height = -13
     88        Font.Name = 'Tahoma'
     89        Font.Style = [fsBold]
     90        ParentFont = False
     91      end
    6492      object label_ext: TLabel
    6593        Left = 2
     
    72100      end
    73101      object btn_sort_id_asc: TSpeedButton
    74         Left = 16
    75         Top = 101
    76         Width = 23
     102        Left = 3
     103        Top = 101
     104        Width = 20
    77105        Height = 22
    78106        Hint = 'Sort files by id, ascending'
     
    93121      end
    94122      object btn_sort_id_desc: TSpeedButton
    95         Left = 40
    96         Top = 101
    97         Width = 23
     123        Left = 23
     124        Top = 101
     125        Width = 20
    98126        Height = 22
    99127        Hint = 'Sort files by id, descending'
     
    113141      end
    114142      object btn_sort_name_asc: TSpeedButton
    115         Left = 64
    116         Top = 101
    117         Width = 23
     143        Left = 58
     144        Top = 101
     145        Width = 20
    118146        Height = 22
    119147        Hint = 'Sort files by name, ascending'
     
    133161      end
    134162      object btn_sort_name_desc: TSpeedButton
    135         Left = 88
    136         Top = 101
    137         Width = 23
     163        Left = 78
     164        Top = 101
     165        Width = 20
    138166        Height = 22
    139167        Hint = 'Sort files by name, descending'
     
    153181      end
    154182      object btn_sort_ext_asc: TSpeedButton
    155         Left = 112
    156         Top = 101
    157         Width = 23
     183        Left = 108
     184        Top = 101
     185        Width = 20
    158186        Height = 22
    159187        Hint = 'Sort files by extension, ascending'
    160188        GroupIndex = 1
     189        Glyph.Data = {
     190          F6000000424DF600000000000000760000002800000010000000100000000100
     191          0400000000008000000000000000000000001000000000000000C0C0C0000000
     192          9900990000000000000000000000000000000000000000000000000000000000
     193          0000000000000000000000000000000000000000000000000000000000000000
     194          0000011111100000300001100010000030000011000000033300000110000003
     195          3300000011000033333001000110000030000111111000003000000000000000
     196          3000022202220000300000200020000030000022222000003000000202000000
     197          3000000222000000300000002000000030000000200000003000}
    161198        ParentShowHint = False
    162199        ShowHint = True
     
    164201      end
    165202      object btn_sort_ext_desc: TSpeedButton
    166         Left = 136
    167         Top = 101
    168         Width = 23
     203        Left = 128
     204        Top = 101
     205        Width = 20
    169206        Height = 22
    170207        Hint = 'Sort files by extension, descending'
    171208        GroupIndex = 1
     209        Glyph.Data = {
     210          F6000000424DF600000000000000760000002800000010000000100000000100
     211          0400000000008000000000000000000000001000000000000000C0C0C0000000
     212          9900990000000000000000000000000000000000000000000000000000000000
     213          0000000000000000000000000000000000000000000000000000000000000000
     214          0000022202220000300000200020000030000022222000033300000202000003
     215          3300000222000033333000002000000030000000200000003000000000000000
     216          3000011111100000300001100010000030000011000000003000000110000000
     217          3000000011000000300001000110000030000111111000003000}
    172218        ParentShowHint = False
    173219        ShowHint = True
     
    187233        Font.Name = 'Tahoma'
    188234        Font.Style = []
    189         ItemHeight = 0
     235        ItemHeight = 13
    190236        ParentFont = False
    191237        Sorted = True
  • oup/current/Tools/Template.pas

    r46 r51  
    3434    btn_sort_ext_asc: TSpeedButton;
    3535    btn_sort_ext_desc: TSpeedButton;
     36    Label1: TLabel;
     37    Label2: TLabel;
    3638    procedure RecreateList;
    3739    procedure LoadFileNames;
     
    8284  i:    LongWord;
    8385  exts: TStringArray;
    84 begin
     86f, c1,c2: Int64;
     87time1,time2,time3: Double;
     88begin
     89QueryPerformanceFrequency(f);
     90QueryPerformanceCounter(c1);
    8591  combo_extension.Items.Clear;
    8692  combo_extension.Items.Add('_All files_ (' +
     
    96102    end else
    97103      combo_extension.Items.Add(exts[i]);
     104QueryPerformanceCounter(c2);
     105time1 := (c2 - c1) / f;
    98106  combo_extension.ItemIndex := 0;
    99107  combo_extensionClick(Self);
     108QueryPerformanceCounter(c1);
     109time2 := (c1 - c2) / f;
     110ShowMessage(FloatToStr(time1) +#13+#10+ FloatToStr(time2));
    100111end;
    101112
Note: See TracChangeset for help on using the changeset viewer.