Subversion Repositories Kolibri OS

Rev

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

Rev 5639 Rev 5649
Line 2... Line 2...
2
draw_but_toolbar: ;ôóíêöèÿ äëÿ ðèñîâàíèÿ ïàíåëè èíñòðóìåíòîâ
2
draw_but_toolbar: ;ôóíêöèÿ äëÿ ðèñîâàíèÿ ïàíåëè èíñòðóìåíòîâ
3
  pushad
3
  pushad
4
  mov edi,tedit0
4
  mov edi,tedit0
Line 5... Line 5...
5
 
5
 
6
  mov ecx,0x40000000
6
  mov ecx,0x40000000
7
  mov edx,5*65536+5
7
  mov edx,5*65536+25
Line 8... Line 8...
8
  call draw_but_icon
8
  call draw_but_icon
9
 
9
 
10
  inc cx
10
  inc cx
Line 11... Line 11...
11
  mov edx,30*65536+5
11
  mov edx,30*65536+25
12
  call draw_but_icon
12
  call draw_but_icon
13
 
13
 
14
stdcall [ted_can_save],edi
14
stdcall [ted_can_save],edi
15
cmp al,1
15
cmp al,1
16
je @f
16
je @f
17
and ecx,0xffff
17
and ecx,0xffff
18
@@:
18
@@:
19
  inc cx
19
  inc cx
Line 20... Line 20...
20
  mov edx,55*65536+5
20
  mov edx,55*65536+25
21
  call draw_but_icon
21
  call draw_but_icon
22
or ecx,0x40000000
22
or ecx,0x40000000
Line 23... Line 23...
23
 
23
 
24
  inc cx
24
  inc cx
25
  mov edx,85*65536+5
25
  mov edx,85*65536+25
26
  call draw_but_icon
26
  call draw_but_icon
27
 
27
 
28
call [ted_is_select]
28
call [ted_is_select]
29
cmp al,0
29
cmp al,0
30
jne @f
30
jne @f
Line 31... Line 31...
31
and ecx,0xffff
31
and ecx,0xffff
32
@@:
32
@@:
33
  inc cx ; Cut
33
  inc cx ; Cut
Line 34... Line 34...
34
  mov edx,110*65536+5
34
  mov edx,110*65536+25
35
  call draw_but_icon
35
  call draw_but_icon
36
 
36
 
Line 37... Line 37...
37
  inc cx ; Copy
37
  inc cx ; Copy
38
  mov edx,135*65536+5
38
  mov edx,135*65536+25
39
  call draw_but_icon
39
  call draw_but_icon
Line 40... Line 40...
40
 
40
 
41
  mov cx,10 ; Upper
41
  mov cx,10 ; Upper
42
  mov edx,265*65536+5
42
  mov edx,265*65536+25
43
  call draw_but_icon
43
  call draw_but_icon
Line 44... Line 44...
44
 
44
 
45
  inc cx ; Lower
45
  inc cx ; Lower
46
  mov edx,290*65536+5
46
  mov edx,290*65536+25
47
  call draw_but_icon
47
  call draw_but_icon
48
 
48
 
49
  inc cx ; reverse
49
  inc cx ; reverse
50
  mov edx,315*65536+5
50
  mov edx,315*65536+25
51
  call draw_but_icon
51
  call draw_but_icon
Line 52... Line 52...
52
or ecx,0x40000000
52
or ecx,0x40000000
53
 
53
 
54
cmp dword[buf],0
54
cmp dword[buf],0
Line 55... Line 55...
55
jne @f
55
jne @f
56
and ecx,0xffff
56
and ecx,0xffff
57
@@:
57
@@:
Line 58... Line 58...
58
  mov cx,6 ; Paste
58
  mov cx,6 ; Paste
59
  mov edx,160*65536+5
59
  mov edx,160*65536+25
60
  call draw_but_icon
60
  call draw_but_icon
Line 61... Line 61...
61
or ecx,0x40000000
61
or ecx,0x40000000
62
 
62
 
63
  inc cx
63
  inc cx
64
  mov edx,185*65536+5
64
  mov edx,185*65536+25
65
  call draw_but_icon
65
  call draw_but_icon
66
 
66
 
67
  inc cx
67
  inc cx
68
  mov edx,210*65536+5
68
  mov edx,210*65536+25
69
  call draw_but_icon
69
  call draw_but_icon
Line 70... Line 70...
70
 
70
 
71
  inc cx
71
  inc cx
72
  mov edx,235*65536+5
72
  mov edx,235*65536+25
73
  call draw_but_icon
73
  call draw_but_icon
74
 
74
 
75
mov ebx,ted_tim_undo
75
mov ebx,ted_tim_undo
76
cmp ted_tim_ch,ebx
76
cmp ted_tim_ch,ebx
77
jg @f
77
jg @f
Line 78... Line 78...
78
and ecx,0xffff
78
and ecx,0xffff
79
@@:
79
@@:
80
  mov cx,13
80
  mov cx,13
Line 81... Line 81...
81
  mov edx,345*65536+5
81
  mov edx,345*65536+25
82
  call draw_but_icon
82
  call draw_but_icon
83
or ecx,0x40000000
83
or ecx,0x40000000
Line 84... Line 84...
84
 
84
 
85
cmp ted_tim_undo,1
85
cmp ted_tim_undo,1
86
jge @f
86
jge @f
Line 87... Line 87...
87
and ecx,0xffff
87
and ecx,0xffff
88
@@:
88
@@:
89
  inc cx
89
  inc cx
Line 90... Line 90...
90
  mov edx,370*65536+5
90
  mov edx,370*65536+25
91
  call draw_but_icon
91
  call draw_but_icon
92
or ecx,0x40000000
92
or ecx,0x40000000
Line 93... Line 93...
93
 
93
 
94
	inc cx
94
	inc cx
Line 136... Line 136...
136
  mov cx,20
136
  mov cx,20
137
  mov edx,[sc.work]
137
  mov edx,[sc.work]
138
  int 0x40
138
  int 0x40
Line 139... Line 139...
139
 
139
 
140
  mov eax,4 ;ðèñîâàíèå òåêñòà
140
  mov eax,4 ;ðèñîâàíèå òåêñòà
141
  mov ebx,30*65536+5
141
  mov ebx,30*65536+25
142
  add ebx,ted_wnd_t
142
  add ebx,ted_wnd_t
143
  mov ecx,[sc.work_text]
143
  mov ecx,[sc.work_text]
144
  or ecx,0x80000000
144
  or ecx,0x80000000
145
  mov edx,txtFindCapt
145
  mov edx,txtFindCapt