Subversion Repositories Kolibri OS

Rev

Rev 3833 | Rev 9691 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3833 Rev 9464
Line 12... Line 12...
12
start_files_information_thread:
12
start_files_information_thread:
13
	mcall	9,procinfo,-1
13
	mcall	9,procinfo,-1
14
	mov	eax,[ebx+46]
14
	mov	eax,[ebx+46]
15
	shr	eax,1
15
	shr	eax,1
16
	add	eax,[ebx+38]
16
	add	eax,[ebx+38]
17
	sub	eax,150
17
	sub	eax,INF_WINH/2
18
	mov	[files_information_window_y+2],ax
18
	mov	[files_information_window_y+2],ax
19
	mov	eax,[ebx+42]
19
	mov	eax,[ebx+42]
20
	shr	eax,1
20
	shr	eax,1
21
	add	eax,[ebx+34]
21
	add	eax,[ebx+34]
22
	sub	eax,125
22
	sub	eax,INF_WINW/2
23
	mov	[files_information_window_x+2],ax
23
	mov	[files_information_window_x+2],ax
24
	mcall	51,1,thread_files_information_start,thread_stack
24
	mcall	51,1,thread_files_information_start,thread_stack
25
	ret
25
	ret
26
;------------------------------------------------------------------------------
26
;------------------------------------------------------------------------------
27
draw_files_information_window:
27
draw_files_information_window:
28
	mcall	12,1
28
	mcall	12,1
29
	mcall	0,[files_information_window_x],[files_information_window_y],0x03ffffcc
29
	mcall	0,[files_information_window_x],[files_information_window_y],0x33ffffcc,,infowin_title
30
	mov	edx,100 shl 16+50
30
	mov	edx,INF_DATAX shl 16+INF_DATAY+INF_LINEH
31
	mov	ebx,0x800a0000
31
	mov	ebx,0x800a0000
32
	mov	esi,0x10000000
32
	mov	esi,0x10000000
33
	cmp	[inf_marked_yes],1
33
	cmp	[inf_marked_yes],1
34
	je	.continue_4
34
	je	.continue_4
Line 35... Line 35...
35
 
35
 
36
	cmp	[nesting_direction],1
36
	cmp	[nesting_direction],1
Line 37... Line 37...
37
	je	@f
37
	je	@f
38
 
38
 
39
	add	edx,15
39
	add	edx,INF_LINEH
40
;--------------------------------------
40
;--------------------------------------
41
.continue_4:
41
.continue_4:
42
; show files counter
42
; show files counter
Line 52... Line 52...
52
	cmp	[directories_counter],0
52
	cmp	[directories_counter],0
53
	je	@f
53
	je	@f
54
;--------------------------------------
54
;--------------------------------------
55
.continue_2:
55
.continue_2:
56
; show directories counter
56
; show directories counter
57
	add	edx,15
57
	add	edx,INF_LINEH
58
	mcall	,,[directories_counter]
58
	mcall	,,[directories_counter]
59
;--------------------------------------
59
;--------------------------------------
60
@@:
60
@@:
61
; show file or directory size
61
; show file or directory size
62
	add	edx,15
62
	add	edx,INF_LINEH
63
	mcall	47,0x80140001,files_size
63
	mcall	47,0x80140001,files_size
64
;--------------------------------------
64
;--------------------------------------
65
	mov	ebp,date.create
65
	mov	ebp,date.create
66
	call	show_date_and_time_of_files_information
66
	call	show_date_and_time_of_files_information
67
;--------------------------------------
67
;--------------------------------------
Line 79... Line 79...
79
;--------------------------------------
79
;--------------------------------------
80
.right_1:
80
.right_1:
81
	mov	edx,read_folder_1_name
81
	mov	edx,read_folder_1_name
82
;--------------------------------------
82
;--------------------------------------
83
@@:
83
@@:
84
	mcall	4,<75,35>,0x80000000,	;file_name
84
	mcall	4,,0x90000000,	;file_name
85
	mcall	,<10,35>,0x90000000,type_location
85
	mcall	,<10,INF_DATAY>,0x90000000,type_location
86
	cmp	[inf_marked_yes],1
86
	cmp	[inf_marked_yes],1
87
	je	.continue
87
	je	.continue
Line 88... Line 88...
88
 
88
 
89
	mcall	,<90,50>,0x80000000,type_name
89
	mcall	,,0x90000000,type_name
90
	mov	ecx,0x90000000
