Subversion Repositories Kolibri OS

Rev

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

  1.  
  2. vscrl_capt      dd      -1
  3. hscrl_capt      dd      -1
  4. body_capt       dd      -1
  5. s_status        dd      0
  6. lineHeight      dd      LINEH
  7. charWidth       dd      6
  8. scale           db      0
  9. ins_mode        db      1
  10.  
  11. sz app_fasm    ,'/rd/1/develop/fasm',0
  12. sz app_board   ,'/rd/1/develop/board',0
  13. sz app_tinypad ,'/rd/1/tinypad',0
  14. sz app_docpak  ,'/rd/1/docpack',0
  15.  
  16. sz sysfuncs_param,'f',0
  17.  
  18. include 'tp-tables.inc'
  19. include 'tp-locale.inc'
  20.  
  21. macro editor_lines [str, flags]
  22. {
  23.   common
  24.     local size
  25.   forward
  26.     virtual at 0
  27.       db str
  28.       size = $
  29.     end virtual
  30.     dd size
  31.     dw flags
  32.     db str
  33.   common
  34.     dd 0
  35. }
  36.  
  37. ;// options dialog data [
  38. label optsdlg_editor at $-EDITOR.Bounds
  39.   dd ?,?,?,?   ; Bounds         RECT
  40.   dd @f        ; Lines          dd ?
  41.   dd ?         ; Lines.Size     dd ?
  42.   dd 9         ; Lines.Count    dd ?
  43.   dd 21        ; Columns.Count  dd ?
  44.   dd 0,4       ; Caret          POINT
  45.   dd 100,4     ; SelStart       POINT
  46.   dd 0,0       ; TopLeft        POINT
  47.   dd 0,0       ; VScroll        SCROLLBAR
  48.   dd 0,0       ; HScroll        SCROLLBAR
  49.   dd 0         ; Gutter.Width   dd ?
  50.   db 0         ; Gutter.Visible db ?
  51.   db 1         ; AsmMode        db ?
  52.   db 0         ; Modified       db ?
  53.  
  54. @@:
  55. editor_lines \
  56.   ' ',                     0, \
  57.   ' org 100h',             EDITOR_LINE_FLAG_MOFIFIED, \
  58.   ' ',                     0, \
  59.   ' mov ah,09h  ; write',  0, \
  60.   ' mov dx,text',          0, \
  61.   ' int 21h',              0, \
  62.   ' int 20h',              EDITOR_LINE_FLAG_MOFIFIED + EDITOR_LINE_FLAG_SAVED, \
  63.   ' ',                     0, \
  64.   ' text db "Hello!",24h', 0
  65.  
  66. optsdlg_editor_parts:   ; left,top,right,bottom,type
  67.   db 0, 12, 13, 29, 22
  68.   db 0, 12, 33, 47, 42
  69.   db 0, 12, 53, 29, 72
  70.   db 0, 12, 83, 53, 92
  71.   db 2, 12, 43, 77, 52
  72.   db 3,  4, 43,148, 52
  73.   db 4, 48, 33, 53, 42
  74.   db 4,108, 83,113, 92
  75.   db 5, 36, 13, 59, 22
  76.   db 5, 54, 33, 71, 42
  77.   db 5, 36, 53, 53, 72
  78.   db 5,114, 83,131, 92
  79.   db 6, 60, 83,107, 92
  80.   db 7, 84, 33,125, 42
  81.   db 8,  1, 13,  5, 22
  82.   db 9,  1, 63,  5, 72
  83.   db 1,  1,  1,148,105
  84.   db -1
  85. ;// ]
  86.  
  87. sz symbols_ex,';?.%"',"'"
  88. sz symbols,'#&*\:/<>|{}()[]=+-, '
  89.  
  90. ; INI file section/key names
  91.  
  92. sz ini_sec_window,INI_SEC_PREFIX,'window',0
  93. sz ini_window_top,'top',0
  94. sz ini_window_left,'left',0
  95. sz ini_window_width,'width',0
  96. sz ini_window_height,'height',0
  97.  
  98. sz ini_sec_colors,INI_SEC_PREFIX,'colors',0
  99. sz ini_colors_text,'text',0
  100. sz ini_colors_back,'back',0
  101. sz ini_colors_text_sel,'text_sel',0
  102. sz ini_colors_back_sel,'back_sel',0
  103. sz ini_colors_symbol,'symbol',0
  104. sz ini_colors_number,'number',0
  105. sz ini_colors_string,'string',0
  106. sz ini_colors_comment,'comment',0
  107. sz ini_colors_line_moded,'line_moded',0
  108. sz ini_colors_line_saved,'line_saved',0
  109.  
  110. sz ini_sec_options,INI_SEC_PREFIX,'options',0
  111. sz ini_options_tabs_pos,'tabs_pos',0
  112. sz ini_options_secure_sel,'secure_sel',0
  113. sz ini_options_auto_braces,'auto_braces',0
  114. sz ini_options_auto_indent,'auto_indent',0
  115. sz ini_options_optim_save,'optim_save',0
  116. sz ini_options_line_nums,'line_nums',0
  117. ;-----------------------------------------------------------------------------
  118. OpenDialog_data:
  119. .type                   dd 0
  120. .procinfo               dd p_info       ;+4
  121. .com_area_name          dd communication_area_name      ;+8
  122. .com_area               dd 0    ;+12
  123. .opendir_pach           dd temp_dir_pach        ;+16
  124. .dir_default_pach       dd communication_area_default_pach      ;+20
  125. .start_path             dd open_dialog_path     ;+24
  126. .draw_window            dd draw_window_for_OD   ;+28
  127. .status                 dd 0    ;+32
  128. .openfile_pach          dd fname_Info   ;+36
  129. .filename_area          dd filename_area        ;+40
  130. .filter_area            dd Filter
  131. .x:
  132. .x_size                 dw 420 ;+48 ; Window X size
  133. .x_start                dw 10 ;+50 ; Window X position
  134. .y:
  135. .y_size                 dw 320 ;+52 ; Window y size
  136. .y_start                dw 10 ;+54 ; Window Y position
  137.  
  138. communication_area_name:
  139.         db 'FFFFFFFF_open_dialog',0
  140. open_dialog_path:
  141. if __nightbuild eq yes
  142.     db '/sys/MANAGERS/opendial',0
  143. else
  144.     db '/sys/File Managers/opendial',0
  145. end if
  146. communication_area_default_pach:
  147.         db '/sys',0
  148.  
  149. Filter:
  150. dd      Filter.end - Filter
  151. .1:
  152. db      'TXT',0
  153. db      'ASM',0
  154. db      'INC',0
  155. db      'MAC',0
  156. db      'DBG',0
  157. db      'INI',0
  158. db      'LOG',0
  159. db      'DAT',0
  160. db      'INF',0
  161. db      'BAT',0
  162. db      'SH',0
  163.  
  164. .end:
  165. db      0
  166.  
  167. open_dialog     db 0
  168. ;-----------------------------------------------------------------------------
  169.  
  170.