Subversion Repositories Kolibri OS

Rev

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

Rev Author Line No. Line
1199 mario79 1
;*****************************************************************************
2
; Box_Lib - library of graphical components
3
;
4
; Authors:
5
; Alexey Teplov aka 
6
; Marat Zakiyanov aka Mario79, aka Mario
7
; Evtikhov Maxim aka Maxxxx32
8
; Eugene Grechnikov aka Diamond
9
; hidnplayr
1277 IgorA 10
; Igor Afanasiev aka IgorA
1199 mario79 11
;*****************************************************************************
1032 Lrz 12
 
13
format MS COFF
14
 
15
public EXPORTS
16
 
17
section '.flat' code readable align 16
1101 Lrz 18
include '../../../../macros.inc'
1277 IgorA 19
include 'editbox.mac'	;macro which should make life easier :) specially for editbox
1199 mario79 20
include 'checkbox.mac'	;macro implements checkbox
21
include 'optionbox.mac' ;macro implements optionbox
22
include 'scrollbar.mac' ;macro implements scrollbar
23
include 'd_button.mac' ;macro implements dinamic_button
24
include 'menubar.mac' ;macro implements menubar
25
include 'filebrowser.mac' ;macro implements filebrowser
1277 IgorA 26
include 'tree_list.mac' ;macro implements tree_list, image_list, list_box
1032 Lrz 27
;----------------------------------------------------
28
;EditBox
29
;----------------------------------------------------
1214 Lrz 30
align 16
1277 IgorA 31
use_editbox_draw	;macro reveals the function of the display.
1214 Lrz 32
align 16
1277 IgorA 33
use_editbox_key 	;macro reveals processing function of the keypad.
1214 Lrz 34
align 16
1277 IgorA 35
use_editbox_mouse	;macro reveals processing function of the mouse.
1032 Lrz 36
 
37
;----------------------------------------------------
38
;CheckBox
39
;----------------------------------------------------
1214 Lrz 40
align 16
1277 IgorA 41
use_checkbox_draw	;macro reveals the function of the display.
1214 Lrz 42
align 16
1277 IgorA 43
use_checkbox_mouse	;macro reveals processing function of the mouse.
1032 Lrz 44
 
45
 
46
;--------------------------------------------------
47
;radiobutton Group
48
;--------------------------------------------------
1214 Lrz 49
align 16
1277 IgorA 50
use_optionbox_driver	;macro that control the operating modes
1214 Lrz 51
align 16
1277 IgorA 52
use_optionbox_draw	;macro reveals the function of the display.
1214 Lrz 53
align 16
1277 IgorA 54
use_optionbox_mouse	;macro reveals processing function of the mouse.
1032 Lrz 55
 
1037 mario79 56
;--------------------------------------------------
57
;scrollbar Group
58
;--------------------------------------------------
1214 Lrz 59
align 16
1037 mario79 60
use_scroll_bar
1214 Lrz 61
align 16
1037 mario79 62
use_scroll_bar_vertical
1214 Lrz 63
align 16
1037 mario79 64
use_scroll_bar_horizontal
65
 
66
;--------------------------------------------------
67
;dinamic button Group
68
;--------------------------------------------------
1214 Lrz 69
align 16
1037 mario79 70
use_dinamic_button
71
 
72
;--------------------------------------------------
73
;menubar Group
74
;--------------------------------------------------
1214 Lrz 75
align 16
1037 mario79 76
use_menu_bar
77
 
78
;--------------------------------------------------
1199 mario79 79
;filebrowser Group
80
;--------------------------------------------------
1214 Lrz 81
align 16
1199 mario79 82
use_file_browser
83
;--------------------------------------------------
1214 Lrz 84
;align 16
1060 hidnplayr 85
init:
86
ret
87
 
1068 Lrz 88
;;;;;;;;;;;
89
;;Data
90
;;;;;;;;;;;
1214 Lrz 91
;align 16
92
;mouse_flag dd 0x0
1060 hidnplayr 93
 
