Subversion Repositories Kolibri OS

Rev

Rev 8227 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. ;---------------------------------------------------------------------
  2. system_dir_1: db '/sys/lib/libimg.obj',0
  3. system_dir_2 db '/sys/lib/proc_lib.obj',0
  4. system_dir_3: db '/sys/lib/kmenu.obj',0
  5. ;---------------------------------------------------------------------
  6. align 4
  7. l_libs_start:
  8.         lib1 l_libs system_dir_1+9, library_path, system_dir_1, import_libimg
  9.         lib2 l_libs system_dir_2+9, library_path, system_dir_2, ProcLib_import
  10.         lib3 l_libs system_dir_3+9, library_path, system_dir_3, import_libkmenu
  11. end_l_libs:
  12. ;---------------------------------------------------------------------
  13. align 4
  14. OpenDialog_data:
  15. .type                   dd 1    ; Save
  16. .procinfo               dd procinfo     ;+4
  17. .com_area_name          dd communication_area_name      ;+8
  18. .com_area               dd 0    ;+12
  19. .opendir_pach           dd temp_dir_pach        ;+16
  20. .dir_default_pach       dd communication_area_default_pach      ;+20
  21. .start_path             dd open_dialog_path     ;+24
  22. .draw_window            dd drawwin      ;+28
  23. .status                 dd 0    ;+32
  24. .openfile_pach          dd file_path    ;+36
  25. .filename_area          dd filename_area        ;+40
  26. .filter_area            dd Filter
  27. .x:
  28. .x_size                 dw 420 ;+48 ; Window X size
  29. .x_start                dw 10 ;+50 ; Window X position
  30. .y:
  31. .y_size                 dw 320 ;+52 ; Window y size
  32. .y_start                dw 10 ;+54 ; Window Y position
  33.  
  34. communication_area_name:
  35.         db 'FFFFFFFF_open_dialog',0
  36. open_dialog_path:
  37. if __nightbuild eq yes
  38.     db '/sys/MANAGERS/opendial',0
  39. else
  40.     db '/sys/File Managers/opendial',0
  41. end if
  42. communication_area_default_pach:
  43.         db '/rd0/1/',0
  44.  
  45. Filter:
  46. dd      Filter.end - Filter
  47. .1:
  48. db      'BMP',0
  49. db      'GIF',0
  50. db      'JPG',0
  51. db      'PNG',0
  52. .end:
  53. db      0
  54.  
  55. align 4
  56. ColorDialog_data:
  57. .type                   dd 0
  58. .procinfo               dd procinfo ;+4
  59. .com_area_name          dd cd_communication_area_name ;+8
  60. .com_area               dd 0 ;+12
  61. .start_path             dd colordialog_path ;+16
  62. .draw_window            dd drawwin ;+20
  63. .status                 dd 0 ;+24
  64. .x:
  65. .x_size                 dw 510 ;+28 ; Window X size
  66. .x_start                dw 10 ;+30 ; Window X position
  67. .y:
  68. .y_size                 dw 310 ;+32 ; Window y size
  69. .y_start                dw 10 ;+34 ; Window Y position
  70. .color_type             dd 0 ;+36 ; 0- RGB, 1 or other - reserved
  71. .color                  dd 0 ;+40 ; Selected color
  72.  
  73. cd_communication_area_name:
  74.         db 'FFFFFFFF_color_dialog',0
  75. colordialog_path:
  76.         db '/rd/1/colrdial',0
  77.  
  78. ;start_temp_file_name:  db 'pattern.mgb',0
  79.  
  80. path4   db '/sys/noname.bmp',0
  81. ;---------------------------------------------------------------------
  82. align 4
  83. import_libimg:
  84.         dd alib_init1
  85.         img_is_img  dd aimg_is_img
  86.         img_info    dd aimg_info
  87.         img_from_file dd aimg_from_file
  88.         img_to_file dd aimg_to_file
  89.         img_from_rgb dd aimg_from_rgb
  90.         img_to_rgb  dd aimg_to_rgb
  91.         img_to_rgb2 dd aimg_to_rgb2
  92.         img_decode  dd aimg_decode
  93.         img_encode  dd aimg_encode
  94.         img_create  dd aimg_create
  95.         img_destroy dd aimg_destroy
  96.         img_destroy_layer dd aimg_destroy_layer
  97.         img_count   dd aimg_count
  98.         img_lock_bits dd aimg_lock_bits
  99.         img_unlock_bits dd aimg_unlock_bits
  100.         img_flip    dd aimg_flip
  101.         img_flip_layer dd aimg_flip_layer
  102.         img_rotate  dd aimg_rotate
  103.         img_rotate_layer dd aimg_rotate_layer
  104.         img_draw    dd aimg_draw
  105. dd 0,0
  106.         alib_init1   db 'lib_init',0
  107.         aimg_is_img  db 'img_is_img',0
  108.         aimg_info    db 'img_info',0
  109.         aimg_from_file db 'img_from_file',0
  110.         aimg_to_file db 'img_to_file',0
  111.         aimg_from_rgb db 'img_from_rgb',0
  112.         aimg_to_rgb  db 'img_to_rgb',0
  113.         aimg_to_rgb2 db 'img_to_rgb2',0
  114.         aimg_decode  db 'img_decode',0
  115.         aimg_encode  db 'img_encode',0
  116.         aimg_create  db 'img_create',0
  117.         aimg_destroy db 'img_destroy',0
  118.         aimg_destroy_layer db 'img_destroy_layer',0
  119.         aimg_count   db 'img_count',0
  120.         aimg_lock_bits db 'img_lock_bits',0
  121.         aimg_unlock_bits db 'img_unlock_bits',0
  122.         aimg_flip    db 'img_flip',0
  123.         aimg_flip_layer db 'img_flip_layer',0
  124.         aimg_rotate  db 'img_rotate',0
  125.         aimg_rotate_layer db 'img_rotate_layer',0
  126.         aimg_draw    db 'img_draw',0
  127.  
  128. align 4
  129. ProcLib_import:
  130. OpenDialog_Init         dd aOpenDialog_Init
  131. OpenDialog_Start        dd aOpenDialog_Start
  132. ColorDialog_Init        dd aColorDialog_Init
  133. ColorDialog_Start       dd aColorDialog_Start
  134. ;OpenDialog__Version    dd aOpenDialog_Version
  135.         dd      0
  136.         dd      0
  137. aOpenDialog_Init        db 'OpenDialog_init',0
  138. aOpenDialog_Start       db 'OpenDialog_start',0
  139. aColorDialog_Init       db 'ColorDialog_init',0
  140. aColorDialog_Start      db 'ColorDialog_start',0
  141. ;aOpenDialog_Version    db 'Version_OpenDialog',0
  142.  
  143. align 4
  144. import_libkmenu:
  145.         kmenu_init                     dd akmenu_init
  146.         kmainmenu_draw                 dd akmainmenu_draw
  147.         kmainmenu_dispatch_cursorevent dd akmainmenu_dispatch_cursorevent
  148.         ksubmenu_new                   dd aksubmenu_new
  149.         ksubmenu_delete                dd aksubmenu_delete
  150.         ksubmenu_draw                  dd aksubmenu_draw
  151.         ksubmenu_add                   dd aksubmenu_add
  152.         kmenuitem_new                  dd akmenuitem_new
  153.         kmenuitem_delete               dd akmenuitem_delete
  154.         kmenuitem_draw                 dd akmenuitem_draw
  155. dd 0,0
  156.         akmenu_init                     db 'kmenu_init',0
  157.         akmainmenu_draw                 db 'kmainmenu_draw',0
  158.         akmainmenu_dispatch_cursorevent db 'kmainmenu_dispatch_cursorevent',0
  159.         aksubmenu_new                   db 'ksubmenu_new',0
  160.         aksubmenu_delete                db 'ksubmenu_delete',0
  161.         aksubmenu_draw                  db 'ksubmenu_draw',0
  162.         aksubmenu_add                   db 'ksubmenu_add',0
  163.         akmenuitem_new                  db 'kmenuitem_new',0
  164.         akmenuitem_delete               db 'kmenuitem_delete',0
  165.         akmenuitem_draw                 db 'kmenuitem_draw',0
  166. ;---------------------------------------------------------------------