Subversion Repositories Kolibri OS

Rev

Rev 1657 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1639 Lrz 1
; Copyright (C) KolibriOS team 2004-2010. All rights reserved.
2
; Refer to the GNU General Public license (the "GPL") for full details.
3
;
4
;*****************************************************************************
5
; Box_Lib - library of graphical components
6
;
7
; Authors:
8
; Alexey Teplov aka 
9
; Marat Zakiyanov aka Mario79, aka Mario
10
; Evtikhov Maxim aka Maxxxx32
11
; Eugene Grechnikov aka Diamond
12
; hidnplayr
13
; Igor Afanasiev aka IgorA
14
;*****************************************************************************
15
 
16
format MS COFF
17
 
18
public EXPORTS
19
 
20
section '.flat' code readable align 16
21
include '../../../../macros.inc'
22
include '../../../../proc32.inc'
23
include 'bl_sys.mac'
24
include 'box_lib.mac' ;macro which should make life easier :)
25
 
26
;-----------------------------------------------------------------------------
27
mem.alloc   dd ? ;функция для выделения памяти
28
mem.free    dd ? ;функция для освобождения памяти
29
mem.realloc dd ? ;функция для перераспределения памяти
30
dll.load    dd ?
31
 
32
;----------------------------------------------------
33
;EditBox
34
;----------------------------------------------------
35
align 16
36
;use_editbox_draw	;macro reveals the function of the display.
37
align 16
38
;use_editbox_key 	;macro reveals processing function of the keypad.
39
align 16
40
;use_editbox_mouse	;macro reveals processing function of the mouse.
41
 
42
;----------------------------------------------------
43
;CheckBox
44
;----------------------------------------------------
45
align 16
1682 lrz 46
_init_checkbox2		;macro for init checkbox
1657 lrz 47
align 16
1682 lrz 48
use_checkbox_draw2	;macro reveals the function of the display.
1639 Lrz 49
align 16
1682 lrz 50
use_checkbox_mouse2	;macro reveals processing function of the mouse.
1639 Lrz 51
 
52
 
53
;--------------------------------------------------
54
;radiobutton Group
55
;--------------------------------------------------
56
align 16
57
;use_optionbox_driver	;macro that control the operating modes
58
align 16
59
;use_optionbox_draw	;macro reveals the function of the display.
60
align 16
61
;use_optionbox_mouse	;macro reveals processing function of the mouse.
62
 
63
;--------------------------------------------------
64
;scrollbar Group
65
;--------------------------------------------------
66
align 16
67
;use_scroll_bar
68
align 16
69
;use_scroll_bar_vertical
70
align 16
71
;use_scroll_bar_horizontal
72
 
73
;--------------------------------------------------
74
;dinamic button Group
75
;--------------------------------------------------
76
align 16
77
;use_dinamic_button
78
 
79
;--------------------------------------------------
80
;menubar Group
81
;--------------------------------------------------
82
align 16
83
;use_menu_bar
84
 
85
;--------------------------------------------------
86
;filebrowser Group
87
;--------------------------------------------------
88
align 16
89
;use_file_browser
90
 
91
;--------------------------------------------------
92
;tree list
93
;--------------------------------------------------
94
align 16
95
;use_tree_list
96
 
97
;--------------------------------------------------
98
;PathShow Group
99
;--------------------------------------------------
100
align 16
101
;use_path_show
102
 
103
;--------------------------------------------------
104
;text editor
105
;--------------------------------------------------
106
align 16
107
;use_text_edit
108
 
109
;input:
110
; eax = указатель на функцию выделения памяти
111
; ebx = ... освобождения памяти
112
; ecx = ... перераспределения памяти
113
; edx = ... загрузки библиотеки (пока не используется)
114
align 16
115
lib_init:
116
	mov	[mem.alloc], eax
117
	mov	[mem.free], ebx
118
	mov	[mem.realloc], ecx
119
	mov	[dll.load], edx
120
ret
121
 
122
 