1277 IgorA 94
;--------------------------------------------------
95
;tree list
96
;--------------------------------------------------
97
align 16
98
use_tree_list
1068 Lrz 99
 
1277 IgorA 100
 
101
 
1032 Lrz 102
align 16
103
EXPORTS:
104
 
105
 
1277 IgorA 106
	dd	sz_init,		init
107
	dd	sz_version,		0x00000001
1060 hidnplayr 108
 
1277 IgorA 109
	dd	sz_edit_box,		edit_box
110
	dd	sz_edit_box_key,	edit_box_key
111
	dd	sz_edit_box_mouse,	edit_box_mouse
112
	dd	szVersion_ed,		0x00000001
1060 hidnplayr 113
 
1277 IgorA 114
	dd	sz_check_box_draw,	check_box_draw
115
	dd	sz_check_box_mouse,	check_box_mouse
116
	dd	szVersion_ch,		0x00000001
1068 Lrz 117
 
1277 IgorA 118
	dd	sz_option_box_draw,	option_box_draw
119
	dd	sz_option_box_mouse,	option_box_mouse
120
	dd	szVersion_op,		0x00000001
1068 Lrz 121
 
1277 IgorA 122
	dd	sz_Scrollbar_ver_draw,	scroll_bar_vertical.draw
123
	dd	sz_Scrollbar_ver_mouse, scroll_bar_vertical.mouse
124
	dd	sz_Scrollbar_hor_draw,	scroll_bar_horizontal.draw
125
	dd	sz_Scrollbar_hor_mouse, scroll_bar_horizontal.mouse
126
	dd	szVersion_scrollbar,	0x00010001
1068 Lrz 127
 
1277 IgorA 128
	dd	sz_Dbutton_draw,	dinamic_button.draw
129
	dd	sz_Dbutton_mouse,	dinamic_button.mouse
130
	dd	szVersion_dbutton,	0x00010001
1068 Lrz 131
 
1277 IgorA 132
	dd	sz_Menu_bar_draw,	menu_bar.draw
133
	dd	sz_Menu_bar_mouse,	menu_bar.mouse
134
	dd	sz_Menu_bar_activate,	menu_bar.activate
135
	dd	szVersion_menu_bar,	0x00010002
1199 mario79 136
 
1277 IgorA 137
	dd	sz_FileBrowser_draw,	fb_draw_panel
138
	dd	sz_FileBrowser_mouse,	fb_mouse
139
	dd	sz_FileBrowser_key,	fb_key
140
	dd	szVersion_FileBrowser,	0x00010001
1068 Lrz 141
 
1277 IgorA 142
  dd sz_tl_data_init,  tl_data_init
143
  dd sz_tl_data_clear, tl_data_clear
144
  dd sz_tl_info_clear, tl_info_clear
145
  dd sz_tl_key,        tl_key
146
  dd sz_tl_mouse,      tl_mouse
147
  dd sz_tl_draw,       tl_draw
148
  dd sz_tl_info_undo,  tl_info_undo
149
  dd sz_tl_info_redo,  tl_info_redo
150
  dd sz_tl_node_add,   tl_node_add
151
  dd sz_tl_node_set_data,tl_node_set_data
152
  dd sz_tl_node_get_data,tl_node_get_data
153
  dd sz_tl_node_delete,tl_node_delete
154
  dd sz_tl_cur_beg,    tl_cur_beg
155
  dd sz_tl_cur_next,   tl_cur_next
156
  dd sz_tl_cur_perv,   tl_cur_perv
157
  dd sz_tl_node_close_open,tl_node_close_open
158
  dd sz_tl_node_lev_inc,tl_node_lev_inc
159
  dd sz_tl_node_lev_dec,tl_node_lev_dec
160
  dd sz_tl_node_poi_get_info,	tl_node_poi_get_info
161
  dd sz_tl_node_poi_get_next_info,tl_node_poi_get_next_info
162
  dd sz_tl_node_poi_get_data,	tl_node_poi_get_data
