Rev 9636 | Rev 9693 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9636 | Rev 9685 | ||
---|---|---|---|
Line 118... | Line 118... | ||
118 | else |
118 | else |
119 | { |
119 | { |
120 | GetFileInfo(#cur_file, #file_info_dirsize); |
120 | GetFileInfo(#cur_file, #file_info_dirsize); |
121 | more_files_count.bytes += file_info_dirsize.sizelo; |
121 | more_files_count.bytes += file_info_dirsize.sizelo; |
122 | more_files_count.files++; |
122 | more_files_count.bytes += file_info_dirsize.sizehi; |
- | 123 | more_files_count.files++; |
|
123 | } |
124 | } |
124 | } |
125 | } |
125 | } |
126 | } |
126 | } |
127 | } |
127 | 128 | ||
Line 217... | Line 218... | ||
217 | 218 | ||
Line 218... | Line 219... | ||
218 | void DrawPropertiesWindow() |
219 | void DrawPropertiesWindow() |
219 | { |
220 | { |
220 | proc_info pform; |
221 | proc_info pform; |
221 | char element_size_label[32]; |
222 | char size_lbl[32]; |
222 | char folder_info[200]; |
223 | char folder_info[200]; |
223 | dword ext1; |
224 | dword ext1; |
224 | dword element_size; |
- | |
225 | incn y; |
225 | incn y; |
226 | char temp_path[PATHLEN]; |
226 | char temp_path[PATHLEN]; |
227 | bool show_date = false; |
227 | bool show_date = false; |
Line 228... | Line 228... | ||
228 | 228 | ||
Line 242... | Line 242... | ||
242 | { |
242 | { |
243 | PropertiesDrawIcon(NULL, " |
243 | PropertiesDrawIcon(NULL, " |
244 | sprintf(#folder_info,T_FILES_FOLDERS,more_files_count.files,more_files_count.folders); |
244 | sprintf(#folder_info,T_FILES_FOLDERS,more_files_count.files,more_files_count.folders); |
245 | WriteText(file_name_ed.left+4, 30, 0x90, sc.work_text, #folder_info); |
245 | WriteText(file_name_ed.left+4, 30, 0x90, sc.work_text, #folder_info); |
246 | sprintf(#element_size_label,T_PROP_SIZE,ConvertSize64(more_files_count.bytes, NULL),more_files_count.bytes); |
246 | sprintf(#size_lbl,T_PROP_SIZE,ConvertSize64(more_files_count.bytes, more_files_count.bytes>>32),more_files_count.bytes); |
247 | WriteText(10, 97, 0x90, sc.work_text, #element_size_label); |
247 | WriteText(10, 97, 0x90, sc.work_text, #size_lbl); |
248 | } |
248 | } |
249 | else |
249 | else |
250 | { |
250 | { |
251 | if ( file_info_general.isfolder ) |
251 | if ( file_info_general.isfolder ) |
252 | PropertiesDrawIcon(NULL, " |
252 | PropertiesDrawIcon(NULL, " |
253 | else { |
253 | else { |
Line 259... | Line 259... | ||
259 | WriteText(file_name_ed.left, file_name_ed.top-15, 0x80, sc.work_text, PR_T_NAME); |
259 | WriteText(file_name_ed.left, file_name_ed.top-15, 0x80, sc.work_text, PR_T_NAME); |
260 | DrawEditBox(#file_name_ed); |
260 | DrawEditBox(#file_name_ed); |
261 | 261 | ||
Line 262... | Line 262... | ||
262 | if (!itdir) { |
262 | if (!itdir) { |
263 | element_size = file_info_general.sizelo; |
263 | sprintf(#size_lbl,T_PROP_SIZE,ConvertSize64(file_info_general.sizelo, file_info_general.sizehi),file_info_general.sizelo); |
264 | } else { |
264 | } else { |
265 | sprintf(#folder_info,T_FILES_FOLDERS,dir_size.files,dir_size.folders); |
265 | sprintf(#folder_info,T_FILES_FOLDERS,dir_size.files,dir_size.folders); |
266 | WriteText(10, 117, 0x90, sc.work_text, PR_T_CONTAINS); |
266 | WriteText(10, 117, 0x90, sc.work_text, PR_T_CONTAINS); |
267 | WriteText(120, 117, 0x90, sc.work_text, #folder_info); |
267 | WriteText(120, 117, 0x90, sc.work_text, #folder_info); |
268 | element_size = dir_size.bytes; |
268 | sprintf(#size_lbl,T_PROP_SIZE,ConvertSize64(dir_size.bytes, dir_size.bytes_high),dir_size.bytes); |
269 | } |
269 | } |
270 | sprintf(#element_size_label,T_PROP_SIZE,ConvertSize64(element_size, NULL),element_size); |
- | |
271 | WriteText(10, 99, 0x90, sc.work_text, #element_size_label); |
270 | WriteText(10, 99, 0x90, sc.work_text, #size_lbl); |
272 | } |
271 | } |
Line 273... | Line 272... | ||
273 | 272 | ||
274 | if (show_date) { |
273 | if (show_date) { |
275 | WriteTextLines(10, 136, 0x90, sc.work_text, CREATED_OPENED_MODIFIED, 20); |
274 | WriteTextLines(10, 136, 0x90, sc.work_text, CREATED_OPENED_MODIFIED, 20); |