123
align 16
124
EXPORTS:
125
 
126
 
127
dd	sz_init,			lib_init
128
dd	sz_version,			0x00000001
129
 
130
;dd	sz_edit_box,			edit_box
131
;dd	sz_edit_box_key,		edit_box_key
132
;dd	sz_edit_box_mouse,		edit_box_mouse
133
;dd	sz_edit_box_set_text,		edit_box_set_text
134
;dd	szVersion_ed,			0x00000001
135
 
1682 lrz 136
dd	sz_init_checkbox2,		init_checkbox2
137
dd	sz_check_box_draw2,		check_box_draw2
138
dd	sz_check_box_mouse2,		check_box_mouse2
139
dd	szVersion_ch2,			0x00000002
1639 Lrz 140
 
141
;dd	sz_option_box_draw,		option_box_draw
142
;dd	sz_option_box_mouse,		option_box_mouse
143
;dd	szVersion_op,			0x00000001
144
 
145
;dd	sz_Scrollbar_ver_draw,		scroll_bar_vertical.draw
146
;dd	sz_Scrollbar_ver_mouse, 	scroll_bar_vertical.mouse
147
;dd	sz_Scrollbar_hor_draw,		scroll_bar_horizontal.draw
148
;dd	sz_Scrollbar_hor_mouse, 	scroll_bar_horizontal.mouse
149
;dd	szVersion_scrollbar,		0x00010001
150
 
151
;dd	sz_Dbutton_draw,		dinamic_button.draw
152
;dd	sz_Dbutton_mouse,		dinamic_button.mouse
153
;dd	szVersion_dbutton,		0x00010001
154
 
155
;dd	sz_Menu_bar_draw,		menu_bar.draw
156
;dd	sz_Menu_bar_mouse,		menu_bar.mouse
157
;dd	sz_Menu_bar_activate,		menu_bar.activate
158
;dd	szVersion_menu_bar,		0x00010002
159
 
160
;dd	sz_FileBrowser_draw,		fb_draw_panel
161
;dd	sz_FileBrowser_mouse,		fb_mouse
162
;dd	sz_FileBrowser_key,		fb_key
163
;dd	szVersion_FileBrowser,		0x00010001
164
 
165
;dd	sz_tl_data_init,		tl_data_init
166
;dd	sz_tl_data_clear,		tl_data_clear
167
;dd	sz_tl_info_clear,		tl_info_clear
168
;dd	sz_tl_key,			tl_key
169
;dd	sz_tl_mouse,			tl_mouse
170
;dd	sz_tl_draw,			tl_draw
171
;dd	sz_tl_info_undo,		tl_info_undo
172
;dd	sz_tl_info_redo,		tl_info_redo
173
;dd	sz_tl_node_add, 		tl_node_add
174
;dd	sz_tl_node_set_data,		tl_node_set_data
175
;dd	sz_tl_node_get_data,		tl_node_get_data
176
;dd	sz_tl_node_delete,		tl_node_delete
177
;dd	sz_tl_cur_beg,			tl_cur_beg
178
;dd	sz_tl_cur_next, 		tl_cur_next
179
;dd	sz_tl_cur_perv, 		tl_cur_perv
180
;dd	sz_tl_node_close_open,		tl_node_close_open
181
;dd	sz_tl_node_lev_inc,		tl_node_lev_inc
182
;dd	sz_tl_node_lev_dec,		tl_node_lev_dec
183
;dd	sz_tl_node_move_up,		tl_node_move_up
184
;dd	sz_tl_node_move_down,		tl_node_move_down
185
;dd	sz_tl_node_poi_get_info,	tl_node_poi_get_info
186
;dd	sz_tl_node_poi_get_next_info,	tl_node_poi_get_next_info
187
;dd	sz_tl_node_poi_get_data,	tl_node_poi_get_data
188
;dd	sz_tl_save_mem, 		tl_save_mem
189
;dd	sz_tl_load_mem, 		tl_load_mem
190
;dd	sz_tl_get_mem_size,		tl_get_mem_size
191
;dd	sz_tl_version_tree_list,	0x00000001
192
 
