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