Subversion Repositories Kolibri OS

Rev

Rev 617 | Rev 1624 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 617 Rev 987
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
-
 
6
 
5
s_status dd 0
7
s_status dd 0
6
 
8
 
7
sz app_fasm    ,'/RD/1/DEVELOP/FASM',0
9
sz app_fasm    ,'/rd/1/develop/fasm',0
8
sz app_board   ,'/RD/1/BOARD',0
10
sz app_board   ,'/rd/1/board',0
9
sz app_tinypad ,'/RD/1/TINYPAD',0
11
sz app_tinypad ,'/rd/1/tinypad',0
10
sz app_docpak  ,'/RD/1/DOCPAK',0
12
sz app_docpak  ,'/rd/1/docpak',0
11
 
13
 
12
sz sysfuncs_param,'g',0
14
sz sysfuncs_param,'g',0
13
 
15
 
14
include 'tp-tables.inc'
16
include 'tp-tables.inc'
15
include 'tp-locale.inc'
17
include 'tp-locale.inc'
16
 
18
 
-
 
19
macro editor_lines [str, flags]
-
 
20
{
-
 
21
  common
-
 
22
    local size
-
 
23
  forward
-
 
24
    virtual at 0
-
 
25
      db str
-
 
26
      size = $
-
 
27
    end virtual
-
 
28
    dd size
-
 
29
    dw flags
-
 
30
    db str
-
 
31
  common
-
 
32
    dd 0
-
 
33
}
-
 
34
 
17
;// options dialog data [
35
;// options dialog data [
18
label optsdlg_editor at $-EDITOR.Bounds
36
label optsdlg_editor at $-EDITOR.Bounds
19
; rb PATHL     ; FilePath       db PATHL dup(?)
-
 
20
; dd 0         ; FileName       dd ?
-
 
21
  dd ?,?,?,?   ; Bounds         RECT
37
  dd ?,?,?,?   ; Bounds         RECT
22
  dd @f        ; Lines          dd ?
38
  dd @f        ; Lines          dd ?
23
  dd ?	       ; Lines.Size     dd ?
39
  dd ?	       ; Lines.Size     dd ?
24
  dd 9	       ; Lines.Count    dd ?
40
  dd 9	       ; Lines.Count    dd ?
25
  dd 21        ; Columns.Count  dd ?
41
  dd 21        ; Columns.Count  dd ?
26
  dd 0,4       ; Caret          POINT
42
  dd 0,4       ; Caret          POINT
27
  dd 100,4     ; SelStart       POINT
43
  dd 100,4     ; SelStart       POINT
28
  dd 0,0       ; TopLeft        POINT
44
  dd 0,0       ; TopLeft        POINT
29
  dd 0,0       ; VScroll        SCROLLBAR
45
  dd 0,0       ; VScroll        SCROLLBAR
30
  dd 0,0       ; HScroll        SCROLLBAR
46
  dd 0,0       ; HScroll        SCROLLBAR
31
  dd 0	       ; Gutter.Width   dd ?
47
  dd 0	       ; Gutter.Width   dd ?
32
  db 0	       ; Gutter.Visible db ?
48
  db 0	       ; Gutter.Visible db ?
33
  db 1	       ; AsmMode        db ?
49
  db 1	       ; AsmMode        db ?
34
  db 0	       ; Modified       db ?
50
  db 0	       ; Modified       db ?
35
 
51
 
36
@@:
52
@@:
37
  dd 0x00000000+1
53
editor_lines \
38
  db ' '
54
  ' ',			   0, \
39
  dd 0x00010000+9
-
 
40
  db ' org 100h'
55
  ' org 100h',		   EDITOR_LINE_FLAG_MOFIFIED, \
41
  dd 0x00000000+1
56
  ' ',			   0, \
42
  db ' '
57
  ' mov ah,09h  ; write',  0, \
43
  dd 0x00000000+20
-
 
44
  db ' mov ah,09h  ; write'
-
 
45
  dd 0x00000000+12
58
  ' mov dx,text',	   0, \
46
  db ' mov dx,text'
-
 
47
  dd 0x00000000+8
59
  ' int 21h',		   0, \
48
  db ' int 21h'
-
 
49
  dd 0x00030000+8
60
  ' int 20h',		   EDITOR_LINE_FLAG_MOFIFIED + EDITOR_LINE_FLAG_SAVED, \
