Subversion Repositories Kolibri OS

Rev

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

Rev 5598 Rev 5611
1
//BOX_LIB - Asper
1
//BOX_LIB - Asper
2
#ifndef INCLUDE_BOX_LIB_H
2
#ifndef INCLUDE_BOX_LIB_H
3
#define INCLUDE_BOX_LIB_H
3
#define INCLUDE_BOX_LIB_H
4
 
4
 
5
#ifndef INCLUDE_KOLIBRI_H
5
#ifndef INCLUDE_KOLIBRI_H
6
#include "../lib/kolibri.h"
6
#include "../lib/kolibri.h"
7
#endif
7
#endif
8
 
8
 
9
#ifndef INCLUDE_DLL_H
9
#ifndef INCLUDE_DLL_H
10
#include "../lib/dll.h"
10
#include "../lib/dll.h"
11
#endif
11
#endif
12
 
12
 
13
dword boxlib = #aEdit_box_lib;
13
dword boxlib = #aEdit_box_lib;
14
char aEdit_box_lib[]="/sys/lib/box_lib.obj";
14
char aEdit_box_lib[]="/sys/lib/box_lib.obj";
15
 
15
 
16
dword box_lib_init   = #aboxlib_init;
16
dword box_lib_init   = #aboxlib_init;
17
 
17
 
18
dword edit_box_draw  = #aEdit_box_draw;
18
dword edit_box_draw  = #aEdit_box_draw;
19
dword edit_box_key   = #aEdit_box_key;
19
dword edit_box_key   = #aEdit_box_key;
20
dword edit_box_mouse = #aEdit_box_mouse;
20
dword edit_box_mouse = #aEdit_box_mouse;
21
dword version_ed     = #aVersion_ed;
21
dword version_ed     = #aVersion_ed;
-
 
22
 
-
 
23
dword menu_bar_draw             = #aMenu_bar_draw;
-
 
24
dword menu_bar_activate         = #aMenu_bar_activate;
-
 
25
dword menu_bar_mouse            = #aMenu_bar_mouse;
-
 
26
dword version_menu_bar          = #aVersion_menu_bar;
22
 
27
 
23
dword scrollbar_v_draw  = #aScrollbar_v_draw;
28
dword scrollbar_v_draw  = #aScrollbar_v_draw;
24
dword scrollbar_v_mouse = #aScrollbar_v_mouse;
29
dword scrollbar_v_mouse = #aScrollbar_v_mouse;
25
dword scrollbar_h_draw  = #aScrollbar_h_draw;
30
dword scrollbar_h_draw  = #aScrollbar_h_draw;
26
dword scrollbar_h_mouse = #aScrollbar_h_mouse;
31
dword scrollbar_h_mouse = #aScrollbar_h_mouse;
27
dword version_scrollbar = #aVersion_scrollbar;
32
dword version_scrollbar = #aVersion_scrollbar;
28
 
33
 
29
dword PathShow_prepare = #aPathShow_prepare;
34
dword PathShow_prepare = #aPathShow_prepare;
30
dword PathShow_draw    = #aPathShow_draw;
35
dword PathShow_draw    = #aPathShow_draw;
31
 
36
 
32
dword progressbar_draw = #aProgressbar_draw;
37
dword progressbar_draw = #aProgressbar_draw;
33
dword progressbar_progress = #aProgressbar_progress;
38
dword progressbar_progress = #aProgressbar_progress;
34
 
39
 
35
dword check_box_draw = #aCheck_box_draw;
40
dword check_box_draw = #aCheck_box_draw;
36
dword check_box_mouse = #aCheck_box_mouse;
41
dword check_box_mouse = #aCheck_box_mouse;
37
dword version_ch = #aVersion_ch;
42
dword version_ch = #aVersion_ch;
38
 
43
 
39
dword frame_draw = #aFrame_draw;
44
dword frame_draw = #aFrame_draw;
40
 
45
 
41
$DD 2 dup 0
46
$DD 2 dup 0
42
 
47
 
43
char aEdit_box_draw []    = "edit_box";
48
char aEdit_box_draw []    = "edit_box";
44
char aEdit_box_key  []    = "edit_box_key";
49
char aEdit_box_key  []    = "edit_box_key";
45
char aEdit_box_mouse[]    = "edit_box_mouse";
50
char aEdit_box_mouse[]    = "edit_box_mouse";
46
char aVersion_ed    []    = "version_ed";
51
char aVersion_ed    []    = "version_ed";
-
 
52
 
-
 
53
char aMenu_bar_draw    []    = "menu_bar_draw";
-
 
54
char aMenu_bar_activate[]    = "menu_bar_activate";
-
 
55
char aMenu_bar_mouse   []    = "menu_bar_mouse";
-
 
56
char aVersion_menu_bar []    = "version_menu_bar";
47
 
57
 