163
  dd sz_tl_version_tree_list,	0x00000001
1068 Lrz 164
 
1277 IgorA 165
	dd	0,0
1068 Lrz 166
 
1277 IgorA 167
 
168
sz_init 	       db 'lib_init',0
169
sz_version	       db 'version',0
170
 
171
sz_edit_box	       db 'edit_box',0
1032 Lrz 172
sz_edit_box_key        db 'edit_box_key',0
173
sz_edit_box_mouse      db 'edit_box_mouse',0
1277 IgorA 174
szVersion_ed	       db 'version_ed',0
1068 Lrz 175
 
1032 Lrz 176
sz_check_box_draw      db 'check_box_draw',0
177
sz_check_box_mouse     db 'check_box_mouse',0
1277 IgorA 178
szVersion_ch	       db 'version_ch',0
1068 Lrz 179
 
1032 Lrz 180
sz_option_box_draw     db 'option_box_draw',0
181
sz_option_box_mouse    db 'option_box_mouse',0
1277 IgorA 182
szVersion_op	       db 'version_op',0
1032 Lrz 183
 
1277 IgorA 184
sz_Scrollbar_ver_draw	db 'scrollbar_v_draw',0
185
sz_Scrollbar_ver_mouse	db 'scrollbar_v_mouse',0
186
sz_Scrollbar_hor_draw	db 'scrollbar_h_draw',0
187
sz_Scrollbar_hor_mouse	db 'scrollbar_h_mouse',0
188
szVersion_scrollbar	db 'version_scrollbar',0
1068 Lrz 189
 
1277 IgorA 190
sz_Dbutton_draw 		db 'dbutton_draw',0
191
sz_Dbutton_mouse		db 'dbutton_mouse',0
192
szVersion_dbutton		db 'version_dbutton',0
1068 Lrz 193
 
1277 IgorA 194
sz_Menu_bar_draw		db 'menu_bar_draw',0
195
sz_Menu_bar_mouse		db 'menu_bar_mouse',0
196
sz_Menu_bar_activate		db 'menu_bar_activate',0
197
szVersion_menu_bar		db 'version_menu_bar',0
1068 Lrz 198
 
1277 IgorA 199
sz_FileBrowser_draw		db 'FileBrowser_draw',0
200
sz_FileBrowser_mouse		db 'FileBrowser_mouse',0
201
sz_FileBrowser_key		db 'FileBrowser_key',0
202
szVersion_FileBrowser		db 'version_FileBrowser',0
203
 
204
  sz_tl_data_init db 'tl_data_init',0
205
  sz_tl_data_clear db 'tl_data_clear',0
206
  sz_tl_info_clear db 'tl_info_clear',0
207
  sz_tl_key db 'tl_key',0
208
  sz_tl_mouse db 'tl_mouse',0
209
  sz_tl_draw db 'tl_draw',0
210
  sz_tl_info_undo db 'tl_info_undo',0
211
  sz_tl_info_redo db 'tl_info_redo',0
212
  sz_tl_node_add db 'tl_node_add',0
213
  sz_tl_node_set_data db 'tl_node_set_data',0
214
  sz_tl_node_get_data db 'tl_node_get_data',0
215
  sz_tl_node_delete db 'tl_node_delete',0
216
  sz_tl_cur_beg db 'tl_cur_beg',0
217
  sz_tl_cur_next db 'tl_cur_next',0
218
  sz_tl_cur_perv db 'tl_cur_perv',0
219
  sz_tl_node_close_open db 'tl_node_close_open',0
220
  sz_tl_node_lev_inc db 'tl_node_lev_inc',0
221
  sz_tl_node_lev_dec db 'tl_node_lev_dec',0
222
  sz_tl_node_poi_get_info db 'tl_node_poi_get_info',0
223
  sz_tl_node_poi_get_next_info db 'tl_node_poi_get_next_info',0
224
  sz_tl_node_poi_get_data db 'tl_node_poi_get_data',0
225
  sz_tl_version_tree_list db 'version_tree_list',0