2009-02-23 13:26:32 +01:00
|
|
|
|
;---------------------------------------------------------------------
|
2010-03-15 20:40:50 +01:00
|
|
|
|
;--- data area -------------------------------------------------------
|
2009-02-23 13:26:32 +01:00
|
|
|
|
;---------------------------------------------------------------------
|
2010-03-15 20:40:50 +01:00
|
|
|
|
header_1 db 'Box_lib Control Demo by Mario79',0
|
2009-02-23 13:26:32 +01:00
|
|
|
|
|
2010-03-15 20:40:50 +01:00
|
|
|
|
ok_btn db 'Ok',0
|
|
|
|
|
|
|
|
|
|
labelt3 db 'About program',0
|
2009-02-23 13:26:32 +01:00
|
|
|
|
;---------------------------------------------------------------------
|
2010-03-18 21:58:05 +01:00
|
|
|
|
start_temp_file_name: db 'ctrldemo_test',0
|
2010-03-15 20:40:50 +01:00
|
|
|
|
icons_file_name: db 'reload_16x16_8b.png',0
|
|
|
|
|
system_dir1 db '/sys/lib/'
|
|
|
|
|
plugin_BMP_name db 'cnv_bmp.obj',0
|
2009-02-23 13:26:32 +01:00
|
|
|
|
|
2010-03-15 20:40:50 +01:00
|
|
|
|
system_dir db '/sys/lib/'
|
2009-10-17 21:26:18 +02:00
|
|
|
|
|
2010-03-15 20:40:50 +01:00
|
|
|
|
;plugins_directory db 'plugins/',0
|
|
|
|
|
plugins_directory db 0
|
2009-10-17 21:26:18 +02:00
|
|
|
|
|
|
|
|
|
system_dir_Boxlib db '/sys/lib/box_lib.obj',0
|
|
|
|
|
system_dir_CnvPNG db '/sys/lib/cnv_png.obj',0
|
|
|
|
|
system_dir_UNPACK db '/sys/lib/archiver.obj',0
|
2010-08-24 15:01:27 +02:00
|
|
|
|
system_dir_ProcLib db '/sys/lib/proc_lib.obj',0
|
2010-03-15 20:40:50 +01:00
|
|
|
|
; <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ࠧꥤ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <EFBFBD><EFBFBD> <EFBFBD>㦭<EFBFBD> <EFBFBD>ᯮ<EFBFBD>짮<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2009-05-08 19:45:28 +02:00
|
|
|
|
;system_path db '/sys/lib/box_lib.obj',0
|
2010-03-15 20:40:50 +01:00
|
|
|
|
;... <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⥫쭮<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>㣨<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD>।<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
2009-05-08 19:45:28 +02:00
|
|
|
|
;library_name db 'box_lib.obj',0
|
2010-03-15 20:40:50 +01:00
|
|
|
|
;library_name db 'box_lib.obj',0
|
2009-05-08 19:45:28 +02:00
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
ihead_f_i:
|
2010-03-15 20:40:50 +01:00
|
|
|
|
ihead_f_l db 'System error',0
|
2009-05-08 19:45:28 +02:00
|
|
|
|
|
2010-03-15 20:40:50 +01:00
|
|
|
|
er_message_found_lib db 'Sorry I cannot load library box_lib.obj',0
|
2010-08-24 15:01:27 +02:00
|
|
|
|
er_message_import db 'Error on load import library box_lib.obj',0
|
2009-05-08 19:45:28 +02:00
|
|
|
|
|
2009-10-17 21:26:18 +02:00
|
|
|
|
er_message_found_lib2 db 'cnv_png.obj - Not found!',0
|
2010-08-24 15:01:27 +02:00
|
|
|
|
er_message_import2 db 'cnv_png.obj - Wrong import!',0
|
2009-10-17 21:26:18 +02:00
|
|
|
|
|
2010-08-24 15:01:27 +02:00
|
|
|
|
er_message_found_lib3 db 'archiver.obj - Not found!',0
|
|
|
|
|
er_message_import3 db 'archiver.obj - Wrong import!',0
|
2009-05-08 19:45:28 +02:00
|
|
|
|
|
2010-08-24 15:01:27 +02:00
|
|
|
|
er_message_found_lib4 db 'proc_lib.obj - Not found!',0
|
|
|
|
|
er_message_import4 db 'proc_lib.obj - Wrong import!',0
|
|
|
|
|
;---------------------------------------------------------------------
|
2010-03-15 20:40:50 +01:00
|
|
|
|
align 4
|
2009-05-08 19:45:28 +02:00
|
|
|
|
l_libs_start:
|
2010-03-15 20:40:50 +01:00
|
|
|
|
library01 l_libs system_dir_Boxlib+9, path, file_name, system_dir_Boxlib,\
|
2009-10-17 21:26:18 +02:00
|
|
|
|
er_message_found_lib, ihead_f_l, Box_lib_import, er_message_import, ihead_f_i, plugins_directory
|
2009-05-08 19:45:28 +02:00
|
|
|
|
|
2010-03-15 20:40:50 +01:00
|
|
|
|
library02 l_libs system_dir_CnvPNG+9, path, file_name, system_dir_CnvPNG,\
|
2009-10-17 21:26:18 +02:00
|
|
|
|
er_message_found_lib2, ihead_f_l, cnv_png_import, er_message_import2, ihead_f_i, plugins_directory
|
|
|
|
|
|
2010-03-15 20:40:50 +01:00
|
|
|
|
library03 l_libs system_dir_UNPACK+9, path, file_name, system_dir_UNPACK,\
|
2010-08-24 15:01:27 +02:00
|
|
|
|
er_message_found_lib3, ihead_f_l, UNPACK_import, er_message_import3, ihead_f_i, plugins_directory
|
|
|
|
|
|
|
|
|
|
library04 l_libs system_dir_ProcLib+9, path, file_name, system_dir_ProcLib, \
|
|
|
|
|
er_message_found_lib4, ihead_f_l, ProcLib_import, er_message_import4, ihead_f_i, plugins_directory
|
2009-05-08 19:45:28 +02:00
|
|
|
|
|
|
|
|
|
end_l_libs:
|
2009-10-17 21:26:18 +02:00
|
|
|
|
;---------------------------------------------------------------------
|
2010-08-24 15:01:27 +02:00
|
|
|
|
align 4
|
|
|
|
|
ProcLib_import:
|
|
|
|
|
OpenDialog_Init dd aOpenDialog_Init
|
|
|
|
|
OpenDialog_Start dd aOpenDialog_Start
|
|
|
|
|
;OpenDialog__Version dd aOpenDialog_Version
|
|
|
|
|
dd 0
|
|
|
|
|
dd 0
|
|
|
|
|
aOpenDialog_Init db 'OpenDialog_init',0
|
|
|
|
|
aOpenDialog_Start db 'OpenDialog_start',0
|
|
|
|
|
;aOpenDialog_Version db 'Version_OpenDialog',0
|
|
|
|
|
;---------------------------------------------------------------------
|
2010-03-15 20:40:50 +01:00
|
|
|
|
align 4
|
2009-10-17 21:26:18 +02:00
|
|
|
|
cnv_png_import:
|
2010-03-15 20:40:50 +01:00
|
|
|
|
.Start dd aCP_Start
|
|
|
|
|
.Version dd aCP_Version
|
|
|
|
|
.Check dd aCP_Check
|
|
|
|
|
.Assoc dd aCP_Assoc
|
|
|
|
|
dd 0
|
|
|
|
|
dd 0
|
|
|
|
|
aCP_Start db 'START',0
|
|
|
|
|
aCP_Version db 'version',0
|
|
|
|
|
aCP_Check db 'Check_Header',0
|
|
|
|
|
aCP_Assoc db 'Associations',0
|
2009-10-17 21:26:18 +02:00
|
|
|
|
;---------------------------------------------------------------------
|
2010-03-15 20:40:50 +01:00
|
|
|
|
align 4
|
2009-10-17 21:26:18 +02:00
|
|
|
|
UNPACK_import:
|
2010-03-15 20:40:50 +01:00
|
|
|
|
;unpack_Version dd aUnpack_Version
|
|
|
|
|
;unpack_PluginLoad dd aUnpack_PluginLoad
|
2009-10-17 21:26:18 +02:00
|
|
|
|
;unpack_OpenFilePlugin dd aUnpack_OpenFilePlugin
|
2010-03-15 20:40:50 +01:00
|
|
|
|
;unpack_ClosePlugin dd aUnpack_ClosePlugin
|
|
|
|
|
;unpack_ReadFolder dd aUnpack_ReadFolder
|
|
|
|
|
;unpack_SetFolder dd aUnpack_SetFolder
|
|
|
|
|
;unpack_GetFiles dd aUnpack_GetFiles
|
2009-10-17 21:26:18 +02:00
|
|
|
|
;unpack_GetOpenPluginInfo dd aUnpack_GetOpenPluginInfo
|
2010-03-15 20:40:50 +01:00
|
|
|
|
;unpack_Getattr dd aUnpack_Getattr
|
|
|
|
|
;unpack_Open dd aUnpack_Open
|
|
|
|
|
;unpack_Read dd aUnpack_Read
|
|
|
|
|
;unpack_Setpos dd aUnpack_Setpos
|
|
|
|
|
;unpack_Close dd aUnpack_Close
|
2009-10-17 21:26:18 +02:00
|
|
|
|
unpack_DeflateUnpack dd aUnpack_DeflateUnpack
|
|
|
|
|
unpack_DeflateUnpack2 dd aUnpack_DeflateUnpack2
|
2010-03-15 20:40:50 +01:00
|
|
|
|
dd 0
|
|
|
|
|
dd 0
|
|
|
|
|
|
|
|
|
|
;aUnpack_Version db 'version',0
|
|
|
|
|
;aUnpack_PluginLoad db 'plugin_load',0
|
|
|
|
|
;aUnpack_OpenFilePlugin db 'OpenFilePlugin',0
|
|
|
|
|
;aUnpack_ClosePlugin db 'ClosePlugin',0
|
|
|
|
|
;aUnpack_ReadFolder db 'ReadFolder',0
|
|
|
|
|
;aUnpack_SetFolder db 'SetFolder',0
|
|
|
|
|
;aUnpack_GetFiles db 'GetFiles',0
|
|
|
|
|
;aUnpack_GetOpenPluginInfo db 'GetOpenPluginInfo',0
|
|
|
|
|
;aUnpack_Getattr db 'getattr',0
|
|
|
|
|
;aUnpack_Open db 'open',0
|
|
|
|
|
;aUnpack_Read db 'read',0
|
|
|
|
|
;aUnpack_Setpos db 'setpos',0
|
|
|
|
|
;aUnpack_Close db 'close',0
|
|
|
|
|
aUnpack_DeflateUnpack db 'deflate_unpack',0
|
|
|
|
|
aUnpack_DeflateUnpack2 db 'deflate_unpack2',0
|
2009-05-08 19:45:28 +02:00
|
|
|
|
|
2009-02-23 13:26:32 +01:00
|
|
|
|
;---------------------------------------------------------------------
|
2009-10-17 21:26:18 +02:00
|
|
|
|
|
2009-02-23 13:26:32 +01:00
|
|
|
|
fileinfo:
|
2010-03-15 20:40:50 +01:00
|
|
|
|
dd 5
|
|
|
|
|
dd 0
|
|
|
|
|
dd 0
|
|
|
|
|
dd 0
|
|
|
|
|
dd file_info
|
2009-02-23 13:26:32 +01:00
|
|
|
|
string:
|
2010-03-15 20:40:50 +01:00
|
|
|
|
db 0
|
|
|
|
|
dd file_name
|
|
|
|
|
|
|
|
|
|
plugin dd 0
|
2009-02-23 13:26:32 +01:00
|
|
|
|
;---------------------------------------------------------------------
|
|
|
|
|
; not change this section!!!
|
|
|
|
|
; start section
|
|
|
|
|
;---------------------------------------------------------------------
|
2010-03-15 20:40:50 +01:00
|
|
|
|
image_file dd 0
|
|
|
|
|
raw_pointer dd 0
|
|
|
|
|
return_code dd 0
|
|
|
|
|
img_size dd 0
|
|
|
|
|
deflate_unpack dd 0
|
2009-02-23 13:26:32 +01:00
|
|
|
|
;---------------------------------------------------------------------
|
|
|
|
|
; end section
|
|
|
|
|
;---------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
;---------------------------------------------------------------------
|
2010-03-15 20:40:50 +01:00
|
|
|
|
align 4
|
|
|
|
|
Box_lib_import:
|
|
|
|
|
;init_lib dd a_init
|
|
|
|
|
;version_lib dd a_version
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;edit_box_draw dd aEdit_box_draw
|
|
|
|
|
;edit_box_key dd aEdit_box_key
|
|
|
|
|
;edit_box_mouse dd aEdit_box_mouse
|
|
|
|
|
;version_ed dd aVersion_ed
|
|
|
|
|
|
|
|
|
|
;check_box_draw dd aCheck_box_draw
|
|
|
|
|
;check_box_mouse dd aCheck_box_mouse
|
|
|
|
|
;version_ch dd aVersion_ch
|
|
|
|
|
|
|
|
|
|
;option_box_draw dd aOption_box_draw
|
|
|
|
|
;option_box_mouse dd aOption_box_mouse
|
|
|
|
|
;version_op dd aVersion_op
|
|
|
|
|
|
|
|
|
|
scrollbar_ver_draw dd aScrollbar_ver_draw
|
|
|
|
|
scrollbar_ver_mouse dd aScrollbar_ver_mouse
|
|
|
|
|
scrollbar_hor_draw dd aScrollbar_hor_draw
|
|
|
|
|
scrollbar_hor_mouse dd aScrollbar_hor_mouse
|
|
|
|
|
;version_scrollbar dd aVersion_scrollbar
|
|
|
|
|
|
|
|
|
|
dinamic_button_draw dd aDbutton_draw
|
|
|
|
|
dinamic_button_mouse dd aDbutton_mouse
|
|
|
|
|
;version_dbutton dd aVersion_dbutton
|
|
|
|
|
|
|
|
|
|
menu_bar_draw dd aMenu_bar_draw
|
|
|
|
|
menu_bar_mouse dd aMenu_bar_mouse
|
|
|
|
|
menu_bar_activate dd aMenu_bar_activate
|
|
|
|
|
;version_menu_bar dd aVersion_menu_bar
|
|
|
|
|
|
|
|
|
|
;FileBrowser_draw dd aFileBrowser_draw
|
|
|
|
|
;FileBrowser_mouse dd aFileBrowser_mouse
|
|
|
|
|
;FileBrowser_key dd aFileBrowser_key
|
|
|
|
|
;Version_FileBrowser dd aVersion_FileBrowser
|
|
|
|
|
|
|
|
|
|
PathShow_prepare dd sz_PathShow_prepare
|
2010-03-18 21:58:05 +01:00
|
|
|
|
PathShow_draw dd sz_PathShow_draw
|
|
|
|
|
;Version_path_show dd szVersion_path_show
|
2010-03-15 20:40:50 +01:00
|
|
|
|
dd 0
|
|
|
|
|
dd 0
|
|
|
|
|
|
|
|
|
|
;a_init db 'lib_init',0
|
|
|
|
|
;a_version db 'version',0
|
|
|
|
|
|
|
|
|
|
;aEdit_box_draw db 'edit_box',0
|
|
|
|
|
;aEdit_box_key db 'edit_box_key',0
|
|
|
|
|
;aEdit_box_mouse db 'edit_box_mouse',0
|
|
|
|
|
;aVersion_ed db 'version_ed',0
|
|
|
|
|
|
|
|
|
|
;aCheck_box_draw db 'check_box_draw',0
|
|
|
|
|
;aCheck_box_mouse db 'check_box_mouse',0
|
|
|
|
|
;aVersion_ch db 'version_ch',0
|
|
|
|
|
|
|
|
|
|
;aOption_box_draw db 'option_box_draw',0
|
|
|
|
|
;aOption_box_mouse db 'option_box_mouse',0
|
|
|
|
|
;aVersion_op db 'version_op',0
|
|
|
|
|
|
|
|
|
|
aScrollbar_ver_draw db 'scrollbar_v_draw',0
|
|
|
|
|
aScrollbar_ver_mouse db 'scrollbar_v_mouse',0
|
|
|
|
|
aScrollbar_hor_draw db 'scrollbar_h_draw',0
|
|
|
|
|
aScrollbar_hor_mouse db 'scrollbar_h_mouse',0
|
|
|
|
|
;aVersion_scrollbar db 'version_scrollbar',0
|
|
|
|
|
|
|
|
|
|
aDbutton_draw db 'dbutton_draw',0
|
|
|
|
|
aDbutton_mouse db 'dbutton_mouse',0
|
|
|
|
|
;aVersion_dbutton db 'version_dbutton',0
|
|
|
|
|
|
|
|
|
|
aMenu_bar_draw db 'menu_bar_draw',0
|
|
|
|
|
aMenu_bar_mouse db 'menu_bar_mouse',0
|
|
|
|
|
aMenu_bar_activate db 'menu_bar_activate',0
|
|
|
|
|
;aVersion_menu_bar db 'version_menu_bar',0
|
|
|
|
|
|
|
|
|
|
;aFileBrowser_draw db 'FileBrowser_draw',0
|
|
|
|
|
;aFileBrowser_mouse db 'FileBrowser_mouse',0
|
|
|
|
|
;aFileBrowser_key db 'FileBrowser_key',0
|
|
|
|
|
;aVersion_FileBrowser db 'version_FileBrowser',0
|
|
|
|
|
|
|
|
|
|
sz_PathShow_prepare db 'PathShow_prepare',0
|
|
|
|
|
sz_PathShow_draw db 'PathShow_draw',0
|
|
|
|
|
;szVersion_path_show db 'version_PathShow',0
|
|
|
|
|
|
2009-02-23 13:26:32 +01:00
|
|
|
|
;---------------------------------------------------------------------
|
|
|
|
|
|
2010-03-15 20:40:50 +01:00
|
|
|
|
;---------------------------------------------------------------------
|
|
|
|
|
align 4
|
2009-02-23 13:26:32 +01:00
|
|
|
|
scroll_bar_data_vertical:
|
|
|
|
|
.x:
|
2010-03-15 20:40:50 +01:00
|
|
|
|
.size_x dw 15 ;+0
|
|
|
|
|
.start_x dw 370 ;+2
|
2009-02-23 13:26:32 +01:00
|
|
|
|
.y:
|
2010-03-15 20:40:50 +01:00
|
|
|
|
.size_y dw 300 ;+4
|
|
|
|
|
.start_y dw 50 ;+6
|
|
|
|
|
.btn_high dd 15 ;+8
|
|
|
|
|
.type dd 1 ;+12
|
|
|
|
|
.max_area dd 300 ;+16
|
|
|
|
|
.cur_area dd 30 ;+20
|
|
|
|
|
.position dd 140 ;+24
|
|
|
|
|
.bckg_col dd 0xeeeeee ;+28
|
|
|
|
|
.frnt_col dd 0xbbddff ;+32
|
|
|
|
|
.line_col dd 0 ;+36
|
|
|
|
|
.redraw dd 0 ;+40
|
|
|
|
|
.delta dw 0 ;+44
|
|
|
|
|
.delta2 dw 0 ;+46
|
2009-02-23 13:26:32 +01:00
|
|
|
|
.run_x:
|
2010-03-15 20:40:50 +01:00
|
|
|
|
.r_size_x dw 0 ;+48
|
|
|
|
|
.r_start_x dw 0 ;+50
|
2009-02-23 13:26:32 +01:00
|
|
|
|
.run_y:
|
2010-03-15 20:40:50 +01:00
|
|
|
|
.r_size_y dw 0 ;+52
|
|
|
|
|
.r_start_y dw 0 ;+54
|
|
|
|
|
.m_pos dd 0 ;+56
|
|
|
|
|
.m_pos_2 dd 0 ;+60
|
|
|
|
|
.m_keys dd 0 ;+64
|
|
|
|
|
.run_size dd 0 ;+68
|
|
|
|
|
.position2 dd 0 ;+72
|
|
|
|
|
.work_size dd 0 ;+76
|
|
|
|
|
.all_redraw dd 0 ;+80
|
|
|
|
|
.ar_offset dd 10 ;+84
|
2009-02-23 13:26:32 +01:00
|
|
|
|
;---------------------------------------------------------------------
|
2010-03-15 20:40:50 +01:00
|
|
|
|
align 4
|
2009-02-23 13:26:32 +01:00
|
|
|
|
scroll_bar_data_horizontal:
|
|
|
|
|
.x:
|
2010-03-15 20:40:50 +01:00
|
|
|
|
.size_x dw 300 ;0 ;+0
|
|
|
|
|
.start_x dw 30 ;0 ;+2
|
2009-02-23 13:26:32 +01:00
|
|
|
|
.y:
|
2010-03-15 20:40:50 +01:00
|
|
|
|
.size_y dw 15 ;0 ;+4
|
|
|
|
|
.start_y dw 370 ;0 ;+6
|
|
|
|
|
.btn_high dd 15 ;+8
|
|
|
|
|
.type dd 1 ;+12
|
|
|
|
|
.max_area dd 300 ;+16
|
|
|
|
|
.cur_area dd 30 ;+20
|
|
|
|
|
.position dd 140 ;+24
|
|
|
|
|
.bckg_col dd 0xeeeeee ;+28
|
|
|
|
|
.frnt_col dd 0xbbddff ;+32
|
|
|
|
|
.line_col dd 0 ;+36
|
|
|
|
|
.redraw dd 0 ;+40
|
|
|
|
|
.delta dw 0 ;+44
|
|
|
|
|
.delta2 dw 0 ;+46
|
2009-02-23 13:26:32 +01:00
|
|
|
|
.run_x:
|
2010-03-15 20:40:50 +01:00
|
|
|
|
.r_size_x dw 0 ;+48
|
|
|
|
|
.r_start_x dw 0 ;+50
|
2009-02-23 13:26:32 +01:00
|
|
|
|
.run_y:
|
2010-03-15 20:40:50 +01:00
|
|
|
|
.r_size_y dw 0 ;+52
|
|
|
|
|
.r_start_y dw 0 ;+54
|
|
|
|
|
.m_pos dd 0 ;+56
|
|
|
|
|
.m_pos_2 dd 0 ;+60
|
|
|
|
|
.m_keys dd 0 ;+64
|
|
|
|
|
.run_size dd 0 ;+68
|
|
|
|
|
.position2 dd 0 ;+72
|
|
|
|
|
.work_size dd 0 ;+76
|
|
|
|
|
.all_redraw dd 0 ;+80
|
|
|
|
|
.ar_offset dd 10 ;+84
|
2009-02-23 13:26:32 +01:00
|
|
|
|
;---------------------------------------------------------------------
|
2010-03-15 20:40:50 +01:00
|
|
|
|
align 4
|
2009-02-23 13:26:32 +01:00
|
|
|
|
menu_data_1:
|
2010-03-15 20:40:50 +01:00
|
|
|
|
.type: dd 0 ;+0
|
2009-02-23 13:26:32 +01:00
|
|
|
|
.x:
|
2010-03-15 20:40:50 +01:00
|
|
|
|
.size_x dw 40 ;+4
|
|
|
|
|
.start_x dw 20 ;+6
|
2009-02-23 13:26:32 +01:00
|
|
|
|
.y:
|
2010-03-15 20:40:50 +01:00
|
|
|
|
.size_y dw 15 ;+8
|
|
|
|
|
.start_y dw 25 ;+10
|
|
|
|
|
.text_pointer: dd menu_text_area ;0 ;+12
|
|
|
|
|
.pos_pointer: dd menu_text_area.1 ;0 ;+16
|
|
|
|
|
.text_end dd menu_text_area.end ;0 ;+20
|
|
|
|
|
.mouse_pos dd 0 ;+24
|
|
|
|
|
.mouse_keys dd 0 ;+28
|
2009-02-23 13:26:32 +01:00
|
|
|
|
.x1:
|
2010-03-15 20:40:50 +01:00
|
|
|
|
.size_x1 dw 80 ;+32
|
|
|
|
|
.start_x1 dw 20 ;+34
|
2009-02-23 13:26:32 +01:00
|
|
|
|
.y1:
|
2010-03-15 20:40:50 +01:00
|
|
|
|
.size_y1 dw 100 ;+36
|
|
|
|
|
.start_y1 dw 40 ;+38
|
|
|
|
|
.bckg_col dd 0xeeeeee ;+40
|
|
|
|
|
.frnt_col dd 0xff ;+44
|
|
|
|
|
.menu_col dd 0xffffff ;+48
|
|
|
|
|
.select dd 0 ;+52
|
|
|
|
|
.out_select dd 0 ;+56
|
|
|
|
|
.buf_adress dd 0 ;+60
|
|
|
|
|
.procinfo dd procinfo ;+64
|
|
|
|
|
.click dd 0 ;+68
|
|
|
|
|
.cursor dd 0 ;+72
|
|
|
|
|
.cursor_old dd 0 ;+76
|
|
|
|
|
.interval dd 16 ;+80
|
|
|
|
|
.cursor_max dd 0 ;+84
|
|
|
|
|
.extended_key dd 0 ;+88
|
|
|
|
|
.menu_sel_col dd 0x00cc00 ;+92
|
|
|
|
|
.bckg_text_col dd 0 ; +96
|
|
|
|
|
.frnt_text_col dd 0xffffff ;+100
|
|
|
|
|
.mouse_keys_old dd 0 ;+104
|
|
|
|
|
.font_height dd 8 ;+108
|
|
|
|
|
.cursor_out dd 0 ;+112
|
|
|
|
|
.get_mouse_flag dd 0 ;+116
|
2009-02-23 13:26:32 +01:00
|
|
|
|
;-------------------------
|
|
|
|
|
menu_text_area:
|
2010-03-15 20:40:50 +01:00
|
|
|
|
db 'File',0
|
2009-02-23 13:26:32 +01:00
|
|
|
|
.1:
|
2010-03-15 20:40:50 +01:00
|
|
|
|
db 'Open file',0
|
|
|
|
|
db 'Save file',0
|
|
|
|
|
db 'Select dir',0
|
|
|
|
|
db 'Exit',0
|
2009-02-23 13:26:32 +01:00
|
|
|
|
.end:
|
2010-03-15 20:40:50 +01:00
|
|
|
|
db 0
|
2009-02-23 13:26:32 +01:00
|
|
|
|
;---------------------------------------------------------------------
|
2010-03-15 20:40:50 +01:00
|
|
|
|
align 4
|
2009-02-23 13:26:32 +01:00
|
|
|
|
menu_data_2:
|
2010-03-15 20:40:50 +01:00
|
|
|
|
.type: dd 0 ;+0
|
2009-02-23 13:26:32 +01:00
|
|
|
|
.x:
|
2010-03-15 20:40:50 +01:00
|
|
|
|
.size_x dw 40 ;+4
|
|
|
|
|
.start_x dw 60 ;+6
|
2009-02-23 13:26:32 +01:00
|
|
|
|
.y:
|
2010-03-15 20:40:50 +01:00
|
|
|
|
.size_y dw 15 ;+8
|
|
|
|
|
.start_y dw 25 ;+10
|
|
|
|
|
.text_pointer: dd menu_text_area_2 ;0 ;+12
|
|
|
|
|
.pos_pointer: dd menu_text_area_2.1 ;0 ;+16
|
|
|
|
|
.text_end dd menu_text_area_2.end ;0 ;+20
|
|
|
|
|
.mouse_pos dd 0 ;+24
|
|
|
|
|
.mouse_keys dd 0 ;+28
|
2009-02-23 13:26:32 +01:00
|
|
|
|
.x1:
|
2010-03-15 20:40:50 +01:00
|
|
|
|
.size_x1 dw 50 ;+32
|
|
|
|
|
.start_x1 dw 60 ;+34
|
2009-02-23 13:26:32 +01:00
|
|
|
|
.y1:
|
2010-03-15 20:40:50 +01:00
|
|
|
|
.size_y1 dw 100 ;+36
|
|
|
|
|
.start_y1 dw 40 ;+38
|
|
|
|
|
.bckg_col dd 0xeeeeee ;+40
|
|
|
|
|
.frnt_col dd 0xff ;+44
|
|
|
|
|
.menu_col dd 0xffffff ;+48
|
|
|
|
|
.select dd 0 ;+52
|
|
|
|
|
.out_select dd 0 ;+56
|
|
|
|
|
.buf_adress dd 0 ;+60
|
|
|
|
|
.procinfo dd procinfo ;+64
|
|
|
|
|
.click dd 0 ;+68
|
|
|
|
|
.cursor dd 0 ;+72
|
|
|
|
|
.cursor_old dd 0 ;+76
|
|
|
|
|
.interval dd 16 ;+80
|
|
|
|
|
.cursor_max dd 0 ;+84
|
|
|
|
|
.extended_key dd 0 ;+88
|
|
|
|
|
.menu_sel_col dd 0x00cc00 ;+92
|
|
|
|
|
.bckg_text_col dd 0 ; +96
|
|
|
|
|
.frnt_text_col dd 0xffffff ;+100
|
|
|
|
|
.mouse_keys_old dd 0 ;+104
|
|
|
|
|
.font_height dd 8 ;+108
|
|
|
|
|
.cursor_out dd 0 ;+112
|
|
|
|
|
.get_mouse_flag dd 0 ;+116
|
2009-02-23 13:26:32 +01:00
|
|
|
|
;------------------------
|
|
|
|
|
menu_text_area_2:
|
2010-03-15 20:40:50 +01:00
|
|
|
|
db 'Help',0
|
2009-02-23 13:26:32 +01:00
|
|
|
|
.1:
|
2010-03-15 20:40:50 +01:00
|
|
|
|
db 'Test1',0
|
|
|
|
|
db 'About',0
|
2009-02-23 13:26:32 +01:00
|
|
|
|
.end:
|
2010-03-15 20:40:50 +01:00
|
|
|
|
db 0
|
2009-02-23 13:26:32 +01:00
|
|
|
|
;---------------------------------------------------------------------
|
2010-03-15 20:40:50 +01:00
|
|
|
|
align 4
|
2009-02-23 13:26:32 +01:00
|
|
|
|
dinamic_button_data_1:
|
2010-03-15 20:40:50 +01:00
|
|
|
|
.type dd 0 ;+0
|
2009-02-23 13:26:32 +01:00
|
|
|
|
.x:
|
2010-03-15 20:40:50 +01:00
|
|
|
|
.size_x dw 20 ;+4
|
|
|
|
|
.start_x dw 110 ;+6
|
2009-02-23 13:26:32 +01:00
|
|
|
|
.y:
|
2010-03-15 20:40:50 +01:00
|
|
|
|
.size_y dw 20 ;+8
|
|
|
|
|
.start_y dw 25 ;+10
|
|
|
|
|
.mouse_pos dd 0 ;+12
|
|
|
|
|
.mouse_keys dd 0 ;+16
|
|
|
|
|
.mouse_keys_old dd 0 ;+20
|
|
|
|
|
.active_raw dd 0 ;+24
|
|
|
|
|
.passive_raw dd 0 ;+28
|
|
|
|
|
.click_raw dd 0 ;+32
|
|
|
|
|
.resolution_raw dd 0 ;+36
|
|
|
|
|
.palette_raw dd 0 ;+40
|
|
|
|
|
.offset_raw dd 0 ;+44
|
|
|
|
|
.select dd 0 ;+48
|
|
|
|
|
.click dd 0 ;+52
|
2009-02-23 13:26:32 +01:00
|
|
|
|
;---------------------------------------------------------------------
|
2010-03-15 20:40:50 +01:00
|
|
|
|
align 4
|
2009-02-23 13:26:32 +01:00
|
|
|
|
dinamic_button_data_2:
|
2010-03-15 20:40:50 +01:00
|
|
|
|
.type dd 0 ;+0
|
2009-02-23 13:26:32 +01:00
|
|
|
|
.x:
|
2010-03-15 20:40:50 +01:00
|
|
|
|
.size_x dw 20 ;+4
|
|
|
|
|
.start_x dw 140 ;+6
|
2009-02-23 13:26:32 +01:00
|
|
|
|
.y:
|
2010-03-15 20:40:50 +01:00
|
|
|
|
.size_y dw 20 ;+8
|
|
|
|
|
.start_y dw 25 ;+10
|
|
|
|
|
.mouse_pos dd 0 ;+12
|
|
|
|
|
.mouse_keys dd 0 ;+16
|
|
|
|
|
.mouse_keys_old dd 0 ;+20
|
|
|
|
|
.active_raw dd 0 ;+24
|
|
|
|
|
.passive_raw dd 0 ;+28
|
|
|
|
|
.click_raw dd 0 ;+32
|
|
|
|
|
.resolution_raw dd 0 ;+36
|
|
|
|
|
.palette_raw dd 0 ;+40
|
|
|
|
|
.offset_raw dd 0 ;+44
|
|
|
|
|
.select dd 0 ;+48
|
|
|
|
|
.click dd 0 ;+52
|
2009-10-17 21:26:18 +02:00
|
|
|
|
;---------------------------------------------------------------------
|
|
|
|
|
OpenDialog_data:
|
|
|
|
|
.type dd 0
|
2010-03-15 20:40:50 +01:00
|
|
|
|
.procinfo dd procinfo ;+4
|
|
|
|
|
.com_area_name dd communication_area_name ;+8
|
|
|
|
|
.com_area dd 0 ;+12
|
|
|
|
|
.opendir_pach dd plugin_pach ;+16
|
|
|
|
|
.dir_default_pach dd communication_area_default_pach ;+20
|
2011-06-13 15:08:52 +02:00
|
|
|
|
.start_path dd od_path ;+24
|
2010-03-15 20:40:50 +01:00
|
|
|
|
.draw_window dd draw_window ;+28
|
|
|
|
|
.status dd 0 ;+32
|
|
|
|
|
.openfile_pach dd openfile_pach ;+36
|
2010-03-18 21:58:05 +01:00
|
|
|
|
.filename_area dd filename_area ;+40
|
|
|
|
|
.filter_area dd Filter
|
2010-08-24 15:01:27 +02:00
|
|
|
|
.x:
|
|
|
|
|
.x_size dw 420 ;+48 ; Window X size
|
|
|
|
|
.x_start dw 10 ;+50 ; Window X position
|
|
|
|
|
.y:
|
|
|
|
|
.y_size dw 320 ;+52 ; Window y size
|
|
|
|
|
.y_start dw 10 ;+54 ; Window Y position
|
2009-10-17 21:26:18 +02:00
|
|
|
|
|
|
|
|
|
communication_area_name:
|
|
|
|
|
db 'FFFFFFFF_open_dialog',0
|
2011-06-13 15:08:52 +02:00
|
|
|
|
;open_dialog_name:
|
|
|
|
|
; db 'opendial',0
|
|
|
|
|
|
|
|
|
|
od_path:
|
|
|
|
|
db '/sys/File Managers/OpenDial',0
|
|
|
|
|
|
2009-10-17 21:26:18 +02:00
|
|
|
|
communication_area_default_pach:
|
2020-10-02 14:33:16 +02:00
|
|
|
|
db '/sys',0
|
2009-10-17 21:26:18 +02:00
|
|
|
|
|
|
|
|
|
Filter:
|
2010-03-18 21:58:05 +01:00
|
|
|
|
dd Filter.end - Filter.1
|
|
|
|
|
.1:
|
2009-10-17 21:26:18 +02:00
|
|
|
|
db 'JPEG',0
|
|
|
|
|
db 'JPG',0
|
|
|
|
|
db 'JPE',0
|
|
|
|
|
db 'PNG',0
|
|
|
|
|
db 'GIF',0
|
|
|
|
|
db 'BMP',0
|
|
|
|
|
db 'KEX',0
|
2010-03-18 21:58:05 +01:00
|
|
|
|
db 'DAT',0
|
|
|
|
|
db 'INI',0
|
2009-10-17 21:26:18 +02:00
|
|
|
|
.end:
|
|
|
|
|
db 0
|
2010-03-15 20:40:50 +01:00
|
|
|
|
;---------------------------------------------------------------------
|
|
|
|
|
PathShow_data_1:
|
|
|
|
|
.type dd 0 ;+0
|
|
|
|
|
.start_y dw 28 ;+4
|
|
|
|
|
.start_x dw 172 ;+6
|
|
|
|
|
.font_size_x dw 6 ;+8 ; 6 - for font 0, 8 - for font 1
|
|
|
|
|
.area_size_x dw 200 ;+10
|
|
|
|
|
.font_number dd 0 ;+12 ; 0 - monospace, 1 - variable
|
|
|
|
|
.background_flag dd 0 ;+16
|
|
|
|
|
.font_color dd 0x0 ;+20
|
|
|
|
|
.background_color dd 0x0 ;+24
|
|
|
|
|
.text_pointer dd openfile_pach ;+28
|
|
|
|
|
.work_area_pointer dd text_work_area ;+32
|
|
|
|
|
.temp_text_length dd 0 ;+36
|
|
|
|
|
;---------------------------------------------------------------------
|