50
  db ' int 20h'
61
  ' ',			   0, \
51
  dd 0x00000000+1
62
  ' text db "Hello!",24h', 0
52
  db ' '
-
 
53
  dd 0x00000000+21
-
 
54
  db ' text db "Hello!",24h'
-
 
55
  dd 0
63
 
56
 
-
 
57
optsdlg_editor_parts:	; left,top,right,bottom,type
64
optsdlg_editor_parts:	; left,top,right,bottom,type
58
  db 0, 12, 13, 29, 22
65
  db 0, 12, 13, 29, 22
59
  db 0, 12, 33, 47, 42
66
  db 0, 12, 33, 47, 42
60
  db 0, 12, 53, 29, 72
67
  db 0, 12, 53, 29, 72
61
  db 0, 12, 83, 53, 92
68
  db 0, 12, 83, 53, 92
62
  db 2, 12, 43, 77, 52
69
  db 2, 12, 43, 77, 52
63
  db 3,  4, 43,148, 52
70
  db 3,  4, 43,148, 52
64
  db 4, 48, 33, 53, 42
71
  db 4, 48, 33, 53, 42
65
  db 4,108, 83,113, 92
72
  db 4,108, 83,113, 92
66
  db 5, 36, 13, 59, 22
73
  db 5, 36, 13, 59, 22
67
  db 5, 54, 33, 71, 42
74
  db 5, 54, 33, 71, 42
68
  db 5, 36, 53, 53, 72
75
  db 5, 36, 53, 53, 72
69
  db 5,114, 83,131, 92
76
  db 5,114, 83,131, 92
70
  db 6, 60, 83,107, 92
77
  db 6, 60, 83,107, 92
71
  db 7, 84, 33,125, 42
78
  db 7, 84, 33,125, 42
72
  db 8,  1, 13,  5, 22
79
  db 8,  1, 13,  5, 22
73
  db 9,  1, 63,  5, 72
80
  db 9,  1, 63,  5, 72
74
  db 1,  1,  1,148,105
81
  db 1,  1,  1,148,105
75
  db -1
82
  db -1
76
;// ]
83
;// ]
77
 
84
 
78
sz symbols_ex,';?.%"',"'"
85
sz symbols_ex,';?.%"',"'"
79
sz symbols   ,'#&*\:/<>|{}()[]=+-, '
86
sz symbols,'#&*\:/<>|{}()[]=+-, '
80
 
87
 
-
 
88
; INI file section/key names
-
 
89
 
81
sz ini_sec_window   ,'Window',0
90
sz ini_sec_window,INI_SEC_PREFIX,'window',0
82
sz ini_window_top   ,'Top',0
91
sz ini_window_top,'top',0
83
sz ini_window_left  ,'Left',0
92
sz ini_window_left,'left',0
84
sz ini_window_right ,'Right',0
93
sz ini_window_width,'width',0
85
sz ini_window_bottom,'Bottom',0
94
sz ini_window_height,'height',0
-
 
95
 
-
 
96
sz ini_sec_colors,INI_SEC_PREFIX,'colors',0
-
 
97
sz ini_colors_text,'text',0
-
 
98
sz ini_colors_back,'back',0
-
 
99
sz ini_colors_text_sel,'text_sel',0
-
 
100
sz ini_colors_back_sel,'back_sel',0
-
 
101
sz ini_colors_symbol,'symbol',0
-
 
102
sz ini_colors_number,'number',0
-
 
103
sz ini_colors_string,'string',0
-
 
104
sz ini_colors_comment,'comment',0
-
 
105
sz ini_colors_line_moded,'line_moded',0
-
 
106
sz ini_colors_line_saved,'line_saved',0
-
 
107
 
-
 
108
sz ini_sec_options,INI_SEC_PREFIX,'options',0
-
 
109
sz ini_options_tabs_pos,'tabs_pos',0
-
 
110
sz ini_options_secure_sel,'secure_sel',0
-
 
111
sz ini_options_auto_braces,'auto_braces',0
-
 
112
sz ini_options_auto_indent,'auto_indent',0
-
 
113
sz ini_options_smart_tab,'smart_tab',0
-
 
114
sz ini_options_optim_save,'optim_save',0
-
 
115
sz ini_options_line_nums,'line_nums',0