2009-10-07 20:41:24 +02:00
|
|
|
;*****************************************************************************
|
|
|
|
; Box_Lib - library of graphical components
|
|
|
|
;
|
|
|
|
; Authors:
|
|
|
|
; Alexey Teplov aka <Lrz>
|
|
|
|
; Marat Zakiyanov aka Mario79, aka Mario
|
|
|
|
; Evtikhov Maxim aka Maxxxx32
|
|
|
|
; Eugene Grechnikov aka Diamond
|
|
|
|
; hidnplayr
|
2009-11-20 11:15:49 +01:00
|
|
|
; Igor Afanasiev aka IgorA
|
2009-10-07 20:41:24 +02:00
|
|
|
;*****************************************************************************
|
2009-02-13 10:04:33 +01:00
|
|
|
|
|
|
|
format MS COFF
|
|
|
|
|
|
|
|
public EXPORTS
|
|
|
|
|
|
|
|
section '.flat' code readable align 16
|
2009-06-03 19:40:06 +02:00
|
|
|
include '../../../../macros.inc'
|
2009-11-20 11:15:49 +01:00
|
|
|
include 'editbox.mac' ;macro which should make life easier :) specially for editbox
|
2009-10-07 20:41:24 +02:00
|
|
|
include 'checkbox.mac' ;macro implements checkbox
|
|
|
|
include 'optionbox.mac' ;macro implements optionbox
|
|
|
|
include 'scrollbar.mac' ;macro implements scrollbar
|
|
|
|
include 'd_button.mac' ;macro implements dinamic_button
|
|
|
|
include 'menubar.mac' ;macro implements menubar
|
|
|
|
include 'filebrowser.mac' ;macro implements filebrowser
|
2009-11-20 11:15:49 +01:00
|
|
|
include 'tree_list.mac' ;macro implements tree_list, image_list, list_box
|
2009-02-13 10:04:33 +01:00
|
|
|
;----------------------------------------------------
|
|
|
|
;EditBox
|
|
|
|
;----------------------------------------------------
|
2009-10-13 20:29:41 +02:00
|
|
|
align 16
|
2009-11-20 11:15:49 +01:00
|
|
|
use_editbox_draw ;macro reveals the function of the display.
|
2009-10-13 20:29:41 +02:00
|
|
|
align 16
|
2009-11-20 11:15:49 +01:00
|
|
|
use_editbox_key ;macro reveals processing function of the keypad.
|
2009-10-13 20:29:41 +02:00
|
|
|
align 16
|
2009-11-20 11:15:49 +01:00
|
|
|
use_editbox_mouse ;macro reveals processing function of the mouse.
|
2009-02-13 10:04:33 +01:00
|
|
|
|
|
|
|
;----------------------------------------------------
|
|
|
|
;CheckBox
|
|
|
|
;----------------------------------------------------
|
2009-10-13 20:29:41 +02:00
|
|
|
align 16
|
2009-11-20 11:15:49 +01:00
|
|
|
use_checkbox_draw ;macro reveals the function of the display.
|
2009-10-13 20:29:41 +02:00
|
|
|
align 16
|
2009-11-20 11:15:49 +01:00
|
|
|
use_checkbox_mouse ;macro reveals processing function of the mouse.
|
2009-02-13 10:04:33 +01:00
|
|
|
|
|
|
|
|
|
|
|
;--------------------------------------------------
|
|
|
|
;radiobutton Group
|
|
|
|
;--------------------------------------------------
|
2009-10-13 20:29:41 +02:00
|
|
|
align 16
|
2009-11-20 11:15:49 +01:00
|
|
|
use_optionbox_driver ;macro that control the operating modes
|
2009-10-13 20:29:41 +02:00
|
|
|
align 16
|
2009-11-20 11:15:49 +01:00
|
|
|
use_optionbox_draw ;macro reveals the function of the display.
|
2009-10-13 20:29:41 +02:00
|
|
|
align 16
|
2009-11-20 11:15:49 +01:00
|
|
|
use_optionbox_mouse ;macro reveals processing function of the mouse.
|
2009-02-13 10:04:33 +01:00
|
|
|
|
2009-02-18 08:19:31 +01:00
|
|
|
;--------------------------------------------------
|
|
|
|
;scrollbar Group
|
|
|
|
;--------------------------------------------------
|
2009-10-13 20:29:41 +02:00
|
|
|
align 16
|
2009-02-18 08:19:31 +01:00
|
|
|
use_scroll_bar
|
2009-10-13 20:29:41 +02:00
|
|
|
align 16
|
2009-02-18 08:19:31 +01:00
|
|
|
use_scroll_bar_vertical
|
2009-10-13 20:29:41 +02:00
|
|
|
align 16
|
2009-02-18 08:19:31 +01:00
|
|
|
use_scroll_bar_horizontal
|
|
|
|
|
|
|
|
;--------------------------------------------------
|
|
|
|
;dinamic button Group
|
|
|
|
;--------------------------------------------------
|
2009-10-13 20:29:41 +02:00
|
|
|
align 16
|
2009-02-18 08:19:31 +01:00
|
|
|
use_dinamic_button
|
|
|
|
|
|
|
|
;--------------------------------------------------
|
|
|
|
;menubar Group
|
|
|
|
;--------------------------------------------------
|
2009-10-13 20:29:41 +02:00
|
|
|
align 16
|
2009-02-18 08:19:31 +01:00
|
|
|
use_menu_bar
|
|
|
|
|
2009-10-07 20:41:24 +02:00
|
|
|
;--------------------------------------------------
|
|
|
|
;filebrowser Group
|
|
|
|
;--------------------------------------------------
|
2009-10-13 20:29:41 +02:00
|
|
|
align 16
|
2009-10-07 20:41:24 +02:00
|
|
|
use_file_browser
|
2009-11-25 12:01:46 +01:00
|
|
|
|
2009-02-18 08:19:31 +01:00
|
|
|
;--------------------------------------------------
|
2009-11-25 12:01:46 +01:00
|
|
|
;tree list
|
|
|
|
;--------------------------------------------------
|
|
|
|
align 16
|
|
|
|
use_tree_list
|
2009-04-10 23:54:21 +02:00
|
|
|
|
2009-05-08 19:45:28 +02:00
|
|
|
;;;;;;;;;;;
|
|
|
|
;;Data
|
|
|
|
;;;;;;;;;;;
|
2009-10-13 20:29:41 +02:00
|
|
|
;align 16
|
|
|
|
;mouse_flag dd 0x0
|
2009-05-08 19:45:28 +02:00
|
|
|
|
2009-11-20 11:15:49 +01:00
|
|
|
;--------------------------------------------------
|
2009-11-25 12:01:46 +01:00
|
|
|
;align 16
|
|
|
|
init:
|
|
|
|
ret
|
2009-05-08 19:45:28 +02:00
|
|
|
|
|
|
|
|
2009-11-20 11:15:49 +01:00
|
|
|
align 16
|
|
|
|
EXPORTS:
|
2009-05-08 19:45:28 +02:00
|
|
|
|
|
|
|
|
2009-11-20 11:15:49 +01:00
|
|
|
dd sz_init, init
|
|
|
|
dd sz_version, 0x00000001
|
|
|
|
|
|
|
|
dd sz_edit_box, edit_box
|
|
|
|
dd sz_edit_box_key, edit_box_key
|
|
|
|
dd sz_edit_box_mouse, edit_box_mouse
|
|
|
|
dd szVersion_ed, 0x00000001
|
|
|
|
|
|
|
|
dd sz_check_box_draw, check_box_draw
|
|
|
|
dd sz_check_box_mouse, check_box_mouse
|
|
|
|
dd szVersion_ch, 0x00000001
|
|
|
|
|
|
|
|
dd sz_option_box_draw, option_box_draw
|
|
|
|
dd sz_option_box_mouse, option_box_mouse
|
|
|
|
dd szVersion_op, 0x00000001
|
|
|
|
|
|
|
|
dd sz_Scrollbar_ver_draw, scroll_bar_vertical.draw
|
|
|
|
dd sz_Scrollbar_ver_mouse, scroll_bar_vertical.mouse
|
|
|
|
dd sz_Scrollbar_hor_draw, scroll_bar_horizontal.draw
|
|
|
|
dd sz_Scrollbar_hor_mouse, scroll_bar_horizontal.mouse
|
|
|
|
dd szVersion_scrollbar, 0x00010001
|
|
|
|
|
|
|
|
dd sz_Dbutton_draw, dinamic_button.draw
|
|
|
|
dd sz_Dbutton_mouse, dinamic_button.mouse
|
|
|
|
dd szVersion_dbutton, 0x00010001
|
|
|
|
|
|
|
|
dd sz_Menu_bar_draw, menu_bar.draw
|
|
|
|
dd sz_Menu_bar_mouse, menu_bar.mouse
|
|
|
|
dd sz_Menu_bar_activate, menu_bar.activate
|
|
|
|
dd szVersion_menu_bar, 0x00010002
|
|
|
|
|
|
|
|
dd sz_FileBrowser_draw, fb_draw_panel
|
|
|
|
dd sz_FileBrowser_mouse, fb_mouse
|
|
|
|
dd sz_FileBrowser_key, fb_key
|
|
|
|
dd szVersion_FileBrowser, 0x00010001
|
|
|
|
|
|
|
|
dd sz_tl_data_init, tl_data_init
|
|
|
|
dd sz_tl_data_clear, tl_data_clear
|
|
|
|
dd sz_tl_info_clear, tl_info_clear
|
|
|
|
dd sz_tl_key, tl_key
|
|
|
|
dd sz_tl_mouse, tl_mouse
|
|
|
|
dd sz_tl_draw, tl_draw
|
|
|
|
dd sz_tl_info_undo, tl_info_undo
|
|
|
|
dd sz_tl_info_redo, tl_info_redo
|
|
|
|
dd sz_tl_node_add, tl_node_add
|
|
|
|
dd sz_tl_node_set_data,tl_node_set_data
|
|
|
|
dd sz_tl_node_get_data,tl_node_get_data
|
|
|
|
dd sz_tl_node_delete,tl_node_delete
|
|
|
|
dd sz_tl_cur_beg, tl_cur_beg
|
|
|
|
dd sz_tl_cur_next, tl_cur_next
|
|
|
|
dd sz_tl_cur_perv, tl_cur_perv
|
|
|
|
dd sz_tl_node_close_open,tl_node_close_open
|
|
|
|
dd sz_tl_node_lev_inc,tl_node_lev_inc
|
|
|
|
dd sz_tl_node_lev_dec,tl_node_lev_dec
|
2009-11-25 12:01:46 +01:00
|
|
|
dd sz_tl_node_move_up,tl_node_move_up
|
|
|
|
dd sz_tl_node_move_down, tl_node_move_down
|
2009-11-20 11:15:49 +01:00
|
|
|
dd sz_tl_node_poi_get_info, tl_node_poi_get_info
|
|
|
|
dd sz_tl_node_poi_get_next_info,tl_node_poi_get_next_info
|
|
|
|
dd sz_tl_node_poi_get_data, tl_node_poi_get_data
|
2009-12-02 12:18:26 +01:00
|
|
|
dd sz_tl_save_mem, tl_save_mem
|
|
|
|
dd sz_tl_load_mem, tl_load_mem
|
2009-12-23 14:50:32 +01:00
|
|
|
dd sz_tl_get_mem_size,tl_get_mem_size
|
2009-11-20 11:15:49 +01:00
|
|
|
dd sz_tl_version_tree_list, 0x00000001
|
|
|
|
|
|
|
|
dd 0,0
|
|
|
|
|
|
|
|
|
|
|
|
sz_init db 'lib_init',0
|
|
|
|
sz_version db 'version',0
|
|
|
|
|
|
|
|
sz_edit_box db 'edit_box',0
|
2009-02-13 10:04:33 +01:00
|
|
|
sz_edit_box_key db 'edit_box_key',0
|
|
|
|
sz_edit_box_mouse db 'edit_box_mouse',0
|
2009-11-20 11:15:49 +01:00
|
|
|
szVersion_ed db 'version_ed',0
|
2009-05-08 19:45:28 +02:00
|
|
|
|
2009-02-13 10:04:33 +01:00
|
|
|
sz_check_box_draw db 'check_box_draw',0
|
|
|
|
sz_check_box_mouse db 'check_box_mouse',0
|
2009-11-20 11:15:49 +01:00
|
|
|
szVersion_ch db 'version_ch',0
|
2009-05-08 19:45:28 +02:00
|
|
|
|
2009-02-13 10:04:33 +01:00
|
|
|
sz_option_box_draw db 'option_box_draw',0
|
|
|
|
sz_option_box_mouse db 'option_box_mouse',0
|
2009-11-20 11:15:49 +01:00
|
|
|
szVersion_op db 'version_op',0
|
|
|
|
|
|
|
|
sz_Scrollbar_ver_draw db 'scrollbar_v_draw',0
|
|
|
|
sz_Scrollbar_ver_mouse db 'scrollbar_v_mouse',0
|
|
|
|
sz_Scrollbar_hor_draw db 'scrollbar_h_draw',0
|
|
|
|
sz_Scrollbar_hor_mouse db 'scrollbar_h_mouse',0
|
|
|
|
szVersion_scrollbar db 'version_scrollbar',0
|
|
|
|
|
|
|
|
sz_Dbutton_draw db 'dbutton_draw',0
|
|
|
|
sz_Dbutton_mouse db 'dbutton_mouse',0
|
|
|
|
szVersion_dbutton db 'version_dbutton',0
|
|
|
|
|
|
|
|
sz_Menu_bar_draw db 'menu_bar_draw',0
|
|
|
|
sz_Menu_bar_mouse db 'menu_bar_mouse',0
|
|
|
|
sz_Menu_bar_activate db 'menu_bar_activate',0
|
|
|
|
szVersion_menu_bar db 'version_menu_bar',0
|
|
|
|
|
|
|
|
sz_FileBrowser_draw db 'FileBrowser_draw',0
|
|
|
|
sz_FileBrowser_mouse db 'FileBrowser_mouse',0
|
|
|
|
sz_FileBrowser_key db 'FileBrowser_key',0
|
|
|
|
szVersion_FileBrowser db 'version_FileBrowser',0
|
|
|
|
|
|
|
|
sz_tl_data_init db 'tl_data_init',0
|
|
|
|
sz_tl_data_clear db 'tl_data_clear',0
|
|
|
|
sz_tl_info_clear db 'tl_info_clear',0
|
|
|
|
sz_tl_key db 'tl_key',0
|
|
|
|
sz_tl_mouse db 'tl_mouse',0
|
|
|
|
sz_tl_draw db 'tl_draw',0
|
|
|
|
sz_tl_info_undo db 'tl_info_undo',0
|
|
|
|
sz_tl_info_redo db 'tl_info_redo',0
|
|
|
|
sz_tl_node_add db 'tl_node_add',0
|
|
|
|
sz_tl_node_set_data db 'tl_node_set_data',0
|
|
|
|
sz_tl_node_get_data db 'tl_node_get_data',0
|
|
|
|
sz_tl_node_delete db 'tl_node_delete',0
|
|
|
|
sz_tl_cur_beg db 'tl_cur_beg',0
|
|
|
|
sz_tl_cur_next db 'tl_cur_next',0
|
|
|
|
sz_tl_cur_perv db 'tl_cur_perv',0
|
|
|
|
sz_tl_node_close_open db 'tl_node_close_open',0
|
|
|
|
sz_tl_node_lev_inc db 'tl_node_lev_inc',0
|
|
|
|
sz_tl_node_lev_dec db 'tl_node_lev_dec',0
|
2009-11-25 12:01:46 +01:00
|
|
|
sz_tl_node_move_up db 'tl_node_move_up',0
|
|
|
|
sz_tl_node_move_down db 'tl_node_move_down',0
|
2009-11-20 11:15:49 +01:00
|
|
|
sz_tl_node_poi_get_info db 'tl_node_poi_get_info',0
|
|
|
|
sz_tl_node_poi_get_next_info db 'tl_node_poi_get_next_info',0
|
|
|
|
sz_tl_node_poi_get_data db 'tl_node_poi_get_data',0
|
2009-12-02 12:18:26 +01:00
|
|
|
sz_tl_save_mem db 'tl_save_mem',0
|
|
|
|
sz_tl_load_mem db 'tl_load_mem',0
|
2009-12-23 14:50:32 +01:00
|
|
|
sz_tl_get_mem_size db 'tl_get_mem_size',0
|
2009-11-20 11:15:49 +01:00
|
|
|
sz_tl_version_tree_list db 'version_tree_list',0
|