193
;dd	sz_PathShow_prepare,		path_show.prepare
194
;dd	sz_PathShow_draw,		path_show.draw
195
;dd	szVersion_path_show,		0x00010001
196
 
197
;dd	sz_ted_but_save_file,		ted_but_save_file
198
;dd	sz_ted_but_sumb_upper,		ted_but_sumb_upper
199
;dd	sz_ted_but_sumb_lover,		ted_but_sumb_lover
200
;dd	sz_ted_can_save,		ted_can_save
201
;dd	sz_ted_clear,			ted_clear
202
;dd	sz_ted_delete,			ted_delete
203
;dd	sz_ted_draw,			ted_draw
204
;dd	sz_ted_init,			ted_init
205
;dd	sz_ted_init_scroll_bars,	ted_init_scroll_bars
206
;dd	sz_ted_init_syntax_file,	ted_init_syntax_file
207
;dd	sz_ted_is_select,		ted_is_select
208
;dd	sz_ted_key,			ted_key
209
;dd	sz_ted_mouse,			ted_mouse
210
;dd	sz_ted_open_file,		ted_open_file
211
;dd	sz_ted_text_add,		ted_text_add
212
;dd	sz_ted_but_select_word, 	ted_but_select_word
213
;dd	sz_ted_but_cut, 		ted_but_cut
214
;dd	sz_ted_but_copy,		ted_but_copy
215
;dd	sz_ted_but_paste,		ted_but_paste
216
;dd	sz_ted_but_undo,		ted_but_undo
217
;dd	sz_ted_but_redo,		ted_but_redo
218
;dd	sz_ted_but_reverse,		ted_but_reverse
219
;dd	sz_ted_but_find_next,		ted_but_find_next
220
;dd	sz_ted_text_colored,		ted_text_colored
221
;dd	sz_ted_version, 		0x00000002
222
 
223
dd	0,0
224
 
225
 
226
sz_init 			db 'lib_init',0
227
sz_version			db 'version',0
228
 
229
sz_edit_box			db 'edit_box',0
230
sz_edit_box_key 		db 'edit_box_key',0
231
sz_edit_box_mouse		db 'edit_box_mouse',0
232
sz_edit_box_set_text		db 'edit_box_set_text',0
233
szVersion_ed			db 'version_ed',0
234
 
1682 lrz 235
sz_init_checkbox2		db 'init_checkbox2',0
236
sz_check_box_draw2		db 'check_box_draw2',0
237
sz_check_box_mouse2		db 'check_box_mouse2',0
238
szVersion_ch2			db 'version_ch2',0
1639 Lrz 239
 
240
sz_option_box_draw		db 'option_box_draw',0
241
sz_option_box_mouse		db 'option_box_mouse',0
242
szVersion_op			db 'version_op',0
243
 
244
sz_Scrollbar_ver_draw		db 'scrollbar_v_draw',0
245
sz_Scrollbar_ver_mouse		db 'scrollbar_v_mouse',0
246
sz_Scrollbar_hor_draw		db 'scrollbar_h_draw',0
247
sz_Scrollbar_hor_mouse		db 'scrollbar_h_mouse',0
248
szVersion_scrollbar		db 'version_scrollbar',0
249
 
250
sz_Dbutton_draw 		db 'dbutton_draw',0
251
sz_Dbutton_mouse		db 'dbutton_mouse',0
252
szVersion_dbutton		db 'version_dbutton',0
253
 
254
sz_Menu_bar_draw		db 'menu_bar_draw',0
255
sz_Menu_bar_mouse		db 'menu_bar_mouse',0
256
sz_Menu_bar_activate		db 'menu_bar_activate',0
257
szVersion_menu_bar		db 'version_menu_bar',0
258
 
