Subversion Repositories Kolibri OS

Rev

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

Rev 5637 Rev 5638
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+25
7
  mov edx,5*65536+4
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+25
11
  mov edx,30*65536+4
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+25
20
  mov edx,55*65536+4
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+25
25
  mov edx,85*65536+4
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+25
34
  mov edx,110*65536+4
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+25
38
  mov edx,135*65536+4
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+25
42
  mov edx,265*65536+4
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+25
46
  mov edx,290*65536+4
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+25
50
  mov edx,315*65536+4
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+25
59
  mov edx,160*65536+4
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+25
64
  mov edx,185*65536+4
65
  call draw_but_icon
65
  call draw_but_icon
66
 
66
 
67
  inc cx
67
  inc cx
68
  mov edx,210*65536+25
68
  mov edx,210*65536+4
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+25
72
  mov edx,235*65536+4
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+25
81
  mov edx,345*65536+4
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+25
90
  mov edx,370*65536+4
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 243... Line 243...
243
  mov ecx,[sc.work_text]
243
  mov ecx,[sc.work_text]
244
  or ecx,0x80000000
244
  or ecx,0x80000000
245
  mov edx,txtFormatCapt
245
  mov edx,txtFormatCapt
246
  int 0x40
246
  int 0x40
Line 247... Line 247...
247
 
247
 
248
  mov ebx,10*65536+30
248
  mov ebx,10*65536+40
249
  add ebx,dword[tree1.box_height]
249
  add ebx,dword[tree1.box_height]
250
  add ebx,ted_wnd_t
250
  add ebx,ted_wnd_t
251
  mov edx,txtFormatApply
251
  mov edx,txtFormatApply