48
char aboxlib_init[]        = "lib_init";
58
char aboxlib_init[]        = "lib_init";
49
char aScrollbar_v_draw [] = "scrollbar_v_draw";
59
char aScrollbar_v_draw [] = "scrollbar_v_draw";
50
char aScrollbar_v_mouse[] = "scrollbar_v_mouse";
60
char aScrollbar_v_mouse[] = "scrollbar_v_mouse";
51
char aScrollbar_h_draw [] = "scrollbar_h_draw";
61
char aScrollbar_h_draw [] = "scrollbar_h_draw";
52
char aScrollbar_h_mouse[] = "scrollbar_h_mouse";
62
char aScrollbar_h_mouse[] = "scrollbar_h_mouse";
53
char aVersion_scrollbar[] = "version_scrollbar";
63
char aVersion_scrollbar[] = "version_scrollbar";
54
 
64
 
55
char aCheck_box_draw   [] = "check_box_draw2";
65
char aCheck_box_draw   [] = "check_box_draw2";
56
char aCheck_box_mouse  [] = "check_box_mouse2";
66
char aCheck_box_mouse  [] = "check_box_mouse2";
57
char aVersion_ch       [] = "version_ch2";
67
char aVersion_ch       [] = "version_ch2";
58
 
68
 
59
char aOption_box_draw  [] = "option_box_draw";
69
char aOption_box_draw  [] = "option_box_draw";
60
char aOption_box_mouse [] = "option_box_mouse";
70
char aOption_box_mouse [] = "option_box_mouse";
61
char aVersion_op       [] = "version_op" ;
71
char aVersion_op       [] = "version_op" ;
62
 
72
 
63
char aPathShow_prepare [] = "PathShow_prepare";
73
char aPathShow_prepare [] = "PathShow_prepare";
64
char aPathShow_draw    [] = "PathShow_draw";
74
char aPathShow_draw    [] = "PathShow_draw";
65
 
75
 
66
char aProgressbar_draw  [] = "progressbar_draw";
76
char aProgressbar_draw  [] = "progressbar_draw";
67
char aProgressbar_progress[] = "progressbar_progress";
77
char aProgressbar_progress[] = "progressbar_progress";
68
 
78
 
69
char aFrame_draw[] = "frame_draw";
79
char aFrame_draw[] = "frame_draw";
70
 
80
 
71
 
81
 
72
struct PathShow_data
82
struct PathShow_data
73
{
83
{
74
dword type;
84
dword type;
75
word start_y,
85
word start_y,
76
	start_x,
86
	start_x,
77
	font_size_x,    // 6 - for font 0, 8 - for font 1
87
	font_size_x,    // 6 - for font 0, 8 - for font 1
78
	area_size_x;
88
	area_size_x;
79
dword font_number,  // 0 - monospace, 1 - variable
89
dword font_number,  // 0 - monospace, 1 - variable
80
	background_flag,
90
	background_flag,
81
	font_color,
91
	font_color,
82
	background_color,
92
	background_color,
83
	text_pointer,
93
	text_pointer,
84
	work_area_pointer,
94
	work_area_pointer,
85
	temp_text_length;
95
	temp_text_length;
86
};
96
};
87
/*
97
/*
88
char temp[128];
98
char temp[128];
89
PathShow_data PathShow = {0, 100,20, 6, 200, 0, 1, 0x0, 0xFFFfff, #email_text, #temp, 0};
99
PathShow_data PathShow = {0, 100,20, 6, 200, 0, 1, 0x0, 0xFFFfff, #email_text, #temp, 0};
90
PathShow_prepare stdcall(#PathShow);
100
PathShow_prepare stdcall(#PathShow);
91
PathShow_draw stdcall(#PathShow);
101
PathShow_draw stdcall(#PathShow);
92
*/
102
*/
-
 
103
 
-
 
104
struct menu_data
-
 
105
{
-
 
106
	dword type;
-
 
107
	
-
 
108
	word size_x;
-
 
109
	word start_x;
-
 
110
	
-
 
111
	word size_y;
-
 
112
	word start_y;
-
 
113
	dword text_pointer;
-
 
114
	dword pos_pointer;
-
 
115
	dword text_end;
-
 
116
	dword mouse_pos;
-
 
117
	dword mouse_keys;
-
 
118
	
-
 
119
	word size_x1;
-
 
120
	word start_x1;
-
 
121
	
-
 
122
	word size_y1;
-
 
123
	word start_y1;
-
 
124
	dword bckg_col;
-
 
125
	dword frnt_col;
-
 
126
	dword menu_col;
-
 
127
	dword select;
-
 
128
	dword out_select;
-
 
129
	dword buf_adress;
-
 
130
	dword procinfo;
-
 
131
	dword click;
-
 
132
	dword cursor;
-
 
133
	dword cursor_old;
-
 
134
	dword interval;
-
 
135
	dword cursor_max;
-
 
136
	dword extended_key;
-
 
137
	dword menu_sel_col;
-
 
138
	dword bckg_text_col;
-
 
139
	dword frnt_text_col;
-
 
140
	dword mouse_keys_old;
-
 
141
	dword font_height;
-
 
142
	dword cursor_out;
-
 
143
	dword get_mouse_flag;
93
 
144
};
94
 
