Changeset 51 for oup/current/Tools
- Timestamp:
- Dec 23, 2006, 11:16:42 PM (18 years ago)
- Location:
- oup/current/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
oup/current/Tools/Template.dfm
r46 r51 29 29 AutoSnap = False 30 30 Beveled = True 31 MinSize = 15 031 MinSize = 155 32 32 ExplicitHeight = 473 33 33 end … … 62 62 200 63 63 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 64 92 object label_ext: TLabel 65 93 Left = 2 … … 72 100 end 73 101 object btn_sort_id_asc: TSpeedButton 74 Left = 1675 Top = 101 76 Width = 2 3102 Left = 3 103 Top = 101 104 Width = 20 77 105 Height = 22 78 106 Hint = 'Sort files by id, ascending' … … 93 121 end 94 122 object btn_sort_id_desc: TSpeedButton 95 Left = 4096 Top = 101 97 Width = 2 3123 Left = 23 124 Top = 101 125 Width = 20 98 126 Height = 22 99 127 Hint = 'Sort files by id, descending' … … 113 141 end 114 142 object btn_sort_name_asc: TSpeedButton 115 Left = 64116 Top = 101 117 Width = 2 3143 Left = 58 144 Top = 101 145 Width = 20 118 146 Height = 22 119 147 Hint = 'Sort files by name, ascending' … … 133 161 end 134 162 object btn_sort_name_desc: TSpeedButton 135 Left = 88136 Top = 101 137 Width = 2 3163 Left = 78 164 Top = 101 165 Width = 20 138 166 Height = 22 139 167 Hint = 'Sort files by name, descending' … … 153 181 end 154 182 object btn_sort_ext_asc: TSpeedButton 155 Left = 1 12156 Top = 101 157 Width = 2 3183 Left = 108 184 Top = 101 185 Width = 20 158 186 Height = 22 159 187 Hint = 'Sort files by extension, ascending' 160 188 GroupIndex = 1 189 Glyph.Data = { 190 F6000000424DF600000000000000760000002800000010000000100000000100 191 0400000000008000000000000000000000001000000000000000C0C0C0000000 192 9900990000000000000000000000000000000000000000000000000000000000 193 0000000000000000000000000000000000000000000000000000000000000000 194 0000011111100000300001100010000030000011000000033300000110000003 195 3300000011000033333001000110000030000111111000003000000000000000 196 3000022202220000300000200020000030000022222000003000000202000000 197 3000000222000000300000002000000030000000200000003000} 161 198 ParentShowHint = False 162 199 ShowHint = True … … 164 201 end 165 202 object btn_sort_ext_desc: TSpeedButton 166 Left = 1 36167 Top = 101 168 Width = 2 3203 Left = 128 204 Top = 101 205 Width = 20 169 206 Height = 22 170 207 Hint = 'Sort files by extension, descending' 171 208 GroupIndex = 1 209 Glyph.Data = { 210 F6000000424DF600000000000000760000002800000010000000100000000100 211 0400000000008000000000000000000000001000000000000000C0C0C0000000 212 9900990000000000000000000000000000000000000000000000000000000000 213 0000000000000000000000000000000000000000000000000000000000000000 214 0000022202220000300000200020000030000022222000033300000202000003 215 3300000222000033333000002000000030000000200000003000000000000000 216 3000011111100000300001100010000030000011000000003000000110000000 217 3000000011000000300001000110000030000111111000003000} 172 218 ParentShowHint = False 173 219 ShowHint = True … … 187 233 Font.Name = 'Tahoma' 188 234 Font.Style = [] 189 ItemHeight = 0235 ItemHeight = 13 190 236 ParentFont = False 191 237 Sorted = True -
oup/current/Tools/Template.pas
r46 r51 34 34 btn_sort_ext_asc: TSpeedButton; 35 35 btn_sort_ext_desc: TSpeedButton; 36 Label1: TLabel; 37 Label2: TLabel; 36 38 procedure RecreateList; 37 39 procedure LoadFileNames; … … 82 84 i: LongWord; 83 85 exts: TStringArray; 84 begin 86 f, c1,c2: Int64; 87 time1,time2,time3: Double; 88 begin 89 QueryPerformanceFrequency(f); 90 QueryPerformanceCounter(c1); 85 91 combo_extension.Items.Clear; 86 92 combo_extension.Items.Add('_All files_ (' + … … 96 102 end else 97 103 combo_extension.Items.Add(exts[i]); 104 QueryPerformanceCounter(c2); 105 time1 := (c2 - c1) / f; 98 106 combo_extension.ItemIndex := 0; 99 107 combo_extensionClick(Self); 108 QueryPerformanceCounter(c1); 109 time2 := (c1 - c2) / f; 110 ShowMessage(FloatToStr(time1) +#13+#10+ FloatToStr(time2)); 100 111 end; 101 112
Note:
See TracChangeset
for help on using the changeset viewer.