90
	mov	ecx,0x90000000
91
	cmp	[nesting_direction],1
91
	cmp	[nesting_direction],1
Line 92... Line 92...
92
	je	@f
92
	je	@f
93
 
93
 
94
	mcall	,<10,50>,,type_dir_name
94
	mcall	,<10,INF_DATAY+INF_LINEH>,,type_dir_name
95
	jmp	.continue
95
	jmp	.continue
96
;--------------------------------------
96
;--------------------------------------
97
@@:
97
@@:
98
	mcall	,<10,50>,,type_file_name
98
	mcall	,<10,INF_DATAY+INF_LINEH>,,type_file_name
99
;--------------------------------------
99
;--------------------------------------
100
.continue:
100
.continue:
Line 101... Line 101...
101
	cmp	[inf_marked_yes],1
101
	cmp	[inf_marked_yes],1
102
	je	.continue_3
102
	je	.continue_3
103
 
103
 
104
	cmp	[nesting_direction],1
104
	cmp	[nesting_direction],1
105
	je	@f
105
	je	@f
106
;--------------------------------------
106
;--------------------------------------
107
.continue_3:
107
.continue_3:
108
	add	ebx,15
108
	add	ebx,INF_LINEH
109
	mcall	,,,type_files
109
	mcall	,,,type_files
110
;--------------------------------------
110
;--------------------------------------
Line 117... Line 117...
117
 
117
 
118
	cmp	[directories_counter],0
118
	cmp	[directories_counter],0
119
	je	@f
119
	je	@f
120
;--------------------------------------
120
;--------------------------------------
121
.continue_1:
121
.continue_1:
122
	add	ebx,15
122
	add	ebx,INF_LINEH
123
	mcall	,,,type_dir
123
	mcall	,,,type_dir
124
;--------------------------------------
124
;--------------------------------------
125
@@:
125
@@:
126
	add	ebx,15
126
	add	ebx,INF_LINEH
127
	mcall	,,,type_size
127
	mcall	,,,type_size
128
	add	ebx,15
128
	add	ebx,INF_LINEH
129
	mcall	,,,type_create
129
	mcall	,,,type_create
130
	add	ebx,15
130
	add	ebx,INF_LINEH
131
	mcall	,,,type_change
131
	mcall	,,,type_change
132
	add	ebx,15
132
	add	ebx,INF_LINEH
133
	mcall	,,,type_access
133
	mcall	,,,type_access
134
	sub	ebx,30
134
	sub	ebx,INF_LINEH*2
135
	add	ebx,107 shl 16
135
	add	ebx,115 shl 16
136
	mcall	,,0x80000000,type_limiters_data_time
136
	mcall	,,0x90000000,type_limiters_data_time
137
	add	ebx,15
137
	add	ebx,INF_LINEH
138
	mcall
138
	mcall
139
	add	ebx,15
139
	add	ebx,INF_LINEH
Line 140... Line 140...
140
	mcall
140
	mcall
141
 
141
 
142
	mcall	12,2
142
	mcall	12,2
143
	ret
143
	ret
144
;------------------------------------------------------------------------------
144
;------------------------------------------------------------------------------
145
show_date_and_time_of_files_information:
145
show_date_and_time_of_files_information:
146
; show date
146
; show date
147
	add	edx,15
147
	add	edx,INF_LINEH
148
	push	edx
148
	push	edx
149
	movzx	ecx,byte [ebp+0]
149
	movzx	ecx,byte [ebp+0]
150
	mcall	,0x00020000
150
	mcall	,0x00020000
151
	add	edx,24 shl 16
151
	add	edx,23 shl 16
152
	movzx	ecx,byte [ebp+1]
152
	movzx	ecx,byte [ebp+1]
153
	mcall
153
	mcall
154
	add	edx,23 shl 16
154
	add	edx,23 shl 16
155
	movzx	ecx,word [ebp+2]
155
	movzx	ecx,word [ebp+2]
156
	mcall	,0x00040000
156
	mcall	,0x00040000
157
	sub	ebp,12
157
	sub	ebp,12
158
; show time
158
; show time
159
	add	edx,37 shl 16
159
	add	edx,41 shl 16
160
	movzx	ecx,byte [ebp+2]
160
	movzx	ecx,byte [ebp+2]
161
	mcall	,0x00020000
161
	mcall	,0x00020000
162
	add	edx,24 shl 16
162
	add	edx,24 shl 16