145
 
95
struct edit_box{
146
struct edit_box{
96
dword width, left, top, color, shift_color, focus_border_color, blur_border_color,
147
dword width, left, top, color, shift_color, focus_border_color, blur_border_color,
97
text_color, max, text, mouse_variable, flags, size, pos, offset, cl_curs_x, cl_curs_y, shift, shift_old;
148
text_color, max, text, mouse_variable, flags, size, pos, offset, cl_curs_x, cl_curs_y, shift, shift_old;
98
};
149
};
99
 
150
 
100
struct checkbox2
151
struct checkbox2
101
{
152
{
102
  dword
153
  dword
103
	left_s,
154
	left_s,
104
	top_s,
155
	top_s,
105
	ch_text_margin,
156
	ch_text_margin,
106
	color,
157
	color,
107
	border_color,
158
	border_color,
108
	text_color,
159
	text_color,
109
	text,
160
	text,
110
	flags,
161
	flags,
111
	size_of_str;
162
	size_of_str;
112
};
163
};
113
 
164
 
114
//flags for checkbox2
165
//flags for checkbox2
115
#define CH_FLAG_EN 10b      
166
#define CH_FLAG_EN 10b      
116
#define CH_FLAG_TOP 0x0     
167
#define CH_FLAG_TOP 0x0     
117
#define CH_FLAG_MIDDLE 100b 
168
#define CH_FLAG_MIDDLE 100b 
118
#define CH_FLAG_BOTTOM 1000b 
169
#define CH_FLAG_BOTTOM 1000b 
119
 
170
 
120
struct scroll_bar
171
struct scroll_bar
121
{
172
{
122
	word size_x,
173
	word size_x,
123
	start_x,
174
	start_x,
124
	size_y,
175
	size_y,
125
	start_y;
176
	start_y;
126
	dword btn_height,
177
	dword btn_height,
127
	type,
178
	type,
128
	max_area,
179
	max_area,
129
	cur_area,
180
	cur_area,
130
	position,
181
	position,
131
	bckg_col,
182
	bckg_col,
132
	frnt_col,
183
	frnt_col,
133
	line_col,
184
	line_col,
134
	redraw;
185
	redraw;
135
	word delta,
186
	word delta,
136
	delta2,
187
	delta2,
137
	r_size_x,
188
	r_size_x,
138
	r_start_x,
189
	r_start_x,
139
	r_size_y,
190
	r_size_y,
140
	r_start_y;
191
	r_start_y;
141
	dword m_pos,
192
	dword m_pos,
142
	m_pos_2,
193
	m_pos_2,
143
	m_keys,
194
	m_keys,
144
	run_size,
195
	run_size,
145
	position2,
196
	position2,
146
	work_size,
197
	work_size,
147
	all_redraw,
198
	all_redraw,
148
	ar_offset;
199
	ar_offset;
149
};
200
};
150
 
201
 
151
struct progress_bar
202
struct progress_bar
152
{
203
{
153
  dword
204
  dword
154
	value,
205
	value,
155
	left,
206
	left,
156
	top,
207
	top,
157
	width,
208
	width,
158
	height,
209
	height,
159
	style,
210
	style,
160
	min,
211
	min,
161
	max,
212
	max,
162
	back_color,
213
	back_color,
163
	progress_color,
214
	progress_color,
164
	frame_color;
215
	frame_color;
165
};
216
};
166
 
217
 
167
struct frame
218
struct frame
168
{
219
{
169
	dword type;
220
	dword type;
170
	word size_x;                  
221
	word size_x;                  
171
	word start_x;                 
222
	word start_x;                 
172
	word size_y;                  
223
	word size_y;                  
173
	word start_y;                
224
	word start_y;                
174
	dword ext_col;            
225
	dword ext_col;            
175
	dword int_col;            
226
	dword int_col;            
176
	dword draw_text_flag;  // 0-not,1-yes
227
	dword draw_text_flag;  // 0-not,1-yes
177
	dword text_pointer;          
228
	dword text_pointer;          
178
	dword text_position;   //  0-up,1-bottom
229
	dword text_position;   //  0-up,1-bottom
179
	dword font_number;     //  0-monospace,1-variable
230
	dword font_number;     //  0-monospace,1-variable
180
	dword font_size_y;           
231
	dword font_size_y;           
181
	dword font_color;            
232
	dword font_color;            
182
	dword font_backgr_color;
233
	dword font_backgr_color;
183
};     
234
};     
184
 
235
 
185
#endif
236
#endif