259
sz_FileBrowser_draw		db 'FileBrowser_draw',0
260
sz_FileBrowser_mouse		db 'FileBrowser_mouse',0
261
sz_FileBrowser_key		db 'FileBrowser_key',0
262
szVersion_FileBrowser		db 'version_FileBrowser',0
263
 
264
sz_tl_data_init 		db 'tl_data_init',0
265
sz_tl_data_clear		db 'tl_data_clear',0
266
sz_tl_info_clear		db 'tl_info_clear',0
267
sz_tl_key			db 'tl_key',0
268
sz_tl_mouse			db 'tl_mouse',0
269
sz_tl_draw			db 'tl_draw',0
270
sz_tl_info_undo 		db 'tl_info_undo',0
271
sz_tl_info_redo 		db 'tl_info_redo',0
272
sz_tl_node_add			db 'tl_node_add',0
273
sz_tl_node_set_data		db 'tl_node_set_data',0
274
sz_tl_node_get_data		db 'tl_node_get_data',0
275
sz_tl_node_delete		db 'tl_node_delete',0
276
sz_tl_cur_beg			db 'tl_cur_beg',0
277
sz_tl_cur_next			db 'tl_cur_next',0
278
sz_tl_cur_perv			db 'tl_cur_perv',0
279
sz_tl_node_close_open		db 'tl_node_close_open',0
280
sz_tl_node_lev_inc		db 'tl_node_lev_inc',0
281
sz_tl_node_lev_dec		db 'tl_node_lev_dec',0
282
sz_tl_node_move_up		db 'tl_node_move_up',0
283
sz_tl_node_move_down		db 'tl_node_move_down',0
284
sz_tl_node_poi_get_info 	db 'tl_node_poi_get_info',0
285
sz_tl_node_poi_get_next_info	db 'tl_node_poi_get_next_info',0
286
sz_tl_node_poi_get_data 	db 'tl_node_poi_get_data',0
287
sz_tl_save_mem			db 'tl_save_mem',0
288
sz_tl_load_mem			db 'tl_load_mem',0
289
sz_tl_get_mem_size		db 'tl_get_mem_size',0
290
sz_tl_version_tree_list 	db 'version_tree_list',0
291
 
292
sz_PathShow_prepare		db 'PathShow_prepare',0
293
sz_PathShow_draw		db 'PathShow_draw',0
294
szVersion_path_show		db 'version_PathShow',0
295
 
296
sz_ted_but_save_file		db 'ted_but_save_file',0
297
sz_ted_but_sumb_upper		db 'ted_but_sumb_upper',0
298
sz_ted_but_sumb_lover		db 'ted_but_sumb_lover',0
299
sz_ted_can_save 		db 'ted_can_save',0
300
sz_ted_clear			db 'ted_clear',0
301
sz_ted_delete			db 'ted_delete',0
302
sz_ted_draw			db 'ted_draw',0
303
sz_ted_init			db 'ted_init',0
304
sz_ted_init_scroll_bars 	db 'ted_init_scroll_bars',0
305
sz_ted_init_syntax_file 	db 'ted_init_syntax_file',0
306
sz_ted_is_select		db 'ted_is_select',0
307
sz_ted_key			db 'ted_key',0
308
sz_ted_mouse			db 'ted_mouse',0
309
sz_ted_open_file		db 'ted_open_file',0
310
sz_ted_text_add 		db 'ted_text_add',0
311
sz_ted_but_select_word		db 'ted_but_select_word',0
312
sz_ted_but_cut			db 'ted_but_cut',0
313
sz_ted_but_copy 		db 'ted_but_copy',0
314
sz_ted_but_paste		db 'ted_but_paste',0
315
sz_ted_but_undo 		db 'ted_but_undo',0
316
sz_ted_but_redo 		db 'ted_but_redo',0
317
sz_ted_but_reverse		db 'ted_but_reverse',0
318
sz_ted_but_find_next		db 'ted_but_find_next',0
319
sz_ted_text_colored		db 'ted_text_colored',0
320
sz_ted_version			db 'version_text_edit',0