Rev 7488 | Rev 7573 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7488 | Rev 7571 | ||
---|---|---|---|
Line 31... | Line 31... | ||
31 | or ecx,0x40000000 |
31 | or ecx,0x40000000 |
Line 32... | Line 32... | ||
32 | 32 | ||
33 | inc cx |
33 | inc cx |
34 | bt word[panel_but+3],0 |
34 | bt word[panel_but+3],0 |
- | 35 | jnc @f |
|
- | 36 | add edx,25 shl 16 |
|
- | 37 | call draw_but_icon ;Save as |
|
- | 38 | @@: |
|
- | 39 | ||
- | 40 | inc cx |
|
- | 41 | bt word[panel_but+4],0 |
|
35 | jnc @f |
42 | jnc @f |
36 | add edx,30 shl 16 |
43 | add edx,30 shl 16 |
37 | call draw_but_icon ;Select word |
44 | call draw_but_icon ;Select word |
Line 38... | Line 45... | ||
38 | @@: |
45 | @@: |
39 | 46 | ||
40 | call [ted_is_select] |
47 | call [ted_is_select] |
41 | or al,al |
48 | or al,al |
42 | jnz @f |
49 | jnz @f |
43 | and ecx,0xffff |
50 | and ecx,0xffff |
44 | @@: |
51 | @@: |
45 | inc cx |
52 | inc cx |
46 | bt word[panel_but+4],0 |
53 | bt word[panel_but+5],0 |
47 | jnc @f |
54 | jnc @f |
48 | add edx,25 shl 16 |
55 | add edx,25 shl 16 |
Line 49... | Line 56... | ||
49 | call draw_but_icon ;Cut |
56 | call draw_but_icon ;Cut |
50 | @@: |
57 | @@: |
51 | 58 | ||
52 | inc cx |
59 | inc cx |
53 | bt word[panel_but+5],0 |
60 | bt word[panel_but+6],0 |
54 | jnc @f |
61 | jnc @f |
55 | add edx,25 shl 16 |
62 | add edx,25 shl 16 |
Line 60... | Line 67... | ||
60 | cmp dword[buf],0 |
67 | cmp dword[buf],0 |
61 | jne @f |
68 | jne @f |
62 | and ecx,0xffff |
69 | and ecx,0xffff |
63 | @@: |
70 | @@: |
64 | inc cx |
71 | inc cx |
65 | bt word[panel_but+6],0 |
72 | bt word[panel_but+7],0 |
66 | jnc @f |
73 | jnc @f |
67 | add edx,25 shl 16 |
74 | add edx,25 shl 16 |
68 | call draw_but_icon ;Paste |
75 | call draw_but_icon ;Paste |
69 | @@: |
76 | @@: |
70 | or ecx,0x40000000 |
77 | or ecx,0x40000000 |
Line 71... | Line 78... | ||
71 | 78 | ||
72 | inc cx |
79 | inc cx |
73 | bt word[panel_but+7],0 |
80 | bt word[panel_but+8],0 |
74 | jnc @f |
81 | jnc @f |
75 | add edx,25 shl 16 |
82 | add edx,25 shl 16 |
76 | call draw_but_icon ;Found |
83 | call draw_but_icon ;Found |
Line 77... | Line 84... | ||
77 | @@: |
84 | @@: |
78 | 85 | ||
79 | inc cx |
86 | inc cx |
80 | bt word[panel_but+8],0 |
87 | bt word[panel_but+9],0 |
81 | jnc @f |
88 | jnc @f |
82 | add edx,25 shl 16 |
89 | add edx,25 shl 16 |
Line 83... | Line 90... | ||
83 | call draw_but_icon ;Replace |
90 | call draw_but_icon ;Replace |
84 | @@: |
91 | @@: |
85 | 92 | ||
86 | inc cx |
93 | inc cx |
87 | bt word[panel_but+9],0 |
94 | bt word[panel_but+10],0 |
88 | jnc @f |
95 | jnc @f |
Line 94... | Line 101... | ||
94 | or al,al |
101 | or al,al |
95 | jnz @f |
102 | jnz @f |
96 | and ecx,0xffff |
103 | and ecx,0xffff |
97 | @@: |
104 | @@: |
98 | inc cx |
105 | inc cx |
99 | bt word[panel_but+10],0 |
106 | bt word[panel_but+11],0 |
100 | jnc @f |
107 | jnc @f |
101 | add edx,30 shl 16 |
108 | add edx,30 shl 16 |
102 | call draw_but_icon ;Upper |
109 | call draw_but_icon ;Upper |
103 | @@: |
110 | @@: |
Line 104... | Line 111... | ||
104 | 111 | ||
105 | inc cx |
112 | inc cx |
106 | bt word[panel_but+11],0 |
113 | bt word[panel_but+12],0 |
107 | jnc @f |
114 | jnc @f |
108 | add edx,25 shl 16 |
115 | add edx,25 shl 16 |
109 | call draw_but_icon ;Lower |
116 | call draw_but_icon ;Lower |
Line 110... | Line 117... | ||
110 | @@: |
117 | @@: |
111 | 118 | ||
112 | inc cx |
119 | inc cx |
113 | bt word[panel_but+12],0 |
120 | bt word[panel_but+13],0 |
114 | jnc @f |
121 | jnc @f |
115 | add edx,25 shl 16 |
122 | add edx,25 shl 16 |
116 | call draw_but_icon ;Reverse |
123 | call draw_but_icon ;Reverse |
Line 121... | Line 128... | ||
121 | cmp ted_tim_ch,ebx |
128 | cmp ted_tim_ch,ebx |
122 | jg @f |
129 | jg @f |
123 | and ecx,0xffff |
130 | and ecx,0xffff |
124 | @@: |
131 | @@: |
125 | inc cx |
132 | inc cx |
126 | bt word[panel_but+13],0 |
133 | bt word[panel_but+14],0 |
127 | jnc @f |
134 | jnc @f |
128 | add edx,30 shl 16 |
135 | add edx,30 shl 16 |
129 | call draw_but_icon ;Undo |
136 | call draw_but_icon ;Undo |
130 | @@: |
137 | @@: |
131 | or ecx,0x40000000 |
138 | or ecx,0x40000000 |
Line 133... | Line 140... | ||
133 | cmp ted_tim_undo,1 |
140 | cmp ted_tim_undo,1 |
134 | jge @f |
141 | jge @f |
135 | and ecx,0xffff |
142 | and ecx,0xffff |
136 | @@: |
143 | @@: |
137 | inc cx |
144 | inc cx |
138 | bt word[panel_but+14],0 |
145 | bt word[panel_but+15],0 |
139 | jnc @f |
146 | jnc @f |
140 | add edx,25 shl 16 |
147 | add edx,25 shl 16 |
141 | call draw_but_icon ;Redo |
148 | call draw_but_icon ;Redo |
142 | @@: |
149 | @@: |
143 | or ecx,0x40000000 |
150 | or ecx,0x40000000 |
Line 144... | Line 151... | ||
144 | 151 | ||
145 | inc cx |
152 | inc cx |
146 | bt word[panel_but+15],0 |
153 | bt word[panel_but+16],0 |
147 | jnc @f |
154 | jnc @f |
148 | add edx,30 shl 16 |
155 | add edx,30 shl 16 |
149 | call draw_but_icon ;Invisible on|off |
156 | call draw_but_icon ;Invisible on|off |
Line 150... | Line 157... | ||
150 | @@: |
157 | @@: |
151 | 158 | ||
152 | inc cx |
159 | inc cx |
153 | bt word[panel_but+16],0 |
160 | bt word[panel_but+17],0 |
154 | jnc @f |
161 | jnc @f |
155 | add edx,25 shl 16 |
162 | add edx,25 shl 16 |
Line 156... | Line 163... | ||
156 | call draw_but_icon |
163 | call draw_but_icon ;Âûáîð ôàéëà ïîäñâåòêè |
157 | @@: |
164 | @@: |
158 | 165 | ||
159 | inc cx |
166 | inc cx |
160 | bt word[panel_but+17],0 |
167 | bt word[panel_but+18],0 |
161 | jnc @f |
168 | jnc @f |
Line 162... | Line 169... | ||
162 | add edx,25 shl 16 |
169 | add edx,25 shl 16 |
163 | call draw_but_icon ;Âûáîð ôàéëà ïîäñâåòêè |
170 | call draw_but_icon ;Ïîäñâåòêà âêë|âûêë |
164 | @@: |
171 | @@: |
165 | 172 | ||
166 | inc cx |
173 | inc cx |
167 | bt word[panel_but+18],0 |
174 | bt word[panel_but+19],0 |
Line 168... | Line 175... | ||
168 | jnc @f |
175 | jnc @f |
169 | add edx,30 shl 16 |
176 | add edx,30 shl 16 |
170 | call draw_but_icon ;cp 1251 -> 866 |
177 | call draw_but_icon ;cp 1251 -> 866 |
171 | @@: |
178 | @@: |
172 | 179 | ||
173 | inc cx |
180 | inc cx |